|
||||||
| | 首页 | 文章中心 | 下载中心 | 本站商品 | 学习资料 | | ||||||
| 广告载入中... | ||||||
| 您现在的位置: 电子爱好者 >> 文章中心 >> 数字电路 >> 正文 |
|
|||||
| [VHDL实例]8位总线收发器:74245(注2) | |||||
| 作者:佚名 文章来源:本站原创 点击数: 更新时间:2006-2-17 | |||||
|
-- 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; |
|||||
| 文章录入:admin 责任编辑:admin | |||||
| 【发表评论】【告诉好友】【打印此文】【关闭窗口】 | |||||
| 最新热点 | 最新推荐 | 相关文章 | ||
| |
| | 设为首页 | 站点地图|<产品开发服务|光盘刻录服务| 广告合作 | 访问记录 |汇款方法 | 关于VIP会员 | | |
![]() |
|