数字逻辑设计及应用课程讲稿.docx

上传人:牧羊曲112 文档编号:1858454 上传时间:2022-12-22 格式:DOCX 页数:45 大小:1.16MB
返回 下载 相关 举报
数字逻辑设计及应用课程讲稿.docx_第1页
第1页 / 共45页
数字逻辑设计及应用课程讲稿.docx_第2页
第2页 / 共45页
数字逻辑设计及应用课程讲稿.docx_第3页
第3页 / 共45页
数字逻辑设计及应用课程讲稿.docx_第4页
第4页 / 共45页
数字逻辑设计及应用课程讲稿.docx_第5页
第5页 / 共45页
点击查看更多>>
资源描述

《数字逻辑设计及应用课程讲稿.docx》由会员分享,可在线阅读,更多相关《数字逻辑设计及应用课程讲稿.docx(45页珍藏版)》请在三一办公上搜索。

1、第一次课:课程介绍及要求 一学时课程教学内容安排:第一章 引论第二章 数系与代码 第三章 数字电路第四章 组合逻辑设计原理 第五章 组合逻辑设计实践第七章 时序逻辑设计原理 第八章 时序逻辑设计实践 第十章 存储器及其在数字逻辑系统实现中的运用 第十一章 其他的实际问题 补充内容 模数转换器、数模转换器(ADC/DAC)原理及应用简介课程教学时间安排:第一章 引论 (计划学时数:2学时)介绍数字逻辑电路的特点、数字逻辑电路在电子系统设计中的地位、数字逻辑电路与模拟电子电路之间的关系、简单介绍EDA设计工具、VHDL语言对数字逻辑设计作用和影响。 第二章 数系与代码 (计划学时数:6学时)十进制

2、、二进制、八进制和十六进制数的表示方法以及它们之间的相互转换、非十进制数的加减运算;符号数的表达格式以及它们之间的相互转换以及带符号数的补码的加减运算;BCD码、格雷码的特点,它们与二进制数之间的转换关系;简介二进制数的浮点数表达(补充);第三章 数字电路 (计划学时数:4学时)作为电子开关运用的二极管、双极型晶体管、MOS场效应管的工作方式;以CMOS倒相器电路的构成及工作状态分析;逻辑电路的静态、动态特性分析,等价的输入、输出模型;特殊的输入输出电路结构:CMOS传输门、施密特触发器输入结构、三态输出结构、漏极开路输出结构;学习了解其他类型的逻辑电路: TTL,ECL等;不同类型、不同工作

3、电压的逻辑电路的输入输出逻辑电平规范值以及它们之间的连接配合的问题。第四章 组合逻辑设计(计划学时数:10学时)逻辑代数的公理、定理,对偶关系,以及在逻辑代数化简时的作用;逻辑函数的表达形式:积之和与和之积标准型、真值表;组合电路的分析:逻辑函数表达式的产生过程及逻辑函数表达式的基本化简方法;组合电路的综合过程:将功能叙述表达为组合逻辑函数的表达形式、逻辑函数表达式的化简函数化简方法卡诺图化简方法、使用与非门、或非门表达的逻辑函数表达式、逻辑函数的最简表达形式及综合设计的其他问题:无关项的处理、冒险问题和多输出逻辑化简的方法。 第五章 组合逻辑设计实践(计划学时数:10学时)利用基本的逻辑门完

4、成规定的组合逻辑功能(如译码器、编码器、多路选择器、多路分配器、异或门、比较器、全加器等)的电路设计任务;利用基本的逻辑门和已有的逻辑功能电路作为设计的基本元素完成更为复杂的组合逻辑电路设计的方法。第七章 时序逻辑设计原理 (计划学时数:10学时)基本时序元件R-S型,D型,J-K型,T型锁存器、触发器的电路结构,工作原理,时序特性等;扫描触发器(Scan Flip-Flop)特性及基本应用;钟控同步状态机的模型图,状态机类型及基本分析方法和步骤,使用状态图表示状态机状态转换关系;时序状态机的设计:状态转换过程的建立,状态的化简与编码赋值、未用状态的处理-最小风险方案和最小代价方案、使用状态转

5、换表的设计方法、使用状态图的设计方法。第八章 时序逻辑设计实践 (计划学时数:10学时)利用基本的逻辑门、时序元件作为设计的基本元素完成规定的钟控同步状态机电路的设计任务:计数器、位移寄存器、序列检测电路和序列发生器的设计;利用基本的逻辑门和已有的中规模集成电路(MSI)时序功能器件作为设计的基本元素完成更为复杂的时序逻辑电路设计的方法。时序电路设计中的其他问题:组合电路与时序电路的比较,大型时序电路的结构划分,时钟歪斜,异步输入处理等。第十章 存储器及其在数字逻辑系统实现中的运用 (计划学时数:4学时)学习了解:存储器(ROM,SRAM)的基本工作原理和结构;学习掌握:存储器在数字逻辑系统设

