mirror of https://github.com/zachjs/sv2v.git
remove extraneous explicit unsigned in params (resolves #47)
This commit is contained in:
parent
76663c78a0
commit
111e04f86e
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -6,4 +6,8 @@ module top;
|
|||
arr[i] = i;
|
||||
end
|
||||
initial $display(arr);
|
||||
|
||||
parameter foo = 1;
|
||||
localparam bar = 1;
|
||||
initial $display(foo, bar);
|
||||
endmodule
|
||||
|
|
|
|||
Loading…
Reference in New Issue