2 module pm_test1(a, b, x, y);
7 inc #(.step(3)) inc_a (.in(a), .out(x));
8 inc #(.width(4), .step(7)) inc_b (b, y);
12 // -----------------------------------
14 module pm_test2(a, b, x, y);
19 inc #(5) inc_a (.in(a), .out(x));
20 inc #(4, 7) inc_b (b, y);
24 // -----------------------------------
26 module pm_test3(a, b, x, y);
31 inc inc_a (.in(a), .out(x));
34 defparam inc_a.step = 3;
35 defparam inc_b.step = 7;
36 defparam inc_b.width = 4;
40 // -----------------------------------
48 output [width-1:0] out;
50 assign out = in + step;