I modified the file rocket-chip/src/main/scala/system/Configs.scala
I've added a line: class MyConfig extends Config(new WithJtagDTM ++ new DefaultConfig)
Then i launch in rocket-chip/emulator make CONFIG=MyConfig and also make CONFIG=MyConfig debug and the system builds my emulator.
I have:
andrea13@andrea13:~/rocket-chip/emulator$ ls emulator-freechips.rocketchip.system-DefaultSmallConfig generated-src output emulator-freechips.rocketchip.system-DefaultSmallConfig-debug generated-src-debug verilator emulator-freechips.rocketchip.system-MyConfig Makefile emulator-freechips.rocketchip.system-MyConfig-debug Makefrag-verilator
But the problem is that when i want to run Verilator
emulator-freechips.rocketchip.system-MyConfig +max-cycles=100000000 +verbose output/Myprogram.riscv 3>&1 1>&2 2>&3 | spike-dasm > output/Myprogram.out && [ $PIPESTATUS -eq 0 ]
it doesn't work.
If i run it with the DefaultSmallConfig it runs without any problem.
I modified the file rocket-chip/src/main/scala/system/Configs.scala I've added a line:
class MyConfig extends Config(new WithJtagDTM ++ new DefaultConfig)
Then i launch in rocket-chip/emulatormake CONFIG=MyConfig
and alsomake CONFIG=MyConfig debug
and the system builds my emulator.I have:
andrea13@andrea13:~/rocket-chip/emulator$ ls emulator-freechips.rocketchip.system-DefaultSmallConfig generated-src output emulator-freechips.rocketchip.system-DefaultSmallConfig-debug generated-src-debug verilator emulator-freechips.rocketchip.system-MyConfig Makefile emulator-freechips.rocketchip.system-MyConfig-debug Makefrag-verilator
But the problem is that when i want to run Verilator
emulator-freechips.rocketchip.system-MyConfig +max-cycles=100000000 +verbose output/Myprogram.riscv 3>&1 1>&2 2>&3 | spike-dasm > output/Myprogram.out && [ $PIPESTATUS -eq 0 ]
it doesn't work. If i run it with the DefaultSmallConfig it runs without any problem.