Closed hhhsiang closed 5 days ago
During simulation a .dasm
file is generated from the rvfi_tracer in verif/sim. It is deleted by make -C verif/sim clean_all
(in smoke-tests.sh
). This looks like you generated an exception during program execution most likely (ILLEGAL_INSTR).
You can have the VCD generated by setting TRACE_FAST=1.
Is there an existing CVA6 bug for this?
Bug Description
I want to modified the cva6 decoder to decode a custom instruction, so I use
.insn
pseudo instruction to present custom instruction incustom_test_template.S
like this.However, when I run
python3 cva6.py --testlist=../tests/testlist_custom.yaml --test custom_test_template --iss_yaml cva6.yaml --target cv64a6_imafdc_sv39 --iss=$DV_SIMULATORS $DV_OPTS
bysmoke-test.sh
, I encountered the error:The error message show in
custom_test_template.cv64a6_imafdc_sv39.log
:I have set
export DV_SIMULATORS=veri-testharness
, I think the simulation only run with verilator.The questions are:
smoke-tsets.sh
is finished. However, I check the code inrvfi_tracer.sv
, the following code will record the executed instructions: I think the .log file should be generated although the error happened.rvfi_tracer.sv
will determine the illegal instruction like the following: When I run a custom instruction, It should write exception for illegal instruction in a .log file, however, no such file is actually created if error occurred.P.S. I have run riscv-tests, and all tests passed. Besides, all the vcd and .log files are generated successfully.