switch.vhd

来自「FPGA-based_oscilloscope,VHDL写的实现 示波器的程序」· VHDL 代码 · 共 27 行

VHD
27
字号
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;

entity switch is
    Port ( vgadd : in std_logic_vector(14 downto 0);
           convadd : in std_logic_vector(14 downto 0);
           address2 : out std_logic_vector(14 downto 0);
           Q_9 : in std_logic);
end switch;

architecture Behavioral of switch is

begin
process(Q_9)
begin
if(Q_9='1')then
	address2 <= convadd;
else
	address2 <= vgadd;
end if;
end process;


end Behavioral;

⌨️ 快捷键说明

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