opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

[sram] update block level testbench to account for transmission integrity

Open tjaychen opened this issue 5 years ago • 6 comments

After #7066 is merged, need to update block level testbench since now transmission integrity for memory will be fully implemented.

tjaychen avatar Jun 29 '21 17:06 tjaychen

@weicaiyang @udinator i can take a first crack at this also, since i'm more familiar with the ...many options i put on tlul_adapter_sram. But i think in general we just want it to match the version used in top_earlgrey.

tjaychen avatar Jun 29 '21 18:06 tjaychen

sure, that sounds good! LMK if there is any debug that I can help out with.

udinator avatar Jun 29 '21 19:06 udinator

Another thing that remains is the integrity alert hookup inside the sram_ctrl (this is one of the only outstanding modules that still needs to be wired up https://github.com/lowRISC/opentitan/issues/5985).

@tjaychen once you've added the correct adapter parameterizations to the testbench, I can then go in and connect the alert if you want.

msfschaffner avatar Jun 29 '21 20:06 msfschaffner

adding @weicaiyang for visibility.

udinator avatar Oct 08 '21 00:10 udinator

We have tested both integrity for SRAM_CTRL.

  1. sending request with integrity error on either cmd or data
  2. hack data integrity in sram and read the memory location, the wrong integrity will be sent but no error/alert will be triggered.

I think we can close this issue now.

weicaiyang avatar Jan 07 '22 00:01 weicaiyang

Yes indeed, let's close it.

msfschaffner avatar Jan 07 '22 13:01 msfschaffner