找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 3299|回復(fù): 0
打印 上一主題 下一主題
收起左側(cè)

四人搶答器VHDL編寫程序控制Quartus II

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
ID:422604 發(fā)表于 2019-11-27 08:49 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;

entity sirenqiangda is
     port(rst,rst2,clk,en,en1,ta,tb,lad,a,b,c,d,stop,add:in std_logic;
          ring,warn:out std_logic;
          digit1,digit2:out std_logic_vector(3 downto 0);
          a_out, b_out, c_out, d_out:buffer std_logic_vector(3 downto 0);
          states:buffer std_logic_vector(3 downto 0));
end sirenqiangda;

architecture one of sirenqiangda is
   component qiangda is
       port(rst,clk,en,a,b,c,d:in std_logic;
            ring:out std_logic;
            state:out std_logic_vector(3 downto 0));
   end component;
   component jishu is
      port(rst,clk,en1,ta,tb,lad,stop:in std_logic;
           warn:out std_logic;
           digit1,digit2:out std_logic_vector(3 downto 0));
   end component;
   component jifen is
     port(rst2,clk,en,add:in std_logic;
          state:in std_logic_vector(3 downto 0);
          a_out, b_out, c_out, d_out:buffer std_logic_vector(3 downto 0));
   end component;
begin
      U1: qiangda port map (rst,clk,en,a,b,c,d,ring,states);
      U2: jishu   port map(rst,clk,en1,ta,tb,lad,stop,warn,digit1,digit2);
      U3: jifen   port map (rst2,clk,en,add,states,a_out, b_out, c_out, d_out);
end one;


四人搶答.rar

568.13 KB, 下載次數(shù): 36, 下載積分: 黑幣 -5

評分

參與人數(shù) 1黑幣 +50 收起 理由
admin + 50 共享資料的黑幣獎勵!

查看全部評分

分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復(fù)

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

手機(jī)版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表