|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
module freq3_027M(clkin12_288M, clkout3_027M);
input clkin12_288M; //时钟输入引脚
output clkout3_027M; //时钟输出引脚
reg clkout3_027M; //分频计数器
integer cunt;
always@( posedge clkin12_288M) begin
cunt=cunt+1;
if (cunt<=1)
begin clkout3_027M=1'b0;end
else if((cunt<=3)&&(cunt>=2))
begin clkout3_027M=1'b1;end
else
begin cunt="0";clkout3_027M=1'b0;end
end
endmodule |
|