6、计的硬件实现中的运用。 第十一章 其他的实际问题(计划学时数:2学时)数字逻辑电路(组合电路和时序逻辑电路)设计的描述说明方法;数字逻辑系统设计的其他问题:数字逻辑设计中设计工具的作用、设计的可测试性问题、数字逻辑系统可靠性的问题、高速数字逻辑系统中信号传输的相关问题。 补充内容:模数转换器、数模转换器(ADC/DAC)原理及应用简介(计划学时数:4学时)数字-模拟转换器(Digit to Analog Converter,DAC)的基本电路结构(R-2R结构的DAC),工作原理;模拟-数字转换器(Analog to Digit Converter,ADC) 的基本电路结构(逐次逼近式的ADC

7、),工作原理;模拟-数字转换器、数字-模拟转换器(ADC/DAC)在电子系统中的作用和应用,特别是在波形发生方面的运用。 课程教学实验内容安排:课外上机实验教学(计划学时数:16学时) 实验目的:通过使用CAD设计工具 对教材中相关例题的分析,加深对教材内容的理解,更好地掌握相关知识。1、学习使用PSPICE电路分析工具仿真分析CMOS基本逻辑门的静态特性和动态特性、了解电路结构和负载特性对逻辑门静态特性和动态特性的影响。2、学习数字逻辑电路仿真工具MAX+plusII的基本使用方法;进行基本组合电路基本功能单元,时序电路的基本功能单元进行仿真,加深对基本功能单元功能作用的理解;对教材中大型例

8、题进行仿真分析,加强对大型综合性设计的分析理解能力。课程考核课程考核的内容有:平时课外作业练习;课程随堂练习与测验;期中考试和期末考试。最终成绩组成:平时成绩占40%,期末考试成绩占60%。期中考试成绩、平时课外作业练习成绩和随堂练习与测验成绩在平时成绩中分占50%,25%,25%。数字逻辑电路课程结构数字逻辑电路与其他课程的相关关系CHAPTER 1 INTRODUCTIONANALOG VERSUS DIGITALAnalog signals are the time-varying signals that can take on any value across a continuou

9、s range of voltage or current.For example: the signal sin(t )Analog circuits and systems process analog signal.A digital signal is modeled as taking on, at any time, only one of two discrete values(0 or 1, low or high, false or true)Digital circuits and systems process digital signal.Digital circuit

10、s and systems have many uses in our life : Still pictures. Video and audio recordingsAutomobile carburetorsThe telephone systemsMovie effects 。Why has there now been a digital revolution?Reproducibility of results(结果的可重现性)Easy of design (设计的方便性)Flexibility and functionalityProgrammabilitySpeedEconom

11、ySteadily advancing technologyDigital devicesThe gates: AND gates OR gates NOT gates (inverter)The combinational logic gates: NOT-AND (NAND) gates, NOT-OR (NOR) gates,.The flip-flop devices(触发器)Electronic Aspects of digital design See the figure 1-2Integrated circuitsICWAFERDIESSI: SMALL-SCALE INTEG

12、RATIONMSI: MEDIUM -SCALE INTEGRATIONLSI: LARGE -SCALE INTEGRATIONPACKAGECHAPTER 2 Number Systems and Codes2.1 Positional Number SystemsIn this system, a number is represented by a string of digits, where each digit position has an associated weight, and the value of a number is a weighted sum of the

13、 digits.For example A decimal number 1734 can be written as : 1734=1*1000 + 7*100 + 3*10 + 4 =1*103+7*102+3*101+4*100where, 10 is called the base or radix of the number system, and 103 is the weight of the position 3.In general, a number N of the form np-1np-2n2n1n0 . n-1n-2n-k ,the radix is r (r2),

14、has the value N= np-1rp-1np-2rp-2n2r2n1r1n0r0n-1r-1n-2r-2n-kr-k ni=(0,1r-1)If r=2, then ni=(0,1), the number system is BINARY number system.A binary number B of the form 10101110, the value is B=1*27+0*26+1*25+0*24+1*23+1*22+1*21+0*20 =1*128+0*64+1*32+0*16+1*8+1*4+1*2+0*1 =174We write a binary numbe

