Commit 111e04f8 by Zachary Snow

remove extraneous explicit unsigned in params (resolves #47)

parent 76663c78
...@@ -21,6 +21,7 @@ convert = ...@@ -21,6 +21,7 @@ convert =
traverseTypes convertType traverseTypes convertType
convertType :: Type -> Type convertType :: Type -> Type
convertType (Implicit Unsigned rs) = Implicit Unspecified rs
convertType (IntegerVector t Unsigned rs) = IntegerVector t Unspecified rs convertType (IntegerVector t Unsigned rs) = IntegerVector t Unspecified rs
convertType (Net t Unsigned rs) = Net t Unspecified rs convertType (Net t Unsigned rs) = Net t Unspecified rs
convertType other = other convertType other = other
...@@ -4,4 +4,8 @@ module top; ...@@ -4,4 +4,8 @@ module top;
for (int unsigned i = 0; i < 4; i++) for (int unsigned i = 0; i < 4; i++)
arr[i] = i; arr[i] = i;
initial $display(arr); initial $display(arr);
parameter unsigned foo = 1;
localparam unsigned bar = 1;
initial $display(foo, bar);
endmodule endmodule
...@@ -6,4 +6,8 @@ module top; ...@@ -6,4 +6,8 @@ module top;
arr[i] = i; arr[i] = i;
end end
initial $display(arr); initial $display(arr);
parameter foo = 1;
localparam bar = 1;
initial $display(foo, bar);
endmodule endmodule
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment