Registers Page 1. Page 2 What is a Register?  A Register is a collection of flip-flops with some common function or characteristic  Control signals.

Slides:



Advertisements
Similar presentations
CSE 205: Digital Logic Design
Advertisements

Registers and Counters
Dr. ClincyLecture1 Appendix A – Part 2: Logic Circuits Current State or output of the device is affected by the previous states Circuit Flip Flops New.
Sequential Circuits A Basic sequential circuit is nothing but a combinational circuit with some feedback paths between its output and input terminals.
ECE 331 – Digital System Design Flip-Flops and Registers (Lecture #18) The slides included herein were taken from the materials accompanying Fundamentals.
Sequential Logic Case Studies
Registers and Counters
11/16/2004EE 42 fall 2004 lecture 331 Lecture #33: Some example circuits Last lecture: –Edge triggers –Registers This lecture: –Example circuits –shift.
ECE C03 Lecture 101 Lecture 10 Registers, Counters and Shifters Prith Banerjee ECE C03 Advanced Digital Design Spring 1998.
ECE C03 Lecture 91 Lecture 9 Registers, Counters and Shifters Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
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.
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:
REGISTER A Register is a group of binary storage cells suitable for holding binary information. A group of flip-flops constitutes a register, since each.
Mantıksal Tasarım – BBM231 M. Önder Efe
Unit 12 Registers and Counters Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Registers and Counters
Chapter 1_4 Part II Counters
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
1 Flip Flops, Registers Today: Latches, Flip FlipsFirst Hour: Types of Latches, Flip Flips –Section of Katz’s Textbook –In-class Activity #1.
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
Registers and Counters
ETE Digital Electronics
1 Shift Registers. –Definitions –I/O Types: serial, parallel, combinations –Direction: left, right, bidirectional –Applications –VHDL implementations.
Registers and Counters
EE24C Digital Electronics Projects
10-1 Introduction Chapter #7: Sequential Logic Case Studies.
Registers & Counters M. Önder Efe
Page 1 Registers and Counters. Page 2 What is a Register?  A Register is a collection of n flip-flops with some common function or characteristic  Control.
Registers CPE 49 RMUTI KOTAT.
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.
Rabie A. Ramadan Lecture 3
No. 7-1 Chapter #7: Sequential Logic Case Studies.
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
 Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences.
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.
REGISTER A register is a group of flip-flops. Each flip- flop is capable of storing one bit of informa­ tion. An n-bit register consists of a group of.
Sequential Logic Circuit
Sequential Logic Circuit
Sequential logic circuits
CHAPTER 6 Sequential Circuits’ Analysis CHAPTER 6 Sequential Circuits’ Analysis Sichuan University Software College.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
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.
Flip Flops, Registers Today: First Hour: Types of Latches, Flip Flips
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 LANGUAGE (RTL) INTRODUCTION TO REGISTER Registers1.
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
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.
Sequential Logic Design
LATCHED, FLIP-FLOPS,AND TIMERS
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Registers and Counters
3.2 Shift Register Basic shift register function
Registers and Counters
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.
CS Fall 2005 – Lec. #5 – Sequential Logic - 1
COE 202: Digital Logic Design Sequential Circuits Part 4
Registers and Counters
Computer Architecture and Organization: L02: Logic design Review
CSE 370 – Winter Sequential Logic-2 - 1
Registers.
Overview Last lecture Digital hardware systems Today
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
Registers and Counters
Presentation transcript:

Registers Page 1

Page 2 What is a Register?  A Register is a collection of flip-flops with some common function or characteristic  Control signals - common clock, clear, load, etc.  Function - part of multi-bit storage, counter, or shift register  At a minimum, we must be able to:  Observe the stored binary value  Change the stored binary value

3  Clocked sequential circuits  a group of flip-flops and combinational gates  connected to form a feedback path Flip-flops +Combinational gates (essential) (optional)  Register:  a group of flip-flops  gates that determine how the information is transferred into the register  Counter:  a register that goes through a predetermined sequence of states

4 Registers  A n-bit register  n flip-flops capable of storing n bits of binary information  4-bit register D C R D C R D C R D C R I0I0 I1I1 I2I2 I3I3 A0A0 A1A1 A2A2 A3A3 Clock Reset

Page 5 Kinds of Registers Storage Register Group of storage elements read/written as a unit 4-bit register constructed from 4 D FFs Shared clock and clear lines TTL Quad D-type FF with Clear (Small numbers represent pin #s on package) Schematic Shape V+ D3 D2 D1 D0 CLR CLK Q3 Q3F Q2 Q2F Q1 Q1F Q0 Q0F D Q C Q D Q C Q D Q C Q D Q C Q

Page 6 Kinds of Registers Input/Output Variations Selective Load Capability Tri-state or Open Collector Outputs True and Complementary Outputs Octal D-type FFs with input enable Octal D-type FFs with output enable EN enabled low and lo-to-hi clock transition to load new data into register OE asserted low presents FF state to output pins; otherwise high impedence D3 D6 Q5 Q2 377 Q1 Q0 Q3 EN CLK Q6 Q4 Q7 D5 D2 D1 D0 D4 D

Page 7 Kinds of Registers  We will be discussing the 7400 register series which is a rather popular series of registers.  74ls373: This register is made up of 8 latches and to have a clock enable the following structure is used:

Page 8 Kinds of Registers  When the enable signal is high although clocking is done, the values of the latches won’t appear on the output lines. The following figure shows us how this enable line can be used to select which one of the numerous registers’ value is to be set on the output bus:

Page 9 Kinds of Registers  74ls374: This package is very similar to that of the 74ls373. The only particular difference is that here we are allowed to feeding of outputs through combinational logic back into the register and this is because we have flip flops instead of latches in the 74ls373:

10 4-bit register with parallel load load' load

11 Shift Registers  Shift register  a register capable of shifting its binary information in one or both directions  Simplest shift register

Page 12 Kinds of Registers Shift Registers Storage + ability to circulate data among storage elements Shift from left storage element to right neighbor on every lo-to-hi transition on shift signal Wrap around from rightmost element to leftmost element Q1Q1 Q2Q2 Q3Q3 Q4Q4 Q Q Q Q Shift

13 Serial transfer vs. Parallel transfer  Serial transfer  Information is transferred one bit at a time  shifts the bits out of the source register into the destination register  Parallel transfer:  All the bits of the register are transferred at the same time

14 Example: Serial transfer from reg A to reg B

15  Serial addition using D flip-flops

16  Serial adder using JK flip-flops J Q = x y K Q = x y = (x + y) S = x  y  Q

17 Circuit diagram J Q = x y K Q = x y = (x + y) S = x  y  Q Ci

Page 18 Kinds of Registers Register Files Two dimensional array of flip-flops Address used as index to a particular word Word contents read or written x4 Register File with Tri-state Outputs Separate Read and Write Enables Separate Read and Write Address Data Input, Q Outputs Contains 16 D-ffs, organized as four rows (words) of four elements (bits)

Page 19 Serial Data Transfer Serial transfer moves data bits from A to B one bit per clock Rx and Tx have single wire between the two. For ‘n’ bit registers, it takes ‘n’ clocks for data move Reg. A 1 bit signal Usual implementation is with a shift register. Reg. B clock

Page 20 Serial Data Transfer  Typical serial transfer is a multi-step process  Load transmit shift register with data to send  Shift data bit by bit from transmit to receive SR  Transfer received data to other registers  The transmit SR must have parallel load  AKA parallel to serial shift register  The receive SR must have parallel outputs  AKA serial to parallel shift register  Other control/timing signals usually needed

Page 21 Serial Data Transfer Reg. A (P to S) 1 bit signal (serial data) Reg. B (S to P) clock Parallel Transmit Data Parallel Receive Data ‘n’ bits load

Page 22 Serial Data Transfer  Serial data transfer used where data rate is relatively slow and/or parallel bit transfer channels are expensive  PC serial port and USB interfaces  wireless/fiber optic data transmissions  Cell phones  Wireless networks  Satellite telephone/TV

Page 23 Typical Multi-Function Shift Register Shift Register I/O Serial vs. Parallel Inputs Serial vs. Parallel Outputs Shift Direction: Left vs. Right bit Universal Shift Register Serial Inputs: LSI, RSI Parallel Inputs: D, C, B, A Parallel Outputs: QD, QC, QB, QA Clear Signal Positive Edge Triggered Devices S1,S0 determine the shift function S1 = 1, S0 = 1: Load on rising clk edge synchronous load S1 = 1, S0 = 0: shift left on rising clk edge LSI replaces element D S1 = 0, S0 = 1: shift right on rising clk edge RSI replaces element A S1 = 0, S0 = 0: hold state Multiplexing logic on input to each FF! Shifters well suited for serial-to-parallel conversions, such as terminal to computer communications S1 S0 LSI A B C D RSI CLK CLR QA QB QC QD

Page 24 Serial Transfer with Shift Registers Shift Register Application: Parallel to Serial Conversion Parallel Inputs Serial transmission Parallel Outputs

25 Universal Shift Register  Unidirectional shift register  Bidirectional shift register  Universal shift register:  has both direction shifts & parallel load/out capabilities

26 Capability of a universal shift register: 1.A clear control to clear the register to 0. 2.A clock input to synchronize the operations. 3.A shift-right control to enable the shift right operation and the serial input and output lines associated w/ the shift right. 4.A shift-left control to enable the shift left operation and the serial input and output lines associated w/ the shift left. 5.A parallel-load control to enable a parallel transfer and the n parallel input lines associated w/ the parallel transfer. 6.n parallel output lines. 7.A control state that leaves the information in the register unchanged in the presence of the clock.

27  Example: 4-bit universal shift register Parallel outputs A 3 A 2 A 1 A 0 I 3 I 2 I 1 I 0 Parallel inputs 4-bit universal shift register Clear s 1 s 2 Serial input for shift-right Serial input for shift-left CLK

28  Function table Clears 1 s 0 A 3 + A 2 + A 1 + A 0 + (operation) 0×× Clear 100A 3 A 2 A 1 A 0 No change 101sri A 3 A 2 A 1 Shift right 110A 2 A 1 A 0 sliShift left 111 I 3 I 2 I 1 I 0 Parallel load

29 4-bit universal shift register A1A1 A2A2 A0A0