15、r as bp-1bp-2b2b1b0 . b-1b-2b-k, the leftmost bit is called the most significant bit(MSB), and the rightmost bit is the least significant bit(LSB).If r=8, then ni=(0,17), the number system is OCTAL number system.If r=16, then ni=(0,19,A,B,C,D,E,F), the number system is HEXADECIMAL number system.When

16、 dealing with binary and other nondecimal numbers, we use a subscript to indicate the radix of each number. For examples, 100112 means a binary number 1001110 for a decimal number17868 for an octal number178616 for a hexadecimal number. 2.3 General Positional-Number-System ConversionsSigned Number B

17、inary Codes Signed binary numbers provide the means by which both positive and negative numbers may be represented. Binary signed magnitude convention uses the most significant bit position to indicate sign (sign bit) and the remaining lesser significant bits to represent magnitude.The sign bit is 0

18、 for positive number, 1 for negative one. Three main signed number binary codes are used: signed-magnitude code, 2s complement, and 1s complement.Signed-Magnitude Codes The most significant bit(MSB) position is 0 for all positive values and 1 for negative value. There are two possible representation

19、 of zero, “+0” and “-0”, but both have same value. An n-bit signed-magnitude integer lies within the range : -(2n-1-1) through +(2n-1-1) .Some 8-bit signed-magnitude integers+ 8510 =0 10101012 - 8510=1 10101012+12710 =0 11111112 -12710=1 11111112 + 010 =0 00000002 - 010=1 000000022s Complement Numbe

20、rNumber A is a n-bit signed binary codeWay 1: the complement of A is equivalent to 2n +A|mod(2n).Way 2: If A 0 , If A n, we must append m-n copies of Xs sign bit to the left of X.If mn,we discard Xs n-m leftmost bits, the result is valid only if all of the discarded bits are the same as the sign bit

21、 of the result.Get -A 2s complement from A 2s complementWe have an n-bit complement number A 2s complement ,to obtain the -A 2s complement -A 2s complement = 2n - A 2s complement EX: A2s complement =01010101B -A2s complement=10101011B 1s complement numberNumber A is a n-bit signed binary codeIf A 0

22、,the complement of A is equivalent to A.If A 0 , the complement of A is equivalent to 2n -1+AZero is a positive numberSome examples for 1s complement number010101011s complement=01010101B110101011s complement=10101010B 000000001s complement=00000000 BGet 1s complement from signed magnitude numberWe

23、have an n-bit signed-magnitude number A , to obtain the A 1s complement .we must to:If A 0, A 1s complement =AIf A0, save the sign bit of A and complement the remaining lesser significant bits (that is,change 0s to 1s and 1s to 0s)EX: A signed-magnitude =11010101B A 1s complement =10101010BGet 2s co

24、mplement from 1s complement numberWe have A 1s complement, By following way ,we can get A 2s complementA 2s complement = A 1s complement, +1Ex: A 1s complement =10101010B + 1 A 2s complement =10101011B2s COMPLEMENT ADDITION AND SUBTRACTIONADDITION RULES2s-complement number can be added by ordinary b

25、inary addition, ignoring any carries beyond the MSB.The result will always be the correct sum as long as the range of the number system is not exceeded.A+B 2s complement = A 2s complement +B 2s complement EX: +3 0011 -2 1110 + +4 +0100 + -5 + 1011 +7 0111 -7 11001 +6 0110 +4 0100 +-3 +1101 + -7 + 10

26、01 +3 10011 -3 1101OVERFLOWIf an addition operation produces a result that exceeds the range of the number system,overflow is said to occur.There is a simple rule for detecting overflow in addition: An addition overflows if the carry bits cin into and cout out of the sign position bit are different.

27、Using double sign bit to detect overflow +3 00 011 -2 11 110 +4 +00 100 + -5 +11 011 +7 00 111 -7 11 001 -3 11 101 +5 00 101 +-6 +11 010 +6 + 00 110 -9 10 111 +11 01 011If the sign bits have same sign, the sum is valid; If the sign bits are different , the addition overflowsSUBTRACTION RULEA-B 2s co

28、mplement =A 2s complement +-B 2s complement AND -A 2s complement = 2n - A 2s complementEX: A2s complement =01010101B -A2s complement=10101011B Overflow in subtraction can be detected by examining the sign of the minuend and the complemented subtrahend, using the same rule as in addition.Combinationa

29、l Logic Design Practices5.1Documentation Standard(文档要求)Circuit Specification(说明书)Block Diagram(方框图)Schematic Diagram(原理图)Timing Diagram(定时图)Structured logic device descriptionCircuit description5.1.1 BLOCK DIAGRAMA block diagram shows the inputs, outputs, function modules, internal data paths,and im

