ex_4_3_prio.vhd
来自「This is the course for VHDL programming」· VHDL 代码 · 共 18 行
VHD
18 行
library ieee;use ieee.std_logic_1164.all;entity PRI_ENC is port(I:in std_logic_vector(3 downto 0); P:out std_logic_vector(1 downto 0); A:out std_logic);end PRI_ENC;architecture DF_SEL of PRI_ENC isbegin A <= I(0) or I(1) or I(2) or I(3); with I select P <= "11" when "1000"|"1001"|"1010"|"1011"| "1100"|"1101"|"1110"|"1111", "10" when "0100"|"0101"|"0110"|"0111", "01" when "0010"|"0011", "00" when "0001"|"0000", "XX" when others;end DF_SEL;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?