Skip to content

Commit

Permalink
Merge pull request #137 from vhda/verilog/define-with-equal
Browse files Browse the repository at this point in the history
verilog: Include define argument with equal sign in tests
  • Loading branch information
vhda committed Nov 23, 2014
2 parents 2cdd4c9 + b0434da commit 35ccf0d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Units/verilog-2001.d/expected.tags
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
DEFINE input.v /^`define DEFINE$/;" c
DEF_VALUE input.v /^`define DEF_VALUE 1'd100$/;" c
DEF_WITH_EQ input.v /^`define DEF_WITH_EQ = 1'd100$/;" c
LOCALPARAM input.v /^localparam LOCALPARAM = 2**2;$/;" c module:mod
PARAM1 input.v /^ parameter PARAM1 = 10,$/;" c module:mod
PARAM2 input.v /^ parameter PARAM2 = 2.0$/;" c module:mod
Expand Down
1 change: 1 addition & 0 deletions Units/verilog-2001.d/input.v
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// module wrong;
// endmodule
`define DEFINE
`define DEF_WITH_EQ = 1'd100
`define DEF_VALUE 1'd100

module mod#(
Expand Down
1 change: 1 addition & 0 deletions Units/verilog-basic.d/expected.tags
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
DEFINE input.v /^`define DEFINE$/;" c
DEF_VALUE input.v /^`define DEF_VALUE 1'd100$/;" c
DEF_WITH_EQ input.v /^`define DEF_WITH_EQ = 1'd100$/;" c
PARAM input.v /^parameter PARAM = 1;$/;" c module:mod
STATE1 input.v /^parameter STATE1 = 4'h0,$/;" c module:mod
STATE2 input.v /^ STATE2 = 4'h1,$/;" c module:mod
Expand Down
1 change: 1 addition & 0 deletions Units/verilog-basic.d/input.v
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// module wrong;
// endmodule
`define DEFINE
`define DEF_WITH_EQ = 1'd100
`define DEF_VALUE 1'd100

module mod (
Expand Down

0 comments on commit 35ccf0d

Please sign in to comment.