Fall 2000 Chapter 5 Part 1

Similar documents
Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

Chapter 3 Unit Combinational

EET2411 DIGITAL ELECTRONICS

Registers and Counters

Registers and Counters

Chapter 5 Sequential Circuits

Final Exam review: chapter 4 and 5. Supplement 3 and 4

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

1. Convert the decimal number to binary, octal, and hexadecimal.

1.b. Realize a 5-input NOR function using 2-input NOR gates only.

Switching Circuits & Logic Design, Fall Final Examination (1/13/2012, 3:30pm~5:20pm)

Registers & Counters. Logic and Digital System Design - CS 303 Erkay Savaş Sabanci University

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

Introduction. Serial In - Serial Out Shift Registers (SISO)

problem maximum score 1 28pts 2 10pts 3 10pts 4 15pts 5 14pts 6 12pts 7 11pts total 100pts

Dev Bhoomi Institute Of Technology Department of Electronics and Communication Engineering PRACTICAL INSTRUCTION SHEET

CHAPTER1: Digital Logic Circuits

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

Logic Design. Flip Flops, Registers and Counters

Chapter 5 Synchronous Sequential Logic

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

ELEN Electronique numérique

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

Sequential Logic Circuits

Experiment 8 Introduction to Latches and Flip-Flops and registers

Lecture 12. Amirali Baniasadi

Digital Logic Design I

COE 202: Digital Logic Design Sequential Circuits Part 1. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

DIGITAL SYSTEM DESIGN UNIT I (2 MARKS)

Chapter 5: Synchronous Sequential Logic

Introduction to Sequential Circuits

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

Registers, Register Transfers and Counters Dr. Fethullah Karabiber

Registers and Counters

Logic Design II (17.342) Spring Lecture Outline

MODULE 3. Combinational & Sequential logic

Registers & Counters. BME208 Logic Circuits Yalçın İŞLER

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic

Chapter 3. Boolean Algebra and Digital Logic

211: Computer Architecture Summer 2016

AIM: To study and verify the truth table of logic gates

Computer Organization & Architecture Lecture #5

Registers and Counters

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 151) Pass Marks: 24

Multiplexor (aka MUX) An example, yet VERY useful circuit!

CHAPTER 4: Logic Circuits

The word digital implies information in computers is represented by variables that take a limited number of discrete values.

Flip Flop. S-R Flip Flop. Sequential Circuits. Block diagram. Prepared by:- Anwar Bari

CHAPTER 4 RESULTS & DISCUSSION

Chapter 2. Digital Circuits

Combinational vs Sequential

CHAPTER 4: Logic Circuits

Synchronous Sequential Logic

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

DIGITAL REGISTERS. Serial Input Serial Output. Block Diagram. Operation

Memory elements. Topics. Memory element terminology. Variations in memory elements. Clock terminology. Memory element parameters. clock.

Dr. Shahram Shirani COE2DI4 Midterm Test #2 Nov 19, 2008

Previous Lecture Sequential Circuits. Slide Summary of contents covered in this lecture. (Refer Slide Time: 01:55)

CSC Computer Architecture and Organization

EE292: Fundamentals of ECE

Digital Fundamentals: A Systems Approach

BCN1043. By Dr. Mritha Ramalingam. Faculty of Computer Systems & Software Engineering

Other Flip-Flops. Lecture 27 1

UNIT 1: DIGITAL LOGICAL CIRCUITS What is Digital Computer? OR Explain the block diagram of digital computers.

Course Administration

Counter dan Register

The reduction in the number of flip-flops in a sequential circuit is referred to as the state-reduction problem.

Synchronous Sequential Logic

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

UNIVERSITI TEKNOLOGI MALAYSIA

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

More on Flip-Flops Digital Design and Computer Architecture: ARM Edition 2015 Chapter 3 <98> 98

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY CS 2202 DIGITAL PRINCIPLES AND SYSTEM DESIGN

Chapter 11 Latches and Flip-Flops

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

Synchronous Sequential Logic

Synchronous Sequential Logic

CS/ECE 250: Computer Architecture. Basics of Logic Design: ALU, Storage, Tristate. Benjamin Lee

D Latch (Transparent Latch)

FPGA Implementation of Sequential Logic

Chapter 1: Switching Algebra Chapter 2: Logical Levels, Timing & Delays. Introduction to latches Chapter 9: Binary Arithmetic

Logic Design ( Part 3) Sequential Logic- Finite State Machines (Chapter 3)

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

Serial In/Serial Left/Serial Out Operation

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

Spring 2017 EE 3613: Computer Organization Chapter 5: The Processor: Datapath & Control - 1

Logic Design II (17.342) Spring Lecture Outline

Flip-Flops and Registers

CHAPTER 6 COUNTERS & REGISTERS

Principles of Computer Architecture. Appendix A: Digital Logic

EECS150 - Digital Design Lecture 19 - Finite State Machines Revisited

ECE 341. Lecture # 2

Tribhuvan University Institute of Science and Technology Bachelor of Science in Computer Science and Information Technology

Unit-5 Sequential Circuits - 1

Contents Circuits... 1

VU Mobile Powered by S NO Group

Chapter. Synchronous Sequential Circuits

0 0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1 1 1 Stop bits. 11-bit Serial Data format

Lecture 11: Synchronous Sequential Logic

Transcription:

