




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Chapter 7 Sequential Logic Design Principles( 时序逻辑设计原理 ) Latches and Flip-Flops (锁存器和触发器 ) Clocked Synchronous State-Machine Analysis (同步时序分析) Clocked Synchronous State-Machine Design (同步时序设计)Digital Logic Design and Application (数字逻辑设计及应用)1Chapter 7 Sequential Logic DesIntroductionCombinational cir
2、cuitOutputs depend solely on the present combination of the circuit inputs valuesDigitalSystemb=0F=0DigitalSystemif b=0, then F=0if b=1, then F=1b=1F=1(a)DigitalSystemb=0F=0DigitalSystemb=1F=1DigitalSystemb=0F=1Cannot determine value ofF solely from presentinput value(b) Vs. sequential circuit: Has
3、“memory” that impacts outputs too2IntroductionCombinational circBasic Concepts (基本概念)Logic Circuits are Classified into Two Types (逻辑电路分为两大类):Combinational Logic Circuit (组合逻辑电路)Sequential Logic Circuit (时序逻辑电路)Digital Logic Design and Application (数字逻辑设计及应用)3Basic Concepts (基本概念)Logic CirBasic Conc
4、epts (基本概念)Combinational Logic Circuit (组合逻辑电路)Outputs Depend Only on its Current Inputs.(任何时刻的输出仅取决与当时的输入)Character of Circuit: No Feedback Circuit, No Memory Device(电路特点:无反馈回路、无记忆元件)Digital Logic Design and Application (数字逻辑设计及应用)4Basic Concepts (基本概念)CombinatiBasic Concepts (基本概念)Sequential Logic
5、 Circuit (时序逻辑电路)Outputs Depend Not Only on its Current Inputs, But also on the Past Sequence of Inputs.(任一时刻的输出不仅取决与当时的输入,还取决于过去的输入序列)Character of Circuit: Have Feedback Circuit, Have Memory Device(电路特点:有反馈回路、有记忆元件)Digital Logic Design and Application (数字逻辑设计及应用)5Basic Concepts (基本概念)SequentiaBasic
6、 Concepts (基本概念)Sequential Logic Circuit (时序逻辑电路)Finite-State Machine: Have Finite States.(有限状态机:有有限个状态。)A Clock Signal is Active High if state changes occur at the clock Rising Edge or when the clock is High, and Active Low in the complementary case.(时钟信号高电平有效是指在时钟信号的上升沿或时钟的高电平期间发生变化。) Digital Logi
7、c Design and Application (数字逻辑设计及应用)6Basic Concepts (基本概念)SequentiaBasic Concepts (基本概念)Sequential Logic Circuit (时序逻辑电路)Clock Period: The Time between Successive transitions in the same direction.(时钟周期:两次连续同向转换之间的时间。)Clock Frequency: The Reciprocal of the Clock Period(时钟频率:时钟周期的倒数。) Digital Logic D
8、esign and Application (数字逻辑设计及应用)Figure 7-17Basic Concepts (基本概念)SequentiaBasic Concepts (基本概念)Sequential Logic Circuit (时序逻辑电路)Clock Tick: The First Edge of Pulse in a clock period or sometimes the period itself.(时钟触发沿:时钟周期内的第一个脉冲边沿,或时钟本身。)Duty Cycle: The Percentage of time that the clock signal is
9、 at its asserted level. (占空比:时钟信号有效时间与时钟周期的百分比。) Digital Logic Design and Application (数字逻辑设计及应用)Figure 7-18Basic Concepts (基本概念)Sequentia思考:能否只用一片1位全加器进行串行加法?C1S0X0 Y0C0X YCI COSX YCI COSX YCI COSC0S0S1SnX0 Y0X1 Y1Xn Yn串行加法器C1C2X YCI COSC2S1X1 Y1C1反馈利用反馈和时钟控制C3S2X2 Y2C2Digital Logic Design and Appl
10、ication (数字逻辑设计及应用)9思考:能否只用一片1位C1S0X0 Y0C0X 暂存X YCI COSCi+1SiXi YiCiX YCI COSX YCI COSX YCI COSC0S0S1SnX0 Y0X1 Y1Xn Yn串行加法器C1C1时钟控制需要具有记忆功能的逻辑单元,能够暂存运算结果。利用反馈和时钟控制Digital Logic Design and Application (数字逻辑设计及应用)10暂存X YCi+1SiXi YiCiX 7.1 Bistable Elements (双稳态元件)QQ_L1100QQ_LIt has Two Stable State: Q
11、 = 1 ( HIGH ) and Q = 0 ( LOW ) (电路有两种稳定状态:Q = 1 ( 1态 ) 和 Q = 0 ( 0态 ) Bistable Circuit(双稳电路)0011Digital Logic Design and Application (数字逻辑设计及应用)117.1 Bistable Elements (双稳态元件)7.1 Bistable Elements (双稳态元件)QQ_L1100QQ_LWhen Power is first Applied to the circuit, it Randomly Comes up in One State or th
12、e Other and Stays there Forever. ( 只要一接电源,电路就随机出现两种状态中的一种,并永久地保持这一状态。)0011Digital Logic Design and Application (数字逻辑设计及应用)127.1 Bistable Elements (双稳态元件)Vin1Vout1Vin2Vout2Vout2Vin2= Vin2= Vout2稳态 stable亚稳态 metastableQQ_LVin1 Vout1Vin2 Vout2Digital Logic Design and Application (数字逻辑设计及应用)13Vin1Vout1V
13、in2Vout2Vout2Vin2= VMetastable Behavior(亚稳态特性)Random Noise will tend to Drive a circuit that is Operating at the Metastable Point toward one of the Stable operating point.( 随机噪声会驱动工作于亚稳态点的电路转移到一个稳态的工作点上去 )QQ_LDigital Logic Design and Application (数字逻辑设计及应用)14Metastable Behavior(亚稳态特性)Ran所有的时序电路对亚稳态都
14、是敏感的Metastable Behavior(亚稳态特性)稳态稳态亚稳态Apply a definite Pulse Width from a Stable state to the Other.(从一个“稳态”转换到另一个“稳态”需加一定宽度的脉冲(足够的驱动))Digital Logic Design and Application (数字逻辑设计及应用)15所有的时序电路对亚稳态都是敏感的Metastable Beh7.2 Latches and Flip-Flops(锁存器与触发器) The Basic Building Blocks of most Sequential Circu
15、its.(大多数时序电路的基本构件)Latches(锁存器)根据输入,直接改变其输出(无使能端)有使能端时,在使能信号的有效电平之内都可根据输入直接改变其输出状态Digital Logic Design and Application (数字逻辑设计及应用)167.2 Latches and Flip-Flops(锁7.2 Latches and Flip-Flops(锁存器与触发器) The Basic Building Blocks of most Sequential Circuits.(大多数时序电路的基本构件)Flip-Flops( F/F,触发器)只在时钟信号的有效边沿改变其输出状
16、态Digital Logic Design and Application (数字逻辑设计及应用)177.2 Latches and Flip-Flops(锁S-R Latch (S-R锁存器)S-R Latch with Enable (具有使能端的S-R锁存器)D Latch (D锁存器)Edge-Triggered D Flip-Flops (边沿触发式D触发器)Edge-Triggered D Flip-Flops with Enable (具有使能端的边沿触发式D触发器)Digital Logic Design and Application (数字逻辑设计及应用)7.2 Latch
17、es and Flip-Flops(锁存器与触发器)18S-R Latch (S-R锁存器)Digital LogiScan Flip-Flops (扫描触发器)Master/Slave Flip-Flops (S-R、J-K) (主从式触发器)Edge-Triggered J-K Flip-Flops (边沿触发式J-K触发器)T Flip-Flop (T触发器)Digital Logic Design and Application (数字逻辑设计及应用)7.2 Latches and Flip-Flops(锁存器与触发器)19Scan Flip-Flops Digital Logic S
18、-R Latches (S-R锁存器)QQLRS(1)S = R = 0电路维持原态工作原理:00QQL或非门 非门 Qn+1 = Qn QLn+1 = QLn新态原态Digital Logic Design and Application (数字逻辑设计及应用)20S-R Latches (S-R锁存器)QQLRS(1)S QQLRS工作原理:10(2)S = 0, R = 1a. 原态:Qn=0,QLn=101新态:Qn+1=0,QLn+1=1b. 原态:Qn=1,QLn=0新态:Qn+1=0,QLn+1=1锁存器清0:Qn+1=0 QLn+1=1即使S,R无效(=0)锁存器仍能锁定0态R
19、eset10(a)QQLRS1001(b)00101Digital Logic Design and Application (数字逻辑设计及应用)S-R Latches (S-R锁存器)21QQLRS工作原理:10(2)S = 0, R = 1a. QQLRS工作原理:01(3)S = 1, R = 0a. 原态:Qn=1,QLn=010新态:Qn+1=1,QLn+1=0b. 原态:Qn=0,QLn=1新态:Qn+1=1,QLn+1=0锁存器置1:Qn+1=1 QLn+1=0即使S,R无效(=0)锁存器仍能锁定1态Set01(a)QQLRS0110(b)00110Digital Logic
20、Design and Application (数字逻辑设计及应用)S-R Latches (S-R锁存器)22QQLRS工作原理:01(3)S = 1, R = 0a. QQLRS工作原理:(3)S = R = 100Qn+1 = QLn+1 = 0当S,R无效(=0)时,11QQN00亚稳态,对噪声敏感状态不确定“禁止”Digital Logic Design and Application (数字逻辑设计及应用)S-R Latches (S-R锁存器)23QQLRS工作原理:(3)S = R = 100Qn+1 =S QR QL(逻辑符号)S QR Q(逻辑符号)QQLRSResetSe
21、t(清0)(置1)0 0 00 0 10 1 00 1 11 0 01 0 11 1 01 1 1S R0100110*0*QnQn+1状态转移真值表0 00 11 01 1S R维持原态0 11 0 0* 0*Q QL(功 能 表)Digital Logic Design and Application (数字逻辑设计及应用)S-R Latches (S-R锁存器)Logic SymbolFunction Table24S Q(逻辑符号)S Q(逻辑符号)状态图00011101 00 01 11 10QnSRQn+1Qn+1 = S + RQnSR = 0特征方程约束条件01S=1,R=0S=0,R=1S=XR=0S=0R=X0 0 00 0 10 1 00 1 11 0 01 0 11 1 01 1 1S R0100110*0*QnQn+1状态转移真值表Digital Logic Design and Application (数字逻辑设计及应用)25状态图000111
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
评论
0/150
提交评论