REGISTER TRANSFER LANGUAGE (RTL) INTRODUCTION TO REGISTER Registers1.

Slides:



Advertisements
Similar presentations
IT253: Computer Organization
Advertisements

The CPU The Central Presentation Unit What is the CPU?
REGISTER TRANSFER LANGUAGE (RTL)
Chapter 7 Henry Hexmoor Registers and RTL
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 7 – Registers.
Digital Logic Chapter 5 Presented by Prof Tim Johnson
October 16, 2002Flip-flops1 Summary : Latches A sequential circuit has memory. It may respond differently to the same inputs, depending on its current.
Flip-Flops Last time, we saw how latches can be used as memory in a circuit. Latches introduce new problems: We need to know when to enable a latch. We.
1 Review: Counters and Registers CS 231 Review October 26, 2007 By Joshua Smith Please note the NOTES in the PPT file for help with the examples.
Random access memory Sequential circuits all depend upon the presence of memory. A flip-flop can store one bit of information. A register can store a single.
Henry Hexmoor1 Chapter 7 Henry Hexmoor Registers and RTL.
Chapter 7 Henry Hexmoor Registers and RTL
Logic and Computer Design Fundamentals Registers and Counters
ENGIN112 L26: Shift Registers November 3, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 26 Shift Registers.
Introduction Flip-flops are synchronous bistable devices. The term synchronous means the output changes state only when the clock input is triggered. That.
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.
Counters and Registers
Chapter 1_4 Part II Counters
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Registers and Counters
1 Shift Registers. –Definitions –I/O Types: serial, parallel, combinations –Direction: left, right, bidirectional –Applications –VHDL implementations.
Registers and Counters
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
CS1Q Computer Systems Lecture 11 Simon Gay. Lecture 11CS1Q Computer Systems - Simon Gay2 The D FlipFlop A 1-bit register is called a D flipflop. When.
DIGITAL 2 : EKT 221. Today’s Outline Register Transfer Clock Gating Load Control Feedback Register Transfer Language Type of Registers Basic Symbols Mathematical.
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
1 Registers & Counters Logic and Digital System Design - CS 303 Erkay Savaş Sabancı University.
ENG241 Digital Design Week #8 Registers and Counters.
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.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2012.
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.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 7 – Registers and Register Transfers Part.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Lecture 21: Registers and Counters (1)
Sequential logic circuits
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2007.
Chapter 6 – Digital Electronics – Part 1 1.D (Data) Flip Flops 2.RS (Set-Reset) Flip Flops 3.T Flip Flops 4.JK Flip Flops 5.JKMS Flip Flops Information.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Chapter 1_0 Registers & Register Transfer. Chapter 1- Registers & Register Transfer  Chapter 7 in textbook.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Lecture Overview Shift Register Buffering Direct Memory Access.
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.
IC 3 BASICS, Internet and Computing Core Certification Computing Fundamentals Lesson 2 How Does a Computer Process Data?
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.
CSE 260 Digital Logic Design Registers, Memory BRAC University.
REGISTER TRANSFER LANGUAGE (RTL)
Registers and Counters
Flip-Flops and Related Devices
Random access memory Sequential circuits all depend upon the presence of memory. A flip-flop can store one bit of information. A register can store a single.
Random access memory Sequential circuits all depend upon the presence of memory. A flip-flop can store one bit of information. A register can store a single.
Counters Next, we’ll look at different kinds of counters and discuss how to build them. These are not only examples of sequential analysis and design,
KU College of Engineering Elec 204: Digital Systems Design
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.
COE 202: Digital Logic Design Sequential Circuits Part 4
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Registers.
Overview Part 1 - Registers, Microoperations and Implementations
Counters Next, we’ll look at different kinds of counters and discuss how to build them. These are not only examples of sequential analysis and design,
Random access memory Sequential circuits all depend upon the presence of memory. A flip-flop can store one bit of information. A register can store a single.
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
Outline Registers Counters 5/11/2019.
Registers and Counters
Counters Next, we’ll look at different kinds of counters and discuss how to build them. These are not only examples of sequential analysis and design,
Registers Today we’ll see some common sequential devices: counters and registers. They’re good examples of sequential analysis and design. They are also.
Week 11 Flip flop & Latches.
Presentation transcript:

REGISTER TRANSFER LANGUAGE (RTL) INTRODUCTION TO REGISTER Registers1

Today’s Outline Register Transfer – Clock Gating – Load Control Feedback Register Transfer Language – Type of Registers – Basic Symbols – Mathematical & Logical Symbols RTL Arithmetic Operations Conditional Register Transfer

Registers3 Another common sequential device: – A good example of sequential analysis and design. – Frequently used in building larger sequential circuits. Registers hold larger quantities of data than individual flip-flops. – Registers are central to the design of modern processors. – There are many different kinds of registers. – We’ll show some applications of these special registers.

Registers4 What good are registers? Flip-flops are limited because they can store only one bit. – We had to use two flip-flops for our two-bit counter examples. – Most computers work with integers and single-precision floating-point numbers that are 32-bits long. A register is an extension of a flip-flop that can store multiple bits. Registers are commonly used as temporary storage in a processor. – They are faster and more convenient than main memory. – More registers can help speed up complex calculations. Registers are used in designing and programming CPUs.

REGISTERS Definition : Registers consist of a set of Flip-flops (FFs), together with gates that implement their state transition 1 FFs = 1 bit Therefore, n bit register = n number of FFs Registers are useful for storing and manipulating information.(eg: arithmetic, logical, boolean)

Registers6 A basic register Basic registers are easy to build. We can store multiple bits just by putting a bunch of flip-flops together! A 4-bit register is on the right, and its internal implementation is below. – This register uses D flip-flops, so it’s easy to store data without worrying about flip-flop input equations. – All the flip-flops share a common CLK and CLR signal.

