77范文网 - 专业文章范例文档资料分享平台

EDA课程设计—抢答器

来源:网络收集 时间:2020-06-08 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:或QQ: 处理(尽可能给您提供完整文档),感谢您的支持与谅解。点击这里给我发消息

EDA课程设计报告

报 告 题 目:作者所在系部:作者所在专业:作者所在班级:作 者 姓 名 :指导教师姓名:完 成 时 间 :

1

内容摘要

抢答器是为智力竞赛参赛者答题时进行抢答而设计的一种优先判决器电路,竞赛者可以分为若干组,抢答时各组对主持人提出的问题要在最短的时间内做出判断,并按下抢答按键回答问题。当第一个人按下按键后,则在显示器上显示该组的号码,对应的灯亮,同时电路将其他各组按键封锁,使其不起作用。若抢答时间内无人抢答,则报警灯亮。回答完问题后,由主持人将所有按键恢复,重新开始下一轮抢答。因此要完成抢答器的逻辑功能,该电路应包括抢答器鉴别模块、抢答器计数模块、报警模块、译码模块、分频模块。

关键词:抢答鉴别 封锁 计数 报警

Abstract

Responder is the answer for the quiz participants to answer in the design

when a priority decision circuit, and the race can be divided into several groups, answer in each group on the host issues raised in the shortest possible time to make judgments , and press the answer in answer key. After pressing the button when the first person, then the display shows the number of the group, the corresponding lights, while other groups will be key circuit block, it does not work. If the answer in time, no answer in, the alarm lights. Answering questions, all the keys from the host to restore and re-start the next round of the Responder. So to complete the answering device logic functions, the circuit should include Responder identification module, Responder counting module, alarm module, decoding module, frequency module.

KEY: Responder Identification Blockade Count Alarm

2

一、 设计要求

1.抢答器同时供4名选手或4个代表队比赛,分别用4个按钮S0~ S3表示。 2.设置一个系统清除和抢答控制开关rst,该开关由主持人控制。

3.抢答器具有锁存与显示功能。即选手按动按钮,锁存相应的编号,并在LED和数码管上显示,同时提示灯亮。选手抢答实行优先锁存,优先抢答选手的编号一直保持到主持人将系统清除为止。

4. 抢答器具有定时抢答功能,且一次抢答的时间由主持人设定(如20秒)

5. 如果定时时间已到,无人抢答,本次抢答无效,系统报警并禁止抢答,定时显示器上显示20。

二、方案设计与论证

1、 概述

将该任务分成五个模块进行设计,分别为:抢答器鉴别模块、抢答器计时模块、报警模块、分频模块、译码模块。 2、 抢答器鉴别模块:

在这个模块中主要实现抢答过程中的抢答功能,并能对超前抢答进行警告,还能记录无论是正常抢答还是朝前抢答者的台号,并且能实现当有一路抢答按键按下时,该路抢答信号将其余的抢答信号封锁的功能。其中有四个抢答信号s0、s1、s2、s3;抢答状态显示信号states;抢答与警报时钟信号clk2;系统复位信号rst;警报信号warm。

3、 抢答器计数模块:

在这个模块中主要实现抢答过程中的计时功能,在有抢答开始后进行20秒的倒计时,并且在20秒倒计时后无人抢答显示超时并报警。其中有抢答时钟信号clk1;系统复位信号rst;抢答使能信号start;无人抢答警报信号warn;计时中止信号stop;计时十位和个位信号tb,ta。 4、 报警模块:

在这个模块中主要实现抢答过程中的报警功能,当主持人按下控制键,有限时间内 人抢答或是计数到时蜂鸣器开始报警,计数停止信号stop;状态输出信号alm;计数脉冲clk。 5、 译码模块:

在这个模块中主要实现抢答过程中将BCD码转换成7段的功能。 6、 分频模块:

在这个模块中主要实现抢答过程中所需的时钟信号。 7、 顶层文件:

在这个模块中是对前五个模块的综合编写的顶层文件。

3

三、单元电路设计

(一)抢答鉴别模块

1.VHDL源程序

library ieee;

use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; entity xuanshou is

port(rst,clk2:in std_logic; s0,s1,s2,s3:in std_logic;

states:buffer std_logic_vector(3 downto 0); light:buffer std_logic_vector(3 downto 0);

warm:out std_logic);

end xuanshou ;

architecture one of xuanshou is signal st:std_logic_vector(3 downto 0); begin

p1:process(s0,rst,s1,s2,s3,clk2) begin

if rst='0' then warm<='0';st<=\

elsif clk2'event and clk2='1' then

if (s0='1' or st(0)='1')and not( st(1)='1' or st(2)='1' or st(3)='1' ) then st(0)<='1'; end if ;

if (s1='1' or st(1)='1')and not( st(0)='1' or st(2)='1' or st(3)='1' ) then st(1)<='1'; end if ;

if (s2='1' or st(2)='1')and not( st(0)='1' or st(1)='1' or st(3)='1' ) then st(2)<='1'; end if ;

if (s3='1' or st(3)='1')and not( st(0)='1' or st(1)='1' or st(2)='1' ) then st(3)<='1'; end if ;

warm<=st(0) or st(1) or st(2) or st(3); end if ; end process p1;

p2:process(states(0),states(1),states(2),states(3),light) begin

if (st=\elsif (st<=\elsif (st<=\elsif (st<=\

4

elsif (st<=\end if; light<=st; end process p2; end one;

2. 抢答鉴别仿真图

3.抢答鉴别元件图

(二)计数模块

1. VHDL源程序

library ieee;

use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; entity JS is

port(clk1,rst,start,stop:in std_logic;

ta,tb:buffer std_logic_vector(3 downto 0)); end JS;

architecture one of JS is signal co:std_logic; begin

p1:process(clk1,rst,start,stop,ta) begin

if rst='0' or stop='1' then ta<=\

elsif clk1'event and clk1='1' then

5

百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库EDA课程设计—抢答器在线全文阅读。

EDA课程设计—抢答器.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印 下载失败或者文档不完整,请联系客服人员解决!
本文链接:https://www.77cn.com.cn/wenku/jiaoyu/1100396.html(转载请注明文章来源)
Copyright © 2008-2022 免费范文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ: 邮箱:tiandhx2@hotmail.com
苏ICP备16052595号-18
× 注册会员免费下载(下载后可以自由复制和排版)
注册会员下载
全站内容免费自由复制
注册会员下载
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: