版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、1. Multiple choice test(25=10 marks)1 . Which of the following statements on VHDL process is not true( C )Aa signal can be read in multiple processes;B. a signal can be assigned values for multiple times in a process, however, only the last assignment takes effect;Ca signal can be assigned values in
2、 different process;Da process can be triggered either by means of sensitivity list or by wait statement; 2. Which of the following statements is not true( D )A. The working frequency of a synchronous digital system shouldnt exceed the reciprocal (倒数) of its maximal delay;B. The working frequency of
3、a synchronous digital system is limited by the delay of its components.C. Asynchronous digital system is more efficient in terms of resources than synchronous system.D. Asynchronous digital system is more reliable than synchronous system.3. Which of the following statements on synthesis is not true(
4、 D )A. Synthesis is a transformation process from one representation of the design to another representation form;B. Synthesis transforms the high level HDL to low level hardware netlist, which is produced according to FPGA/CPLD structure;C. Synthesis is usually limited by the surface and speed of t
5、he circuit;D. Synthesis is a mapping process from high level description to low level hardware representation. The mapping relationship is unique and the synthesis result is unique. 4. Which of the following statements on VHDL simulation&synthesis is not true:( B )A. the time delay following the aft
6、er statement cant be synthesized;B. A pulse signal cant propagate through the path if its duration is less than transport delay;C. For a VHDL signal, its initial value assigned in its declaration part is valid in simulation only; its ignored by the VHDL synthesis;D. Simulation is actually a process
7、of checking and verification;5. In state machine coding,( A )can save the resources for decoding and reduce the risk of illegal states at the price of more register resources: A . one-hot coding B. random coding C. natural binary coding D. gray code2. Short Q&A( 102=20 marks)1、 The following figure
8、shows the critical path of a digital system. (10 marks)(1) Please give a brief explanation respectively for the timing parameters including tsu, thold, tc-q, tlogic(2) According the timing parameters in the figure, calculate the maximal delay max of the critical path (or the maximal working frequenc
9、y fmax of the system). Set up time: To ensure reliable operation, the input to a register must be stable for a minimum time before the clock edge (register setup time or tSU). if the time is not long enough, reliable operation can not be guaranteedHold time: To ensure reliable operation, the input t
10、o a register must be stable for a minimum time after the clock edge (register hold time or tH). if the time is not long enough, reliable operation can not be guaranteed. TcqThe register output then is available after a specified clock-to-output delay (tco or tcq).tlogicThe worst combinationa logic d
11、ealymax =tcq+tsu+tlogic2. Please draw the RTL diagrams for the following 2 pieces VHDL codes(10 marks)(1)process(op,x,y)begin if op=0 then result = x or y; else result = x and y; end if; end process P2;(2) ENTITY test IS PORT( X,Y :in std_logic; Sum, Carry :out std_logic); END test; ARCHITECTURE dat
12、aflow OF test IS BEGIN Sum=X xor Y; Carry=X and Y; END dataflow;3. Comprehension &Design (60 marks)1、Design a 4-1Mux using synthesizable VHDL statements(10 marks) Selection signals:S0、S1;Data input:A、B、C、D;Data output: Dout 。LIBRARY IEEE;USE IEEE.std_logic_1164.ALL;Entity Mux41 is Port(s0,s1, A,B,C,
13、D: in std_logic;Dout: out std_logic);End entity;Architecture behavior of Mux41 is Signal sel : std_logic_vector(1 downto 0); beginsel Dout Dout Dout Dout Null;end case;end process;end architecture;2、Using VHDL, describe the 2 stimuli shown by the following diagram, as a part test bench。(6 marks) Sig
14、nal S1:std_logic;Signal S2:std_logic;ProcessBeginS1=0;Wait for 10 ns;S1=1;Wait for 5 ns;S1=0;Wait for 10 ns;End process;ProcessBeginS1=0;Wait for 5 ns;S1=1;Wait for 15 ns;S1=0;Wait for 5ns;End process;3.Model the following circuit using VHDL according to the following requirements: (8 marks)(a ) TA
15、and TB are enable signals, both of them are inactive (无效), Y is set to high impedance; (b) if both of TA and TB are active(有效) , Y follows the wired-and logic (线与逻辑) of A and B; (c) if only TA (or TB) is active, Y follows input A (or input B );LIBRARY IEEE;USE IEEE.std_logic_1164.ALL;LIBRARY IEEE;US
16、E IEEE.std_logic_1164.ALL; Entity test is Port(TA,TB, A,B: in std_logic;Y: out std_logic);End entity;Architecture behavior of test is Signal sel : std_logic_vector(1 downto 0); beginsel Y Y Y Y Null;end case;end process;end architecture;4、read the following VHDL codes, and explain its function(6 mar
17、ks)Library ieee;Use ieee.std_logic_1164.all;entitys4isport( clk,rst:instd_logic;load,en:instd_logic;din:inSTD_LOGIC_VECTOR(7downto0);qb:outstd_logic);ends4;architecturebehavofs4issignalreg8 :std_logic_vector(7downto0);beginprocess(clk,RST,load,en)beginifrst=1then reg80);elsifCLKEVENTANDCLK=1then ifl
18、oad=1then reg8=din;elsifen=1then reg8(6downto0)=reg8(7downto1);endif;endifendprocessqb = _reg8(0); end behav;The vhdl codes described a right-shift register with asynchronous reset input, synchronous load input and synchronous enable signal.5、Design a up-counter based on BCD code (基于BCD码的递增计数器), whi
19、ch has the following requirements: (10 marks)(a) Load: Synchronous loading control signal;(b) Data: BCD coded data input. If Load is high, it is loaded into the counter as the initial state of counting;(c) Co: carry_out bit, if the counter value reaches 10 (decimal), the counter returns to 0 (decima
20、l), and Co is set to 1. LIBRARY IEEE;USE IEEE.std_logic_1164.ALL; Use IEEE.std_logic_unsigned.all; Entity test is Port(load,clk: in std_logic; data: in std_logic_vector(3 downto 0);Co: out std_logic);End entity;Architecture behavior of test is Signal count: std_logic_vector(3 downto 0);BeginProcess(
21、clk)beginIf clkevent and clk=1 then If load=1 thenCount=data;ElseIf count=1001 thenCount=0000;Co=1;elseCount=count+1;Co=0;End if;End if;end if;end process;end architecture;6. Solve one of the following two problems:(5 marks)(1) draw the waveforms according to the following VHDL codes. Attention: the
22、 initial value of signal a is 0, the process execution delay is assumed to be deltasignal a : std_logic:= 0; .process (a) begin a = 1; if (a = 1) then a = transport 0 after 20 ns; else a = transport 1 after 10 ns; end if; end process; (2)In a digital system, its inertial delay is assumed to be 4ns,
23、the transport delay is 3ns. The waveform of signal X is shown in the following figure,please draw the waveform of Z1, Z2.Z1= X;Z2=transport X after 3ns;7 .We have 4 pieces of VHDL codes, please choose 3 pieces, and draw their corresponding RTL diagrams. (15 marks)(a)ARCHITECTURE BEHAV OF test1 ISBEG
24、INPROCESS (clk)variable rega,regb:std_logic; BEGINif clk=1 and clkevent THEN rega:=data;regb:=rega; END IF;y=regb; END PROCESS;end behav; (b)ARCHITECTURE BEHAV OF test1 ISBEGINPROCESS (clk)variable rega,regb:std_logic; BEGINif clk=1 and clkevent THEN regb:=rega; rega:=data;END IF;y=regb; END PROCESS
25、;end behav;(c)ARCHITECTURE BEHAV OF test3 ISsignal rega,regb:std_logic; BEGINPROCESS (clk)BEGINif clk=1 and clkevent THEN regb=rega; rega=data;END IF;y=regb; END PROCESS;end behav;(d)ARCHITECTURE BEHAV OF test1 ISBEGINPROCESS (clk)variable rega: std_logic; BEGINif clk=1 and clkevent THEN rega:=data;
26、END IF;y=rega; END PROCESS;end behav;a b c d8. Using VHDL, design a circuit for counting the leading zeros of vectors. Each vector includes 8 bits, The vectors are input into the counter in serial order from LSB to MSB(由低位到高位串行输入).(1)Draw the ASM chart or the state transition diagram for the circuit
27、.(5 marks)(2)Based on the ASM chart or state transition diagram, describe the circuit using VHDL code(5 marks) LIBRARY IEEE ;USE IEEE.STD_LOGIC_1164.ALL ;USE IEEE.STD_LOGIC_UNSIGNED.ALL ;ENTITY leading_zeros IS PORT( clock, data,start: IN std_logic ;number : OUT std_logic_vector(3 downto 0) );END ENTITY
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2023年马鞍山辅警协警招聘考试真题含答案详解(达标题)
- 2024年乌兰察布辅警招聘考试题库及参考答案详解
- 2023年西宁辅警招聘考试题库及完整答案详解
- 唐徕回民中学2025年高一生物第一学期期末检测模拟试题含解析
- 2026届江苏省南通市通州区、海安县化学高二第一学期期末检测试题含解析
- 辽宁省瓦房店市2026届高二上化学期末综合测试试题含解析
- 广东省茂名市五校联考2025年高一生物第一学期期末质量跟踪监视试题含解析
- 2025年安徽省合肥一中八中、六中生物高一第一学期期末质量跟踪监视模拟试题含解析
- 2024年十堰辅警协警招聘考试备考题库附答案详解(满分必刷)
- 上海城建职业学院《病原生物学与免疫学基础》2024-2025学年第一学期期末试卷
- 2025中国电气装备许继集团许继电气校园招聘笔试历年参考题库附带答案详解
- 高中语文高考语文复习+高考中的成语考查+课件
- 2025甘肃庆阳正宁县公安局招聘警务辅助人员40人备考考试题库附答案解析
- 七年级历史上学期期末选择题100题-附答案解答
- 2025广西玉林市自来水有限公司下半年公开招聘21人笔试参考题库附带答案详解
- 低温天气安全教育培训课件
- 整车线束培训资料
- 4.1 10的认识(课件 )数学苏教版一年级上册(新教材)
- 2026年度安全生产工作计划
- 2025山东泰山财产保险股份有限公司总公司及分支机构校园招聘、社会招聘笔试模拟试题及答案解析
- 剪纸社团教学课件
评论
0/150
提交评论