opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

[tlul_adapter_sram] ifetch clarification

Open udinator opened this issue 5 years ago • 3 comments

Hi @msf, @tjaychen,

I just wanted to clarify something in the tlul_adapter_sram with you guys and confirm whether it is intended or not.

  assign instr_error = tl_i.a_user.tl_type == InstrType &
                       en_ifetch_i == InstrDis;

As per an offline discussion with Michael, the multi-bit signal en_ifetch_i acts similarly to the lc_tc_t On/Off signals in that it enables ifetch functionality when set to InstrEn, but disables it when set to anything else (even if not InstrDis).

However in my DV environment if I set en_ifetch_i to, say, 3'b111, I can sneak bus errors past this detection logic.

Should this line in the adapter sram be changed to en_ifetch_i != InstrEn to properly reflect its behavior?

udinator avatar Apr 22 '21 22:04 udinator

yeah this is a bug. I think this should be en_fetch_i != InstrEn

tjaychen avatar Apr 22 '21 22:04 tjaychen

agreed, let's make this en_fetch_i != InstrEn

msfschaffner avatar Apr 22 '21 22:04 msfschaffner

sgtm, I'll get a PR open shortly. thanks for the inputs!

udinator avatar Apr 22 '21 22:04 udinator