找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 1104|回复: 0
打印 上一主题 下一主题
收起左侧

基于FPGA的3位锁存源码

[复制链接]
跳转到指定楼层
楼主
ID:281545 发表于 2018-5-31 12:39 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
基于FPGA的3位锁存

  1. Ilibrsry ieee;
  2. use ieee.std_logic_1164.all;
  3. entity sn74373 is
  4.    port(d: in std_logic_vetor(8 downto 1);
  5.         OEN:in std_logic;
  6.         G:in std_logic;
  7.         Q:out std_logic_vector(8 downto 1));
  8. end entity sn74373;
  9. architecture two of sn74373 is
  10.     signal sigvec_save:std_logic_vector(8 downto 1);
  11.      begin
  12.        process(D,OEN,G)
  13.        begin
  14.           if OEN='0' then
  15.              Q<=sigvec_save;
  16.           else
  17.              Q<="ZZZZZZZZ";
  18.           end if;
  19.          if G='1' then
  20.              sigvec_save<=D;
  21.          end if;
  22.         end process;
  23. eng architecture two;
复制代码


fpga.docx

10.56 KB, 下载次数: 2, 下载积分: 黑币 -5

3位所存

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 顶 踩
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表