- 1、本文档共9页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
8路抢答器的VHDL语言
八路抢答器由优先编码电路、锁存器、译码电路将输出主持人开关启动
顶层文件原理图:
VHDL程序:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
-- Uncomment the following lines to use the declarations that are
-- provided for instantiating Xilinx primitive components.
--library UNISIM;
--use UNISIM.VComponents.all;
entity myproject is
port( clk : in std_logic; --时钟信号
clear : in std_logic; --清零信号
player : in std_logic_vector(7 downto 0); --八个抢答选手输入
settime1 : in std_logic_vector(3 downto 0);--答题时间设置
led_10s : out std_logic_vector(6 downto 0); --10s抢答计时已进行的时间显示
selector : out std_logic_vector(6 downto 0); --抢中选手编码输出
audio : out std_logic; --喇叭响,低有效.
endanswer : in std_logic; --答题完成
led_left1 : out std_logic_vector(6 downto 0)
);
end myproject;
architecture Behavioral of myproject is
component qiangda
port(
set_start : in std_logic;
a : in std_logic_vector(7 downto 0);
clk : in std_logic;
led : out std_logic_vector(6 downto 0);
selector : out std_logic_vector(6 downto 0);
selected : out std_logic;
alarm : out std_logic
);
end component;
component dingshiqi
port(
selected : in std_logic;
clk : in std_logic;
settime1: in std_logic_vector(3 downto 0);
endanswer : in std_logic;
alarm : out std_logic;
led : out std_logic_vector(6 downto 0)
);
end component;
component baojing
port(
clk : in std_logic;
alarm1 : in std_logic;
alarm2 : in std_logic;
alarm3 : in std_logic;
audioer : out std_logic
);
end component;
signal selected1 : std_logic;
signal start : std_logic:=0;
signal alarm1 : std_logic:=0;
signal alarm2 : std_logic;
begin
startall : process(clear)
begin
if clearevent and clear=1 then
start=not start;
end if;
end process;
u1: qiangda port map(start,player,clk,led_10s,selector,selected1,alarm1);
您可能关注的文档
- (过渡期)3级土地分类表.doc
- 01-010-00-0-0-00-004_R05 标准规范.pdf
- (优秀必备)毕业论文答辩--各种相关技巧大全 推荐.pdf
- 06.3中级口译听力原文.doc
- 07年3级答案详解.doc
- 05f2存货3级分类.doc
- 06级本科--软件工程期末考卷A卷参考答案.doc
- 04_信息技术考试系统监考端说明手册2012-3-30.pdf
- 01509140姚庆勇-开题报告.pdf
- (精选)2012-2013学年度初三级物理模拟考试试卷(含答案).doc
- 金融产品2024年投资策略报告:积极适应市场风格,行为金融+机器学习新发现.pdf
- 交运物流2024年度投资策略:转型十字路,峰回路又转(2023120317).pdf
- 建材行业2024年投资策略报告:板块持续磨底,重点关注需求侧复苏.pdf
- 宏观2024年投资策略报告:复苏之路.pdf
- 光储氢2024年投资策略报告:复苏在春季,需求的非线性增长曙光初现.pdf
- 公用环保2024年投资策略报告:电改持续推进,火电盈利稳定性有望进一步提升.pdf
- 房地产2024年投资策略报告:聚焦三大工程,静待需求修复.pdf
- 保险2024年投资策略报告:资产负债匹配穿越利率周期.pdf
- 政策研究2024年宏观政策与经济形势展望:共识与分歧.pdf
- 有色金属行业2024年投资策略报告:新旧需求共振&工业原料受限,构筑有色大海星辰.pdf
文档评论(0)