separate rom-based and non-rom-based configs; add bootrom to makefile
This commit is contained in:
@@ -35,17 +35,22 @@ class WithRadBootROM(address: BigInt = 0x10000, size: Int = 0x10000, hang: BigIn
|
|||||||
))
|
))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
class RadianceROMConfig extends Config(
|
||||||
|
new freechips.rocketchip.subsystem.WithRadianceCores() ++
|
||||||
|
new freechips.rocketchip.subsystem.WithCoherentBusTopology ++
|
||||||
|
new WithExtMemSize(BigInt("80000000", 16)) ++
|
||||||
|
new WithRadBootROM() ++
|
||||||
|
new WithRadROMs(0x7FFF0000L, 0x10000, "sims/vcs/args.bin") ++
|
||||||
|
new WithRadROMs(0x20000L, 0x8000, "sims/vcs/op_a.bin") ++
|
||||||
|
new WithRadROMs(0x28000L, 0x8000, "sims/vcs/op_b.bin") ++
|
||||||
|
new AbstractConfig)
|
||||||
|
|
||||||
class RadianceConfig extends Config(
|
class RadianceConfig extends Config(
|
||||||
new freechips.rocketchip.subsystem.WithRadianceCores() ++
|
new freechips.rocketchip.subsystem.WithRadianceCores() ++
|
||||||
new freechips.rocketchip.subsystem.WithCoherentBusTopology ++
|
new freechips.rocketchip.subsystem.WithCoherentBusTopology ++
|
||||||
// new freechips.rocketchip.subsystem.WithNoMemPort ++
|
|
||||||
// new testchipip.WithSbusScratchpad(banks=2) ++
|
|
||||||
// new testchipip.WithMbusScratchpad(banks=2) ++
|
|
||||||
new WithExtMemSize(BigInt("80000000", 16)) ++
|
new WithExtMemSize(BigInt("80000000", 16)) ++
|
||||||
new WithRadBootROM() ++
|
new WithRadBootROM() ++
|
||||||
new WithRadROMs(0x7FFF0000L, 0x10000, "sims/vcs/args.bin") ++
|
new testchipip.WithMbusScratchpad(base=0x7FFF0000L, size=0x10000, banks=1) ++
|
||||||
new WithRadROMs(0x20000L, 0x8000, "sims/vcs/op_a.bin") ++
|
|
||||||
new WithRadROMs(0x28000L, 0x8000, "sims/vcs/op_b.bin") ++
|
|
||||||
new AbstractConfig)
|
new AbstractConfig)
|
||||||
|
|
||||||
class TinyRocketConfig extends Config(
|
class TinyRocketConfig extends Config(
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ BB_MODS_FILELIST ?= $(build_dir)/$(long_name).bb.f
|
|||||||
# all module files to include (top, model, bb included)
|
# all module files to include (top, model, bb included)
|
||||||
ALL_MODS_FILELIST ?= $(build_dir)/$(long_name).all.f
|
ALL_MODS_FILELIST ?= $(build_dir)/$(long_name).all.f
|
||||||
|
|
||||||
BOOTROM_FILES ?= bootrom.rv64.img bootrom.rv32.img
|
BOOTROM_FILES ?= bootrom.rv64.img bootrom.rv32.img bootrom.radiance.rv32.img
|
||||||
BOOTROM_TARGETS ?= $(addprefix $(build_dir)/, $(BOOTROM_FILES))
|
BOOTROM_TARGETS ?= $(addprefix $(build_dir)/, $(BOOTROM_FILES))
|
||||||
|
|
||||||
# files that contain lists of files needed for VCS or Verilator simulation
|
# files that contain lists of files needed for VCS or Verilator simulation
|
||||||
|
|||||||
Reference in New Issue
Block a user