集成电路技术分享

 找回密码
 我要注册

QQ登录

只需一步,快速开始

搜索
查看: 9430|回复: 26

求助三分频verilog代码

[复制链接]
longt 发表于 2010-6-28 00:51:48 | 显示全部楼层 |阅读模式
求助三分频verilog代码

请发到邮箱
        hardnothing@163.com
。万分感谢!
ngtim 发表于 2010-6-28 01:42:19 | 显示全部楼层
共同关注阿
encounter 发表于 2010-6-28 02:26:37 | 显示全部楼层
知道链接地,把两个帖子合一起吧,不然找起来麻烦。
usd 发表于 2010-6-28 04:22:25 | 显示全部楼层
定一个再,每人里
AAT 发表于 2010-6-28 05:32:19 | 显示全部楼层
我已经发了一个5分频的Verilog代码,你自己去找吧
ATA 发表于 2010-6-28 06:21:02 | 显示全部楼层
懒啊,人啦
CHA 发表于 2010-6-28 07:14:34 | 显示全部楼层
懒得话就不找人要了.要的目的就是学习.
longtime 发表于 2010-6-28 08:46:53 | 显示全部楼层
我已经发了一个五分频电路占空比1:1 在我发的帖子《求救八分之一分频》
inter 发表于 2010-6-28 09:23:06 | 显示全部楼层
module (clkin,clkout,reset)<br>
input clkin;<br>
input reset;<br>
output clkout;<br>
reg [1:0] cnt;<br>
always @(posedge clkin or posedge reset)<br>
begin<br>
&nbsp;&nbsp;if (reset)<br>
&nbsp; &nbsp;begin<br>
&nbsp; &nbsp;&nbsp;&nbsp;cnt&lt;=0;<br>
&nbsp; &nbsp;&nbsp;&nbsp;clkout&lt;=0;<br>
&nbsp; &nbsp;end<br>
&nbsp;&nbsp;else<br>
&nbsp; &nbsp;&nbsp;&nbsp;begin<br>
&nbsp; &nbsp;&nbsp; &nbsp; if (cnt==2)<br>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;begin<br>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;cnt&lt;=0;<br>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;end<br>
&nbsp; &nbsp;&nbsp; &nbsp;else <br>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;cnt&lt;=cnt+1;<br>
&nbsp; &nbsp;&nbsp;&nbsp;clkout&lt;=(cnt==2);<br>
end
HDL 发表于 2010-6-28 11:11:58 | 显示全部楼层
上面程序的时钟输出的占空比为1/3
您需要登录后才可以回帖 登录 | 我要注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

QQ|小黑屋|手机版|Archiver|fpga论坛|fpga设计论坛 ( 京ICP备20003123号-1 )

GMT+8, 2025-5-6 11:26 , Processed in 0.069097 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表