priority.vhd
来自「VHDL子程序集,包括各种例程资料以及源码.」· VHDL 代码 · 共 27 行
VHD
27 行
--***********************************
--* PRIORITY WHEN .....ELSE ...... *
--* Filename : PRIORITY *
--***********************************
library IEEE;
use IEEE.std_logic_1164.all;
entity PRIORITY is
port (
A: in STD_LOGIC;
B: in STD_LOGIC;
C: in STD_LOGIC;
X: in STD_LOGIC;
Y: in STD_LOGIC;
F: out STD_LOGIC
);
end PRIORITY;
architecture PRIORITY_arch of PRIORITY is
begin
F <= A when X ='1' else
B when Y ='1' else
C;
end PRIORITY_arch;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?