Instructor: Yuzhuang Hu State-Machine Diagrams contd. (Chapter 5, Section 5-7) Use boolean expressions to simplify the diagram. S0S0 S1S1.

Slides:



Advertisements
Similar presentations
Computer Architecture CS 215
Advertisements

Princess Sumaya University
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 7 – Registers.
Circuits require memory to store intermediate data
Instructor: Yuzhuang Hu Course Website The first lab is ready. The first assignment will be released.
Charles Kime © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 7 – Registers and Register Transfers Part 3 – Control of.
Instructor: Yuzhuang Hu The Shifter 3 clock cycles will be needed if using a bidirectional shift register with parallel load.  A clock.
The Control Unit: Sequencing the Processor Control Unit: –provides control signals that activate the various microoperations in the datapath the select.
Chapter 7. Register Transfer and Computer Operations
Give qualifications of instructors: DAP
Logic and Computer Design Fundamentals Registers and Counters
CPEN Digital System Design Chapter 9 – Computer Design
FINITE STATE MACHINES (FSMs) Dr. Konstantinos Tatas.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 20 Datapath and Control Datapath - performs data transfer and processing operations.
Chapter 7 – Registers and Register Transfers Part 1 – Registers, Microoperations and Implementations Logic and Computer Design Fundamentals.
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:
Registers and Counters
Chapter 1_4 Part II Counters
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Registers & Register Transfers Digital Logic Design Instructor: Kasım Sinan YILDIRIM.
Micro-operations Are the functional, or atomic, operations of a processor. A single micro-operation generally involves a transfer between registers, transfer.
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
Chap 4. Sequential Circuits
Instructor: Yuzhuang Hu Another Design Example: PIG (Chapter 7-10) PIG is a single dice game. Two players roll the dice in turns. When.
Computer Design Basics
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 7 – Registers and Register Transfers Part.
Digital Design Lectures 11 & 12 Shift Registers and Counters.
EKT221 ELECTRONICS DIGITAL II CHAPTER 4: Computer Design Basics
Chap 7. Register Transfers and Datapaths. 7.1 Datapaths and Operations Two types of modules of digital systems –Datapath perform data-processing operations.
Chapter 4 Computer Design Basics. Chapter Overview Part 1 – Datapaths  Introduction  Datapath Example  Arithmetic Logic Unit (ALU)  Shifter  Datapath.
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.
Chapter 1_4 Part III more on … Counters Chapter 1_4 Part III more on … Counters.
REGISTER TRANSFER & MICROOPERATIONS By Sohaib. Digital System Overview  Each module is built from digital components  Registers  Decoders  Arithmetic.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 7 – Registers and Register Transfers Part.
DLD Lecture 26 Finite State Machine Design Procedure.
Digital Logic Design.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
DIGITAL 2 : EKT 221 RTL : Microoperations on a Single Register
EKT 221 : Chapter 4 Computer Design Basics
CHAPTER 6 Sequential Circuits’ Analysis CHAPTER 6 Sequential Circuits’ Analysis Sichuan University Software College.
Register Transfer Languages (RTL)
Chap 5. Registers and Counters
DIGITAL COMPONENTS. MULTIPLEXERS A multiplexer is a combinational circuit that receives binary information from one of 2 n input data lines and directs.
REGISTER TRANSFER & MICROOPERATIONS By Sohaib. Digital System Overview  Each module is built from digital components  Registers  Decoders  Arithmetic.
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.
Registers and Counters
6.
Chap 7. Register Transfers and Datapaths
EKT 221 : Digital 2 COUNTERS.
KU College of Engineering Elec 204: Digital Systems Design
Chapter 7 – Registers and Register Transfers
DIGITAL 2 : EKT 221 RTL : Microoperations on a Single Register
Register Transfer and Microoperations
REGISTER TRANSFER LANGUAGE AND DESIGN OF CONTROL UNIT
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 ).
CSE 370 – Winter Sequential Logic-2 - 1
Overview Part 1 - Registers, Microoperations and Implementations
Overview Part 1 - Registers, Microoperations and Implementations
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
Presentation transcript:

Instructor: Yuzhuang Hu

State-Machine Diagrams contd. (Chapter 5, Section 5-7) Use boolean expressions to simplify the diagram. S0S0 S1S1 S2S2 S3S3 Reset AB A (A+B)/Z A B/Y Z A B Y,Z A B/Y (A+B)/Y Inputs: A, B Outputs: Y, Z Defaults: Y=0,Z=0

Input Conditions in State-Machine Diagrams Input condition: boolean expression or equation in terms of input variables.  Transition condition (TC): an input condition on a transition arc, and causes a state transition to occur.  Unconditional transition: always occurs on the next clock. It can be thought of as having an implicit transition condition equal to 1.

Output Conditions in State- Machine Diagrams Output condition (OC): an input condition that, if equal to 1, causes an output action to occur.  Moore output actions: unconditional for each state.  Transition-condition independent (TCI) Mealy output actions: depend on only states.  Transition-condition dependent (TCD) Mealy output actions: depend on both the state and a transition condition.  Transition and output condition dependent (TOCD) output actions: depend on the state, a transition condition, and an output condition. There is a slash between such an output action with its associated output condition.

Constraints on Input Conditions The transition conditions from a given state S i must be mutually exclusive. An invalid example: The transition conditions from a given state must cover all possible combinations of input values. S Y,Z AB B A Inputs: A, B Outputs: Y, Z Defaults: Y=0,Z=0

