1、 1 EDAEDA 课程设计报告课程设计报告 报 告 题 目: 四路抢答器 作者所在系部: 电子系 作者所在专业: 微电子技术 作者所在班级: XXXXXXXXXXXXX 作 者 姓 名 : XXXXXXXXXXXXXX 指导教师姓名: XXXX 完 成 时 间 : XXX-XX-XX 2 内容摘要内容摘要 抢答器是为智力竞赛参赛者答题时进行抢答而设计的一种优先 判决器电路,竞赛者可以分为若干组,抢答时各组对主持人提出的问 题要在最短的时间内做出判断,并按下抢答按键回答问题。当第一个 人按下按键后,则在显示器上显示该组的号码,对应的灯亮,同时电 路将其他各组按键封锁,使其不起作用。因此要完成抢
2、答器的逻辑功 能,该电路应包括抢答器鉴别模块、抢答器计数模块、译码模块、计 数模块。 关键词:抢答鉴别 译码 计数 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
3、 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. A
4、nswering 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: Re
5、sponder Identification Count 一、 设计要求 1.抢答器同时供 4 名选手或 4 个代表队比赛,分别用 4 个按钮 p0p3 表示。 2.设置一个系统使能开关 kaishi,该开关由主持人控制。 3 3抢答器具有锁存与显示功能。即选手按动按钮,锁存相应的编号,并在 LED 和数 码管上显示,同时提示灯亮。选手抢答实行优先锁存,优先抢答选手的编号一直 保持到主持人将系统清除为止。 二、方案设计与论证 1、 概述 将该任务分成三个模块进行设计,分别为:抢答器鉴别模块、计数模块、译码模块。 2、 抢答器鉴别模块: 在这个模块中主要实现抢答过程中的抢答功能,并能对超前抢答进
6、行警告,还能记 录无论是正常抢答还是朝前抢答者的台号,并且能实现当有一路抢答按键按下时, 该路抢答信号将其余的抢答信号封锁的功能。其中有四个抢答信号 s0、s1、s2、s3; 抢答状态显示信号 states;抢答与警报时钟信号 clk2;系统复位信号 rst;警报信号 warm。 3、 抢答器计数模块: 在这个模块中主要实现抢答过程中的计时功能,在有抢答开始后进行 20 秒的倒计 时,并且在 20 秒倒计时后无人抢答显示超时并报警。其中有抢答时钟信号 clk1;系 统复位信号 rst;抢答使能信号 start;无人抢答警报信号 warn;计时中止信号 stop; 计时十位和个位信号 tb,ta。 4、 译码模块: 在这个模块中主要实现抢答过程中将 BCD 码转换成 7 段的功能。 5、 顶层文件: 在这个模块中是对前五个模块的综合编写的顶层文件。 三、单元电路设计 (一)抢答鉴别模块 1.VHDL 源程序 library ieee; use ieee.st