chipsalliance / rocket-chip

Rocket Chip Generator
Other
3.21k stars 1.12k forks source link

Not able to create a configuration whit JTAG #2166

Open angi10 opened 4 years ago

angi10 commented 4 years ago

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.

mwachs5 commented 4 years ago

"But the problem is that when i want to run Verilator ... it doesn't work"

what does "it doesn't work" mean. What is the behavior you are seeing and what do you expect to happen.