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

[Feature] Infer clock domain #1160

Open
taichi-ishitani opened this issue Dec 20, 2024 · 1 comment
Open

[Feature] Infer clock domain #1160

taichi-ishitani opened this issue Dec 20, 2024 · 1 comment
Labels
lang Language design

Comments

@taichi-ishitani
Copy link
Contributor

taichi-ishitani commented Dec 20, 2024

We need to add clock domain annotation to all variables if a module have multiple clock domains.
I think Veryl compiler can infer clock domains in almost cases like bwlow and it would be nace to support it.

i_a: input `a logic,
i_b: input `a logic,

let c: logic = a & b; // Clock domain of `c` can be infered
@taichi-ishitani
Copy link
Contributor Author

taichi-ishitani commented Dec 20, 2024

I think following limitations are reasonable for ease of implementation.

  • Add clock domain annotation to signals which are connected module instances
  • Variables used as function argument belong to the same clock domain

@dalance dalance added the lang Language design label Dec 20, 2024
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

2 participants