Skip to content

Conversation

@rivos-eblot
Copy link

@rivos-eblot rivos-eblot commented Oct 16, 2025

Depending on an optional compact boolean, multireg can either be generated as multiple registers or multiple fields.

Ex with a multireg with count: 3

REG32(REGISTER_0, 0x00)
    SHARED_FIELD(REGISTER_FIELD, 0u, 1u)
REG32(REGISTER_1, 0x04)
REG32(REGISTER_2, 0x04)

or

REG32(REGISTER, 0x00)
    FIELD(REGISTER, FIELD_0, 0u, 1u)
    FIELD(REGISTER, FIELD_1, 1u, 1u)
    FIELD(REGISTER, FIELD_2, 2u, 1u)

@rivos-eblot rivos-eblot changed the title [ot] scripts/opentitan: autoreg.py: add initial handling of compact multireg tools: autoreg.py: add initial handling of compact multireg Oct 16, 2025
@rivos-eblot rivos-eblot force-pushed the dev/ebl/autoreg_compact branch 2 times, most recently from 590e062 to 3d82eab Compare October 17, 2025 07:59
Copy link

@AlexJones0 AlexJones0 left a comment

Choose a reason for hiding this comment

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

LGTM, the CI failures in the regression should be unrelated (marked flaky by my separate PR), feel free to ignore.

…ultireg

Signed-off-by: Emmanuel Blot <eblot@rivosinc.com>
…sters

Signed-off-by: Emmanuel Blot <eblot@rivosinc.com>
@rivos-eblot rivos-eblot force-pushed the dev/ebl/autoreg_compact branch from 3d82eab to 99511e6 Compare October 17, 2025 10:44
@rivos-eblot rivos-eblot merged commit 9631037 into lowRISC:ot-9.2.0 Oct 17, 2025
9 checks passed
@rivos-eblot rivos-eblot deleted the dev/ebl/autoreg_compact branch October 17, 2025 12:11
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