




已阅读5页,还剩16页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
VHDL重点1. CPLD :Complex programmable logic devices (based on 乘积项)2. FPGA:Field Programmable Gate Array(based on LUT)3. PROM:与阵列固定,或阵列可编程(巧记,有个O,联想到or,所以是或)4. PLA:与或阵列均可编程(巧记,pla,两个音,所以与或都有)5. PAL,GAL:与阵列可编程,或阵列不可编程(巧记,一个音,是与)6.Digital system design is based on programmable logic devices (PLD).It is top-down design,suing EDA.7.VHDLa) Strong capability of system descriptionb) Independence of device and hardware techniquec) IEEE standardd) Flexible design method(behav,struc,dataflow)e) Readable programf) As an HDL,executed concurrentlystructurc of VHDL:(目测填空题)LIBRARY, Package, Entity, Architecture, Configuration, Block, Sub-program, 8. Default Library(默认库):STD,work9. MOD(取模),REM(取余),ABS(取绝对值),SLA(算数左移)SRA(算数右移),SRL(逻辑右移),SLL(逻辑左移),ROR,ROL10. Different package-different physic circuit;11. Entity-outward appearence12. Architecture-describe the function or structure of the circuit13. Input-can not be assign the value14. Output-can not be the source of assignment15. Inout-bi-directional port16. Buffer-serve as an output,its value can be reloaded17. Architecture descriptiona) Behavior descriptionb) Data flow descriptionc) Structure description18.字符用 ,字符串用” ”19.实体名不能用数字开头,实体名要与文件名一致20. VHDL data typeInteger, real, natural, bit, bit_vector, std_logic, std_logic_vector, character, string, boolean, time, severity level21. Z high impedance22. X forcing unknown23. 自定义数组TYPE word8 IS ARRY (1 TO 8) OF BIT;24. VHDL data object: constant, variable, signal25. signal:1.has corresponding hardware,2.global,for multiple process3.assignment has delay,4.can carry history information26.variable:1.has no corresponding hardware2.local,valid in its process only3.assignment takes effect immediately4.has current value only27.sequential statements should be packaged in process28.(重点)when .else是并行语句,不用process包起来,但是它是具有顺序性的,考试时一般考它与if语句的改写,注意,if语句是顺序语句,得用process包起来29.(重点)with.select是并行语句,也不用process包起来,它没有顺序性,且条件必须涵盖完全,也就是说若没有全例举出来最后要有.when others,考试一般考改写case语句注意:if语句和case也可以相互改写,要根据题目改写,书写顺序要小心,特别是优先级编码器30. PROCESS,注意,它是,只是它里面是一般考改写wait语句,有wait on+信号表和wait until+条件两种,注意,PROCESS还是要写的,只是不用加()而已,别以为有wait就不能有PROCESS31.process的特点(一般是选择题)32. sequential statement(顺序语句)有if statement,case statement,loop statement,next statement,exit statement,wait statement,return,null33. 两种电路的区别34. 选择题考encoder和decoder要看清楚inputs是的是decoderinputs是的是encoder计算机存储信息和传输信息都是binary codes,所以encoder是为了方便35. 要会画decoder和encoder的 Half adder里面,Sum用or, carry用and36.37.Full adder有和两种38.这个要会画39. sequential logic circuits40. 同步(Moore型就是同步的,同步可以消除亚稳态)简单可靠,但是耗能41. 异步(Mealy型就是异步的,容易出现亚稳态)42. D锁存器(重)名词解释分别为:锁存器,触发器,寄存器,计数器,乘法器43. 触发器 44. 注意clk只能是std_logic,不能是bit45.带复位和Qbar的D触发器要小心(考改错题) 考点2:复位是不用考虑时钟沿的, 所以写在时钟沿检测之前 考点3:Q和Qbar赋值放到PROCESS外面 考点1:加一个信号作为中间值其实凡是带bar的都是这样设一个signal作为中间值的,如果不这样做,直接在PROCESS用D给Q和用not D给Qbar赋值,综合时会综合成两个触发器。注意用signal才能放到PROCESS外,用variable的话就要放PORCESS里面,建议用signal46. register寄存器,(D_F.F其实就是一个one bit的register)多位的register可以用多个D_F.F组成47. 这句赋值的意思是Q赋全048. 移位寄存器分别为串进串出,串进并出,并进串出,(S是串,P是并)串进并出的例子 串进,第n-1位被踢掉,所以最高位变成n-2位 并出49. State machine状态机 finite number of states有限种状态FSM就是有限状态的状态机其实它是用来描述sequential logic的 Next state logic(一般用ns) Combinational logicsequential logic Output logic(一般用op) Memory units(一般用seq)分别对Next state logic,Output logic,Memory units写进程,这就是课本分三进程的分法,其中Next state logic,Output logic可以放在一个进程里,这样就是双进程的状态机了(考试要求掌握双进程状态机)50. Race and Hazard(竞争与冒险)Signals through different paths arrive at the same node with time difference because of different propagation delays, which may causes transient error in output说白了,就是没有同步,超级赛亚人合体没同步就会变成“变体”所以避免竞争冒险可以用同步时序逻辑电路Race and Hazard can be avoided by synchronous(同步) sequential logic51. ASM图的特点1.used for synchronous sequential system(用于同步时序逻辑电路)2.ASM can represent the exact timing relations between state transitions(可以表现不同状态之间的时序关系)3.It resembles software flow chart, but it has corresponding hardware structure.(它有对应的硬件)52,图(重点)onditional output box条件框Decision box判断框State box状态框 R-0注意 表示R在状态末赋0值,然后保持,直到下次赋值 =1 和 一样,都是表示在这个状态时Z赋值1,过了这个状态就变为053.要会根据ASM图画波形图(注意条件框与它所属的状态框是同一个状态的,画波形图的时候要小心)54.要会根据电路图画ASM图(重重重重点,大题)方法,先根据电路图写驱动方程和输出方程,然后根据方程画状态转换表,再根据状态转换表画ASM图 一定要 搞 懂55.Moore machineThe output depends on the present state only,the output is solely a function of the present state.The output of Moore machine is independent of current inputThe output part and input part are separated56. Mealy Machine(比Moore结构复杂,complicated)The output depends on both the present state and the input,the output is a function of the present state and of inputIf the input changes, the output can change during the current state.57.One-process state machine单进程状态机State transition, next state logic, and output logic are included in a single process.58.two-process state machine双进程状态机(大题)重点,不解释LIBRARY IEEE ;USE IEEE.STD_LOGIC_1164.ALL ;ENTITY traffic IS PORT( clock , timed , car : IN std_logic ; start_timer, major_green, minor_green : OUT std_logic );END ENTITY traffic ;ARCHITECTURE asm2 OF traffic ISTYPE state_type IS (G, R); -利用枚举类型定义状态SIGNAL pr_state, nx_state : state_type; -将状态机的现态、次态定义为全局信号,便于在进程间传递信息BEGINseq: PROCESS (clock)BEGIN IF(rising_edge(clock) THEN pr_state = nx_state;-次态是寄存器的输入 END IF; -条件涵盖不完整的if语句产生状态寄存器END PROCESS seq; -产生状态寄存器的进程com: PROCESS (pr_state, car, timed) BEGIN start_timer major_green = 1;minor_green = 0; IF (car = 1) THEN start_timer = 1; nx_state = R; ELSE nx_state major_green = 0; minor_green = 1; IF (timed= 1) THEN nx_state = G; ELSE nx_state = R; END IF; END CASE;END PROCESS com;-产生次态和输出逻辑的进程END asm2;59.three-process state machine三进程状态机LIBRARY IEEE ;USE IEEE.STD_LOGIC_1164.ALL ;ENTITY traffic IS PORT( clock , timed , car : IN std_ulogic ; start_timer, major_green, minor_green : OUT std_ulogic );END ENTITY traffic ;ARCHITECTURE asm2 OF traffic ISTYPE state_type IS (G, R); -利用枚举类型定义状态SIGNAL pr_state, nx_state : state_type; -将状态机的现态、次态定义为全局信号,便于在进程间传递信息BEGINseq: PROCESS (clock)BEGIN IF(rising_edge(clock) THEN pr_state IF (car = 1) THEN nx_state = R; ELSE nx_state IF (timed = 1) THEN nx_state = G; ELSE nx_state = R; END IF;END CASE;END PROCESS ns;op: PROCESS (car, pr_state) Mealy or Moore? -process for output logicBEGINstart_timer = 0;IF (pr_state = G) THEN major_green = 1; minor_green = 0; IF (car = 1) THEN start_timer = 1; END IF;ELSE major_green = 0; minor_green clk_t,rst = rst_t,q = q_t);STIMULUS: processbegin rst_t = 0; wait for 100 ns; -0 fs这部分按题目要求产生信号,产生的时钟周期为100ns;复位信号0电平有效,且起始时刻为0,100ns后变为1。rst_t = 1;wait for 1 us; wait;end process; CLOCK: processbeginclk_t = 0;wait for 50 ns; clk_t = 1;wait for 50 ns; end process;end TB;64. Design optimization(优化)涉及race and hazard的知识涉及flip-flop,latch等的引入问题(看课本第七章P103P117)avoid unwanted registers的方法1.Combinational logic description has no edge-triggered states2.Complete IF statement 3.Complete signal assignment in CASE statement, if a signal or variable is assigned a value in one branch, it should be assigned values in every branch, otherwise, it should be given a initial value before the execution of case statement.65.Set up time:To ensure reliable operation, the input to a register must be stable for a minimum time before the clock edgeHold time:To ensure reliable operation, the input to a register must be stable for a minimum time after the clock edge66.If a signal transition violates a registers tSU(set up time) or tH (hold time)requirements, the output of the register may go into a metastable state(亚稳态)67.In synchronous systems, the input signals must always meet the register timing requirements, so metastability does not occur.在同步系统中。没有亚稳态68. Synthesis(综合)Synthesis levels:(目测填空选择题) 1. high level synthesis, 2.RTL synthesis, 3.logic synthesis, 4.layout synthesis69.High level synthesis:(目测选择题)translation from algorithmic(算法) behavior description to RTL description从算法级的行为描述转换到寄存器传输级描述的过程Normally, the physic hardware structure for a high level description is not unique, the main objective of high level synthesis is to find an optimal structure with respect to the cost and constraints(约束).综合结果不唯一,这点喜欢考选择题,选择题喜欢说它是唯一的,喜欢考选错误的,选它For the same VHDL description, different synthesis results may obtained depends on different synthesis tools.70.logic synthesis:translation from RTL description to logic gate netlist(网表)要达到higherspeedscovering smallersurface areas做到它们的balance71.Constraints(约束)for synthesis can be described by user-defined attributes,which will be omitted in simulation 就是说仿真的时候你的那些约束条件是被忽略的注:芯片的surface areas和系统的speeds是主要的两个约束72. a process includes at most one clock signal一个process里只能有一个时钟信号73. Delay is omitted by most of existing synthesizer延时会被综合器忽略74. Synchronous design are preferred同步设计比较受欢迎75. For asynchronous design, synthesis results usually need to be optimized by designer.异步设计往往综合后还需人工优化76 A).type Boolean is (FALSE , TRUE);B).type State_type is (HALT,READY,RUN,ERROR);C).type Std_logic is (U,X,0, 1, Z, -);D).type My_integer is Integer range 0 to 255;E).subtype Byte_int is Integer range -128 to 127;tF).ype Word is array (31 downto 0) of Bit;G).type My_RAM is array (1023 downto 0 ) of Word;H).typeRegNameis(AX, BX, CX, DX);typeOperationisrecordMnemonic : String (1to10);OpCode : Bit_Vector(3downto0);Op1, Op2, Res : RegName;endrecord;76. If statement can be synthesized into Mux or basic logic gates.77. Case statement is synthesized into Mux.Case statement needs more logic resources78. The synthesis of the loop statement is complicated in high-level synthesis79. 信号综合结果(1) S = A; -the resultant circuit is hardwire(2) R= 1; -R is synthesized as a constant (3) T function si
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 焊工安全知识培训课件书
- 2025年事业单位工勤技能-广东-广东铸造工五级(初级工)历年参考题库含答案解析
- 2025年事业单位工勤技能-广东-广东汽车驾驶与维修员一级(高级技师)历年参考题库含答案解析
- 2025年事业单位工勤技能-安徽-安徽水文勘测工二级(技师)历年参考题库典型考点含答案解析
- 2025年事业单位工勤技能-北京-北京兽医防治员五级(初级工)历年参考题库含答案解析
- 烹调基础知识培训总结课件
- 2025年职业技能鉴定-铁路职业技能鉴定-铁路职业技能鉴定(铁路连结员)初级历年参考题库含答案解析(5套)
- 2025年职业技能鉴定-石雕工-石雕工(高级技师)历年参考题库含答案解析(5套)
- 2025年职业技能鉴定-灭火救援专业士兵-灭火救援专业士兵(高级)历年参考题库含答案解析(5套)
- 2025年职业技能鉴定-劳动关系协调员-劳动关系协调员高级技师(一级)历年参考题库含答案解析(5套)
- 亿联视频会议产品方案
- 《疯狂动物城》全本台词中英文对照
- 补充变更收款帐户协议范本
- 绿豆芽成长记-A4打印版
- 妇产科学盆腔炎性疾病及生殖器结核
- 3D打印技术教程
- 商标申请风险告知书
- 科学技术进步奖公示内容
- 胶业有限公司导热油炉岗位风险告知卡
- 全国商场资料
- 四川省家庭经济困难学生认定申请表(样表)
评论
0/150
提交评论