风语者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;
回复
打赏帖 | |
---|---|
分享一种检测按键状态的方法被打赏20分 | |
周末总结一下,STM32C0系列的开发经验被打赏50分 | |
【换取手持数字示波器】MicrochipMPLABHarmony框架下定时器配置被打赏20分 | |
【换取手持数字示波器】MicrochipMPLABHarmony框架下PWM配置被打赏20分 | |
【Cortex-M】Systick Timer使用被打赏10分 | |
分享汽车防盗系统的组成与分类(一)被打赏5分 | |
VOFA+波形显示+JYD-31蓝牙发送和解析不定长数据被打赏10分 | |
【换取手持数字示波器】-STM32F4PWM控制LED灯管亮度被打赏22分 | |
【换取手持数字示波器】STM32F4驱动RPR-0521RS照度、接近一体型传感器被打赏23分 | |
宏定义和const关键字定义被打赏5分 |