精选优质文档-倾情为你奉上Author:-Engineer Lhrace1、半整数分频占空比不为50%/说明:设计的史上最好用的半整数分频占空比不为50%,包含设计思路module div_5(clk,clk_div,cnt1,cnt2,temp1,temp2);/N+0.5input clk;output clk_div;output reg31:0cnt1,cnt2;output reg temp1,temp2;initial begin temp1=0;temp2=1;end /首先进行初始化,temp1=0;temp2=1parameter N=5; /设定分频系数为N+0.5always (posedge clk) /temp1上升沿跳变beginif(cnt1=2*N) /2*Nbegin cnt131:0=32d0;endelse begin cnt131:0=cnt131:0+32d1;endif(cnt1=32d0) begin t