Skip to content
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

[rom] Update clkmgr jitter enable to match ROM specification. #26027

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

moidx
Copy link
Contributor

@moidx moidx commented Jan 27, 2025

The ROM e2e plan captures the expected behavior of the clock jitter enable flow:

CREATOR_SW_CFG_JITTER_EN: kMultiBitBool4False disables, all other values
enables. CREATOR_SW_CFG_AST_INIT_EN must also be kMultiBitBool4True to enable.

This change refactors the code in rom_start.S and test_rom_start.S to explicitly reduce any value different than MubiFalse to MubiTrue. The implementation relies on the register to be reset to MubiFalse by default.

Copy link
Contributor

@vogelpi vogelpi left a comment

Choose a reason for hiding this comment

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

This is inline with the confirmed ECO, LGTM. Thanks for making the change @moidx !

@vogelpi vogelpi added the CI:Rerun Rerun failed CI jobs label Jan 27, 2025
@github-actions github-actions bot removed the CI:Rerun Rerun failed CI jobs label Jan 27, 2025
The ROM e2e plan captures the expected behavior of the clock jitter
enable flow:

> `CREATOR_SW_CFG_JITTER_EN`: `kMultiBitBool4False` disables, all other values
>  enables. `CREATOR_SW_CFG_AST_INIT_EN` must also be `kMultiBitBool4True` to enable.

This change refactors the code in `rom_start.S` and `test_rom_start.S`
to explicitly reduce any value different than MubiFalse to MubiTrue.
The implementation relies on the register to be reset to MubiFalse by
default.

Signed-off-by: Miguel Osorio <[email protected]>
@moidx moidx merged commit 288b998 into lowRISC:earlgrey_1.0.0 Jan 28, 2025
32 checks passed
@moidx moidx deleted the rom-jitter-en branch January 28, 2025 02:26
@@ -170,12 +170,17 @@ _start:
andi t0, t0, 0x1
beqz t0, .L_ast_done_loop

// Enable jittery clock if enabled in OTP.
// Enable jittery clock if not strictly disabled in OTP.
// Use hardcoded MULTIBIT_ASM_BOOL4_TRUE as the enable word to reduce all
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you mean "Use MULTIBIT_ASM_BOOL4_FALSE as the disable word to reduce all other possible OTP values to enable."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I meant to use the MULTIBIT_ASM_BOOL4_TRUE word as the write value to reduce all other options to True (Enable).

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.

5 participants