v10_4.vhd
来自「台湾全华科技VHDL教材实例」· VHDL 代码 · 共 20 行
VHD
20 行
library ieee;
use ieee.std_logic_1164.all;
entity TBus is
port(DataB : inout std_logic_vector(7 downto 0);
DIn : in std_logic_vector(7 downto 0);
DOut : out std_logic_vector(7 downto 0);
Rd : in std_logic;
CE : in std_logic);
end TBus;
architecture A_TBus of TBus is
begin
DataB <= DIn when CE = '0' and Rd = '0' else
(others => 'Z');
DOut <= DataB when CE = '0' and Rd = '1' else
(others => '1');
end A_TBus;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?