Collections of flip-flops with similar controls and logic

Similar documents
Sequential logic. Circuits with feedback. How to control feedback? Sequential circuits. Timing methodologies. Basic registers

CSE140: Components and Design Techniques for Digital Systems. More D-Flip-Flops. Tajana Simunic Rosing. Sources: TSR, Katz, Boriello & Vahid

! Two inverters form a static memory cell " Will hold value as long as it has power applied

Sequential Logic. Sequential Circuits. ! Timing Methodologies " Cascading flip-flops for proper operation " Clock skew

Sequential Circuits. Sequential Logic. Circuits with Feedback. Simplest Circuits with Feedback. Memory with Cross-coupled Gates.

Chapter 6. sequential logic design. This is the beginning of the second part of this course, sequential logic.

Chapter 6. sequential logic design. This is the beginning of the second part of this course, sequential logic.

TMEL53, DIGITALTEKNIK. INTRODUCTION TO SYNCHRONOUS CIRCUITS, FLIP-FLOPS and COUNTERS

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

ALGORITHMS IN HW EECS150 ALGORITHMS IN HW. COMBINATIONAL vs. SEQUENTIAL. Sequential Circuits ALGORITHMS IN HW

CHAPTER 6 COUNTERS & REGISTERS

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

Introduction. Serial In - Serial Out Shift Registers (SISO)

Chapter 3 Unit Combinational

Scanned by CamScanner

Registers and Counters

Experiment 8 Introduction to Latches and Flip-Flops and registers

Registers and Counters

Digital Fundamentals: A Systems Approach

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

Multiplexor (aka MUX) An example, yet VERY useful circuit!

Universal Asynchronous Receiver- Transmitter (UART)

problem maximum score 1 28pts 2 10pts 3 10pts 4 15pts 5 14pts 6 12pts 7 11pts total 100pts

Figure 30.1a Timing diagram of the divide by 60 minutes/seconds counter

Final Exam review: chapter 4 and 5. Supplement 3 and 4

Sequential Digital Design. Laboratory Manual. Experiment #7. Counters

Chapter 2. Digital Circuits

IT T35 Digital system desigm y - ii /s - iii

WINTER 15 EXAMINATION Model Answer

Counter dan Register

DIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

Flip-Flops and Sequential Circuit Design

Module -5 Sequential Logic Design

Lecture 8: Sequential Logic

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) COUNTERS

Logic Design. Flip Flops, Registers and Counters

CSE115: Digital Design Lecture 23: Latches & Flip-Flops

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

CSE 352 Laboratory Assignment 3

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

Asynchronous (Ripple) Counters

UNIVERSITI TEKNOLOGI MALAYSIA

Registers & Counters. Logic and Digital System Design - CS 303 Erkay Savaş Sabanci University

EET2411 DIGITAL ELECTRONICS

Counters

Chapter Contents. Appendix A: Digital Logic. Some Definitions

CHAPTER1: Digital Logic Circuits

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

Tribhuvan University Institute of Science and Technology Bachelor of Science in Computer Science and Information Technology

R13 SET - 1 '' ''' '' ' '''' Code No: RT21053

LATCHES & FLIP-FLOP. Chapter 7

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 151) Pass Marks: 24

Principles of Computer Architecture. Appendix A: Digital Logic

Logic Design II (17.342) Spring Lecture Outline

cascading flip-flops for proper operation clock skew Hardware description languages and sequential logic

DO NOT COPY DO NOT COPY

Sequential Design Basics

ECE 263 Digital Systems, Fall 2015

R13. II B. Tech I Semester Regular Examinations, Jan DIGITAL LOGIC DESIGN (Com. to CSE, IT) PART-A

Quiz #4 Thursday, April 25, 2002, 5:30-6:45 PM

MUHAMMAD NAEEM LATIF MCS 3 RD SEMESTER KHANEWAL

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

A Combined Combinational-Sequential System

Lecture 12. Amirali Baniasadi

The University of Texas at Dallas Department of Computer Science CS 4141: Digital Systems Lab

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science SOLUTIONS

