copper230230
Newbie level 6
In my RTL code, some FF were trigged by a clock source which was generated by combination logic. How to constrain the clock source in DC, since the DC can't set create_clock on the net! ( If force to constraint, warring message was shown )
1. Is it suggested to use "AND gate" to implement the clock source in the RTL
code. Then set_dont_touch this AND gate & create_clock in the DC?
2. Or is it suggested to set output port for A_clk since DC preserved the output
port of module and then create_clock on the output?
Which one was better? Thanks!!
For example:
wire A_clk = B & C;
always @( posedge A_clk or negedge rstb )
if( ~rstb )
cnt <= 8'b0;
else
cnt <= cnt + 1'b1;
1. Is it suggested to use "AND gate" to implement the clock source in the RTL
code. Then set_dont_touch this AND gate & create_clock in the DC?
2. Or is it suggested to set output port for A_clk since DC preserved the output
port of module and then create_clock on the output?
Which one was better? Thanks!!
For example:
wire A_clk = B & C;
always @( posedge A_clk or negedge rstb )
if( ~rstb )
cnt <= 8'b0;
else
cnt <= cnt + 1'b1;