enjoy-digital / litex

Build your hardware, easily!
Other
3k stars 569 forks source link

--csr-json csr.json doesn't produce the output file #1296

Open mzau opened 2 years ago

mzau commented 2 years ago

I installed litex as instructed especially installing the Risc-V toolchain with

./litex_setup.py --gcc=riscv

Also litex_sim --cpu-type=vexriscv is starting up a simulated litex Bios.

Though following the wiki at Generate Renode Simulation

python3 litex-boards/litex_boards/targets/digilent_arty.py --cpu-type vexriscv --with-ethernet --csr-json csr.json

Runs through without flagging any error, but the csr.json file is not generated.

Where do I find the csr.json which I need to generate a .repl for renode?

mzau commented 2 years ago

adding --build --no-compile seemes to do it.

enjoy-digital commented 2 years ago

Hi @mzau,

thanks for reporting. This is indeed a side-effect of disabling the build by default (which also had other side-effect), that I also encountered a few hours ago. I'll try to improve this.

fdsgdshn commented 1 year ago

Hi,

Is there any progress on this issue? I'm also encountering the same error when generating the Litex.resc and litex.repl files for Renode. I'm getting the "config_cpu_count" error, which indicates that this attribute is not correctly defined in the csr.json file. It seems that the "--build-no-compile" command is not working correctly.