您现在的位置是:首页 > 源码 > 梦幻呼吸灯
推荐星级:
  • 1
  • 2
  • 3
  • 4
  • 5

梦幻呼吸灯

更新时间:2019-12-14 18:56:23 大小:58K 上传用户:ljhnbb查看TA发布的资源 标签:梦幻呼吸 下载积分:2分 评价赚积分 (如何评价?) 收藏 评论(1) 举报

资料介绍

梦幻呼吸灯实验 本实验包括基本实验部分和改进实验部分(梦幻呼吸灯) 一、基本实验 1、顶层模块 top.v module top( input rst_165, input clk_165, output[7:0] led8_165 ); wire divclk_165; div_clk1 u0divclk(.rst_165(rst_165),.clk_165(clk_165),.divclk_165(divclk_165)); dream_led u0led(.rst_165(rst_165),.divclk_165(divclk_165),.led8_165(led8_165)); endmodule 图一、详细描述后的结果 顶层模块中包括 div_clk1 分频时钟模块、dream_led 梦幻 LED 灯设计部分。两 部分的连接关系如图一所示,100MHz 的时钟信号 clk_165 分频成 divclk_165 作 为 dream_led 的模块的时钟输入信号,驱动 led8_165 实现不同的输出效果。 2、分频时钟模块 div_clk.v `timescale 1ns / 1ps module div_clk1(input clk_165,input rst_165,output reg divclk_165); reg[31:0] counter_165; always @(posedge clk_165 or posedge rst_165) begin if(rst_165) begin counter_165<=32'h00000000; divclk_165<='h0; end else begin if(counter_165==32'h02faf07f) 2 begin counter_165<=32'h00000000; divclk_165<=~divclk_165; end else counter_165<=counter_165+1; end end endmodule 由于 FPGA 中提供的时钟引脚是 100MHz,要实现梦幻 LED 灯在每 1s 发生一次变 化,要对时钟进行分频。 

部分文件列表

文件名文件大小修改时间
dream/dream.cache/wt/gui_handlers.wdf5KB2019-12-08 10:10:36
dream/dream.cache/wt/java_command_handlers.wdf1KB2019-12-08 10:10:36
dream/dream.cache/wt/project.wpc1KB2019-12-08 09:47:00
dream/dream.cache/wt/webtalk_pa.xml5KB2019-12-08 10:10:36
dream/dream.cache/wt/xsim.wdf1KB2019-12-06 19:36:14
dream/dream.hw/dream.lpr1KB2019-12-06 19:27:06
dream/dream.ip_user_files/README.txt1KB2019-12-06 19:36:14
dream/dream.sim/sim_1/behav/xsim/compile.bat1KB2019-12-06 19:36:16
dream/dream.sim/sim_1/behav/xsim/compile.log1KB2019-12-06 19:36:18
dream/dream.sim/sim_1/behav/xsim/elaborate.bat1KB2019-12-06 19:36:18
dream/dream.sim/sim_1/behav/xsim/elaborate.log1KB2019-12-06 19:36:22
...

全部评论(1)