二分频电路及代码
module cy4(input ext_clk_25m, //外部輸入25MHz時(shí)鐘信號(hào)input ext_rst_n, //外部輸入復(fù)位信號(hào),低電平有效output reg clk_12m5 //二分頻時(shí)鐘信號(hào));always @(posedge ext_clk_25m or negedge ext_rst_n) if(!ext_rst_n) clk_12m5 <= 1'b0;else clk_12m5 <= ~clk_12m5;endmodule
總結(jié)
- 上一篇: linux系统分区表修复
- 下一篇: 怎样给宝宝取个小名