ibex icon indicating copy to clipboard operation
ibex copied to clipboard

Question: trace comparison of external stimulus

Open kabylkas opened this issue 6 years ago • 2 comments

Hi :wave:

I have a difficulty understanding how is the trace comparison happens when external interrupts are present.

From the figure that I got in Ibex manual, it seems like ISS is completely decoupled from the RTL during the execution. By looking at this, my guess is that ISS will not be aware of the change in execution flow when interrupt triggers and the traces will diverge. Does this mean that comparison will fail if there are interrupts?

Thank you,

image

kabylkas avatar Jun 17 '20 01:06 kabylkas

Hi @kabylkas , thanks for the question!

You're correct in that the ISS will not be aware of any interrupt/debug triggers, and this will cause divergences in the trace logs. To handle this, in tests like this, we disable instruction-by-instruction checking between the logs and just check the final values that end up stored in the register file, as this state should still remain the same in both sets of trace logs. We also use the handshaking mechanism as described in the Verification section of the Ibex manual to perform run-time checking for these kinds of tests.

Hope this helps!

udinator avatar Jun 18 '20 00:06 udinator

Thank you!

kabylkas avatar Jun 20 '20 02:06 kabylkas