ibex icon indicating copy to clipboard operation
ibex copied to clipboard

Ibex tracer - compressed instructions

Open udinator opened this issue 7 years ago • 2 comments

Hi, Would it be possible to have the Ibex tracer indicate that an instruction is compressed, and if so, log the compressed instruction name? This would bring the log file closer in similarity to Spike log files, and would make debugging regression failures a bit easier to do. Not sure if this complies with RVFI spec though. Thanks! Udi

udinator avatar Jul 30 '19 17:07 udinator

Sure, that's possible. We have the rvfi_insn signal, which contains the original (compressed) instruction. (The non-standard rvfi_insn_uncompressed signal always contains the uncompressed instruction. This one is currently used by ibex_tracer.)

We have two options going forward:

  • Either you open a PR which extends ibex_tracer to include the compressed instruction.
  • Or you let me know how you'd like the logs to look and I'll implement it.

imphil avatar Jul 31 '19 13:07 imphil

Current ibex trace logs are below: Screenshot from 2019-07-31 10-37-14 Screenshot from 2019-07-31 10-38-44

I was just referring to denoting the instructions as compressed (such as c.addi, etc...) like Spike logs do: Screenshot from 2019-07-31 10-37-00 Screenshot from 2019-07-31 10-38-28

I was just thinking it could be efficient for the ibex logs to show the compressed instruction name (c.li, c.addi, c.lui, etc...) to match what Spike shows and give a better idea of which instructions are compressed or not. Thanks!

udinator avatar Jul 31 '19 17:07 udinator