- 10
- 0
- 约1.01万字
- 约 10页
- 2017-03-18 发布于贵州
- 举报
分频器
module div(clk, div1,div2,div3);
input clk;
output div1;
output div2;
output div3;
reg [31:0] counter1;
reg [31:0] counter2;
reg [31:0] counter3;
reg div1;
reg div2;
reg div3;
initial begin
div1=0;div2=0;div3=0;
counter1=0;counter2=0;counter3=0;
end
always @(posedge clk)
begin
/*if(counter1==2) counter1 = 0;else counter1 = counter1+1;
if(counter2==3) counter2 = 0;else counter2 = counter2+1;
if(counter3==4) counter3 = 0;else counter3 = counter3+1;*/
if(counter1= counter1 = 0;else counter1 = counter1+1;
if
您可能关注的文档
- uml系统建模与分析设计刁成嘉)课后习题选择和填空整理uml系统建模与分析设计(刁成嘉)课后习题选择和填空整理.doc
- uml复习补充uml复习充.doc
- t型过滤器-st34 t过滤器型过滤器.doc
- unit 1 点知识unit 1 重点知识.doc
- unit 1 unit some strategies for learning english补充练习unit 1 unit 1 .doc
- unit 1 whatu.doc
- ug nx6.0实用教程1.ppt
- unit 1 the ower of languageunit 1 the power of language.doc
- unit 1officeworkunit 1office work.ppt
- u9系统网络技术理论u9统网络技术理论.ppt
原创力文档

文档评论(0)