cva6 icon indicating copy to clipboard operation
cva6 copied to clipboard

Clarification on ECALL instruction

Open christian-lanius opened this issue 3 years ago • 4 comments

Dear All, I have a question regarding the handling of the ECALL instruction (32h73): In the rvfi_tracer this instruction leads to the direct finish of the simulation (https://github.com/openhwgroup/cva6/blob/master/corev_apu/tb/rvfi_tracer.sv#L60). Can you explain why this is the case? Is this just not handled at this point in time? I am currently using a little bit older commit (44a89b9cd408b869fb4ed2c0cec35e1561588e37), as the later ones result in the issue raised in #800. Running make run-asm-tests will run the rv64ui-v-addi test which results in the test not passing (no "SUCCESS" is being printed). I raise this issue, as one can comment out the finish statements in the tracer and the program finishes correctly. However, a synthesized version of the core will get stuck at this instruction. The synthesized core I have will run the benchmarks and other compiled programs (and most isa tests) correctly, but some of them exhibit this problem.

I would be really happy to hear back from you

Kind regards Christian

christian-lanius avatar Mar 09 '22 14:03 christian-lanius