leongch
Member level 2
Hi all,
I am using the generate and endgenerate as shown here:
module demeta (module demeta #(parameter A_WIDTH = 3) (input clk_d2,input reset,input A_WIDTH:0] Din,output [A_WIDTH:0] Dout);
generate
for (i=0; i<=A_WIDTH; i=i+1)
begin
demeta_param demeta_with_param (
.clk_d2 (clk_d2),
.reset (reset),
.Din (Din),
.Dout (Dout)
);
end
endgenerate
In my testbench, i instantiate the demeta module as uut. But I need to lookup into the signals inside the deme_param module. How could I possible do so?
I found that the hierarki is as uut.genblk1.demeta_with_param.Din
But whn i used it at the testbench, it said component lookup failed! I knw we canot instantiate the "instance name" using the "[ ]" ... but somehow the path generated is as uut.genblk[0] ....
I am using the generate and endgenerate as shown here:
module demeta (module demeta #(parameter A_WIDTH = 3) (input clk_d2,input reset,input A_WIDTH:0] Din,output [A_WIDTH:0] Dout);
generate
for (i=0; i<=A_WIDTH; i=i+1)
begin
demeta_param demeta_with_param (
.clk_d2 (clk_d2),
.reset (reset),
.Din (Din),
.Dout (Dout)
);
end
endgenerate
In my testbench, i instantiate the demeta module as uut. But I need to lookup into the signals inside the deme_param module. How could I possible do so?
I found that the hierarki is as uut.genblk1.demeta_with_param.Din
But whn i used it at the testbench, it said component lookup failed! I knw we canot instantiate the "instance name" using the "[ ]" ... but somehow the path generated is as uut.genblk[0] ....