Skip to content

[top,flash_macro] Extract prim_flash from flash_ctrl#77

Open
matutem wants to merge 1 commit intozerorisc:masterfrom
matutem:flash_ctrl_macro
Open

[top,flash_macro] Extract prim_flash from flash_ctrl#77
matutem wants to merge 1 commit intozerorisc:masterfrom
matutem:flash_ctrl_macro

Conversation

@matutem
Copy link
Contributor

@matutem matutem commented Sep 25, 2025

Please refer to lowRISC/opentitan#27042 for justification and overall approach

Addresses lowRISC/opentitan#27042

@matutem matutem requested review from LouisTheLuis and qmn September 25, 2025 00:25
@matutem matutem force-pushed the flash_ctrl_macro branch 2 times, most recently from 918396e to 2190fa6 Compare September 25, 2025 03:18
@matutem matutem requested a review from apinise September 25, 2025 20:42
Copy link
Contributor

@LouisTheLuis LouisTheLuis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I only had a single question.

FlashPartData = 1'b0,
FlashPartInfo = 1'b1
} flash_part_e;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these moved from flash_ctrl_top_specific_pkg.sv.tpl?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because it is needed in flash_macro_bank, which is not top-specific, to handle info pages in a special way. Even if there are no info pages the enum makes sense on its own, and the code that handles info pages will never be used.

Please refer to lowRISC/opentitan#27042 for justification and overall approach

Addresses lowRISC/opentitan#27042

Signed-off-by: Guillermo Maturana <matute@zerorisc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants