3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-21 13:23:40 +00:00

Added defparam support to Verilog/AST frontend

This commit is contained in:
Clifford Wolf 2013-07-04 14:12:33 +02:00
parent 3b294b3912
commit 56432a920f
7 changed files with 79 additions and 13 deletions

View file

@ -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;