Constraints on Output Conditions For every output action in state S i or on its transitions having coincident output variables with differing values, the corresponding pair of output conditions must be mutually exclusive. An invalid example: For every output variable, the output conditions for state S i or its transitions must cover all possible combinations of input values that can occur. S Y,Z AB A Inputs: A, B Outputs: Y, Z Defaults: Y=0,Z=0 Z

State-Machine Design of a Sliding Door Control

Sliding Door Control contd. What states should we consider?

State-Machine Diagram for the Automatic Sliding Door Defaults: BT=0, CD=0, OD=0 Closed Open Opened Close LK, PA·PP·MO LK·CL/CD BT PA·PP·MO PA+PP+MO+DR CD CL·PA·PP·MO·DR PA+PP+MO OL/OD OL OD OL Reset LK· (PA+PP+MO)

Modified State Table for the Automatic Sliding Door

State Equations for the Automatic Sliding Door PA + PP + MO appears frequently as factors in other transition conditions. X = PA+PP+MO Y 1 (t+1)=Y 1 ·Y 2 ·OL+Y 1 · Y 2 +Y 1 ·Y 2 ·CL ·X·DR Y 2 (t+1)=Y 1 ·Y 2 ·LK·X+Y 1 · Y 2 +Y 1 ·Y 2 ·X+Y 1 ·Y 2 ·(X+DR)

Registers and Register Transfers (Chapter 7) A register consists of a set of flip-flops, together with gates that implement their state transitions. A counter is a register that goes through a predetermined sequence of states upon the application of clock pulses.

The Simplest Register Consists of only flip-flops without external gates. D >C R D R Q0Q0 Q1Q1 D0D0 D1D1 Clock Clear

Register with Parallel Load Connect Load to C-input or D-input? Be careful of the clock skew. D >C R D R Q0Q0 Q1Q1 D0D0 D1D1 Clock Clear Load Clock C inputs

Register with Parallel Load contd. Direct Load through gates into the D inputs. D EN D >C Q0Q0 Q1Q1 D0D0 D1D1 Load Clock >C D Clock Q END >C

Digital System Design In most digital system designs, we partition the system into two types of modules: a datapath, and a control unit. Control Unit Data Path Control inputs Data outputs Control outputs Data inputs Control Signals Status Signals

Register Transfer Operations The registers are assumed to be basic components of the digital system. The movement of the data stored in registers and the processing performed on the data are referred to as register transfer operations. They are specified by the following three basic components.  The set of registers in the system.  The operations that are performed on the data stored in the registers, and  The control that supervises the sequence of operations in the system.

Register Transfer Operations contd. Representations of Registers: R (a) Register R (b) Bits of a register R2 (c) A 16-bit Register PC(H) PC(L) (b) Bits of a register

Basic Symbols for Register Transfers

An Register Transfer Example Transfer from R1 to R2 when K1 = 1. R1R2 Load Clock K1 n

Microoperations Transfer microoperations, which transfer binary data from one register to another. Arithmetic microoperations, which perform arithmetic on data in registers. Logic microoperations, which perform bit manipulation on data in registers. Shift microoperations, which shift data in registers.

Shift Registers A register capable of shifting its stored bits laterally in one or both directions is called a shift register. D >C D D D Serial input SI Serial output SO Clock

Ripple Counter The flip-flop is positive edge triggered. D >C R D R D R D R D R D R D R D R Clock Reset

Multiplexer and Bus-based Transfers for Multiple Registers R0 R1 R2 3-to-1 MUX select bus 2 R0 R1 R2 EN Enable Multiplexer BusThree-state Bus

Control of Register Transfers Programmable system: a portion of the input to the processor consists of a sequence of instructions. Each instruction specifies the operation that the system is to perform, which operands to use, where to place the results of the operation, and in some cases, which instruction to execute next. Non-programmable system: the control unit determines the operations to be performed and the sequence of those operations, based on its inputs and the status bits from the datapath.

Register-Transfer System Design Procedure Write a detailed system specification. Define all external data and control input signals, all external data, control and status output signals, and the registers of the datapath and control unit. Find a state machine diagram for the system including the register transfers in the datapath and in the control unit.

Register-Transfer System Design Procedure contd. Define internal control and status signals. Draw a block diagram of the datapath, and a block diagram of the control unit if it includes register transfer hardware. Design any specialized register transfer logic in both the control and datapath. Design the control unit logic. Verify the design.

An Example: DashWatch The DashWatch is a very inexpensive stopwatch. It has a 4- digit BCD counter called TM, and a 16-bit parallel load register SD. START STOP CSS RESET Display Time

Inputs, Outputs, and Registers of the DashWatch

State-Machine Diagram for the DashWatch S1 S2 S3 S4 S5 S7S6 SD<-(9999) BCD TM<-(0000) BCD TM<-(TM+1) BCD, DIS=TM DIS=TM SD<-TM RESET START STOP CSS·START START STOP CSS TM<SD TM>=SD START CSS·START START DIS=SD

Datapath Output Actions and Status Generation

Datapath Block Diagram SRST TM A<B Comparator A<B Comparator Storage Register LOAD RESET D1D0 16-Bit 2-to-1 MUX DP 4-Digit LCD Display Segment Converter 4-Digit BCD-to-7 D1D0 16-Bit 2-to-1 MUX ENTM RSTM ALTB LSR RESET UPDATE SD S DS DIS 4-Digit BCD Counter C0 D

Control State-Machine Diagram S1 S2 S3 S4 S5 S7S6 LSR RSTM ENTM UPDATE, LSR RESET START STOP CSS·START START STOP CSS ALTB START CSS·START START DS Defaults: All outputs = 0

Thanks!