Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple SPIs lead to errors #194

Open
BasicEC opened this issue Jan 22, 2022 · 0 comments
Open

Multiple SPIs lead to errors #194

BasicEC opened this issue Jan 22, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@BasicEC
Copy link
Collaborator

BasicEC commented Jan 22, 2022

Steps to reproduse:

  1. Define two SPI for busnetwork in Main.hs:
defMicroarch ioSync = defineNetwork "net1" ioSync $ do
    addCustom "fram1" (framWithSize 16) FramIO
    addCustom "fram2" (framWithSize 32) FramIO
    add "shift" ShiftIO
    add "mul" MultiplierIO
    add "accum" AccumIO
    add "div" DividerIO
    add "spi" $
        SPISlave
            { slave_mosi = InputPortTag "mosi"
            , slave_miso = OutputPortTag "miso"
            , slave_sclk = InputPortTag "sclk"
            , slave_cs = InputPortTag "cs"
            }
    add "r_spi" $
        SPISlave
            { slave_mosi = InputPortTag "r_mosi"
            , slave_miso = OutputPortTag "r_miso"
            , slave_sclk = InputPortTag "r_sclk"
            , slave_cs = InputPortTag "r_cs"
            }
  1. run example
$ stack build
$ stack exec nitta -- examples/teacup.lua -p=8080
  1. Complete synthesis and go to the testbench tab:
    image
@BasicEC BasicEC added the bug Something isn't working label Jan 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant