风语者1991进程帖
10月,一直在纠结要不要下单,因为这段时间有点紧。
10月18日,决定下单。想深入学习一下FPGA。
10月22日,收到板子。 晒图 http://forum.eepw.com.cn/thread/221976/1#2
10月24日,焊接完毕。晒图 http://forum.eepw.com.cn/thread/221976/1#3
11月3日,上传闪烁灯的视频。http://forum.eepw.com.cn/thread/221976/1#7
上传流水灯的代码。http://forum.eepw.com.cn/thread/221976/1#8
上传流水灯的视频。http://forum.eepw.com.cn/thread/221976/1#9
上传跑马灯的代码。http://forum.eepw.com.cn/thread/221976/1#10
上传跑马灯的视频。http://forum.eepw.com.cn/thread/221976/1#11
12月20日,上传数码管的显示图片。http://forum.eepw.com.cn/thread/221976/1#15
12月24日,上传数字钟程序。http://forum.eepw.com.cn/thread/221976/1#16
上传数字钟视频。http://forum.eepw.com.cn/thread/221976/1#17
上传蜂鸣器程序。http://forum.eepw.com.cn/thread/221976/1#18
上传蜂鸣器视频。http://forum.eepw.com.cn/thread/221976/1#19
上传1602程序。 http://forum.eepw.com.cn/thread/221976/1#20
上传1602图片。 http://forum.eepw.com.cn/thread/221976/1#21
上传12864程序。 http://forum.eepw.com.cn/thread/221976/1#22
上传12864图片。 http://forum.eepw.com.cn/thread/221976/1#23
关键词: 风语者 进程 forum.eepw.com.cn
接下来是流水灯的程序
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity liushuideng is
port(
clk:in std_logic;
led:out std_logic_vector(10 downto 0)
);
end liushuideng;
architecture fh1 of liushuideng is
signal led_r:std_logic_vector(10 downto 0);
signal count_r:std_logic_vector(3 downto 0);
begin
process(clk)
begin
if clk'event and clk='1' then
if count_r="1111" then
count_r<="0000";
else
count_r<=count_r+1;
case count_r is
when "0000" => led_r<="11111111111";
when "0001" => led_r<="11111111110";
when "0010" => led_r<="11111111101";
when "0011" => led_r<="11111111011";
when "0100" => led_r<="11111110111";
when "0101" => led_r<="11111101111";
when "0110" => led_r<="11111011111";
when "0111" => led_r<="11110111111";
when "1000" => led_r<="11101111111";
when "1001" => led_r<="11011111111";
when "1010" => led_r<="10111111111";
when "1011" => led_r<="01111111111";
when "1100" => led_r<="11011111111";
when "1101" => led_r<="11110111111";
when "1110" => led_r<="11111101111";
when "1111" => led_r<="11111111011";
when others => null;
end case;
end if;
end if;
end process;
led<=led_r;
end fh1;
count_r<=count_r+1;
case count_r is
when "0000" => led_r<="11111111111";
when "0001" => led_r<="11111111110";
when "0010" => led_r<="11111111100";
when "0011" => led_r<="11111111000";
when "0100" => led_r<="11111110000";
when "0101" => led_r<="11111100000";
when "0110" => led_r<="11111000000";
when "0111" => led_r<="11110000000";
when "1000" => led_r<="11100000000";
when "1001" => led_r<="11000000000";
when "1010" => led_r<="10000000000";
when "1011" => led_r<="00000000000";
when "1100" => led_r<="11011111111";
when "1101" => led_r<="11110111111";
when "1110" => led_r<="11111101111";
when "1111" => led_r<="11111111011";
when others => null;
end case;
回复
有奖活动 | |
---|---|
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
【笔记】生成报错synthdesignERROR被打赏50分 | |
【STM32H7S78-DK评测】LTDC+DMA2D驱动RGBLCD屏幕被打赏50分 | |
【STM32H7S78-DK评测】Coremark基准测试被打赏50分 | |
【STM32H7S78-DK评测】浮点数计算性能测试被打赏50分 | |
【STM32H7S78-DK评测】Execute in place(XIP)模式学习笔记被打赏50分 | |
每周了解几个硬件知识+buckboost电路(五)被打赏10分 | |
【换取逻辑分析仪】RA8 PMU 模块功能寄存器功能说明被打赏20分 | |
野火启明6M5适配SPI被打赏20分 | |
NUCLEO-U083RC学习历程2-串口输出测试被打赏20分 | |
【笔记】STM32CUBEIDE的Noruletomaketarget编译问题被打赏50分 |