Computer Organization & Architecture Lecture #5

Similar documents
Logic Design II (17.342) Spring Lecture Outline

Counter dan Register

ASYNCHRONOUS COUNTER CIRCUITS

Digital Logic Design ENEE x. Lecture 19

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

Asynchronous (Ripple) Counters

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

Registers and Counters

Lecture 12. Amirali Baniasadi

ECE 172 Digital Systems. Chapter 2.2 Review: Ring Counter, Johnson Counter. Herbert G. Mayer, PSU Status 7/14/2018

Universal Asynchronous Receiver- Transmitter (UART)

Registers and Counters

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

Counters

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

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

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

Experiment 8 Introduction to Latches and Flip-Flops and registers

Digital Fundamentals: A Systems Approach

CSE 352 Laboratory Assignment 3

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

ECE 331 Digital System Design

ECE 301 Digital Electronics

Serial In/Serial Left/Serial Out Operation

# "$ $ # %!"$!# &!'$("!)!"! $ # *!"! $ '!!$ #!!)! $ "# ' "

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

ELE2120 Digital Circuits and Systems. Tutorial Note 8

Logic Design. Flip Flops, Registers and Counters

CHAPTER1: Digital Logic Circuits

Part 4: Introduction to Sequential Logic. Basic Sequential structure. Positive-edge-triggered D flip-flop. Flip-flops classified by inputs

CHAPTER 4: Logic Circuits

Digital Design Datapath Components: Parallel Load Register

CHAPTER 4: Logic Circuits

Sri Vidya College of Engineering And Technology. Virudhunagar Department of Electrical and Electronics Engineering

CSC Computer Architecture and Organization

CprE 281: Digital Logic

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

Sequential Logic. Analysis and Synthesis. Joseph Cavahagh Santa Clara University. r & Francis. TaylonSi Francis Group. , Boca.Raton London New York \

LSN 12 Shift Registers

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

UNIT IV. Sequential circuit

Slide 1. Flip-Flops. Cross-NOR SR flip-flop S R Q Q. hold reset set not used. Cross-NAND SR flip-flop S R Q Q. not used reset set hold 1 Q.

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

COSC 243. Sequential Logic. COSC 243 (Computer Architecture) Lecture 5 - Sequential Logic 1

Sequential logic. Circuits with feedback. How to control feedback? Sequential circuits. Timing methodologies. Basic registers

Chapter 4. Logic Design

Unit 11. Latches and Flip-Flops

D Latch (Transparent Latch)

3/5/2017. A Register Stores a Set of Bits. ECE 120: Introduction to Computing. Add an Input to Control Changing a Register s Bits

EE292: Fundamentals of ECE

Lab #10 Hexadecimal-to-Seven-Segment Decoder, 4-bit Adder-Subtractor and Shift Register. Fall 2017

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

Lecture 8: Sequential Logic

Registers and Counters

COMP sequential logic 1 Jan. 25, 2016

Flip-Flops and Registers

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

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

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

CPSC 121: Models of Computation Lab #5: Flip-Flops and Frequency Division

Logic Design II (17.342) Spring Lecture Outline

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

INC 253 Digital and electronics laboratory I

Computer Systems Architecture

Unit-5 Sequential Circuits - 1

Sequential Circuits: Latches & Flip-Flops

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

Vignana Bharathi Institute of Technology UNIT 4 DLD

MC9211 Computer Organization

Chapter 6 Registers and Counters

CHAPTER 11 LATCHES AND FLIP-FLOPS

Review of digital electronics. Storage units Sequential circuits Counters Shifters

cascading flip-flops for proper operation clock skew Hardware description languages and sequential logic

Sequential Logic Counters and Registers

COMP2611: Computer Organization. Introduction to Digital Logic

Chapter Contents. Appendix A: Digital Logic. Some Definitions

EKT 121/4 ELEKTRONIK DIGIT 1

Sequential logic circuits

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

LATCHES & FLIP-FLOP. Chapter 7

MODULE 3. Combinational & Sequential logic

CPSC 121: Models of Computation Lab #5: Flip-Flops and Frequency Division

1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

Logic Design Viva Question Bank Compiled By Channveer Patil

CS 151 Final. Instructions: Student ID. (Last Name) (First Name) Signature

We are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors

ECEN689: Special Topics in High-Speed Links Circuits and Systems Spring 2011

ECE 341. Lecture # 2

ELEN Electronique numérique

DIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

Sequential Logic Basics

Registers and Counters

Operating Manual Ver.1.1

CHAPTER 6 COUNTERS & REGISTERS

(Refer Slide Time: 2:03)

Chapter 3 Unit Combinational

A Combined Combinational-Sequential System

EET 1131 Lab #12 - Page 1 Revised 8/10/2018

