-
Notifications
You must be signed in to change notification settings - Fork 782
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[entropy_src/rtl] Modify enable registers
This PR makes two broad changes to the entropy_src enable registers: - The conf.enable field has been split into two registers - module_enable.module_enable: for overall activation of the IP in any context (BOOT_ROM or otherwise) - conf.fips_enable: For activation of strict RNG health testing, using stricter CC or FIPS grade health-test thresholds (not recommended for BOOT_ROM driven operation). - For better sequencing control, and error handling capabilities, the module_enable has been split out into its own register, with a separate write enable control (REGWEN_ME vs. REGWEN). Note on Software guidelines following this commit: The appropriate use of these registers depends on whether they are set in the BOOT_ROM or in later (mutable) C-code: - The enable fields should only differ when set by the BOOT ROM, which uses a preliminary set of health test thresholds. Here, the MODULE_ENABLE should be set _without_ setting the FIPS_ENABLE field. This indicates that the stronger "FIPS" thresholds have not been set, and the IP is not configured for reliable entropy generation. - For all later, DIF-driven software stages we assume that the "Module" enable and the "FIPS" enable are always set together, after the final stricter health test thresholds have been set. Fixes #9637. Signed-off-by: Mark Branstad <[email protected]> Co-authored-by: Martin Lueker-Boden <[email protected]>
- Loading branch information
1 parent
961710a
commit 51fde5a
Showing
14 changed files
with
562 additions
and
329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.