首 页文档资料下载资料维修视频包年699元
请登录  |  免费注册
当前位置:精通维修下载 > 文档资料 > 家电技术 > 维修教程知识 > 学习园地
[VHDL实例]8位总线收发器:74245(注2)
来源:本站整理  作者:佚名  2006-07-19 19:10:14



-- 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).

 

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;

关键词:

文章评论评论内容只代表网友观点,与本站立场无关!

   评论摘要(共 0 条,得分 0 分,平均 0 分)

推荐阅读

图文阅读

热门阅读

Copyright © 2007-2017 down.gzweix.Com. All Rights Reserved .
页面执行时间:1,281.25000 毫秒