Altera_Forum
Honored Contributor
18 years agoHow to reference hierarchy nodes in QII using Verilog
I'm trying to keep redudant logic. Obviously, simply setting "remove redudant logic" off doesn't work. So instead, I want to try to access the outputs from multiple instances of the redudant logic, and just make a dummy output purely to keep the optimization out of the way. Here is what I did:
parameter NUM_OF_DANGLING_LOADS=5; dff1 dummy_reg[NUM_OF_DANGLING_LOADS-1:0](.d(reg1out), .q(dummy_out), .clk(clock), .reset(dummy_reset)); initial begin for (i=0; i<NUM_OF_DANGLING_LOADS; i=i+1) and and2(dummy_out, dummy_reg[i].q, dummy_out); end QII compiler Error (10207): Verilog HDL error: can't resolve reference to object "q" However, in QII help, it states that it supports hierarchical names: "Hierarchical Names Supported. No references to objects outside the current module or to objects in a generate-for hierarchy." It's not the for loop that caused the error. I tried this and it didn't work either: dff reg1(.d(datain), .q(reg1out), .clk(clock)); assign dummy_out = reg1.q; Same error. Anyone knows how to reference hierarchy nodes in QII using Verilog?