MODEL QUESTIONS WITH ANSWERS THIRD SEMESTER B.TECH DEGREE EXAMINATION DECEMBER CS 203: Switching Theory and Logic Design. Time: 3 Hrs Marks: 100

CHAPTER 4: Logic Circuits

Computer Organization & Architecture Lecture #5

CHAPTER 4: Logic Circuits

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

Exercise 2: D-Type Flip-Flop

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

3/5/2017. A Register Stores a Set of Bits. ECE 120: Introduction to Computing. Add an Input to Control Changing a Register s Bits

ELCT201: DIGITAL LOGIC DESIGN

Chapter 7 Counters and Registers

Computer Architecture and Organization

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

1. Convert the decimal number to binary, octal, and hexadecimal.

Part 4: Introduction to Sequential Logic. Basic Sequential structure. Positive-edge-triggered D flip-flop. Flip-flops classified by inputs

(Refer Slide Time: 2:00)

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY CS 2202 DIGITAL PRINCIPLES AND SYSTEM DESIGN

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

EECS 270 Midterm 2 Exam Closed book portion Fall 2014

Where Are We Now? e.g., ADD $S0 $S1 $S2?? Computed by digital circuit. CSCI 402: Computer Architectures. Some basics of Logic Design (Appendix B)

University of Maiduguri Faculty of Engineering Seminar Series Volume 6, december 2015

Registers and Counters

Outcomes. Spiral 1 / Unit 6. Flip-Flops FLIP FLOPS AND REGISTERS. Flip-flops and Registers. Outputs only change once per clock period

Switching Theory And Logic Design UNIT-IV SEQUENTIAL LOGIC CIRCUITS

COMP sequential logic 1 Jan. 25, 2016

Digital Circuits ECS 371

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

Sequential circuits. Same input can produce different output. Logic circuit. William Sandqvist

Question Bank. Unit 1. Digital Principles, Digital Logic

VU Mobile Powered by S NO Group

Laboratory 1 - Introduction to Digital Electronics and Lab Equipment (Logic Analyzers, Digital Oscilloscope, and FPGA-based Labkit)

Microprocessor Design

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF ELECTRONICS AND ELECTRICAL ENGINEERING DEPARTMENT OF ECE COURSE PLAN

Transcription:

Ensembles of flip-flops Registers Shift registers Counters Autumn 2010 CSE370 - XV - Registers and Counters 1 Registers Collections of flip-flops with similar controls and logic stored values somehow related (for example, form binary value) share clock, reset, and set lines similar logic at each stage Examples shift registers counters R S R S R S R S IN1 IN2 IN3 IN4 Autumn 2010 CSE370 - XV - Registers and Counters 2

Shift register Holds samples of input store last 4 input values in sequence 4-bit shift register: IN Autumn 2010 CSE370 - XV - Registers and Counters 3 Universal shift register Holds 4 values serial or parallel inputs serial or parallel outputs permits shift left or right shift in new values from left or right output left_in left_out clear s0 s1 input right_out right_in clock clear sets the register contents and output to 0 s1 and s0 determine the shift function s0 s1 function 0 0 hold state 0 1 shift right 1 0 shift left 1 1 load new input Autumn 2010 CSE370 - XV - Registers and Counters 4

Design of universal shift register Consider one of the 4 flip-flops new value at next clock cycle: clear s0 s1 new value 1 0 0 0 0 output 0 0 1 output value of FF to left (shift right) 0 1 0 output value of FF to right (shift left) 0 1 1 input Nth cell to N-1th cell Q D to N+1th cell CLEAR 0 1 2 3 s0 and s1 control mux Q[N-1] (left) Input[N] Q[N+1] (right) Autumn 2010 CSE370 - XV - Registers and Counters 5 Shift register application Parallel-to-serial conversion for serial transmission parallel outputs parallel inputs serial transmission Autumn 2010 CSE370 - XV - Registers and Counters 6

Pattern recognizer Combinational function of input samples in this case, recognizing the pattern 1001 on the single input signal OUT IN Autumn 2010 CSE370 - XV - Registers and Counters 7 Counters Sequences through a fixed set of patterns in this case, 1000, 0100, 0010, 0001 if one of the patterns is its initial state (by loading or set/reset) IN Autumn 2010 CSE370 - XV - Registers and Counters 8

Activity How does this counter work (assuming it starts in state 0000)? IN Counts through the sequence: 1000, 1100, 1110, 1111, 0111, 0011, 0001, 0000 Known as Mobius (or Johnson) counter Autumn 2010 CSE370 - XV - Registers and Counters 9 Binary counter Logic between registers (not just multiplexer) XOR decides when bit should be toggled always for low-order bit, only when first bit is true for second bit, and so on Autumn 2010 CSE370 - XV - Registers and Counters 10

How fast is our counter? Period > T propff + T propcl + T setupff Period > 3.6ns + max(t propcl ) {over all paths from Qs to Ds} + 1.8ns Period > 5.4ns + T propxor + T propand3 Frequency < 1/Period Autumn 2010 CSE370 - XV - Registers and Counters 11 Four-bit binary synchronous up-counter Standard component with many applications positive edge-triggered FFs w/ synchronous load and clear inputs parallel load data from D, C, B, A enable inputs: must be asserted to enable counting RCO: ripple-carry out used for cascading counters high when counter is in its highest state 1111 implemented using an AND gate (2) RCO goes high (1) Low order 4-bits = 1111 EN D C B A LOAD CLR RCO QD QC QB QA Autumn 2010 CSE370 - XV - Registers and Counters 12

Eight-bit counter Use of enable to allow high-order four bits to count Always enable 4 low-order bits Enable 4 high-order bits only when RCO is high for low-order bits (reached 15) (2) RCO goes high EN D C B A LOAD CLR RCO QD QC QB QA (3) High order 4-bits are incremented (1) Low order 4-bits = 1111 "1 EN D C B A LOAD CLR RCO QD QC QB QA Autumn 2010 CSE370 - XV - Registers and Counters 13 Offset counters Starting offset counters use of synchronous load e.g., 0110, 0111, 1000, 1001, 1010, 1011, 1100, 1101, 1111, 0110, Ending offset counter EN RCO D QD C QC B QB A QA LOAD CLR comparator for ending value e.g., 0000, 0001, 0010,..., 1100, 1101, 0000 EN Combinations of the above (start and stop value) Speed? RCO D QD C QC B QB A QA LOAD CLR Autumn 2010 CSE370 - XV - Registers and Counters 14

Sequential logic and programmable logic FFs added to PLAs, PALs, and ROMs FFs added to FPGAs Other features Feedback of Qs back in as inputs Multiplexor for selecting combinational or sequential function Arithmetic mode in FPGAs Many other options.. Autumn 2010 CSE370 - XV - Registers and Counters 15 The 22V10 PAL Combinational logic elements (SoP) Sequential logic elements (D-FFs) Up to 10 outputs Up to 10 FFs Up to 22 inputs A typical PAL Autumn 2010 CSE370 - XV - Registers and Counters 16

Implementation using PALs Programmable logic building block for sequential logic macro-cell: FF + logic D-FF two-level logic capability like PAL (e.g., 8 product terms) D Q Q Autumn 2010 CSE370 - XV - Registers and Counters 17 22V10 PAL Macro Cell Sequential logic element + output/input selection Autumn 2010 CSE370 - XV - Registers and Counters 18

Cyclone II FPGA Logic Array Blocks (LABs) Autumn 2010 CSE370 - XV - Registers and Counters 19 Cyclone II FPGA Logic Element (LE) (16 per LAB) Autumn 2010 CSE370 - XV - Registers and Counters 20

Logic Element (LE) in Normal Mode Autumn 2010 CSE370 - XV - Registers and Counters 21 Logic Element (LE) in Arithmetic Mode Autumn 2010 CSE370 - XV - Registers and Counters 22