数字逻辑设计及应用:Chap5 Simulation and VerilogHDL_第1页
数字逻辑设计及应用:Chap5 Simulation and VerilogHDL_第2页
数字逻辑设计及应用:Chap5 Simulation and VerilogHDL_第3页
数字逻辑设计及应用:Chap5 Simulation and VerilogHDL_第4页
数字逻辑设计及应用:Chap5 Simulation and VerilogHDL_第5页
已阅读5页,还剩32页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Chapter 5 Design simulation and HDL,Combinational circuit analysis Schematic entry/ Text entry and their simulations,From logic circuit to truth table,Combinational logic analysis,From logic circuit to logic equation,Combinational logic analysis,From timing diagram to truth table,Combinational logic

2、 analysis,Simulation: Design analysis before production Aided with computer tools: Schematic entry / Text entry,Design simulation,Max+Plus II from Altera .com: Include : schematic entry and HDL text editor; compiler and synthesizer; waveform editor and simulator; time analyzer; programmer,EDA Tools

3、for digital design,Open the Program,Open the Graphic editor,Select logic unit and connect them,Name your I/O and name your design,Set up a project and select the device,Name and save your design; file/project/set project to current file! Assign /device: FLEX10K/AUTO; Check and compile your design,De

4、sign check and compile,Design check and compile,If compile was not success, the error information can be found in message window, we can perfect the design according to these message; If compile success, design results can be found in .rpt file,Report for design results,Verify the design with input

5、and output,Waveform editor and Simulation,Open the waveform editor; Click the Name area, click the List to select the ports; File/End time: select the simulation time; Option/Grid size: select the time unit; Click the value for each input, set the input waveform; Save the file after all the inputs b

6、eing set,Waveform editor and Simulation,Waveform editor and Simulation,Text entry with Verilog HDL,Chapter 5 Design simulation and HDL,Verilog HDL structure,Use text entry to replace schematic entry: Large design and time delay can be easily described ; Modification can be easily done,Verilog HDL st

7、ructure,Hardware module: Name、port and structure,Module name and IO,module majority (a,b,c,f); input a,b,c; output f; structure description; endmodule,Signal :port and wire,Two kinds of signals : port : input and output; wire : any connect nets in module; The value of signals: 0 1 z x (unknown,modul

8、e majority (a,b,c,f); input a,b,c; output f; wire w1,w2,w3; structure description; endmodule,Signal :port and wire,Logic operators for bit data,y = a,y = a | b,y = a,y = a b,Logic operations,Dataflow description,module majority (a,b,c,f); input a,b,c; output f; wire w1,w2,w3; assign w1=a endmodule,m

9、odule majority (a,b,c,f); input a,b,c; output f; assign f=(a endmodule,Dataflow description,Use built_in gates for design,Gate,Structure description,module majority (a,b,c,f); input a,b,c; output f; wire w1,w2,w3; and u1(w1,a,b); and u2(w2,b,c); and u3(w3,a,c); or u4(f,w1,w2,w3); endmodule,4-bit pri

10、me-number detector when input is (1,2,3,5,7,11,13), the output is 1, otherwise the output is 0,Bus signal and its operations,Bus: A collection of two or more related signal lines,module prime (a,f); input 3:0 a; output f; wire 3:0 w; assign w0=a3 endmodule,Bus signal and its operations,Text entry,Bus signal set,Bus signal set,module bus (a,b,y1,y2,y3); input7:0 a,b; output7:0 y1,y2,y3; assign y1=a endmodule,Bus signal and its operations,B

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论