-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Semantic error checker flags non-real errors #739
Comments
Partial assignment at port connection seems to be treated as full assignment now. |
Naoya, This seems to have been a course correction too far! module rca #(
param WIDTH: u32 = 8,
) (
i_a : input logic<WIDTH>,
i_b : input logic<WIDTH>,
i_ci: input logic ,
o_s : output logic<WIDTH>,
o_co: output logic ,
) {
// carry-outs
var carries: logic [WIDTH + 1];
assign carries[0] = i_ci;
assign carries[0] = ~i_ci;
assign o_co = carries[WIDTH];
for i in 0..WIDTH :gen_fas {
inst u_fa: full_adder (
i_a : i_a[i] ,
i_b : i_b[i] ,
i_ci: carries[i] ,
o_co: carries[i + 1],
o_s : o_s[i] ,
);
}
} Now this builds successfully, despite having multiple assignments to the same bit. This is, I think, better than before, because the bug will get picked up during synthesis, but is still not ideal. |
Yes. The multiple assignment by partial assignment is not checked yet. |
The check for multiple assignments occurs at the variable level, rather than the bit/wire level.
The text was updated successfully, but these errors were encountered: