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:
parent
3b294b3912
commit
56432a920f
7 changed files with 79 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue