opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

[entropy_src/rtl] optional new drop points when entropy overflows FIFOs

Open mwbranstad opened this issue 5 years ago • 10 comments

Requirements have changed such that the drop point where new entropy cannot be consumed by entropy_src should be changed. A proposal would be to make this selectable (config bits). The choices would be the current input to the FIFO chain, the tail of the final FIFO (keep prior entropy seeds), and the head of the final FIFO (always push old entropy seeds out).

The attached diagram shows where these points are in the entropy flow. drop_point_diag.pdf

mwbranstad avatar Apr 13 '21 16:04 mwbranstad

For entropy meeting discussion: @tjaychen @martin-lueker @cdgori @felixmiller @moidx

mwbranstad avatar Apr 13 '21 16:04 mwbranstad

forget @senelson7 @zi-v

mwbranstad avatar Apr 13 '21 16:04 mwbranstad

Meeting consensus was that this should not be programmable, but rather just fixed, and that option #2 was preferred. Since this is trivial, that will be the direction of this issue.

mwbranstad avatar Apr 13 '21 20:04 mwbranstad

Does "The choices would be the current input to the FIFO chain" drop point mean after the health tests and before the '2kB' FIFO?

zi-v avatar Apr 19 '21 13:04 zi-v

not quite. If you click on mark's diagram, you'll see that drop point 2 is after the final FIFO. Which means data will get healthtested, conditioned via the sha3 and deposited into the FIFO. An older entry in the FIFO will simply just be evicted.

@mwbranstad let me know if i misunderstood.

tjaychen avatar Apr 20 '21 00:04 tjaychen

The current drop point is at the very first FIFO, before the health tests. The proposed change is drop point #2, as @tjaychen has properly described.

mwbranstad avatar Apr 20 '21 01:04 mwbranstad

drop_point_diag2.pdf

Updated drawing based on discussions.

mwbranstad avatar Apr 26 '21 16:04 mwbranstad

@zi-v thanks Mark, this looks good to me.

tjaychen avatar Apr 26 '21 17:04 tjaychen

LGTM as well. Thanks.

zi-v avatar Apr 27 '21 05:04 zi-v

As we discussed this morning, LGTM.

cdgori avatar Apr 27 '21 20:04 cdgori