remove extraneous explicit unsigned in params (resolves #47)

This commit is contained in:
Zachary Snow 2019-09-25 19:42:31 -04:00
parent 76663c78a0
commit 111e04f86e
3 changed files with 9 additions and 0 deletions

View File

@ -21,6 +21,7 @@ convert =
traverseTypes convertType
convertType :: Type -> Type
convertType (Implicit Unsigned rs) = Implicit Unspecified rs
convertType (IntegerVector t Unsigned rs) = IntegerVector t Unspecified rs
convertType (Net t Unsigned rs) = Net t Unspecified rs
convertType other = other

View File

@ -4,4 +4,8 @@ module top;
for (int unsigned i = 0; i < 4; i++)
arr[i] = i;
initial $display(arr);
parameter unsigned foo = 1;
localparam unsigned bar = 1;
initial $display(foo, bar);
endmodule

View File

@ -6,4 +6,8 @@ module top;
arr[i] = i;
end
initial $display(arr);
parameter foo = 1;
localparam bar = 1;
initial $display(foo, bar);
endmodule