out_mux.vhd
来自「4位MCU AM2901的完整VHDL程序」· VHDL 代码 · 共 19 行
VHD
19 行
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
library basic;
use basic.mnemonics.all;
entity out_mux is port(
ad,f:in unsigned(3 downto 0);
dest_ctl:in std_logic_vector(2 downto 0);
oe:in std_logic;
y:buffer unsigned(3 downto 0));
end out_mux;
architecture archout_mux of out_mux is
signal y_int:unsigned(3 downto 0);
begin
y_int<=ad when dest_ctl=rama else f;
y<=y_int when oe='1' else "ZZZZ";
end archout_mux;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?