风语者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网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
vscode+cmake搭建雅特力AT32L021开发环境被打赏30分 | |
【换取逻辑分析仪】自制底板并驱动ArduinoNanoRP2040ConnectLCD扩展板被打赏47分 | |
【分享评测,赢取加热台】RISC-V GCC 内嵌汇编使用被打赏38分 | |
【换取逻辑分析仪】-基于ADI单片机MAX78000的简易MP3音乐播放器被打赏48分 | |
我想要一部加热台+树莓派PICO驱动AHT10被打赏38分 | |
【换取逻辑分析仪】-硬件SPI驱动OLED屏幕被打赏36分 | |
换逻辑分析仪+上下拉与多路选择器被打赏29分 | |
Let'sdo第3期任务合集被打赏50分 | |
换逻辑分析仪+Verilog三态门被打赏27分 | |
换逻辑分析仪+Verilog多输出门被打赏24分 |