Skip to content

Commit

Permalink
Add signed test
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Dec 11, 2019
1 parent 6bdb418 commit f215f06
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_verilog/gold/test_int_literal_inst.v
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module mod3 #(parameter KRATOS_INSTANCE_ID = 16'b1)
);

endmodule // mod
module mod2 #(parameter KRATOS_INSTANCE_ID = 24'd2)
module mod2 #(parameter KRATOS_INSTANCE_ID = 24'sd2)
(
input I
);
Expand Down
2 changes: 1 addition & 1 deletion tests/test_verilog/gold/test_int_literal_mod2.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module mod2 #(parameter KRATOS_INSTANCE_ID = 24'd2)
module mod2 #(parameter KRATOS_INSTANCE_ID = 24'sd2)
(
input I
);
Expand Down
2 changes: 1 addition & 1 deletion tests/test_verilog/test_from_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def test_nd_array_decl():


def test_int_literal():
literals = ["32'h0", "'h1", "24'd2", "16'b1", "13'o7", "17"]
literals = ["32'h0", "'h1", "24'sd2", "16'b1", "13'o7", "17"]
verilog = ""
for i, literal in enumerate(literals):
verilog += f"""
Expand Down

0 comments on commit f215f06

Please sign in to comment.