Swapping ROM and DRAM addresses - Sodor Core

37 views
Skip to first unread message

Kelly Xu

unread,
Aug 21, 2025, 1:24:54 PMAug 21
to Chipyard
Hi! 

Is there a way to move the DRAM address range to start at 0x10000 and the boot ROM address range to start at 0x80000000?

We've tried modifying the address parameter under BootROMParams and changing the scratch address in sodor_tile.scala, but this hasn't worked so far. It seems like changing BootROMParams hasn't actually moved the ROM. 

Thank you! 

Junaid amjad

unread,
Aug 22, 2025, 7:03:02 AMAug 22
to chip...@googlegroups.com
Hi,

By doing the above two changes you mentioned I'm able to generate the verilog with DRAM at 0x10000 and the boot ROM at 0x80000000. I did not run any test yet as this would require generating new rom image and riscv binaries with updated address range. Below are the exact changed that I did:
1)_Changed the bootrom address via class WithBootROM in file generators/chipyard/src/main/scala/config/fragments/PeripheralFragments.scala
2)_Changed the scratchpad address via class WithNSodorCores in file generators/riscv-sodor/src/main/scala/sodor/common/sodor_tile.scala.

And I have verified the updated addresses from the generated dts file. 
Let me know if this works or share the exact issue you are facing, thanks.

Regards,
Junaid

--
You received this message because you are subscribed to the Google Groups "Chipyard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chipyard+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/chipyard/fe5d53ef-30a6-4588-b27c-36ca858a32dcn%40googlegroups.com.

Kelly Xu

unread,
Aug 25, 2025, 12:08:02 PM (12 days ago) Aug 25
to Chipyard
Hi,

Thanks for the help! 
I changed the bootROM address in the first file to 0x80000000L, and scratch = Some(0x10000L) in the second file. However, I'm running into the error "Sodor core can only have one scratchpad" when running make CONFIG=Sodor1StageConfig. 

Did this work with Sodor1Stage for you or was it a different sodor config? 

Thank you! 

Junaid amjad

unread,
Aug 25, 2025, 12:17:45 PM (12 days ago) Aug 25
to chip...@googlegroups.com
Hi,
Just comment out this line. This is a hack but looks like it's a safe hack and I have not looked into it in more detail for a proper solution or any side effect from this hack.

Thanks!

Kelly Xu

unread,
Aug 25, 2025, 12:50:35 PM (12 days ago) Aug 25
to Chipyard
Thank you, this worked! 
Reply all
Reply to author
Forward
Message has been deleted
0 new messages