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

How can with Murax soc connect a memory on apb bus? #351

Open
MartinaBarreiroGuerra opened this issue Jun 25, 2023 · 3 comments
Open

How can with Murax soc connect a memory on apb bus? #351

MartinaBarreiroGuerra opened this issue Jun 25, 2023 · 3 comments

Comments

@MartinaBarreiroGuerra
Copy link

Hi, I would like to use a memory on the apb bus.
How can I use this part of Murax Soc to use a ROM on the apb bus?

 val xip = ifGen(genXip)(new Area{
      val ctrl = Apb3SpiXdrMasterCtrl(xipConfig)
      ctrl.io.spi <> io.xip
      externalInterrupt setWhen(ctrl.io.interrupt)
      apbMapping += ctrl.io.apb     -> (0x1F000, 4 kB)

      val accessBus = new PipelinedMemoryBus(PipelinedMemoryBusConfig(24,32))
      mainBusMapping += accessBus -> (0xE0000000l, 16 MB)

      ctrl.io.xip.fromPipelinedMemoryBus() << accessBus
      val bootloader = Apb3Rom("src/main/c/murax/xipBootloader/crt.bin")
      apbMapping += bootloader.io.apb     -> (0x1E000, 4 kB)
    })

Thank you

@Dolu1990
Copy link
Member

Dolu1990 commented Jun 26, 2023

Hi,

A ROM implemented using onchip ram / LUT ? or an external ROM ?

@MartinaBarreiroGuerra
Copy link
Author

Yes, using onchip ram (using an fpga).

@Dolu1990
Copy link
Member

Ahh then i would say to not take example on the flash xip stuff, but instead take example on a regular peripheral, ex GPIO peripheral

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants