⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 8λ

📁 44个vhdl实例 注1: 含有不可综合语句
💻
字号:
-- Octal Bus Transceiver
-- This example shows the use of the high impedance literal 'Z' provided by std_logic.
-- The aggregate '(others => 'Z')' means all of the bits of B must be forced to 'Z'. 
-- Ports A and B must be resolved for this model to work correctly (hence std_logic rather than std_ulogic). 
-- download from: www.pld.com.cn & www.fpga.com.cn

library IEEE;   
use IEEE.Std_logic_1164.all;

entity HCT245 is
   port(A, B : inout std_logic_vector(7 downto 0);
         DIR, GBAR : in std_logic);
end HCT245;

architecture VER1 of HCT245 is
begin
   A <= B when (GBAR = '0') and (DIR = '0') else (others => 'Z');
   B <= A when (GBAR = '0') and (DIR = '1') else (others => 'Z');
end VER1;

⌨️ 快捷键说明

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