Shift Registers and Counters By Lakshmi Things that appear hard are normally trivial, If you do the obvious in the obvious way. After all, how “tough”

Slides:



Advertisements
Similar presentations
Basic Finite State Machines 1. 2 Finite State Machines Binary encoded state machines –The number of flip-flops is the smallest number m such that 2 m.
Advertisements

Lecture 23: Registers and Counters (2)
Shift Registers Module M11.1 Section 7.3.
Computer Interfacing and Protocols
Experiment 2 PIC Program Execution & Built-In Self-Test.
Copyright 2001, Agrawal & BushnellVLSI Test: Lecture 261 Lecture 26 Logic BIST Architectures n Motivation n Built-in Logic Block Observer (BILBO) n Test.
Digital Logic Chapter 5 Presented by Prof Tim Johnson
1 EE 587 SoC Design & Test Partha Pande School of EECS Washington State University
Unit 13 Analysis of Clocked Sequential Circuits Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information.
Copyright 2005, Agrawal & BushnellVLSI Test: Lecture 21alt1 Lecture 21alt BIST -- Built-In Self-Test (Alternative to Lectures 25, 26 and 27) n Definition.
Design for Testability Theory and Practice Lecture 11: BIST
Project Check-off 2 UART Design Jeffrey Tsai. Project Thus Far FIFO SRAM UART IN UART OUT Main Control FSM Collision Audio In interface Audio Out interface.
Lab 5 Shift Registers and Counters Presented By Neha Kumar but while we wait for that to happen…
Give qualifications of instructors: DAP
ELEN 468 Lecture 251 ELEN 468 Advanced Logic Design Lecture 25 Built-in Self Test.
COE 202: Digital Logic Design Sequential Circuits Part 4 KFUPM Courtesy of Dr. Ahmad Almulhem.
BIST AND DATA COMPRESSION 1 JTAG COURSE spring 2006 Andrei Otcheretianski.
CS 140L Lecture 4 Professor CK Cheng 10/22/02. 1)F-F 2)Shift register 3)Counter (Asynchronous) 4)Counter (Synchronous)
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:
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.
Sequential circuit design
Registers and Counters
Sept EE24C Digital Electronics Project Design of a Digital Alarm Clock.

Page 1EE 461 – Digital System Design Spring 2010 EELE 461/561 – Digital System Design Eye Diagrams in ADS.
Finite State Machines. Binary encoded state machines –The number of flip-flops is the smallest number m such that 2 m  n, where n is the number of states.
Rabie A. Ramadan Lecture 3
Status Report Atsushi Nukariya. FPGA training course ・ I solved 15 problems which are proposed by Uchida-san. ・ I used above circuit board. FPGA.
1 SNS COLLEGE OF ENGINEERING Department of Electronics and Communication Engineering Subject: Digital communication Sem: V Cyclic Codes.
Design for Testability By Dr. Amin Danial Asham. References An Introduction to Logic Circuit Testing.
ECE 553: TESTING AND TESTABLE DESIGN OF DIGITAL SYSTEMS
More Digital circuits. Ripple Counter The most common counter The problem is that, because more than one output is changing at once, the signal is glichy.
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.
Linear Feedback Shift Register. 2 Linear Feedback Shift Registers (LFSRs) These are n-bit counters exhibiting pseudo-random behavior. Built from simple.
Lecture #27 Page 1 ECE 4110– Sequential Logic Design Lecture #27 Agenda 1.Counters Announcements 1.HW #12 due.
Reaction Timer Project
DLD Lecture 26 Finite State Machine Design Procedure.
Teaching Digital Logic courses with Altera Technology
Lecture #27 Page 1 ECE 4110–5110 Digital System Design Lecture #27 Agenda 1.Counters Announcements 1.Finish reading Wakerly sections 8.1, 8.2, 8.4, 8.5.
REGISTER TRANSFER LANGUAGE (RTL) INTRODUCTION TO REGISTER Registers1.
RTL Hardware Design by P. Chu Chapter 9 – ECE420 (CSUN) Mirzaei 1 Sequential Circuit Design: Practice Shahnam Mirzaei, PhD Spring 2016 California State.
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.
1 Modeling Synchronous Logic Circuits Debdeep Mukhopadhyay Associate Professor Dept of Computer Science and Engineering NYU Shanghai and IIT Kharagpur.
REGISTER TRANSFER LANGUAGE (RTL)
Registers and Counters
FIRST REVIEW.
Hardware Testing and Designing for Testability
EKT 221 – Counters.
Prof. Hsien-Hsin Sean Lee
Figure 12-13: Synchronous Binary Counter
SLIDES FOR CHAPTER 12 REGISTERS AND COUNTERS
ECE 4110–5110 Digital System Design
VLSI Testing Lecture 14: Built-In Self-Test
CPE/EE 428/528 VLSI Design II – Intro to Testing (Part 3)
Instructor: Alexander Stoytchev
Sequential circuits and Digital System Reliability
Instructor: Alexander Stoytchev
CSE 370 – Winter Sequential Logic-2 - 1
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Sequential Logic for Synthesis Simulation using ModelSim
Figure 8.1. The general form of a sequential circuit.
Switching Theory and Logic Design Chapter 5:
14 Digital Systems.
Lecture 26 Logic BIST Architectures
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Advanced Computer Architecture Lecture 1
Registers and Counters
EGR 2131 Unit 12 Synchronous Sequential Circuits
Presentation transcript:

