diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-07-04 14:12:33 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-07-04 14:12:33 +0200 |
commit | 56432a920f9c2189ead2f724f18cde20aad7bf99 (patch) | |
tree | 37c83554247ef98dfba58409993b8f1d2379aa09 /tests | |
parent | 3b294b391202bdac25c822cc06d7572249b38949 (diff) | |
download | yosys-56432a920f9c2189ead2f724f18cde20aad7bf99.tar.gz yosys-56432a920f9c2189ead2f724f18cde20aad7bf99.tar.bz2 yosys-56432a920f9c2189ead2f724f18cde20aad7bf99.zip |
Added defparam support to Verilog/AST frontend
Diffstat (limited to 'tests')
-rw-r--r-- | tests/simple/paramods.v | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/simple/paramods.v b/tests/simple/paramods.v index 94fd2dfc2..8d0134a67 100644 --- a/tests/simple/paramods.v +++ b/tests/simple/paramods.v @@ -23,6 +23,22 @@ endmodule // ----------------------------------- +module test3(a, b, x, y); + +input [7:0] a, b; +output [7:0] x, y; + +inc inc_a (.in(a), .out(x)); +inc inc_b (b, y); + +defparam inc_a.step = 3; +defparam inc_b.step = 7; +defparam inc_b.width = 4; + +endmodule + +// ----------------------------------- + module inc(in, out); parameter width = 8; |