LOAD ENABLE Transfer of new info into register is referred to as LOADING the register PARALLEL LOADING : when all bits loaded simultaneously on clock pulse (same source). A control signal is used to control the clock cycles. Using this control, input clock pulses are prevented from reaching the register when its content is not to be changed.

Registers8 Adding a parallel load operation The input D 3 -D 0 is copied to the output Q 3 -Q 0 on every clock cycle. How can we store the current value for more than one cycle? Let’s add a load input signal LD to the register. – If LD = 0, the register keeps its current contents. – If LD = 1, the register stores a new value, taken from inputs D 3 -D 0.

LOAD as Control Signal LOAD CLK CLK input to Flip Flop -When Load =1, CLK FF will follow the CLK (Master Clock) input. - When CLK FF has a PGT (+ve going Transition) new data will be loaded into register Q0Q0 Q1Q1 Q2Q2 Q3Q3 D0D0 D1D1 D2D2 D3D3 CLEAR CLK LOAD CLK FF Data Transfer

10 Clock gating – When LD = 0, the flip-flop C inputs are held at 1. There is no positive clock edge, so the flip-flops keep their current values. => prevent the clock signal from passing through CLK LOAD CLK FF Data Transfer

11 Clock gating – When LD = 1, the CLK input passes through the OR gate, so the flip-flops can receive a positive clock edge and can load a new value from the D 3 -D 0 inputs. => enable the clock signal to pass through CLK LOAD CLK FF Data Transfer

12 Clock gating is bad This is called clock gating, since gates are added to the clock signal. There are timing problems similar to those of latches. Here, LD must be kept at 1 for the correct length of time (one clock cycle) and no longer. The clock is delayed a little bit by the OR gate. – In more complex scenarios, different flip-flops in the system could receive the clock signal at slightly different times. – This “clock skew” can lead to synchronization problems. *Skew = Clock signals arrive at different FFs or REG at different times

13 A better parallel load Another idea is to modify the flip-flop D inputs and not the clock signal. – When LD = 0, the flip-flop inputs are Q 3 -Q 0, so each flip-flop just keeps its current value. => output loaded back into FFs. – When LD = 1, the flip-flop inputs are D 3 -D 0, and this new value is “loaded” into the register. – ?? need feedback => D-FF has no “no change” input condition CLK are applied continuously to the C inputs use LD to change REG contents

REGISTERS with Load Controlled Feedback A more reliable way to selectively load a register: o Run the clock continuously, and o Selectively use a load control to change the register contents. Example: 2-bit register with Load Control: For Load = 0, loads register contents (hold current values) For Load = 1, loads input values (load new values) Hardware more complex than clock gating, but free of timing problems Load Input1 Input2 Feedback Input x Load

Registers15 A shift register “shifts” its output once every clock cycle. SI is an input that supplies a new bit to shift “into” the register. For example, if on some positive clock edge we have: SI = 1 Q 0 -Q 3 = 0110 then the next state will be: Q 0 -Q 3 = 1011 The current Q 3 (0 in this example) will be lost on the next cycle. Shift registers Q 0 (t+1)= SI Q 1 (t+1)= Q 0 (t) Q 2 (t+1)= Q 1 (t) Q 3 (t+1)= Q 2 (t)

Registers16 Shift direction The circuit and example make it look like the register shifts “right.” But it really depends on your interpretation of the bits. If you consider Q3 to be the most significant bit instead, then the register is shifting in the opposite direction! Q 0 (t+1)= SI Q 1 (t+1)= Q 0 (t) Q 2 (t+1)= Q 1 (t) Q 3 (t+1)= Q 2 (t)

Registers17 Shift registers with parallel load We can add a parallel load, just like we did for regular registers. – When LD = 0, the flip-flop inputs will be SIQ 0 Q 1 Q 2, so the register shifts on the next positive clock edge. – When LD = 1, the flip-flop inputs are D 0 -D 3, and a new value is loaded into the shift register, on the next positive clock edge.

Registers18 Serial data transfer One application of shift registers is converting between “serial data” and “parallel data.” Computers typically work with multiple-bit quantities. – ASCII text characters are 8 bits long. – Integers, single-precision floating-point numbers, and screen pixels are up to 32 bits long. But sometimes it’s necessary to send or receive data serially, or one bit at a time. Some examples include: – Input devices such as keyboards and mice. – Output devices like printers. – Any serial port, USB or Firewire device transfers data serially. – Recent switch from Parallel ATA to Serial ATA in hard drives.

Registers19 Receiving serial data To receive serial data using a shift register: – The serial device is connected to the register’s SI input. – The shift register outputs Q3-Q0 are connected to the computer. The serial device transmits one bit of data per clock cycle. – These bits go into the SI input of the shift register. – After four clock cycles, the shift register will hold a four-bit word. The computer then reads all four bits at once from the Q3-Q0 outputs. serial device computer

Registers20 Sending data serially To send data serially with a shift register, you do the opposite: – The CPU is connected to the register’s D inputs. – The shift output (Q3 in this case) is connected to the serial device. The computer first stores a four-bit word in the register, in one cycle. The serial device can then read the shift output. – One bit appears on Q3 on each clock cycle. – After four cycles, the entire four-bit word will have been sent. serial device computer

Registers21 Registers summary A register is a special state machine that stores multiple bits of data. Several variations are possible: – Parallel loading to store data into the register. – Shifting the register contents either left or right. – Counters are considered a type of register too! One application of shift registers is converting between serial and parallel data. Most programs need more storage space than registers provide. – We’ll introduce RAM to address this problem. Registers are a central part of modern processors.