opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

[edn/rtl/dv] EDN handle cmd ready de-assert

Open senelson7 opened this issue 4 years ago • 9 comments

  • PR #15478 Contains a fifo-based fix to allow block-level/chip-level tests to pass.
  • Once this PR is merged, submit block-based edn/dv PR to randomly create this condition, Tests will include edn_genbits, edn_smoke.
  • Need to create new PR that removes additional fifo and fixes handshaking in all modes.

senelson7 avatar Oct 18 '22 16:10 senelson7

dv PR #15570

senelson7 avatar Oct 18 '22 20:10 senelson7

The above mentioned first two steps have now been completed. Here is an update on the EDN RTL after some consideration: The ready issue appears to only affect "auto-request" mode, which is expected to be used by the EDN instance connected to the OTBN complex. The "boot-mode" is not affected because only single beat requests are made, and completed with a CSRNG ack for each command. Likewise, "software" mode is also unaffected because it does look at the ready input signal. Because of this, the software mode could have been used as a work-around, but would defeat the convenience of the RTL auto-request mode function. The fix for the "cost-reduced" function could be done by the following changes:

  • remove the output FIFO, and related alert.
  • change the output flop stage to hold state when the CSRNG cmd ready input is low.
  • the ready input most likely needs to be monitored by the main state machine, since the last beat of a command was not behaving properly with the mostly functioning fix that @vogelpi put together.
  • there may be some other cases to close, but the unit tb will now expose them all with enough simulation runs.

mwbranstad avatar Oct 19 '22 20:10 mwbranstad

This is something we should still consider for D3. The required DV components are now there. Removing these additional FIFOs would save 5 - 6.5 kGE for ES.

vogelpi avatar Nov 25 '22 10:11 vogelpi

yeah agreed, especially if such a fix does not cause existing DV churn.

tjaychen avatar Nov 29 '22 19:11 tjaychen

I'm movoing this to M3 for now based on the priority definition @msfschaffner is working on. That feels appropriate to me.

tjaychen avatar Dec 05 '22 23:12 tjaychen

Hey @tjaychen , based on the M3 triaging guidelines I think this should be a P3 (nice to have but manageable without). Please let me know if you don't agree.

vogelpi avatar Jan 13 '23 17:01 vogelpi

i think so too.

tjaychen avatar Jan 13 '23 17:01 tjaychen

Triaged for edn. Assigning to M2.5 with https://github.com/lowRISC/opentitan/labels/Priority%3AP3 under the "nice to have but manageable without" rationale.

andreaskurth avatar Mar 01 '23 13:03 andreaskurth

Planned for PROD as P1, since fixing this the right way will save several kGE and the DV is already in place for this.

msfschaffner avatar Dec 21 '23 14:12 msfschaffner