Shift registers and Floating Point Numbers

Slides:



Advertisements
Similar presentations
Chapter 7 Henry Hexmoor Registers and RTL
Advertisements

Lab 10 : Arithmetic Systems : Adder System Layout: Slide #2 Slide #3 Slide #4 Slide #5 Arithmetic Overflow: 2’s Complement Conversions: 8 Bit Adder/Subtractor.
Lecture 12 Layer 2 – Data Link Layer Protocols
A few more things about binary numbers
A few more things about binary numbers
Chapter 6 Errors, Error Detection, and Error Control.
Henry Hexmoor1 Chapter 7 Henry Hexmoor Registers and RTL.
Long distance communication Multiplexing  Allow multiple signals to travel through one medium  Types Frequency division multiplexing Synchronous time.
ENGIN112 L26: Shift Registers November 3, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 26 Shift Registers.
1 Shift Registers. –Definitions –I/O Types: serial, parallel, combinations –Direction: left, right, bidirectional –Applications –VHDL implementations.
Last Mod: March 2014  Paul R. Godin Shift Registers Registers 1.1.
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.
It is physically impossible for any data recording or transmission medium to be 100% perfect 100% of the time over its entire expected useful life. As.
Linear Feedback Shift Register. 2 Linear Feedback Shift Registers (LFSRs) These are n-bit counters exhibiting pseudo-random behavior. Built from simple.
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.
PHY 201 (Blum)1 Shift registers and Floating Point Numbers Chapter 11 in Tokheim.
PHY 201 (Blum)1 Shift registers and Floating Point Numbers Chapter 11 in Tokheim.
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.
Unit 1 Introduction Number Systems and Conversion.
Dr. Clincy Professor of CS
2.8 Error Detection and Correction
Error Detection & Correction
EET 1131 Unit 12 Shift Registers
CHAPTER 18 Circuits for Arithmetic Operations
REGISTER TRANSFER LANGUAGE (RTL)
Chapter 4 Operations on Bits.
Cyclic Redundancy Check (CRC)
Electronics Technology
Chap 7. Register Transfers and Datapaths
EKT 221 : Digital 2 COUNTERS.
SLIDES FOR CHAPTER 12 REGISTERS AND COUNTERS
Error Detection and Correction
DIGITAL 2 : EKT 221 RTL : Microoperations on a Single Register
INTRODUCTION Overview of Shift Registers
Part III Datalink Layer 10.
Lecture 16 Arithmetic Circuits
Basics of Digital Logic Design Presentation D
Digital Systems Section 14 Registers. Digital Systems Section 14 Registers.
Shift Registers.
Instructor: Alexander Stoytchev
Digital System Design Review.
DIGITAL ELECTRONICS THEME 7: Register structures – with parallel input, with serial input. Shift registers – reversible, cycle. Register structures are.
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
Flip-Flop Applications
Flip-Flop Applications
COE 202: Digital Logic Design Sequential Circuits Part 4
Shift registers and Floating Point Numbers
Sequential circuits and Digital System Reliability
Data Types.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Principles & Applications
A register design with parallel load input
COMPUTER NETWORKS CS610 Lecture-5 Hammad Khalid Khan.
Chapter 9 Error Detection and Correction
ECE 352 Digital System Fundamentals
CHAPTER 18 Circuits for Arithmetic Operations
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Registers and Counters
Switching, Packets, Frames, Parity, Checksums, and CRCs
Digital Circuits and Logic
Shift registers and Floating Point Numbers
Registers Today we’ll see some common sequential devices: counters and registers. They’re good examples of sequential analysis and design. They are also.
ECE 352 Digital System Fundamentals
Week 11 Flip flop & Latches.
2.8 Error Detection and Correction
Presentation transcript:

Shift registers and Floating Point Numbers Chapter 11 in Tokheim PHY 201 (Blum)

What are they? Recall that a register is a small piece of memory that holds values. In addition to holding values, a shift register performs a simple operation on the values; it moves them to the left or to the right. PHY 201 (Blum)

Example Serial output Serial input Shift register 1 PHY 201 (Blum)

Parallel loading register PHY 201 (Blum)

Register On the previous slide, the input of a flip-flop is selected from two possible choices The output of the same flip-flop The data switch above Recall that selecting from one of two inputs is done by a 2-to-1 MUX. The load line serves as the address/select input. PHY 201 (Blum)

When Load is high, we are selecting the data switches to be the data input. So when we go through a positive edge of the clock, we are writing the value from the data switches to the register. PHY 201 (Blum)

When Load is low, we are selecting the flip-flop’s output to be the data input. So when we go through a positive clock edge, we are writing the value from the flip-flop to the flip-flop – thus keeping the value the same as before (holding). PHY 201 (Blum)

Register  Shift Register We can adapt the previous circuit to make a shift register. Instead of having one of the two possible inputs for a flip-flop come from the output of the same flip-flop, we can change this to having that input come from an adjacent flip-flop. Then if when the load input is low and we go through a positive clock edge, the effect is not to hold the values of the register but to shift them. This is part of the lab. PHY 201 (Blum)

On the ends If one shifts from the right to the left, then the input to the rightmost flip-flop does not come from an adjacent flip-flop during the shift operation. There are several options Data switch input Always 1 Always 0 Use leftmost output to form a ring PHY 201 (Blum)

How are shift registers used? Modems Cyclic Redundancy Check (CRC) Multiplication Adding floats PHY 201 (Blum)

Modems A modem (Modulator-Demodulator) takes a signal from a computer and places it on a transmission line. A transmitting modem modulates, that is, converts a digital signal from a computer to a pseudo-analog signal more appropriate for a transmission line. The receiving modem demodulates, that is, converts the pseudo-analog signal back into digital form. PHY 201 (Blum)

Modems (Cont.) But the aspect of modems relevant here is that The transmitting modem converts parallel data to serial. The receiving modem converts serial data into parallel form. Inside the computer, data that moves around as words on parallel cables having a connection for each bit in the word. The transmission lines are longer and require data to be sent serially (one bit at a time). PHY 201 (Blum)

Parallel to Serial To leave the computer, data moves into register in parallel, several bits at once. Data then moves out of the register serially, one bit at a time. 1 PHY 201 (Blum)

Serial to Parallel 1 DEMO! To enter the computer, data enters the register in serial, one bit at a time. Data then moves out of the register in parallel. DEMO! PHY 201 (Blum)

Cyclic Redundancy Check In order to check for errors that may occur during transmission, the sender calculates a number, a cyclic redundancy check. The receiver does the same calculation. If they agree, then presumably no error occurred in transmission. Actually the receiver does a calculation that includes the sender’s CRC as part of the data and should get an answer of zero. It’s easier electronically to see if series of bits corresponds to zero. PHY 201 (Blum)

CRC Any mathematical operation performed on the transmitted data could serve as a check. Another common calculation is summing, then it is called a checksum. The calculation should not be time consuming. Think of CRC as a funny kind of division, the remainder from the division is the check. It’s not ordinary division, but a strange kind of division that is easy to realize electronically. PHY 201 (Blum)

CRC = Shift register + XORs Basically one has a shift register with a few excluded OR gates inserted in strategic positions. PHY 201 (Blum)

  11000001010   1 1 0001010   1 001010   1 01010 PHY 201 (Blum)

  1 1010   1 1 010   1 1 1 10   1 1 1   1 1 PHY 201 (Blum)

Multiplication: Shift and add 1  + shift shift PHY 201 (Blum)