summaryrefslogtreecommitdiff
path: root/tests/simple
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-07-02 06:27:04 +0200
committerClifford Wolf <clifford@clifford.at>2014-07-02 06:27:04 +0200
commitee8ad72fd950e1ee204e5c97155a50b8b1445dec (patch)
tree2469216ebc696f877aa43a5e1297af8d420c5024 /tests/simple
parent1c81ab49e7b57f4c64e533a3617fe8bbe257cdb5 (diff)
fixed parsing of constant with comment between size and value
Diffstat (limited to 'tests/simple')
-rw-r--r--tests/simple/macros.v7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/simple/macros.v b/tests/simple/macros.v
index cda46cb4..a3e8d70f 100644
--- a/tests/simple/macros.v
+++ b/tests/simple/macros.v
@@ -235,3 +235,10 @@ always @* begin
end
endmodule
+
+`define SIZE 4 // comment supported in this part
+module test ( din_a, dout_a );
+input [`SIZE-1:0] din_a;
+output [`SIZE-1:0] dout_a;
+assign dout_a = din_a | `SIZE'ha;
+endmodule