数字逻辑设计及应用-18课件.ppt
- 【下载声明】
1. 本站全部试题类文档,若标题没写含答案,则无答案;标题注明含答案的文档,主观题也可能无答案。请谨慎下单,一旦售出,不予退换。
2. 本站全部PPT文档均不含视频和音频,PPT中出现的音频或视频标识(或文字)仅表示流程,实际无音频或视频文件。请谨慎下单,一旦售出,不予退换。
3. 本页资料《数字逻辑设计及应用-18课件.ppt》由用户(晟晟文业)主动上传,其收益全归该用户。163文库仅提供信息存储空间,仅对该用户上传内容的表现方式做保护处理,对上传内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(点击联系客服),我们立即给予删除!
4. 请根据预览情况,自愿下载本文。本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
5. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007及以上版本和PDF阅读器,压缩文件请下载最新的WinRAR软件解压。
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 数字 逻辑设计 应用 18 课件
- 资源描述:
-
1、Chapter 7 Sequential Logic Design Chapter 7 Sequential Logic Design PrinciplesPrinciples(时序逻辑设计原理时序逻辑设计原理 )Latches and Flip-Flops (锁存器和触发器锁存器和触发器)Clocked Synchronous State-Machine Analysis (同步时序分析同步时序分析)Clocked Synchronous State-Machine Design (同步时序设计同步时序设计)Digital Logic Design and Application(数字逻辑设
2、计及应用数字逻辑设计及应用)1 1Review of Last Class(Review of Last Class(内容回顾内容回顾)时序逻辑电路时序逻辑电路输出取决于输入和过去状态输出取决于输入和过去状态电路特点:有反馈回路、有记忆元件电路特点:有反馈回路、有记忆元件双稳态元件双稳态元件QQ_L0态态 和和 1态态稳态稳态稳态稳态亚稳态亚稳态注意:亚稳态特性注意:亚稳态特性Digital Logic Design and Application(数字逻辑设计及应用数字逻辑设计及应用)2 2时序逻辑电路时序逻辑电路输出取决于输入和过去状态输出取决于输入和过去状态电路特点:有反馈回路、有记忆元
3、件电路特点:有反馈回路、有记忆元件双稳态元件双稳态元件QQ_L0态态 和和 1态态如何加入控制信号?如何加入控制信号?QQLRSReview of Last Class(Review of Last Class(内容回顾内容回顾)Digital Logic Design and Application(数字逻辑设计及应用数字逻辑设计及应用)3 3S S -R latchR latch(锁存器(锁存器)S_L=R_L=11 11 00 10 0S_L R_L维持原态维持原态0 11 0 1*1*Q QLS-R锁存器锁存器功能表功能表电路维持原态电路维持原态S_L=1,R_L=0Q=0,QL=1S
4、_L=0,R_L=1Q=1,QL=0S_L=R_L=0Q=QL=1,不定状态不定状态QQLS_LR_LSR清清0置置1不定不定S QR Q逻辑符号逻辑符号Digital Logic Design and Application(数字逻辑设计及应用数字逻辑设计及应用)4 4S-R Latch with EnableS-R Latch with Enable(具有使能端的具有使能端的S-RS-R锁存器锁存器)SRCQQLS_LR_L0 X X1 0 01 0 11 1 01 1 1C S R维持原态维持原态维持原态维持原态0 11 0 1*1*Q QL 功能表功能表(1).C=0时:时:维持原态维
5、持原态(2).C=1时:时:与与S-R锁存器相似锁存器相似注意:当注意:当S=R=1时,若时,若C由由10,则下一状态不可预测。则下一状态不可预测。逻逻 辑辑 符符 号号SCRQQ 又称又称“时钟时钟S-RS-R锁存器锁存器”Digital Logic Design and Application(数字逻辑设计及应用数字逻辑设计及应用)5 50 X X1 0 01 0 11 1 01 1 1C S R维持原态维持原态维持原态维持原态0 11 0 1*1*Q QL时钟时钟S-RS-R锁存器时序图锁存器时序图QSRC动作特点动作特点:输入信号在时钟:输入信号在时钟(使能端)有效期间,都能(使能端)
6、有效期间,都能直接改变触发器的状态。直接改变触发器的状态。Digital Logic Design and Application(数字逻辑设计及应用数字逻辑设计及应用)6 6D Latch(DD Latch(D锁存器锁存器)When D=1,Q=1C=0,QQLSRDC数据数据输入端输入端控制端控制端ENABLECLK输出状态保持不变输出状态保持不变输出随输入状态而改变输出随输入状态而改变C=1,When D=0,Q=0Q=DTransparent Latch(透明锁存器透明锁存器)C D Q QL1 0 0 11 1 1 00 X 保保 持持D锁存器锁存器功能表功能表D QC Q逻辑符号逻
7、辑符号Digital Logic Design and Application(数字逻辑设计及应用数字逻辑设计及应用)7 7Level-Sensitive D LatchLevel-Sensitive D LatchSR latch requires careful design to ensure SR=11 never occursD latch relieves designer of that burdenInserted inverter ensures R always opposite of SDQQCD latch symbolR1S1DCD latchQSR8 8Level-
8、Sensitive D LatchLevel-Sensitive D LatchR1S1DCD latchQSR10DCS1R1Q101010109 9特征方程:特征方程:Qn+1=D(C=1)01D=1D=0D=1D=001D01Qn+1状态转移真值表状态转移真值表Function Description of a D LatchFunction Description of a D Latch(D(D锁存器的功能描述锁存器的功能描述)状态图状态图Digital Logic Design and Application(数字逻辑设计及应用数字逻辑设计及应用)1010tpw(min)0 00
9、11 01 1S R维持原态维持原态0 11 0 0*0*Q QLSRQtpLH(SQ)tpHL(RQ)SRQQL传播传播延迟延迟最小最小脉冲脉冲宽度宽度Digital Logic Design and Application(数字逻辑设计及应用数字逻辑设计及应用)Figure 7-811 11QDCtpLH(CQ)tpHL(DQ)tpLH(DQ)tpHL(CQ)在在C C的下降沿附近有一个的下降沿附近有一个时间窗时间窗这段时间内这段时间内D D输入一定不能变化输入一定不能变化tsetupSetup Time(建立时间建立时间)tholdHold Time(保持时间保持时间)Timing Pa
10、rameters for a D LatchTiming Parameters for a D Latch(D(D锁存器的时序图锁存器的时序图)Digital Logic Design and Application(数字逻辑设计及应用数字逻辑设计及应用)1212D Latch with CMOS Transmission GateD Latch with CMOS Transmission Gate(利用利用CMOSCMOS传输门的传输门的D D锁存器锁存器)QLQTGTGDCENEN_LABCMOSCMOS传输门传输门TGDigital Logic Design and Applicati
11、on(数字逻辑设计及应用数字逻辑设计及应用)1313QLQTG1TG2DCC=0 TG1 断开断开 TG2 连通连通保持原态保持原态Q_LQDigital Logic Design and Application(数字逻辑设计及应用数字逻辑设计及应用)D Latch with CMOS Transmission GateD Latch with CMOS Transmission Gate(利用利用CMOSCMOS传输门的传输门的D D锁存器锁存器)1414QLQTG1TG2DCC=1 TG1 连通连通 TG2 断开断开 QL=D Q=DC D Q QL1 0 0 11 1 1 00 X 保保
12、 持持功能表功能表Digital Logic Design and Application(数字逻辑设计及应用数字逻辑设计及应用)D Latch with CMOS Transmission GateD Latch with CMOS Transmission Gate(利用利用CMOSCMOS传输门的传输门的D D锁存器锁存器)1515D QC QD QC QD QC QD QC QDIN3:0 WRDOUT3:0RDApplicationsApplicationsof Latchesof Latches(锁存器的应用锁存器的应用)Digital Logic Design and Appli
13、cation(数字逻辑设计及应用数字逻辑设计及应用)1616Q DQ CXYCISiCi+1XiYiCiSCOCLK暂存暂存X YCI COSCi+1SiXi YiCi时钟控制时钟控制串行输入、串行输出串行输入、串行输出注意:注意:时钟同步时钟同步再谈串行输入再谈串行输入加法器的实现加法器的实现ApplicationsApplicationsof Latchesof Latches(锁存器的应用锁存器的应用)Digital Logic Design and Application(数字逻辑设计及应用数字逻辑设计及应用)1717Storing One Bit Storing One Bit Ex
14、ample Requiring Bit StorageExample Requiring Bit StorageFlight attendant call buttonPress call:light turns onStays on after button releaseda3.2BitStorageBlue lightCallbuttonCancelbutton1.Call button pressed light turns onBitStorageBlue lightCallbuttonCancelbutton2.Call button released light stays on
15、11181819Storing One Bit Storing One Bit Flip-Flops Flip-FlopsExample Requiring Bit StorageExample Requiring Bit StoragePress cancel:light turns offStays off after button releasedLogic gate circuit to implement this?QCallCancelDoesnt work.Q=1 when Call=1,but doesnt stay 1 when Call returns to 0Need s
16、ome form of“feedback”in the circuit3.2BitStorageBlue lightCallbuttonCancelbutton3.Cancel button pressed light turns off0191920First attempt at Bit StorageFirst attempt at Bit StorageNeed some sort of feedbackDoes circuit below do what we want?QSt2020First attempt at Bit StorageFirst attempt at Bit S
17、torageNo:Once Q becomes 1(when S=1),Q stays 1 forever no value of S can bring Q back to 0101010QtS0t1QS00t1QS11t1QS11t0QS10t0QS02121Bit Storage Using an SR LatchBit Storage Using an SR LatchQS(set)SR latchR(reset)Does the circuit to the right,with cross-coupled NOR gates,do what we want?Yes!How did
18、someone come up with that circuit?Maybe just trial and error,a bit of insight.2222Bit Storage Using an SR LatchBit Storage Using an SR Latch001R=1S=0tQ1010RS10t10Q100101tQS=0R=0 t QS=1R=0011 t QR=0S=010100011X0Recall NOR232324Example Using SR Latch for Bit Example Using SR Latch for Bit StorageStora
19、geSR latch can serve as bit storage in previous example of flight-attendant call buttonCall=1:sets Q to 1Q stays 1 even after Call=0Cancel=1:resets Q to 0BitStorageBlue lightCallbuttonCancelbutton242425Example Using SR Latch for Bit Example Using SR Latch for Bit StorageStorageBut,theres a problem.R
20、SQCallbuttonBlue lightCancelbutton101252526Problem with SR LatchProblem with SR LatchProblemIf S=1 and R=1 simultaneously,we dont know what value Q will takeR=1S=10000tQR=0S=00011tQR=0S=01100tQ01010101SRQt262627Problem with SR LatchProblem with SR LatchProblemIf S=1 and R=1 simultaneously,we dont kn
21、ow what value Q will take1t01Q0Q may oscillate.Then,because one path will be slightly longer than the other,Q will eventually settle to 1 or 0 but we dont know which.Known as a race condition.2727Problem with SR LatchProblem with SR LatchDesigner might try to avoid problem using external circuitCirc
展开阅读全文