Clock Enable
Clock Enable
module clk_enb (d, ena, clk, q) ;
input d, ena, clk ;
output q ;
reg q ;
/* If clock enable port does not exist in target technology,
a mux is generated */
always @( posedge clk )
if (ena)
q <= d ;
endmodule
ÀÌÀü ½½¶óÀ̵å
´ÙÀ½ ½½¶óÀ̵å
ù ½½¶óÀ̵å·Î À̵¿
±×·¡ÇÈ ¹öÀü º¸±â