Lecture 4 Sequential units. Registers

Slides:



Advertisements
Similar presentations
Sequential circuits Part 1: flip flops All illustrations  , Jones & Bartlett Publishers LLC, (
Advertisements

Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Circuits require memory to store intermediate data
Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present.
The Map Method Boolean expressions may be simplified by algebraic means as discussed in Previous lecture However, this procedure of minimization is awkward.
CS 300 – Lecture 3 Intro to Computer Architecture / Assembly Language Sequential Circuits.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
Objectives: Given input logice levels, state the output of an RS NAND and RS NOR. Given a clock signal, determine the PGT and NGT. Define “Edge Triggered”
Computer Organization & Programming Chapter 5 Synchronous Components.
Sequential logic circuits
Chapter 10 Flip-Flops and Registers 1. Objectives You should be able to: Explain the internal circuit operation of S-R and gated S-R flip-flops. Explain.
Logic Design / Processor and Control Units Tony Diep.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
Sahar Mosleh PageCalifornia State University San Marcos 1 More on Flip Flop State Table and State Diagram.
Introduction to Sequential Logic Design Finite State-Machine Analysis.
1 Homework Reading –Tokheim Chapter 9.1 – 9.6 Machine Projects –Continue on mp3 Labs –Continue in labs with your assigned section.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
1 Lecture 13: Sequential Circuits, FSM Today’s topics:  Sequential circuits  Finite state machines  Single-cycle CPU Reminder: midterm on Tue 10/20.
Sequential Logic Design
Digital Design - Sequential Logic Design
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
LATCHED, FLIP-FLOPS,AND TIMERS
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
מבנה מחשב תרגול 3.
ANALYSIS OF SEQUENTIAL CIRCUITS
Sequential Logic.
Lecture 8 Dr. Nermi Hamza.
EKT 221 : Digital 2 COUNTERS.
Flip Flops.
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
Dr. Clincy Professor of CS
Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and so on require.
Asynchronous Inputs of a Flip-Flop
Assistant Prof. Fareena Saqib Florida Institute of Technology
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Chapter 11 Sequential Circuits.
Sequential Circuits: Flip-Flops
Latches and Flip-flops
Sequential logic circuits
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.
Digital Design Fundamentals
LECTURE 15 – DIGITAL ELECTRONICS
Jeremy R. Johnson Mon. Apr. 3, 2000
Lecture 13: Sequential Circuits, FSM
Elec 2607 Digital Switching Circuits
How does the CPU work? CPU’s program counter (PC) register has address i of the first instruction Control circuits “fetch” the contents of the location.
Lecture 13: Sequential Circuits, FSM
Instructor: Alexander Stoytchev
Lecture No. 24 Sequential Logic.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Instructor: Alexander Stoytchev
CSE 370 – Winter Sequential Logic - 1
Computer Architecture and Organization: L02: Logic design Review
CSE 370 – Winter Sequential Logic-2 - 1
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Reference: Chapter 5 Sequential Circuits Moris Mano 4th Ediditon
University of Maryland Baltimore County Department of Computer Science and Electrical Engineering   CMPE 212 Laboratory (Discussion 10) Hasib Hasan
FLIP-FLOPS.
Flip-Flops.
Flip Flops Unit-4.
14 Digital Systems.
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Lecture 6 CdM-8 CPU overview
Digital Circuits and Logic
EGR 2131 Unit 12 Synchronous Sequential Circuits
Sequential Digital Circuits
Week 11 Flip flop & Latches.
Lecture 3 Combinational units. Adders
Presentation transcript:

Lecture 4 Sequential units. Registers Computing platforms, semester 2 Novosibirsk State University University of Hertfordshire D. Irtegov, A.Shafarenko 2019

Some terminology Combinational units: pure logical functions. Output depends only on input No side effect (except delay) Can be described by single logical expression Sequential units: have internal state Output depends not only on the inputs Input can have side-effect (changing internal state) Depend on timing Require triggers, latches and memory

Some final words on combinatory circuits

Implementing arbitrary truth table Draw input lines. Also add inverted lines For every row yielding 1, add AND gate and connect it to corresponding input lines (may be to inverted one) Connect outputs of AND gates to OR gate This is called minterm approach (normal disjunctive form) FPGA design tools do this automatically Optimization steps (optional) If table has more rows yielding 1 than 0, build device for inverted table and invert the output Delete unused direct or inverted input lines

Edge detector One of the simplest sequential devices Detects input transition from low to high Generates pulse when transition occurs

Flip-flop Also known as Set-Reset trigger, RS-trigger, RS-latch, etc Detects and remembers change in R and S signals Edge-triggered (like edge detector)

D-trigger Remembers value of D when clock is high When D changes on high clock, we have problem

Master-slave latch Two D-triggers connected sequentially, with inverted clock First trigger latches D on high clock Second trigger latches stable value of (Q) on low clock

MSL timing diagram

Other interesting devices Edge-triggered D-latch http://www.falstad.com/circuit/e-edgedff.html JK-trigger http://www.falstad.com/circuit/e-jkff.html 4-bit ripple counter built on JK-triggers http://www.falstad.com/circuit/e-counter.html 4-bit synchronous counter (simplified carry lookahead) http://www.falstad.com/circuit/e-synccounter.html Decimal (BCD) counter http://www.falstad.com/circuit/e-deccounter.html

D-latch using CMOS PTL Six transistors The D-latch on logic gates used 22 transistors!

Master-slave latch on PTL

Multiported register

Multiport register features Multibit storage (4 bit on previous slide) Controlled latching. Has clock and Enable signals. In CdM-8, most instructions operate on a single register. Other registers must remain unchanged. Multiple three-state outputs In CdM-8, only selected register values are needed on each clock Using three-state outputs, we can attach all registers to a single bus or to several buses

Finite state machine A formal computation model Used in many branches of computing Network protocols Parsers and lexers Event-driven programming Hardware design etc Formally, any digital device (including von Neumann computer) is a Finite State Machine Can be represented as graph of states and transitions Can be directly implemented in hardware

Hardware FSM

One possible next step: microprogramming

Microprogramming Most modern CPU are actually microprogrammed machines Many peripherial computer devices (those which do not have it’s own CPU inside) also are implemented as microprogrammed machines or FSM But we won’t go into this now