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

Specify default clock / reset #1300

Open
dalance opened this issue Feb 27, 2025 · 0 comments
Open

Specify default clock / reset #1300

dalance opened this issue Feb 27, 2025 · 0 comments
Labels
lang Language design

Comments

@dalance
Copy link
Collaborator

dalance commented Feb 27, 2025

Sometimes, there are some clocks in a module, but only a specific clock is used in always_ff.

let gated_clock: clock = if clock_enable { i_clk } else { 0 }; 

// only gated_clock is used 
always_ff ...

So specifing default clock/reset may be useful.

@dalance dalance added the lang Language design label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang Language design
Projects
None yet
Development

No branches or pull requests

1 participant