We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
While testing synlig, I encountered a problem with a simple counter: chipsalliance/synlig#2624 .
In this code:
module counter ( input clk, input rstn, output reg[3:0] out); always @ (posedge clk) begin if (! rstn) out <= 0; else out <= out + 4'h1; end endmodule
integer literal 'h1 is expanded to 4'b1111 instead of 4'b0001 causing wrong synthesis.
'h1
4'b1111
4'b0001
At the same time, if one specifies an optional size constant ('h1 -> 4'h1), integer literal will be expanded as expected to 4'b0001.
4'h1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
While testing synlig, I encountered a problem with a simple counter: chipsalliance/synlig#2624 .
In this code:
integer literal
'h1
is expanded to4'b1111
instead of4'b0001
causing wrong synthesis.At the same time, if one specifies an optional size constant (
'h1
->4'h1
), integer literal will be expanded as expected to4'b0001
.The text was updated successfully, but these errors were encountered: