csif2.vhd

来自「《CPLD_FPGA设计及应用》课件与实例」· VHDL 代码 · 共 18 行

VHD
18
字号
library ieee;
use ieee.std_logic_1164.all;
entity csif2 is
  port(a,b:in std_logic;
       y:out std_logic);
end csif2;
architecture csif of csif2 is
begin
  process(a)
  begin
    if (a='1') then
       y<=a;
    else
       y<=b;
    end if;
  end process;
end csif;

⌨️ 快捷键说明

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