Registers. Unit 12 Registers and Counters. Registers (D Flip-Flop based) Register Transfers (example not out of text) Accumulator Registers

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

Logic Design II (17.342) Spring Lecture Outline

Chapter 3 Unit Combinational

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

Logic Devices for Interfacing, The 8085 MPU Lecture 4

Digital Fundamentals: A Systems Approach

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

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

CSC Computer Architecture and Organization

Registers and Counters

CHAPTER1: Digital Logic Circuits

Registers and Counters

Experiment 8 Introduction to Latches and Flip-Flops and registers

ENGN3213 Digital Systems and Microprocessors Sequential Circuits

6.3 Sequential Circuits (plus a few Combinational)

Switching Circuits & Logic Design, Fall Final Examination (1/13/2012, 3:30pm~5:20pm)

Asynchronous (Ripple) Counters

CS/ECE 250: Computer Architecture. Basics of Logic Design: ALU, Storage, Tristate. Benjamin Lee

Midterm Exam 15 points total. March 28, 2011

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

Logic Design. Flip Flops, Registers and Counters

Counter dan Register

Counters

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

CprE 281: Digital Logic

Review of digital electronics. Storage units Sequential circuits Counters Shifters

VARIABLE FREQUENCY CLOCKING HARDWARE

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

Agenda. EE 260: Introduction to Digital Design Counters and Registers. Asynchronous (Ripple) Counters. Asynchronous (Ripple) Counters

ASYNCHRONOUS COUNTER CIRCUITS

Computer Organization & Architecture Lecture #5

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

Registers and Counters

More on Flip-Flops Digital Design and Computer Architecture: ARM Edition 2015 Chapter 3 <98> 98

EET2411 DIGITAL ELECTRONICS

CHAPTER 4 RESULTS & DISCUSSION

Spring 2017 EE 3613: Computer Organization Chapter 5: The Processor: Datapath & Control - 1

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

Clock Domain Crossing. Presented by Abramov B. 1

EECS150 - Digital Design Lecture 3 Synchronous Digital Systems Review. Announcements

Sequential Logic Design CS 64: Computer Organization and Design Logic Lecture #14

ECE 250 / CPS 250 Computer Architecture. Basics of Logic Design ALU and Storage Elements

EECS 270 Midterm 1 Exam Closed book portion Winter 2017

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

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

Chapter 2. Digital Circuits

Chapter 6 Registers and Counters

Sequential logic circuits

Long and Fast Up/Down Counters Pushpinder Kaur CHOUHAN 6 th Jan, 2003

Outline. EECS150 - Digital Design Lecture 27 - Asynchronous Sequential Circuits. Cross-coupled NOR gates. Asynchronous State Transition Diagram

Registers and Counters

First Name Last Name November 10, 2009 CS-343 Exam 2

VeriLab. An introductory lab for using Verilog in digital design (first draft) VeriLab

CPS311 Lecture: Sequential Circuits

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

CSE 352 Laboratory Assignment 3

Contents Circuits... 1

Registers and Counters

Universal Asynchronous Receiver- Transmitter (UART)

ECE 263 Digital Systems, Fall 2015

Flip-Flops and Registers

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

UNIVERSITI TEKNOLOGI MALAYSIA

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

CHAPTER 4: Logic Circuits

Page 1) 7 points Page 2) 16 points Page 3) 22 points Page 4) 21 points Page 5) 22 points Page 6) 12 points. TOTAL out of 100

EECS 270 Group Homework 4 Due Friday. June half credit if turned in by June

MC9211 Computer Organization

1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

Dev Bhoomi Institute Of Technology Department of Electronics and Communication Engineering PRACTICAL INSTRUCTION SHEET

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

Microprocessor Design

Digital Design Datapath Components: Parallel Load Register

COMP sequential logic 1 Jan. 25, 2016

Sequential Logic Counters and Registers

Lecture 12. Amirali Baniasadi

Registers & Counters. BME208 Logic Circuits Yalçın İŞLER

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Sciences

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

DIGITAL ELECTRONICS MCQs

Read-only memory (ROM) Digital logic: ALUs Sequential logic circuits. Don't cares. Bus

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

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

Computer Systems Architecture

CHAPTER 4: Logic Circuits

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

Lab #10 Hexadecimal-to-Seven-Segment Decoder, 4-bit Adder-Subtractor and Shift Register. Fall 2017

