-
-
Notifications
You must be signed in to change notification settings - Fork 24
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] clock/reset port connection check #708
Comments
I'm a bit confused. What does |
For |
I get that, I think I'm more questioning the notion of this being a property of the clock wire rather than a property of the registers. |
I'd like to simplify |
I think that using module ModuleA (
i_clk: clock_posedge,
i_rst: reset_async_low,
) {
always_ff {
if_reset {
} else {
}
}
}
module ModuleB (
i_clk: clock,
i_rst: reset,
) {
let w_clk: clock_negedge = i_clk;
let w_rst: reset_async_high = i_rst;
always_ff (w_clk, w_rst) {
if_reset {
} else {
}
}
} module ModuleA (
i_clk: clock,
i_rst: reset,
) {
always_ff (posedge i_clk, async_low i_rst) {
if_reset {
} else {
}
}
}
module ModuleB (
i_clk: clock,
i_rst: reset,
) {
always_ff (negedge i_clk, async_high, i_rst) {
if_reset {
} else {
}
}
} |
refs: #622 (comment)
To prevent clock/reset type mismatch, we need to check type mismatch on clocl/reset port connections.
The text was updated successfully, but these errors were encountered: