Registers CPE 49 RMUTI KOTAT.

Slides:



Advertisements
Similar presentations
Registers and Counters
Advertisements

//HDL Example 6-1 // //Behavioral description of //Universal shift register // Fig. 6-7 and Table 6-3 module shftreg.
Shift Register Application Chapter 22 Subject: Digital System Year: 2009.
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.
Shift Registers and Shift Register Counters
Logic and Computer Design Fundamentals Registers and 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.
1 COMP541 State Machines – 2 Registers and Counters Montek Singh Feb 8, 2007.
Introduction Flip-flops are synchronous bistable devices. The term synchronous means the output changes state only when the clock input is triggered. That.
Mantıksal Tasarım – BBM231 M. Önder Efe
Registers and Counters
Digital Fundamentals Floyd Chapter 9 Tenth Edition
Sequential Circuit  It is a type of logic circuit whose output depends not only on the present value of its input signals but on the past history of its.
Counters and Registers
Counters.
SEQUENTIAL CIRCUITS USING TTL 74XX ICS
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Registers and Counters
Chapter 1_4 Part II Counters
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
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.
Figure 7.1. Control of an alarm system. Memory element Alarm Sensor Reset Set OnOff 
Last Mod: March 2014  Paul R. Godin Shift Registers Registers 1.1.
Registers & Counters M. Önder Efe
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
EKT 221/4 DIGITAL ELECTRONICS II  Registers, Micro-operations and Implementations - Part3.
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 )
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.
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.
Shift Registers pp Shift Registers Capability to shift bits ♦ In one or both directions Why? ♦ Part of standard CPU instruction set ♦ Cheap.
REGISTER TRANSFER & MICROOPERATIONS By Sohaib. Digital System Overview  Each module is built from digital components  Registers  Decoders  Arithmetic.
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.
Abdullah Said Alkalbani University of Buraimi
Sequential Logic Circuit
CHAPTER 6 Sequential Circuits’ Analysis CHAPTER 6 Sequential Circuits’ Analysis Sichuan University Software College.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
1 COMP541 State Machines – 2 Registers and Counters Montek Singh Feb 11, 2010.
Digital System Design using VHDL
ECE/CS 352 Digital System Fundamentals© T. Kaminski & C. Kime 1 ECE/CS 352 Digital Systems Fundamentals Fall 2000 Chapter 5 – Part 2 Tom Kaminski & Charles.
SYEN 3330 Digital SystemsJung H. Kim 1 SYEN 3330 Digital Systems Chapter 7 – Part 2.
Chap 5. Registers and Counters
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
Modular sequential logic Use latches, flip-flops and combinational logic –Flip-flops usually grouped to form a register Shift registers –n bits {x n …x.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
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 Modeling Synchronous Logic Circuits Debdeep Mukhopadhyay Associate Professor Dept of Computer Science and Engineering NYU Shanghai and IIT Kharagpur.
Registers and Counters
Reg and Wire:.
EKT 221 : Digital 2 COUNTERS.
DIGITAL 2 : EKT 221 RTL : Microoperations on a Single Register
Digital System Design Review.
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.
29-Nov-18 Counters Chapter 5 (Sections ).
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
6. Registers and Counters
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
Outline Registers Counters 5/11/2019.
Registers Today we’ll see some common sequential devices: counters and registers. They’re good examples of sequential analysis and design. They are also.
Presentation transcript:

Registers CPE 49 RMUTI KOTAT

Shift Registers Capability to shift bits In one or both directions Why? Part of standard CPU instruction set Cheap multiplication Serial communications Just a chain of flip-flops

Simple 4-Bit Shift Register Clocked in common Just serial in and serial out Not quite a FIFO

Serial In - Serial Out Shift Registers

Serial In - Parallel Out Shift Registers

Parallel In - Serial Out Shift Registers

Parallel In - Parallel Out Shift Registers

Bidirectional Shift Registers

Shift Register Counters Ring Counters

Shift Register Counters Johnson Counters

Applications To produce time delay To simplify combinational logic The serial in -serial out shift register can be used as a time delay device.  The amount of delay can be controlled by: - the number of stages in the register - the clock frequency To simplify combinational logic The ring counter technique can be effectively utilized to implement synchronous sequential circuits.  A major problem in the realization of sequential circuits is the assignment of binary codes to the internal states of the circuit in order to reduce the complexity of circuits required.  By assigning one flip-flop to one internal state, it is possible to simplify the combinational logic required to realize the complete sequential circuit.  When the circuit is in a particular state, the flip-flop corresponding to that state is set to HIGH and all other flip-flops remain LOW.

Applications To convert serial data to parallel data A computer or microprocessor-based system commonly requires incoming data to be in parallel format.  But frequently, these systems must communicate with external devices that send or receive serial data.  So, serial-to-parallel conversion is required.  As shown in the previous sections, a serial in - parallel out register can achieve this.

Symbol we could gate the clock

Parallel Load Can provide parallel outputs from flip-flops And also parallel inputs

Schematic

Why is this useful? Basis for serial communications Keyboard Serial port Initially to connect to terminals Now mainly for modem

Bidirectional Shift Register Shift either way Now we have following possible inputs Parallel load Shift from left Shift from right Also “no change” Schematic next

Schematic

Verilog for Shift Register module srg_4_r_v (CLK, RESET, SI, Q,SO); input CLK, RESET, SI; output [3:0] Q; output SO; reg [3:0] Q; assign SO = Q[3]; always@(posedge CLK or posedge RESET) begin if (RESET) Q <= 4'b0000; else Q <= {Q[2:0], SI}; end endmodule

Serial Transfer Parallel transfer – over as many wires as word (for example) Serial transfer – over a single wire Trade time for wires Takes n times longer

Example Why do this? Maybe these are far apart Could shift data in What’s on wire at each clock? Clocked 4 times

Table Showing Shift Hopefully we’ve figured it out

Then shift through adder into A. Added to 0 if A is empty. Serial Addition Initially reset all registers Register A accumulates Adds one bit at a time At same time, new value going into B Stores carry one clock Shift value in serially

Hardware Comparison Serial vs. parallel adder One full adder vs. n adders Serial takes n units of time, parallel only one

Arbitrary Count One more type of counter is useful Count an arbitrary sequence Maybe you need a sequence of states

Circuit and State Diagram

Shift Registers N-bit register with the provision for shifting its stored data by a bit position each tick of the clock. Serial input – specifies a new bit to shifted into the register. Serial output – specifies the bits being shifted out of the register

References http://www.eelab.usyd.edu.au/digital_tutorial/part2/hpage.html http://www.allaboutcircuits.com/vol_4/index.html