Scanned by CamScanner

Logic Design Viva Question Bank Compiled By Channveer Patil

REPEAT EXAMINATIONS 2004 SOLUTIONS

EE 109 Homework 6 State Machine Design Name: Score:

Unit-5 Sequential Circuits - 1

Lec 24 Sequential Logic Revisited Sequential Circuit Design and Timing

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

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

EECS150 - Digital Design Lecture 10 - Interfacing. Recap and Topics

CS 261 Fall Mike Lam, Professor. Sequential Circuits

Slide 1. Flip-Flops. Cross-NOR SR flip-flop S R Q Q. hold reset set not used. Cross-NAND SR flip-flop S R Q Q. not used reset set hold 1 Q.

Combinational vs Sequential

Modeling Digital Systems with Verilog

Transcription:

Unit 2 Registers and Counters Fundamentals of Logic esign EE2369 Prof. Eric Maconald Fall Semester 23 Registers Groups of flip-flops Can contain data format can be unsigned, 2 s complement and other more complex formats (floating point, etc.) share common input (bus) and output (bus as well) share common clock (gated identically) Can contain control information each bit enabling/disabling feature of bigger design Outputs can be tri-statable and ganged with other registers to form tri-state bus. Registers ( Flip-Flop based) Register Transfers (example not out of text) [3:] [3] [2] [] [] resetn load [3] [2] [] [] [3:] A load B load C load load 8 bit reg 8 bit reg 8 bit reg 8 bit reg ALU (+,-) two 8b tri-state busses two b enable busses How should the inputs be set to add B + C and store result in A? Accumulators Accumulators can add stream of numbers to take average (must divide number after sum complete) for digital signal processing algorithm serial multiplication (to add partial products) Combines Adder with Register one input of adder is register output output of adder is input of register Must include reset to start from zero Accumulator Registers [3:] X[3] X[2] X[] X[] resetn load fa fa fa fa SP Algorithm = A*X + A2*X2 + A3*X3 (e.g. low pass filter) Average = (X + X2 + X3 + X + X5 + X6 + X7 + X8) / 8 Y[3:] Y[3] Y[2] Y[] Y[]

Accumulator example Accumulator in action Clr In[3:] Next Out [7:] 8 bit register Out [7:] In[3:] 2 3 2 2 Out[7:] x 2 7 9 2 clrn Next Out[7:] x 2 7 7 9 2 Shift Registers Shift Registers Chain of Flip-Flops (input of one to output of next) Can convert serial data to/from parallel data Can add multiple cycles of delay to signal Most likely circuit to fail hold requirements data path between FF can be nothing more than a wire clock skew must be monitored with care Shift Registers multiple cycles of delay Counters SI 2 SO One of the simplest forms of state machine state of a circuit means the value of the flops and latches the next state is the values in the next clock cycle determined by current state (at least) and also circuit inputs use next state information to design inputs to FF and latches Counters repeatedly run through sequence of numbers most commonly in an ascending order with wrap around can be descending can be any arbitrary sequence (useful for control) can be several sequences one of which is chosen based on inputs 2

T-Flop Counter Ripple Counter (not in book or test) Using data signal as clock is often discouraged in chip design methodologies. But this is a dense design style -Flop Counter Up-own Counter Up-own Counter Loadable Counter - specification A + = a = (Ld *A + Ld* a ) ^ Ld *Ct B + = b = (Ld *B + Ld* b ) ^ Ld *Ct*A C + = c = (Ld *C + Ld* c ) ^ Ld *Ct*B*A 3

Loadable Counter implementation Second Example with -Flops Microcontroller Instruction Sequencer no pipelining fetch decode execute write side note: bad processor design to leave a bubble in the pipe - done for enhance example

Microcontroller Instruction Sequencer Counter with hold control input write back results bubble for example only Fetch instruction Fetch and decode finish decode execute (need two cycles) h= h= h= h= h= h= Reset input could be added that forces the next state to be Otherwise, at power up some random value will be in the flops and the sequence will start from that point. Counter with hold control input state table Example istributor two choices A B C Hold A+ B+ C+ Specification: Four enables to fire spark plugs in a car. Enables must be mutually exclusive or damage to engine can occur. Enables must be periodic. Case : states requires two flops and a. Small but glitches. Case 2: states uses four flops and will not glitch. Known as one-hot state-machine Can not tolerate glitches. 5