CSE 260 Digital Logic Design Registers, Memory BRAC University.

Slides:



Advertisements
Similar presentations
1 Sequential Circuits Dr. Pang. 2 Outline Introduction to sequential circuits Basic latch Gated SR latch and gated D latch D flip-flop, T flip-flop, JK.
Advertisements

Sequential Circuits A Basic sequential circuit is nothing but a combinational circuit with some feedback paths between its output and input terminals.
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1 Sequential Circuit: Register Introduction N-bit register contains n flip-flop and several logic gates and.
Shift Registers and Shift Register Counters
EET 1131 Unit 12 Shift Registers
ENGIN112 L26: Shift Registers November 3, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 26 Shift Registers.
Sequential Circuit Introduction to Counter
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
Digital Fundamentals Floyd Chapter 9 Tenth Edition
Counters and Registers
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.
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
Registers and Counters
ECE2030 Introduction to Computer Engineering Lecture 15: Registers, Toggle Cells, Counters Prof. Hsien-Hsin Sean Lee School of Electrical and Computer.
1 Shift Registers. –Definitions –I/O Types: serial, parallel, combinations –Direction: left, right, bidirectional –Applications –VHDL implementations.
Figure 9–1 The flip-flop as a storage element.
Registers & Counters M. Önder Efe
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.
Registers and Counters
Rabie A. Ramadan Lecture 3
Digital Design: Principles and Practices
EKT 221/4 DIGITAL ELECTRONICS II  Registers, Micro-operations and Implementations - Part3.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 6:
Digital Design Lectures 11 & 12 Shift Registers and Counters.
7-6 단일 레지스터에서 Microoperation Multiplexer-Based Transfer  Register 가 서로 다른 시간에 둘 이상의 source 에서 data 를 받을 경우 If (K1=1) then (R0 ←R1) else if (K2=1) then.
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.
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.
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.
Sequential Logic Circuit
Sequential Logic Circuit
Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –
CHAPTER 6 Sequential Circuits’ Analysis CHAPTER 6 Sequential Circuits’ Analysis Sichuan University Software College.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Digital Electronics Electronics Technology Landon Johnson Shift Registers.
Digital Fundamentals Tenth Edition Floyd Chapter 9.
DIGITAL SYSTEMS TCE Shift Registers and Shift Register Counters Week 10 and Week 11 (Lecture 2 of 2)
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.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
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.
REGISTERS - Introduction to Registers Shift Registers Lecture 1 Gunjeet Kaur Dronacharya Group of Institutions.
EET 1131 Unit 12 Shift Registers
REGISTER TRANSFER LANGUAGE (RTL)
Registers and Counters
Digital Fundamentals Abdul Hameed
EKT 221 : Digital 2 Serial Transfers & Microoperations
Prof. Hsien-Hsin Sean Lee
Sequential Logic Counters and Registers
CHAPTER 9 Shift Registers
3.2 Shift Register Basic shift register function
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.
EET 1131 Unit 12 Shift Registers
COE 202: Digital Logic Design Sequential Circuits Part 4
Digital Logic & Design Dr. Waseem Ikram Lecture No. 34.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
SYEN 3330 Digital Systems Chapter 7 – Part 1 SYEN 3330 Digital Systems.
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
Registers and Counters
Shift Registers Dr. Rebhi S. Baraka
Presentation transcript:

CSE 260 Digital Logic Design Registers, Memory BRAC University

Introduction: Registers  An n-bit register has a group of n flip-flops and some logic gates and is capable of storing n bits of information.  The flip-flops store the information while the gates control when and how new information is transferred into the register.  Some functions of register:  retrieve data from register  store/load new data into register (serial or parallel)  shift the data within register (left or right) Did you know??? Registers are of 2 types. Memory (or storage) registers and Operational Registers

Simple Registers  No external gates.  Example: A 4-bit register. A new 4-bit data is loaded every clock cycle. A3A3 CP A1A1 A0A0 D Q D QQ D A2A2 D Q I3I3 I1I1 I0I0 I2I2 Did you know???.A group of flip-flops sensitive to pulse duration is called Latch where as A group of flip-flop sensitive to pulse transition is called Register

Shift Registers  Another function of a register, besides storage, is to provide for data movements.  Each stage (flip-flop) in a shift register represents one bit of storage, and the shifting capability of a register permits the movement of data from stage to stage within the register, or into or out of the register upon application of clock pulses. Did you know??? Transfer of new information into a register is referred to as Loading the register! If all bits are loaded in a single pulse, we call it Parallel Loading.

