checoutvalue.vhd

来自「DEMO2 数码管扫描显示电路/DEMO4 计数时钟 DEMO5 键盘扫描设计」· VHDL 代码 · 共 38 行

VHD
38
字号
library IEEE;
use IEEE.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.std_logic_arith.all;

entity checoutvalue is
    port (
        reset: in STD_LOGIC;
        jmp: in STD_LOGIC;
        d_in: in STD_LOGIC_VECTOR (10 downto 0);
        d_out: out STD_LOGIC_VECTOR (10 downto 0)
    );
end checoutvalue;

architecture checoutvalue_arch of checoutvalue is
signal da : std_logic_vector(10 downto 0);
begin
  -- <<enter your statements here>>

process(reset,da)
begin
case reset is
 when '0' =>
   d_out<="00000000000";
 when others =>
   d_out<=da;
end case;
end process;

process(jmp)
begin
   if jmp='1' and jmp'event then
    da<=d_in;
   end if;
end process;

end checoutvalue_arch;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?