风语者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;
回复
打赏帖 | |
---|---|
嵌入式LinuxC语言程序调试和宏使用技巧被打赏50分 | |
让代码中包含最新的编译时间信息被打赏50分 | |
rtthread硬件加密--2crc加密分析被打赏10分 | |
【分享开发笔记,赚取电动螺丝刀】mcxa156使用低功耗定时器适配硬件RTC框架被打赏26分 | |
【STM32F769】AI之与本地deepseek对接被打赏50分 | |
Buck电路工作在CCM模式下电感电流的计算公式是什么?被打赏5分 | |
buck电路工作原理被打赏5分 | |
基于MSPM0L1306的MODBUS-RTU协议通讯实验被打赏100分 | |
我想要一部加热台+多合一调试工具被打赏18分 | |
每周了解几个硬件知识+485硬件知识分享被打赏10分 |