Shift Registers  Basic data movement in shift registers (four bits are used for illustration). Data inData out (a) Serial in/shift right/serial out Data inData out (b) Serial in/shift left/serial out Data in Data out (c) Parallel in/serial out Data out Data in (d) Serial in/parallel out Data out Data in (e) Parallel in / parallel out (f) Rotate right(g) Rotate left

Serial Shift Register n One bit is shifted at a time n Slower n Less hardware n Control single is enabled/maintained for a period equal to 1 word time Parallel Shift Register n All data transferred in a single pulse n Faster n More hardware n Control signal enabled during a single clock pulse 6/23/2016 Counters6 Did you know? Bit-time: Time interval between clock pulses Word time: Time required to shift entire content of a shift register

Type 1: Serial In/Serial Out Shift Registers  Accepts data serially – one bit at a time – and also produces output serially. Q0Q0 CLK D C Q Q1Q1 Q2Q2 Q3Q3 Serial data input Serial data output D C Q D C Q D C Q

6/23/2016 Counters8 Serial In/Serial Out Shift Registers  Application: Serial transfer of data from one register to another. Shift register AShift register B SI SO Clock Shift control CP Wordtime T1T1 T2T2 T3T3 T4T4 CP Clock Shift control

Serial In/Serial Out Shift Registers  Serial-transfer example.

Type 2: Serial In/Parallel Out Shift Registers  Accepts data serially.  Outputs of all stages are available simultaneously. D CCLK Data input Q0Q0 Q1Q1 Q2Q2 Q3Q3 SRG 4 Logic symbol

6/23/2016 Counters11 Serial In/Parallel Out Shift Registers  Accepts data serially.  Outputs of all stages are available simultaneously. Q0Q0 CLK D C Q Q1Q1 D C Q Q2Q2 D C Q Q3Q3 D C Q Data input D CCLK Data input Q0Q0 Q1Q1 Q2Q2 Q3Q3 SRG 4 Logic symbol

Parallel In/Serial Out Shift Registers  Bits are entered simultaneously, but output is serial. Logic symbol CCLK SHIFT/LOAD D0D0 D1D1 D2D2 D3D3 SRG 4 Serial data out Data in

Type 3: Parallel In/Serial Out Shift Registers  Bits are entered simultaneously, but output is serial. D0D0 CLK D C Q D1D1 D C Q D2D2 D C Q D3D3 D C Q Data input Q0Q0 Q1Q1 Q2Q2 Q3Q3 Serial data out SHIFT/LOAD ????

6/23/2016 Counters14 Parallel In/Serial Out Shift Registers  Bits are entered simultaneously, but output is serial. D0D0 CLK D C Q D1D1 D C Q D2D2 D C Q D3D3 D C Q Data input Q0Q0 Q1Q1 Q2Q2 Q3Q3 Serial data out SHIFT/LOAD SHIFT.Q 0 + SHIFT'.D 1

Bidirectional Shift Registers  Data can be shifted either left or right, using a control line RIGHT/LEFT (or simply RIGHT) to indicate the direction. RIGHT.Q 0 + RIGHT'.Q 2

Bidirectional Shift Registers  4-bit bidirectional shift register with parallel load.

Bidirectional Shift Registers  4-bit bidirectional shift register with parallel load.

An Application – Serial Addition (Self Study)  Most operations in digital computers are done in parallel. Serial operations are slower but require less equipment.  A serial adder is shown below. A  A + B. FA xyzxyz SCSC Shift-register A Shift-right CP SI Shift-register B SI External input SO QD Clear

An Application – Serial Addition  A = 0100; B = A + B = 1011 is stored in A after 4 clock pulses. Initial: A: B: Q: 0 Step 1: S = 1, C = 0 A: B: x Q: 0 Step 2: S = 1, C = 0 A: B: x x 0 1 Q: 0 Step 3: S = 0, C = 1 A: B: x x x 0 Q: 1 Step 4: S = 1, C = 0 A: B: x x x x Q: 0

Practice time n Design a serial adder using sequential logic only (No full adder is allowed to be used) 6/23/2016 Counters20

Solution 6/23/2016 Counters21 /Cout/Cin

Solution 6/23/2016 Counters22