CHAPTER 6 Sequential Circuits’ Analysis CHAPTER 6 Sequential Circuits’ Analysis Sichuan University Software College.

Slides:



Advertisements
Similar presentations
State-machine structure (Mealy)
Advertisements

Registers and Counters
CENG 241 Digital Design 1 Lecture 11
Sequential Circuits A Basic sequential circuit is nothing but a combinational circuit with some feedback paths between its output and input terminals.
CS 151 Digital Systems Design Lecture 21 Analyzing Sequential Circuits.
ECE 331 – Digital System Design Introduction to and Analysis of Sequential Logic Circuits (Lecture #20) The slides included herein were taken from the.
Sequential Circuits and Finite State Machines Prof. Sin-Min Lee
Registers and Counters
Logic and Computer Design Fundamentals Registers and Counters
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
ECE 301 – Digital Electronics Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #17)
ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)
ENGIN112 L26: Shift Registers November 3, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 26 Shift Registers.
Sequential Circuit Introduction to Counter
C HAPTER S IX R EGISTERS AND C OUNTERS 1. A clocked sequential circuit consists of a group of flip-flops and combinational gates connected to form a feedback.
KU College of Engineering Elec 204: Digital Systems Design
A.Abhari CPS2131 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers:
REGISTER A Register is a group of binary storage cells suitable for holding binary information. A group of flip-flops constitutes a register, since each.
Mantıksal Tasarım – BBM231 M. Önder Efe
Registers and Counters
Registers and Counters
Chapter 1_4 Part II Counters
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
CHAPTER 12 REGISTERS AND COUNTERS
Registers & Counters M. Önder Efe
Registers CPE 49 RMUTI KOTAT.
1 Registers and Counters A register consists of a group of flip-flops and gates that affect their transition. An n-bit register consists of n-bit flip-flops.
Registers and Counters
Rabie A. Ramadan Lecture 3
EKT 221/4 DIGITAL ELECTRONICS II  Registers, Micro-operations and Implementations - Part3.
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
Counters Dr. Rebhi S. Baraka Logic Design (CSCI 2301) Department of Computer Science Faculty of Information Technology The Islamic University.
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
1 Lecture 22 Sequential Circuits Analysis. 2 Combinational vs. Sequential  Combinational Logic Circuit  Output is a function only of the present inputs.
Digital Design Lectures 11 & 12 Shift Registers and Counters.
Important Components, Blocks and Methodologies. To remember 1.EXORS 2.Counters and Generalized Counters 3.State Machines (Moore, Mealy, Rabin-Scott) 4.Controllers.
7-6 단일 레지스터에서 Microoperation Multiplexer-Based Transfer  Register 가 서로 다른 시간에 둘 이상의 source 에서 data 를 받을 경우 If (K1=1) then (R0 ←R1) else if (K2=1) then.
1 Registers & Counters Logic and Digital System Design - CS 303 Erkay Savaş Sabancı University.
ENG241 Digital Design Week #8 Registers and Counters.
Registers and Counters Chapter 6. Digital Circuits 2 Clocked sequential circuits a group of flip-flops and combinational gates connected to form a feedback.
Chap 5. Registers and Counters. Chap Definition of Register and Counter l a clocked sequential circuit o consist of a group of flip-flops & combinational.
REGISTER A register is a group of flip-flops. Each flip- flop is capable of storing one bit of informa­ tion. An n-bit register consists of a group of.
Registers Page 1. Page 2 What is a Register?  A Register is a collection of flip-flops with some common function or characteristic  Control signals.
Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –
Registers and Counters
C HAPTER S IX R EGISTERS AND C OUNTERS 1. A clocked sequential circuit consists of a group of flip-flops and combinational gates connected to form a feedback.
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
Chap 5. Registers and Counters
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
Modular sequential logic Use latches, flip-flops and combinational logic –Flip-flops usually grouped to form a register Shift registers –n bits {x n …x.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
Logic Design (CE1111 ) Lecture 6 (Chapter 6) Registers &Counters Prepared by Dr. Lamiaa Elshenawy 1.
1 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers: parallel and.
Chapter 35 Sequential Logic Circuits. Objectives After completing this chapter, you will be able to: –Describe the function of a flip-flop –Identify the.
Registers and Counters
EKT 221 – Counters.
EKT 221 : Digital 2 COUNTERS.
FIGURE 5.1 Block diagram of sequential circuit
Asynchronous Inputs of a Flip-Flop
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
29-Nov-18 Counters Chapter 5 (Sections ).
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
Outline Registers Counters 5/11/2019.
Reference Chapter 7 Moris Mano 4th Edition
Presentation transcript:

CHAPTER 6 Sequential Circuits’ Analysis CHAPTER 6 Sequential Circuits’ Analysis Sichuan University Software College

Synchronous Sequential Circuit Analysis Analysis Pinciples Analysis Pinciples  1. Determine the system variables: input, state, and output.  2. Determine the flip-flop type. Write the characteristic equations.  3. write the excitation equations.  4. write the next state equations.  5. Write the output variable equations.  6. Construct a transition table.  7. Assign symbols to the states and construct a table or state diagram.  8. When possible, construct a timing diagram.  9. Functionality analysis

Analysis Examples E.g.1: Analysis the following synchronous sequential circuit, suppose the present state is 00, the input sequence is , give the timing diagram. E.g.1: Analysis the following synchronous sequential circuit, suppose the present state is 00, the input sequence is , give the timing diagram.

 1. Determine the system variables: input, state, and output. input=xoutput=Z state variables=y 1 and y 0  2. Determine the flip-flop type. Write the characteristic equations. y n+1 =Jy n ’+k’y n  3. write the excitation equations. K 0 =J 0 =1 K 1 =J 1 =x ⊕ y 0 Analysis Examples

 4. write the next state equations. y 1 n+1 =J 1 y 1 ’+k’y 1 y 1 n+1 =x’y 1 ’y 0 +x’y 1 y 0 ’+xy 1 ’y 0 ’+xy 1 y 0 y 0 n+1 =J 0 y 0 ’+k 0 ’y 0 y 0 n+1 =y 0 ’  5. Write the output variable equations. Z=(xy 1 ’)’=x’+y 1  6. Construct a transition table. Analysis Examples

Y 1 n+1 K-MapZ K-MapY 0 n+1 K-Map transition table y 1 n+1 = x’y 1 ’y 0 +x’y 1 y 0 ’ +xy 1 ’y 0 ’+xy 1 y 0 y 0 n+1 =y 0 ’ Z=(xy 1 ’)’=x’+y 1 注: 02 = = 10 注: 表中应为 Y1 Y0

 7. Assign symbols to the states and construct a table or state diagram. Analysis Examples

 8. construct a timing diagram. Analysis Examples

E.g.2: Analysis the following circuit E.g.2: Analysis the following circuit &

 1. Determine the system variables: input, state, and output. state variables: Q 1,Q 2,Q 3, and Q 4  2. Determine the flip-flop type. Write the characteristic equations. Q n+1 =D  3. excitation equations. D 4 =Q 3 D 3 =Q 2 D 2 =Q 1 D 1 =Q 4 ’(Q 3 Q 1 ’)’=Q 4 ’Q 3 ’+Q 4 ’Q 1 Analysis Examples

 4. the next state equations. Q 4 n+1 =Q 3 Q 3 n+1 =Q 2 Q 2 n+1 =Q 1 Q 1 n+1 =Q 4 ’Q 3 ’+Q 4 ’Q 1 Analysis Examples

 5. Construct a transition table. Analysis Examples

 6. Assign symbols to the states and construct a table or state diagram.

Analysis Examples E.g.3: Find the transition table and the state table for the Mealy sequential circuit below. E.g.3: Find the transition table and the state table for the Mealy sequential circuit below. Z

 1. Determine the system variables: input, state, and output. input: x 1,x 2 output: Z state variable: D a, D b,D c  2. Determine the flip-flop type. Write the characteristic equations. Q n+1 =D  3. Excitation equations and output equations. D a =Q a ⊕ X 2 D b =Q b ⊕ X 1 D c =X 1 X 2 Q c ’Q a Z=X 1 X 2 Q c ’Q a Analysis Examples

 4. write the next state equations. Q a n+1 =Q a X 2 ’+Q a ’X 2 Q b n+1 =Q b X 1 ’+Q b ’X 1 Q c n+1 =X 1 X 2 Q c ’Q a  5. Construct a transition table.

Analysis Examples  6. Assign symbols to the states and construct a state table

6.4 Construction of State Diagrams Up-Down Decade Counter Up-Down Decade Counter Sequence Detectors Sequence Detectors  Page 263, example6.4  Page266, example6.6

Registers and Counters A n-bit register is a set of n flip-flops that is capable of storing n bits of binary information. A n-bit register is a set of n flip-flops that is capable of storing n bits of binary information. With added combinational gates, the register can perform data-processing tasks. With added combinational gates, the register can perform data-processing tasks. A counter is a register that goes through a predetermined sequence of states upon the application of clock pulses. A counter is a register that goes through a predetermined sequence of states upon the application of clock pulses.

Register Overview Parallel Load Register Parallel Load Register Shift Registers Shift Registers  Serial Load  Serial Addition Shift Register with Parallel Load Shift Register with Parallel Load Bidirectional Shift Register Bidirectional Shift Register

Registers Example (next slide) generic 4-bit register. Example (next slide) generic 4-bit register. The common Clock input triggers all flip-flops on the rising edge of each pulse, and the binary data available at the four D inputs are transferred into the 4-bit register. The common Clock input triggers all flip-flops on the rising edge of each pulse, and the binary data available at the four D inputs are transferred into the 4-bit register.

Registers with parallel load Next page shows a 4-bit register with a control input Load that is directed through gates into the D inputs of the flip-flops. Next page shows a 4-bit register with a control input Load that is directed through gates into the D inputs of the flip-flops. When Load is 1, the data on the four inputs is transferred into the register with the next positive transition of a clock pulse. When Load is 1, the data on the four inputs is transferred into the register with the next positive transition of a clock pulse. When Load is 0, the data inputs are blocked, and the D inputs of the flip-flops are connected to their outputs. When Load is 0, the data inputs are blocked, and the D inputs of the flip-flops are connected to their outputs.

Shift registers A register capable of shifting its stored bits laterally in one or both directions is called a shift register. A register capable of shifting its stored bits laterally in one or both directions is called a shift register. The logical configuration of a shift register consists of a chain of flip-flops in cascade, with the output of one flip-flop connected to the input of the next FF. The logical configuration of a shift register consists of a chain of flip-flops in cascade, with the output of one flip-flop connected to the input of the next FF.

Shift Register Q0Q0 Q1Q1 Q2Q2 Q3Q3 0123

Shift registers (cont.) Shift registers (cont.) The next figure shows how the serial transfer of information from register A to register B can be done. One clock cycle per bit of data is required. The next figure shows how the serial transfer of information from register A to register B can be done. One clock cycle per bit of data is required.

Serial addition using shift registers The two binary numbers to be added serially are stored in two shift registers. The two binary numbers to be added serially are stored in two shift registers. Bits are added one pair at a time through a single full-adder circuit. Bits are added one pair at a time through a single full-adder circuit. The carry out of the full adder is transferred into a D flip-flop. The output of the carry FF is then used as the carry input for the next pair of bits. The carry out of the full adder is transferred into a D flip-flop. The output of the carry FF is then used as the carry input for the next pair of bits. The sum bit on the S output of the full adder is transferred into the result register A. The sum bit on the S output of the full adder is transferred into the result register A.

Serial vs. parallel addition The parallel adder is a combinational circuit, whereas the serial adder is a sequential circuit. The parallel adder is a combinational circuit, whereas the serial adder is a sequential circuit. The parallel adder has n full adders for n-bit operands, whereas the serial adder requires only one full adder. The parallel adder has n full adders for n-bit operands, whereas the serial adder requires only one full adder. The serial circuit takes n clock cycles to complete an addition. The serial circuit takes n clock cycles to complete an addition. In summary, the parallel adder in space is n times larger than the serial adder, but it is n times faster. In summary, the parallel adder in space is n times larger than the serial adder, but it is n times faster. The serial adder, although it is n times slower, is n times smaller in space.(It ’ s a trade-off!) The serial adder, although it is n times slower, is n times smaller in space.(It ’ s a trade-off!)

Shift register with parallel load ShiftLoadOperation00Nothing 01 Load parallel 1XShift

Bidirectional Shift Register S1S0S1S0S1S0S1S0Action00Nothing 01 Shift down 10 Shift up 11 Parallel load

homework P282: 3-c, 4, 5-(2), 6 P282: 3-c, 4, 5-(2), 6 P282: 11 P282: 11 P284: 13, to realize the state machine using C program. P284: 13, to realize the state machine using C program.