集成电路技术分享

 找回密码
 我要注册

QQ登录

只需一步,快速开始

搜索
查看: 1048|回复: 2

VHDL流水灯设计

[复制链接]
fpga_feixiang 发表于 2019-1-24 13:49:55 | 显示全部楼层 |阅读模式
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.std_logic_arith.all;
entity liushui is
port(
clk:IN std_logic;
clr:IN std_logic;
ena:IN std_logic;
yut std_logic_vector (7 downto 0) );
end;
architecture behave of liushui is
begin
signal y_out:std_logic_vector(7 downto 0); process(clk,clr,ena) if clr = '0' then y_out<= "00000001"; elsif clk'event and clk = '1' then if ena = '1' then y_out <= y_out<<1; end if; end if;end process; y <= y_out; end behave;
zhangyukun 发表于 2019-1-25 09:13:57 | 显示全部楼层
VHDL流水灯设计
晓灰灰 发表于 2019-1-25 11:50:59 | 显示全部楼层
VHDL流水灯设计
您需要登录后才可以回帖 登录 | 我要注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

QQ|小黑屋|手机版|Archiver|fpga论坛|fpga设计论坛 ( 京ICP备20003123号-1 )

GMT+8, 2025-5-1 06:50 , Processed in 0.059088 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表