chipsalliance / Cores-VeeR-EH1

VeeR EH1 core
Apache License 2.0
823 stars 221 forks source link

print instruction to exec.log #87

Closed kingstone1927 closed 3 years ago

kingstone1927 commented 3 years ago

Is there a way for me to print RISC-V instructions along with clock cycle into exec.log?

Thanks in advance.

agrobman commented 3 years ago

it does - first number in the exec.log is the clock cycle, then executed instruction number and hart ID (0), then instruction address and then opcode. Using .dis you can find mnemonics

You can also try incorporate dasm.svi from EL2 DB to print mnemonics in exec.log

kingstone1927 commented 3 years ago

@agrobman Thank you! I assume that exec.log from EL2 will contain the mnemonics after running the simulation, does it?