Lecture 3 Review on Digital Logic (Part 2)

Similar documents
Overview of Chapter 4

Synchronous Sequential Logic

Sequential Synchronous Circuit Analysis

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 7 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Chapter 4 Part 2 Sequential Circuits

Fundamentals of Digital Design

Lecture 10: Synchronous Sequential Circuits Design

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

Lecture 7: Logic design. Combinational logic circuits

Digital Logic and Design (Course Code: EE222) Lecture 19: Sequential Circuits Contd..

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING EXAMINATION SEMESTER /2017

Lecture 14: State Tables, Diagrams, Latches, and Flip Flop

Finite State Machine. By : Ali Mustafa

Fundamentals of Computer Systems

ELCT201: DIGITAL LOGIC DESIGN

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

ELEC Digital Logic Circuits Fall 2014 Sequential Circuits (Chapter 6) Finite State Machines (Ch. 7-10)

Latches. October 13, 2003 Latches 1

University of Toronto Faculty of Applied Science and Engineering Edward S. Rogers Sr. Department of Electrical and Computer Engineering

Sequential vs. Combinational

Different encodings generate different circuits

14:332:231 DIGITAL LOGIC DESIGN

ALU, Latches and Flip-Flops

CSE140: Components and Design Techniques for Digital Systems. Midterm Information. Instructor: Mohsen Imani. Sources: TSR, Katz, Boriello & Vahid

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 9 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Fundamentals of Computer Systems

CS/COE1541: Introduction to Computer Architecture. Logic Design Review. Sangyeun Cho. Computer Science Department University of Pittsburgh

Chapter 7. Sequential Circuits Registers, Counters, RAM

State and Finite State Machines

Lecture 2 Review on Digital Logic (Part 1)

Sequential Logic Circuits

Topic 8: Sequential Circuits

ELEN Electronique numérique

Clocked Sequential Circuits UNIT 13 ANALYSIS OF CLOCKED SEQUENTIAL CIRCUITS. Analysis of Clocked Sequential Circuits. Signal Tracing and Timing Charts

ALU A functional unit

Adders, subtractors comparators, multipliers and other ALU elements

Digital Design. Sequential Logic

CPE100: Digital Logic Design I

Appendix B. Review of Digital Logic. Baback Izadi Division of Engineering Programs

CPE100: Digital Logic Design I

Chapter 4. Sequential Logic Circuits

Topics. Dynamic CMOS Sequential Design Memory and Control. John A. Chandy Dept. of Electrical and Computer Engineering University of Connecticut

Introduction EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 6: Sequential Logic 3 Registers & Counters 5/9/2010

Memory Elements I. CS31 Pascal Van Hentenryck. CS031 Lecture 6 Page 1

Adders allow computers to add numbers 2-bit ripple-carry adder

CS/COE0447: Computer Organization

Sequential Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

Sample Test Paper - I

S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques

The Design Procedure. Output Equation Determination - Derive output equations from the state table

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering


Logic design? Transistor as a switch. Layered design approach. CS/COE1541: Introduction to Computer Architecture. Logic Design Review.

Chapter 6 Introduction to state machines

Introduction to Computer Engineering. CS/ECE 252, Fall 2012 Prof. Guri Sohi Computer Sciences Department University of Wisconsin Madison

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

Sequential Logic. Handouts: Lecture Slides Spring /27/01. L06 Sequential Logic 1

ELCT201: DIGITAL LOGIC DESIGN

Chapter 5 Synchronous Sequential Logic

EECS150 - Digital Design Lecture 23 - FSMs & Counters

Combinational vs. Sequential. Summary of Combinational Logic. Combinational device/circuit: any circuit built using the basic gates Expressed as

CMPEN 411. Spring Lecture 18: Static Sequential Circuits

Chapter 14 Sequential logic, Latches and Flip-Flops

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

Lecture 8: Sequential Networks and Finite State Machines

PGT104 Digital Electronics. PGT104 Digital Electronics

Synchronous Sequential Circuit Design. Digital Computer Design

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Adders, subtractors comparators, multipliers and other ALU elements

CS/COE0447: Computer Organization

CMSC 313 Lecture 25 Registers Memory Organization DRAM

Decoding A Counter. svbitec.wordpress.com 1

S.E. Sem. III [ETRX] Digital Circuit Design. t phl. Fig.: Input and output voltage waveforms to define propagation delay times.

Logic Design II (17.342) Spring Lecture Outline

Digital Electronics Circuits 2017

Final Exam. ECE 25, Spring 2008 Thursday, June 12, Problem Points Score Total 90

CS61C : Machine Structures

Digital Electronics Sequential Logic

CMPE12 - Notes chapter 1. Digital Logic. (Textbook Chapter 3)

CPE100: Digital Logic Design I

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

Digital Circuits ECS 371

( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function

CS61C : Machine Structures

CMSC 313 Lecture 18 Midterm Exam returned Assign Homework 3 Circuits for Addition Digital Logic Components Programmable Logic Arrays

! Charge Leakage/Charge Sharing. " Domino Logic Design Considerations. ! Logic Comparisons. ! Memory. " Classification. " ROM Memories.

Vidyalankar S.E. Sem. III [ETRX] Digital Circuits and Design Prelim Question Paper Solution

Topic 8: Sequential Circuits. Bistable Devices. S-R Latches. Consider the following element. Readings : Patterson & Hennesy, Appendix B.4 - B.

Introduction to Digital Logic

EECS Components and Design Techniques for Digital Systems. FSMs 9/11/2007

CS470: Computer Architecture. AMD Quad Core

Time Allowed 3:00 hrs. April, pages

Digital Electronics. Part A

Homework #4. CSE 140 Summer Session Instructor: Mohsen Imani. Only a subset of questions will be graded

Chapter 7 Sequential Logic

Digital Control of Electric Drives

Synchronous Sequential Logic Part I. BME208 Logic Circuits Yalçın İŞLER

Transcription:

Lecture 3 Review on Digital Logic (Part 2) Xuan Silvia Zhang Washington University in St. Louis http://classes.engineering.wustl.edu/ese461/

ircuit Optimization Simplest implementation ost criterion literal cost (L) gate input cost (G) gate input cost with NOTs (GN) Examples (all the same function): F = BD + AB + A D L = F = BD + AB + AB D + AB L = F = (A + B)(A + D)(B + + D )( B + + D) L = Which solution is best? 2

Half Adder Truth Table Expression S = X Y = X Y X Y S 0 0 0 0 0 1 0 1 1 0 0 1 1 1 1 0 Logic Implementation X Y S 3

4 Full Adder Expression S i = A i B i i or i+1 =A i B i + (A i B i ) i o = AB + (A B) i G i A i B i Alternatively G = generate (=AB) and P = propagate (=A B) P i i i+1 S i+1 = G i + P i i i or o = (G = Generate) OR (P =Propagate AND i = arry In)

Propagation Delay 5

Delay of a Full Adder Delay of the Sum and arry bit S 0 = A 0 B 0 0 2 delays 2+2=4 delays G i A i B i 1 =A 0 B 0 + (A 0 B 0 ) 0 @2 @3 2+2=4 delays P i i n? S n? i+1 S i 6

7 Ripple arry Adder B i A i ascade four 1-bit full adders i+1 FA i S i @0 @0 @8 @6 @4 @10 @10 @8 @6 @4

8 arry Lookahead Adder Separate circuit to calculate the carry

Revisit Number Representation Represent real numbers in hardware accuracy implementation complexity robustness to errors Fixed-point e.g. (11.0101) 2 2 s complement fractional binary number 9

Fractional Binary Numbers 16-bit DSP digital signal processor (DSP) 1.15 (15) format Two 15 number multiply = 30 (2.30 format) 10

Fixed Point Multiplication Two 15 number multiply 15 15 = 30 2.30 format, 32 bits, two sign bits MSB: extended sign bit need to truncate back to 1.15 format left shift by one bit, storing upper 16 bits right shift by 15 bits, storing lower 16 bits Dynamic range in a b-bit system 11

12 Outline Arithmetic Logic Sequential Logic Memory ircuit

Sequential Logic Next state function Next State = f(inputs, State) Output function Inputs ombinational Logic Next State Storage Elements Outputs urrent State LOK Synchronous machine 13

Finite State Machine (FSM) Mathematical model of computation consist of a finite number of states only one state at a time (urrent State) change state at a trigging event or condition Mealy machine Outputs = g(inputs, State) Moore machine Outputs = h(state) 14

SR Latch Basic NOR latch R (reset) S (set) S R 0 0 0 set 1 reset t pd No change not allowed unstable 15

Other SR Latches locked S lk R 1 2 NAND SR latch S (set) S S R (reset) R R 16

D Latch Truth table SR latch: S R + + 0 0 hold, 0 1 0 1 1 0 1 0 1 1 0 0 D D latch D (t+1) 0 0 1 1 D 17

18 Flip-Flop Latch timing issue transparent when = 1 state should change only once every new clock cycle Inputs Outputs ombinational X 0 X 1 Logic X 1 X 2 X 3 D Latch X 0 X 1 X 2 Next State (storage) State =0 1 Master-slave flip flop break feedthrough S R S R /Y Y S R

Flip-Flop Timing Issue S 1 catching Glitch R Y Master out Slave out Master active S R Slave active S R Y Y S R 1 catching wrong output should have been 0 19

Edge-Triggered D Flip-Flop (DFF) Why edge trigger? D replace S and R input D D Y S R D Y Master out Slave out Master active Slave active no 1 catching correct output 20

Sequential ircuit Analysis Design steps word description state diagram state table select flip-flop types input x D A input to FF and output verification Reverse engineering A states D B LK ' y output 21

Input Equations To flip-flops D A = A(t)x(t)+B(t)x(t) D B = A(t)x(t) input Output y x D A y(t) = x(t)(b(t) + A(t)) A states D B LK ' y output 22

2 3 rows (2 m+n ) rows 23 State Table For the example: A(t+1) = A(t)x(t) + B(t)x(t) B(t+1) = A (t)x(t) y(t) = x (t)(b(t) + A(t)) Inputs of the table Outputs of the table m: no. of FF n: no. of inputs Present State Input Next State Output A(t) B(t) x(t) A(t+1) B(t+1) y(t) 0 0 0 0 0 0 0 0 1 0 1 0 0 1 0 0 0 1 0 1 1 1 1 0 1 0 0 0 0 1 1 0 1 1 0 0 1 1 0 0 0 1 1 1 1 1 0 0

State Diagram onventions Moore Machine in to next state Mealy Machine in/out State out State Example: x 1 x=1/y=0 x/y AB y 01 1 01 01 Moore type output depends only on state Mealy type output depends on state and input 24

25 Outline Arithmetic Logic Sequential Logic Memory ircuit

Static RAM Applications PU register file, cache, embedded memory, DSP haracteristics 6 transistor per cell, other topologies no need to refresh access time ~ cycle time no charge to leak faster, more area, more expensive 26

SRAM Operation Standby word line de-asserted Read precharge bit lines assert WL BL rise/drop slightly Write apply value to BL assert WL input drivers stronger 27

28 Summary Number Representation Boolean Logic and Gates ombinational Logic Arithmetic Logic Sequential Logic Memory ircuit

29 uestions? omments? Discussion?

Homework #2 Download problem sets from class website Due 09/12 (Monday) in class 2-day grace period 30