opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

[kmac] incorrect CmdProcess during manual squeezing causes assertion error

Open udinator opened this issue 5 years ago • 3 comments

Hi Eunchan,

I'm seeing this scenario when I incorrectly write a CmdProcess instead of CmdManualRun to test error behavior:

Screenshot from 2021-06-04 14-39-59

In this scenario, CmdProcess has already been written by SW to produce the initial digest, but manual squeezing is required.

Instead of writing CmdManualRun, the test sequence writes CmdProcess again - this causes the PackerDoneValid_a assertion in the kmac_msgfifo to fire, as it is not expecting to see process_i during the FlushClear state.

Should this assertion be removed, as the new error checking logic in #6753 will handle SW command sequencing?

udinator avatar Jun 04 '21 21:06 udinator

I think the solution is quite similar with #6842 If we block the incorrect command, the MsgFIFO won't catch the assertion.

eunchan avatar Jul 09 '21 17:07 eunchan

hmm, that makes sense to me.

udinator avatar Jul 09 '21 18:07 udinator

Adding @cindychip for visibility.

udinator avatar Oct 08 '21 00:10 udinator