s_machine.vhd
来自「DE2板上的hello程序,实现在8个七段译码器上循环显示hello」· VHDL 代码 · 共 21 行
VHD
21 行
library IEEE;
use IEEE.std_logic_1164.all;
entity s_machine is --使mux51a从5个循环增加到8个循环
port
(
sin : in std_logic_vector(2 downto 0);
state : in std_logic_vector(2 downto 0);
sout : out std_logic_vector(2 downto 0)
);
end s_machine;
architecture bhav of s_machine is
begin
process(state,sin)
begin
if sin < "101" then sout <= sin;
else sout <= state;
end if;
end process;
end bhav;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?