Altera_Forum
Honored Contributor
16 years agogated clock implementation using altera standard scheme
I am trying to to implement a gated clock using the recommended scheme, but I keep getting a critical warning.
here is the warning: Critical Warning: (Critical) Rule C101: Gated clock should be implemented according to the Altera standard scheme. Found 16 node(s) related to this rule. Critical Warning: Node "SP:SP_1|SPCTL:SPCTL|SPCLK:SPCLK|cg_icg:RXXAOUTWR1Hclk_drv|CLKOUT" here is the code: module cg_icg ( CLK, CLKEN, SE, CLKOUT ); // -- inputs -- input CLK; // Input Clock input CLKEN; // Clock Enable input SE; // Scan Enable // -- outputs -- output CLKOUT; // Gated output Clock // -- wires -- wire cken; // Final Clock Enable // -- regs -- reg clken2f; // Latched Clock Enable (2f signal) assign cken = CLKEN | SE ; always @ (posedge CLK or cken) if(!CLK) clken2f <= cken; assign CLKOUT = clken2f & CLK; endmodule // cg_icg Any suggestions ? Thanks in advance....