tariq786
Advanced Member level 2
I am trying to write a free opensource PLI/VPI routine that will extract the registers from synthesized gate level netlist along with the associated clock.
Lets look at a synthesized gate level code snippet below
DFQD1 \out_reg[28] ( .D(N41), .CP(clk), .Q(out[28]) );
DFQD1 \out_reg[27] ( .D(N40), .CP(clk), .Q(out[27]) );
DFQD1 \out_reg[26] ( .D(N39), .CP(clk), .Q(out[26]) );
DFQD1 \out_reg[25] ( .D(N38), .CP(clk), .Q(out[25]) );
What i am interested in is finding the hierarchical name of clock and Q output of all such registers in a design. So the output should be as follows
test.uut.u0.\out_reg[28].out[28]
test.uut.u0.\out_reg[28].clk
test.uut.u0.\out_reg[28].Q
test.uut.u0.\out_reg[28].CP
Note i am showing both high and low connections.
Note merely finding registers is not the goal. I am interested in finding register and the associated clock. In a multiple clock domain design or design with CDC (Clock Domain Crossing), merely finding registers is not sufficient, we also need the associated clock.
If you know some other approach for gate level design, please share it with me.
Again, when this is complete, it will be submitted to the sourceforge.net with all the source code.
Thanks
Kind Regards,
Lets look at a synthesized gate level code snippet below
DFQD1 \out_reg[28] ( .D(N41), .CP(clk), .Q(out[28]) );
DFQD1 \out_reg[27] ( .D(N40), .CP(clk), .Q(out[27]) );
DFQD1 \out_reg[26] ( .D(N39), .CP(clk), .Q(out[26]) );
DFQD1 \out_reg[25] ( .D(N38), .CP(clk), .Q(out[25]) );
What i am interested in is finding the hierarchical name of clock and Q output of all such registers in a design. So the output should be as follows
test.uut.u0.\out_reg[28].out[28]
test.uut.u0.\out_reg[28].clk
test.uut.u0.\out_reg[28].Q
test.uut.u0.\out_reg[28].CP
Note i am showing both high and low connections.
Note merely finding registers is not the goal. I am interested in finding register and the associated clock. In a multiple clock domain design or design with CDC (Clock Domain Crossing), merely finding registers is not sufficient, we also need the associated clock.
If you know some other approach for gate level design, please share it with me.
Again, when this is complete, it will be submitted to the sourceforge.net with all the source code.
Thanks
Kind Regards,