-
Notifications
You must be signed in to change notification settings - Fork 554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regfile_latch: oh_raddr_a_err signal generated based on raddr_b_int #2215
Comments
oh_raddr_a_err
signal generated based on raddr_b_int
oh_raddr_a_err
signal generated based on raddr_b_int
Well spotted @glaserf! Looks like this only effects the latch implementation of the register file, which is why I think we didn't find it previously (as we simulate with the FF based register file). We should consider refactoring here so the security hardening is factored out into some common module that works equally against the FF/Latch/FPGA implementation options. |
This is what I supposed - I stumbled upon it as this file caused a conflict during merging to an internal development branch were we added some test structures for the non-secure Ibex variant. Refactoring to avoid code duplification (well, tripflification, currently) and ease verification coverage sure sounds very reasonable to me 👍🏼 |
Observed Behavior
The onehot read address error signal for read port a in ibex_register_file_latch.sv is generated based on the read address for read port b (
raddr_b_int
).ibex/rtl/ibex_register_file_latch.sv
Lines 110 to 125 in 53888bc
Expected Behavior
The onehot read address error signal for read port a should be generated based on the read address for read port a, like in ibex_register_file_ff.sv and ibex_register_file_fpga.sv.
Version of the Ibex source code
53888bc (part of master)
The text was updated successfully, but these errors were encountered: