Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

hierarki component lookup failed !!

Status
Not open for further replies.

leongch

Member level 2
Joined
Dec 22, 2005
Messages
44
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
1,692
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] ....
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top