opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

Randomized efuse behavior

Open senelson7 opened this issue 6 years ago • 2 comments

Entropy_src has an input that comes from an efuse. I would like to verify the behavior with the fuse blown/not blown. I put a variable in the entropy_src_env_cfg but what is the preferred way to get that to the I/O in the tb? Is the env_cfg in the config_db and I can get it from the tb? Is there already an interface for these kind of things that I can get from the tb? Other ideas (new or existing)?

senelson7 avatar Jul 06 '20 18:07 senelson7

Yes, there is pins_if abstraction for sideband signals.

You can add a pins_if #(1) efuse_es_sw_reg_en_if(..) instance in tb.sv and pass it to the config db just like the other interfaces. You would retrieve the handle to this interface in entropy_src_env::build_phase. I recommend putting the virtual interface handle in the UVM world within entropy_src_env_cfg so that it is accessible in sequences as well as the scoreboard.

sriyerg avatar Jul 06 '20 20:07 sriyerg

This issue is coming up on a year anniversary. In reality I think this has been solved. @senelson7 can you confirm and close?

mwbranstad avatar Jun 14 '21 15:06 mwbranstad