30、portant control signal of a system.A good block diagram shows in fig 5-1Fig 5-2(c) is too much detailBUS(总线): A bus is a collection of two or more related signal lines. A slash and a number may indicate how many individual signal lines are contained in a bus( the width of a bus). Sometime size may b

31、e denoted in the bus name (e.g., INBUS31.0).page 3155.1.2 GATE SYMBOLS5.1.3 Signal names and Active level5.1.4 Active level for pins5.1.5 Bubble-to-bubble logic design5.1.6 Drawing layoutline crossings and connectionsa single page schematic diagramflat schematic structure (fig 5-14)hierarchical sche

32、matic structure (fig 5-15)5.1.7 Buses in schematic diagramsfig 5-165.1.8 Additional schematic information FIG 5-185.2 TIMING DIAGRAM 5.2.1 Timing diagrams 5.2.2 Propagation Delay We defined the propagation delay of a signal path as the time that it takes for a change at the input of the path to prod

33、uce a change at the output of the path. 5.2.3 Timing Specificationstphl and tplhMaximum delayTypical delayMinimum delay 5.2.4 Timing AnalysisTo accurately analyze the timing of a complex circuit is very difficulty.A signal worst-case delay specification that is the maximum of tphl and tplh specifica

34、tion. By it, the design time can be saved.5.4 DECODERS(译码器) A decoder is a multiple_input, multiple_output logic circuit. The number of circuit input is n_bit and the number of circuit output is 2n.The most commonly used output code is one-out-of-m code, which contains m bits, where one bit is asser

35、ted at any time.INPUTSOUTPUTSENI1I0Y3Y2Y1Y0000000010000011010010110010011110002-to-4 binary decoder with an enable controlThe output functions:Y0=ENI1 I0 Y1=ENI1 I0 Y2=ENI1I0 Y3=ENI1 I02-to-4 binary decoder circuit with an enable control3-bit Gray-code output of a mechanical encoding diskDisk positi

36、onI2I1I0Binary decoder output0000Y0=145001Y1=190011Y2=1135010Y3=1180110Y4=1225111Y5=1270101Y6=1315100Y7=174X139 Dual 2-to-4 Decoderthe truth tableINPUTSOUTPUTSG_LBAY3_LY2_LY1_LY0_L1XX11110001110001110101010110110111The output functions:Y0_L=G_L+B+A=G_LBAY1_L=G_L+B+A=G_LBAY2_L=G_L+B+A=G_LBAY3_L=G_L+B

37、+A=G_LBA1/2-74X139 74X13974X138 3-to-8 Decoder The truth tableINPUTSOUTPUTSG1G2A_LG2B_LCBAY7_LY6_LY5_LY4_LY3_LY2_LY1_LY0_L0XXXXX11111111X1XXXX11111111XX1XXX111111111000001111111010000111111101100010111110111000111111011110010011101111100101110111111001101011111110011101111111Y0_L=EN_L+C+B+A =ENCBAY1

38、_L=EN_L+C+B+A =ENCBAY2_L=EN_L+C+B+A =ENCBAY3_L=EN_L+C+B+A =ENCBAY4_L=EN_L+C+B+A =ENCBAY5_L=EN_L+C+B+A =ENCBAY6_L=EN_L+C+B+A =ENCBAY7_L=EN_L+C+B+A =ENCBAEN_L= G1+G2A_L+G2B_L ; EN= G1G2A_LG2B_LONE FACT:Y0=EN(I1 I0) Y1=EN(I1 I0) Y2=EN(I1I0) Y3=EN(I1 I0)Y0_L=G_L+B+A=G_LBA=G_L+(BA)Y1_L=G_L+B+A=G_LBA =G_L

39、+(BA)Y2_L=G_L+B+A=G_LBA =G_L+(BA)Y3_L=G_L+B+A=G_LBA =G_L+(BA)Y0_L = G1G2A_LG2B_LCBA=(EN_L) +(CBA)Y1_L= (EN_L)+(CBA)Y2_L= (EN_L)+(CBA)Y3_L= (EN_L)+(CBA)Y4_L=(EN_L)+(CBA)Y5_L= (EN_L)+(CBA)Y6_L= (EN_L)+(CBA)Y7_L= (EN_L)+(CBA)ONE OUTPUT OF DECODER MAP TO ONE MINTERM (OR THE NOT, IF THE OUTPUT IS LOW ACTIVE).A 4-to-16 decoder using two 74x138A 5-to-32 decorder with 4 74x138 and 1/2 74x139EX1: The truth table shows in

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 生活休闲 > 在线阅读


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号