ECE/CS 352 Digital Systems Fundamentals Fall 2000 Chapter 5 Part 1 Tom Kaminski & Charles R. Kime ECE/CS 352 Digital System Fundamentals T. Kaminski & C. Kime 1 Registers A register is a collection of storage elements with a common clock used primarily to hold binary information Theoretically, a register is sequential logic which can be defined by a state table. We prefer to think of register contents as information stored as a vector of binary values. Generally, registers are used perform simple data storage movement, and processing operations. ECE/CS 352 Digital System Fundamentals Chapter 4 Page 2 1

Example: 2-bit Register How many states are there? How many puts? Outputs? What is the output function? What is the Next State function? Moore or Mealy? State Table: Current State 1 0 What happens with a 4 bit register? D D C C Q Q Next State A1(t+) A0(t+) For I1 I0 = 00 01 10 11 A1 A0 Output (=A1 A0) A1 A0 Y1 Y0 0 0 00 01 10 11 0 0 0 1 00 01 10 11 0 1 1 0 00 01 10 11 1 0 1 1 00 01 10 11 1 1 ECE/CS 352 Digital System Fundamentals Chapter 4 Page 3 Registers: Storage Model Because the sequential Logic model is not useful for whole registers, we dispense with the details and think of registers as data storage elements. How can we "selectively" store data in some registers and leave the others unchanged?! Stop the clock when we don't want change clock gating (Be careful!)! Use a flip flop that can "hold" under some set of logical inputs.! SR, T and JK flip-flops all have "hold" states when inputs are "0".! We can "gate" the inputs with a load control logic signal to get a register that can be controllably loaded. ECE/CS 352 Digital System Fundamentals Chapter 4 Page 4 2

Registers with Clock Gating Load signal is used to enable the clock signal to pass through if 1 and prevent the clock signal from passing through if 0. Example: For Positive Edge Triggering or Neg. Pulse MS Master Clock Load Gated Clock to FF What logic is needed for gating? GC = CLK + LOAD What is the problem? Clock Skew of GC ECE/CS 352 Digital System Fundamentals Chapter 4 Page 5 Registers with Load Control A more reliable way to selectively load a register is to run the clock continuously and use a load control to change selectively change the register contents. Lo ad Example: 2-bit register J Q A1 1 with Load K Control Note: SR FFs would also work here. 0 J K Q A0 ECE/CS 352 Digital System Fundamentals Chapter 4 Page 6 3

Registers with Load Control Another way is to use a 2-input multiplexer in front of a DFF like this: I1 DQ A1 For Load = "1", the outputs are replaced by the current inputs. For Load = "0", data holds. I0 D Q A0 Lo ad ECE/CS 352 Digital System Fundamentals Chapter 4 Page 7 Shift Registers Shift Registers are a special class of registers that can be used to store and manipulate data. the simplest case, the shift register is simply a set of D flip-flops connected in a row like this: DQ A B C Out DQ DQ DQ Data input, "", is called the "serial input", or "shift right input". Data output, "Out", is often called the "serial output". "A","B","C", and "Out" collectively are the "parallel outputs". ECE/CS 352 Digital System Fundamentals Chapter 4 Page 8 4

Shift Registers (Continued) The behavior of the serial shift register is depicted below. The clock pulse "T0" is just before the first pulse occurs. "T1" is after the first pulse and before the second. The states initially unknown are denoted "?". DQ A B C Out DQ DQ DQ A B C Out T0 0???? T1 1 0??? T2 1 1 0?? T3 0 1 1 0? T4 1 0 1 1 0 T5 1 1 0 1 1 T6 1 1 1 0 1 ECE/CS 352 Digital System Fundamentals Chapter 4 Page 9 Parallel Load Shift Registers By adding a mux between each shift register stage, we can "shift", or "load" data. IN LOAD_A D Q LOAD_B A B D Q SHIFT If "SHIFT" is low, "A" and "B" are replaced by the data on "LOAD_A" and "LOAD_B" lines, else data shifts each clock. By tying together more than one of these, we can make longer parallel load shift registers. By tying an n-bit shift register to a control that is low (load = low) only one period out of n, we will "serialize" data. ECE/CS 352 Digital System Fundamentals Chapter 4 Page 10 5

Shift Registers with More Functions By placing a 4-input multiplexer in front of each D flip-flop in a shift register, we can implement a device which: 1. Shifts right 2. Shifts left 3. Holds 4. Parallel loads This device becomes a "universal" shift register that can be used for a number of different things. particular, such a structure is good for tying all state elements together so you can "scan" the current state in or out of a system for test purposes. The shift-left, shift-right and parallel-load inputs give three ways to load data into the registers. ECE/CS 352 Digital System Fundamentals Chapter 4 Page 11 Serial Data Operations By using two shift registers for operands, a full adder, and one more flip flop (for the carry), it is possible to add two numbers serially, starting at the least significant bit. Serial addition is not a bad way to add huge numbers of operands, since a "tree" of adders can be made to any depth, and each new level doubles the number of operands. Other operations can be performed serially as well, such as parity generation/checking or more complex error-check codes. Shifting a binary number left is equivalent to multiplying by 2. Shifting a binary number right is equivalent to dividing by 2. ECE/CS 352 Digital System Fundamentals Chapter 4 Page 12 6

Serial Adder The circuit shown uses two shift registers for operands A(3..0) and B(3..0). A full adder, and one more flip flop (for the carry) is used to compute the sum. The result is stored back in the "B" register along with the final carry. This can be extended to trees of adders, adding a large number of operands. Serial Serial Load/Shift Regis ters B3 B2 B1 B0 Parallel Load A3 A2 A1 A0 Parallel Load (Clock and Load/Shift Control not s hown) A FA B Sum Cin Cout Q D ECE/CS 352 Digital System Fundamentals Chapter 4 Page 13 7