风语者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电子工程师创研计划】技术变现通道已开启~ | |
发原创文章 【每月瓜分千元赏金 凭实力攒钱买好礼~】 | |
【EEPW在线】E起听工程师的声音! | |
“我踩过的那些坑”主题活动——第001期 | |
高校联络员开始招募啦!有惊喜!! | |
【工程师专属福利】每天30秒,积分轻松拿!EEPW宠粉打卡计划启动! | |
送您一块开发板,2025年“我要开发板活动”又开始了! | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
【我踩过的那些坑】STM32的硬件通讯调试过程的“坑”被打赏50分 | |
【我踩过的那些坑】晶振使用的问题被打赏100分 | |
【我踩过的那些坑】电感选型错误导致的处理器连接不上被打赏50分 | |
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏10分 | |
【我踩过的那些坑】DRC使用位置错误导致的问题被打赏100分 | |
我踩过的那些坑之混合OTL功放与落地音箱被打赏50分 | |
汽车电子中巡航控制系统的使用被打赏10分 | |
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏100分 | |
分享汽车电子中巡航控制系统知识被打赏10分 | |
分享安全气囊系统的检修注意事项被打赏10分 |