Update sipeed_tang_nano_4k.py

replace kB to KILOBYTE
This commit is contained in:
Oleg Libin 2024-11-08 15:54:00 +05:00 committed by GitHub
parent 3b8c55802f
commit eb43cd3ca9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -86,12 +86,12 @@ class BaseSoC(SoCCore):
# Use EMCU's SRAM. # Use EMCU's SRAM.
self.bus.add_region("sram", SoCRegion( self.bus.add_region("sram", SoCRegion(
origin = self.cpu.mem_map["sram"], origin = self.cpu.mem_map["sram"],
size = 16 * kB, size = 16 * KILOBYTE,
)) ))
# Use ECMU's FLASH as ROM. # Use ECMU's FLASH as ROM.
self.bus.add_region("rom", SoCRegion( self.bus.add_region("rom", SoCRegion(
origin = self.cpu.mem_map["rom"], origin = self.cpu.mem_map["rom"],
size = 32 * kB, size = 32 * KILOBYTE,
linker = True, linker = True,
)) ))
# No Gowin EMCU ---------------------------------------------------------------------------- # No Gowin EMCU ----------------------------------------------------------------------------