[rtl] RRAM Earlgrey integration#30420
Open
gautschimi wants to merge 9 commits into
Open
Conversation
gautschimi
force-pushed
the
rram_integration
branch
4 times, most recently
from
June 18, 2026 08:11
0a4da3b to
ebb62ca
Compare
glaserf
approved these changes
Jul 3, 2026
glaserf
left a comment
Contributor
There was a problem hiding this comment.
Thanks @gautschimi for the PR. I have reviewed the last three commits and have only added a few minor comments, see below. This LGTM.
Comment on lines
+2097
to
+2101
| .rma_req_i(lc_ctrl_lc_nvm_rma_req), | ||
| .rma_ack_o(), | ||
| .rma_seed_i(lc_ctrl_lc_nvm_rma_seed), | ||
| .pwrmgr_o(), | ||
| .keymgr_o(), |
Contributor
There was a problem hiding this comment.
I guess these open ones will be connected in future PRs? Does the rma protocol work without the ack connected?
Contributor
Author
There was a problem hiding this comment.
This will get connected in a future PR. In this PR the RMA is still connected to the flash
| .rram_macro_o(rram_ctrl_rram_macro_rsp), | ||
| .lc_nvm_debug_en_i(lc_ctrl_lc_nvm_debug_en), | ||
| .obs_ctrl_i(ast_obs_ctrl), | ||
| .rram_obs_o(), |
Contributor
There was a problem hiding this comment.
Is this to be connected to AST?
Contributor
Author
There was a problem hiding this comment.
this is empty at the moment. But it will be used in the future and connected to the AST.
gautschimi
force-pushed
the
rram_integration
branch
from
July 14, 2026 12:27
ebb62ca to
d51d654
Compare
gautschimi
marked this pull request as ready for review
July 14, 2026 12:28
gautschimi
requested review from
hcallahan-lowrisc and
timothytrippel
and removed request for
a team
July 14, 2026 12:28
gautschimi
force-pushed
the
rram_integration
branch
2 times, most recently
from
July 14, 2026 14:26
e09df20 to
3119a92
Compare
gautschimi
force-pushed
the
rram_integration
branch
2 times, most recently
from
July 14, 2026 15:15
a4cf29c to
f2245e3
Compare
This commit adds the plug between rram_ctrl and otp_ctrl and will replace otp_macro. It converts otp_ctrl transactions to rram read/write operations. The following operations are supported: - Read, ReadRaw - Write, WriteRaw - Init - Zeroize All values are protected with an additional integrity check value that must match (except for ReadRaw/WriteRaw) Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
The requests from otp_ctrl to rram_ctrl come from the otp_clk domain (clk_io4) and need to be synchronized to the main clock domain (system clock). Two FIFOs (prim_fifo_async_simple) have been added for the request and response path. Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
And fix remaining issues in rram_ctrl_otp and top. rram_ctrl_otp required a waifer for FOR_LOOP_BOUNDS, VAR_INDEX_RANGE, LOOP_VAR_OP. Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
After manufacturing the RRAM is unprogrammed and OTP read commands will result in garbage and integrity mismatches if the read path tries to remove the address infection. Addr-infection has been disabled for the full OTP region. Integrity is guaranteed with the separate integrity word stored in the integrity page. Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
RRAM write operations are less protected than read operations. Therefore, every OTP write is verified with a subsequent read-back. If the readback does not match the original data, an alert is created. (same behaviour as for an OTP read with integrity) Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
This commit adds rram_ctrl + rram_macro and connects them to the bus system. The RRAM can already be used for read/write operations through the controller and host port. Software binaries are still mapped to the flash macro, and otp_ctrl is not yet connected to rram_ctrl. No functional change so far as RRAM is not yet used in any testcase (except for chip level csr_rw test). Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
This commit is to be squashed into the previous one before merge. It contains all autogen changes that were generated with `make -C hw` Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Align all security countermeasures in sec_cm_testplan, hjson and RTL Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
gautschimi
force-pushed
the
rram_integration
branch
from
July 16, 2026 13:47
f2245e3 to
50b9dad
Compare
This bkdr util is required to preload the RRAM or to examine certain memory location during tests. Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As per RFC , Earlgrey will be extended with support for RRAM based non-volatile memory.
This 1st integration PR adds the moduls
rram_ctrlandrram_macroto earlgrey.A few remarks:
This PR is based on #30412
The diff of all commits of this PR can be found here:
https://github.com/lowRISC/opentitan/pull/30420/changes/4ea162e0f59e2650a3d141ead1929208ccf48103..ebb62ca9760b9684d496dcbe52d1f1fb70ca96e7
The last 3 commits are relevant for this PR:
Temporary size reduction of the RRAM to 1MB. This commit was intended to support bitstream build on CW310, but it introduces lint issues.