Shift Registers and Counters By Lakshmi Things that appear hard are normally trivial, If you do the obvious in the obvious way. After all, how “tough” can “easy” be? -- Anonymous

What is an LFSR? Linear Feedback Shift Register An N-bit LFSR counts through all non-zero bit patterns in a pseudo- random order. Useful for the Project!!! Random Number Generator for collision back-off Error Checking

Tips on LFSR… Things to do Place a linear array of D Flip Flops and feedback the last output to the first. (FF(N-1) output to FF(0) input) For an N-bit LFSR look at the table in Page 6 for a polynomial starting with x^N. For every term x^K in the polynomial compute an XOR of outputs of FF(N-1) and FF(K-1) and feed it to FF(K) as input (FF numbered from 0 to N-1) Things NOT to worry about What is a Galois Field? What is an irreducible polynomial?

An Example 5-bit LFSR XOR QQQQQD DD DDDD  The polynomial from the table is x^5+x^2+1  Only x^2 is present in the polynomial  take an XOR of Bit4 and Bit1 and feed it to Bit2 as input.  Magic!!! You have a 5-bit LFSR in front of you Bit4Bit 3 Bit2Bit1Bit0 CLK

XOR QQQQQDDDDD Bit4Bit 3 Bit2Bit1Bit0 CLK Parity Computation XOR Serial Input  Plug in the actual bits serially(one after another)  The final bits in the flip flops are the parity bits  Note: The Last N(=5) bits of the serial input have to be 0  This is for computing the N parity bits of the serial input

Magic Error Checking Consider a 4-bit LFSR Serial Input: (Note 11= 15-4 bits) > > 0000 Introduce error in 7 th bit > > 0111 Isn’t 0111 equal to 7? Figure out how lazy I am. Refer to error correction example in the handout!!!

What to do in the lab? DIP switch ROM LFSR Control FSM 8-bit counter LED output Comparator Spare Reset count ENABLE CLK TC

Modes of Operation Mode 1: LFSR would shift 256 bits Display final parity in 8 LEDs Mode 0: Process sequence until pattern in DIP switch is equal to parity bits Final counter will be displayed in LEDs (position of error) If output is “0” then no errors in message Mode controlled by SPARE button

Things to do Run MODE=1 with all DIP switches set to 0. Compute parity bits as shown in LEDs. Enter parity bits on the switches, run MODE=1 and observe the output. Is it 0? Introduce only one error in the ROM –modify ROM schematic Use MODE=1 operation to detect the error. Use MODE=0 operation to find position of error. Is there anything easier than copying?

Control FSM Want Extra Credit! Do this logic as pre-lab. 3 inputs: TC output of counter, comparator and MODE from SPARE button 2 states: ACTIVE state: upon RESET, enables the counter and LFSR Waits until either TC from counter or PAR=LED signal from comparator(if MODE=0) and enters DONE state DONE state: Can leave this state only thru RESET Hooray!!! Need only 1 FF for the FSM

Things to know The last 8 bits of the ROM are set to 0 and are always read from the DIP switches Galois fields knowledge is useless for the lab! Xchecker cable clock runs at 1Mhz makes it difficult to observe what’s going on. Use of 16-bit counter to divide clock by 65536! Want to observe cycle-by-cycle, use Apply button in Hardware Debugger but should bypass the 2^16 bit counter To change ROM contents use INIT attribute by clicking on a ROM block

Before you Wake up! Do Control FSM logic as pre-lab Learn how to build an 8- bit LFSR Read the lab sheet twice before starting the lab Get your understanding about parity bits and error correction clear Every closed eye is sleeping, and every open eye is not seeing. --Bill Cosby