Midterm Exam 15 points total. March 28, 2011

Scanned by CamScanner

Transcription:

Computer Organization & Architecture Lecture #5 Shift Register A shift register is a register in which binary data can be stored and then shifted left or right when a shift signal is applied. Bits shifted out one end of the register may be either lost or shifted back in on the other end. Shown below is a 4-bit shift register with serial input and serial output constructed of D-CE flip-flops. When Shift = 1, the clock is enabled and shifting occurs on the rising clock edge. When Shift = 0, no shifting occurs and the data in the register remains unchanged. The serial input (SI) is loaded into the first flip-flop (Q3) by the rising edge of the clock. At the same time, the output of the first flip-flop is loaded into the second flip-flop, the output of the second flip-flop is loaded into the third flip-flop, and the output of the third flip-flop is loaded into the last flip-flop. Because of the propagation delay of the flip-flops, the output value loaded into each flip-flop is the value before the rising clock edge. Shown below is a shift register timing diagram where the shift register initially contains the value 0101 and the serial input sequence is (last) 1, 1, 0, 1 (first).

If the serial output is connected back to the serial input the shift register performs an end-around shift. If the initial contents of the register is 0111: after one clock cycle the contents is 1011; after two clock cycles the contents is 1101; after three clock cycles the contents is 1110; after four clock cycles the contents is 0111, the same as the initial contents. Shift registers with 4, 8, or more flip-flops are available in integrated circuit form. Shown below is the block diagram for an 8-bit serial-in, serial-out shift register. Shown below is the circuit diagram for an 8-bit serial-in, serial-out shift register constructed of S-R flip-flops. Serial in implies that data is shifted into the first flip-flop one bit at a time, and the flip-flops cannot be loaded in parallel. Serial out implies that data can only be read out of the last flip-flop and the outputs from the other flip-flops are not connected to terminals of the integrated circuit. The flip-flop inputs are S = SI and R = (SI). If SI = 1, a 1 is shifted into the register when it is clocked, and if SI = 0, a 0 is shifted in.

Shown below is a timing diagram for the 8-bit serial-in, serial-out shift register. Shown below is a block diagram for a 4-bit parallel-in, parallel-out shift register. Parallel-in implies that all four input bits can be loaded at the same time, and parallel-out implies that all four output bits can be read out at the same time. The shift register has two control inputs, shift enable (Sh) and load enable (L). The table below describes how these inputs are used to control the shift register. Inputs Next State Sh (shift) L (load) Q3+ Q2+ Q1+ Q0+ Action 0 0 Q3 Q2 Q1 Q0 No Change 0 1 D3 D2 D1 D0 Parallel Load 1 X SI Q3 Q2 Q1 Serial Right Shift All state changes occur immediately following the falling edge of the clock.

Shown below is the circuit diagram for a 4-bit parallel-in, parallel-out shift register constructed of D flip-flops and multiplexers. When Sh = L = 0, the flip-flop Q3 output is selected by the MUX, so Q3+ = Q3 and no state change occurs. When Sh = 0 and L = 1, the data input D3 is selected and loaded into the flip-flop. When Sh = 1 and L = 0 or 1, SI is selected and loaded into the flip-flop. The other multiplexers act the exact same way for their corresponding flip-flops. The next-state equations for the flip-flops are: Q3+ = (Sh) L (Q3) + (Sh) L(D3) + Sh(SI) Q2+ = (Sh) L (Q2) + (Sh) L(D2) + Sh(Q3) Q1+ = (Sh) L (Q1) + (Sh) L(D1) + Sh(Q2) Q0+ = (Sh) L (Q0) + (Sh) L(D0) + Sh(Q1) A typical application of this register is the conversion of parallel data to serial data or serial data to parallel data. The output of the last flip-flop (Q0) serves as a serial output as well as one of the parallel outputs. Shown below is a timing diagram for a 4-bit parallel-in, parallel-out shift register.

The timing diagram assumes that the register is initially clear (Q3Q2Q1Q0 = 0000), and that the serial input is SI = 0 throughout, and that the data inputs D3D2D1D0 are 1011 during the load time. Shown below is the circuit diagram for a 3-bit shift register constructed of D flip-flops. Notice that the complemented output of the last flip-flop is fed back to the input of the first flip-flop. If the initial state of the register is 000, then the initial input value of D3 is 1, so then after the first clock pulse the register state is 100. Shown below are the state graphs for the 3-bit shift register. If the initial state of the register is either: 000, 100, 110, 111, 011, or 001 then the graph on the left shows the next-state sequence for the register. If the initial state of the register is either: 010 or 101 then the graph on the right shows the next-state sequence for the register. A circuit that cycles through a fixed sequence of states is called a counter, and a shift register with inverted feed back is often called a Johnson counter.