ENG2410 Digital Design Registers & Counters

Similar documents
INDIANA UNIVERSITY, DEPT. OF PHYSICS, P400/540 LABORATORY FALL Laboratory #10: Integrated Up-Down Counters and Displays

1722A Global System Clock Streams (aka Media Clock Streams) Principles and Suggestions

Sequential Logic. Sequential circuits. Reuse circuit elements by storing bits in "memory." Introduction to Computer Yung-Yu Chuang

Embedded and Ambient System Laboratory. Syllabus for FPGA measurements

The following example configurations are intended to show how the

Registers and Counters

How do I use SmartMusic in my everyday classroom instruction?

SMART Podium interactive pen display

Section 28 Rehabilitative and Community Support Services KEPRO Mapping Document

RF-TTC FAQs. September 24. Typical questions about timing signals generated by the RF system and transmitted over fibres to TTC system

Media Technology & Instructional Services (MTIS) - Lake Worth Campus

Registers and Counters

Counters

Logic Design II (17.342) Spring Lecture Outline

Digital Fundamentals: A Systems Approach

Flip-Flops and Registers

HD PVR Viewer s Guide V1.02 Page 1 of 30

LaserSharp Multiphoton Microscope (last updated 11/27/2012)

APPLICATIONS: TELEVISIONS

Experiment 8 Introduction to Latches and Flip-Flops and registers

SMART Room System for Microsoft Lync

TMS9927 and TMS9937 Single-Chip Video Timers/Controllers

Lecture 12. Amirali Baniasadi

PROFILE LP VINYL-ARCHIVING TURNTABLE QUICKSTART GUIDE ENGLISH ( 2 4 ) MANUAL DE INICIO RÁPIDO ESPAÑOL ( 5 7 )

Introduction This application note describes the VSB-ENC-150E 8-VSB Modulator and its applications.

A GENERALIZED TWO-INPUT FLIP-FLOP AND ITS REALIZATION'

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

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

Layered Queueing Network Modeling of Software Systems

NYS Common Core ELA & Literacy Curriculum Grade 9 Module 1 Unit 2 Lesson 3

ThinManager Certification Test Lab 3

Week One: Focus: Emotions. Aims: o o o o. Objectives: o. Introduction: o o. Development: o. Conclusion: o

Dearborn STEM Middle School Music Handbook

15PT1727. Operating Instructions

Happily Ever After? A Fairy Tale Unit [1st grade]

PR indicates a pre-requisite. CO indicates a co-requisite.

Manual Control. Shutting Down the Mallincam Xtreme

PaperStream IP (ISIS) change history

Release Type: Firmware Software Hardware New Product. WP-577VH Any Yes N/A

ROOTSECURE SENSOR SCANNING SCHEDULES DECEMBER 13, 2017

Contexts: Literary Research Essay/Independent Novel Project

Asynchronous (Ripple) Counters

Congratulations on purchasing your DStv HD PVR 2 P (High Definition Personal Video Recorder) Decoder!

Flip-flop and Registers

Accessing the Options Main Menus

JROTCDL.com CADET 104 How to Write Effectively 1

Basics How to cite in-text and at end-of-paper

Colour television. 25PT3323 Operating Instructions

River Ridge Taiko Student Contract

Earth Science Modeling Research Paper Rough Draft

MC9211 Computer Organization

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

Computer Organization & Architecture Lecture #5

Chapter 3 Unit Combinational

Essays Each student must complete two Essays. One is due in Module 3 and the other is due in Module 7.

7 th Grade Advanced English Language Arts An investment in knowledge pays the best interest. ~ Ben Franklin

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

ELCT201: DIGITAL LOGIC DESIGN

Colour television. Operating Instructions 29PT PT4323

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Sciences

KEYS TO SUCCESS. September 25, PERCEPTIVE DEVICES LLC 8359 Oakdale Ct, Mason, OH 45040, USA

Guide to Using Donovan Lounge Technology

QPHY-eDP Embedded DisplayPort Serial Data Compliance Software. Instruction Manual

The ViviD is an upgraded version of Iris Software to support full motion video that comprised of three applications

Counter dan Register

PaperStream IP (ISIS) change history

Holding a School-wide Mock Caldecott

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

YEAR 8 Greek drama. Name Class. Level (End of SOW) Target Grade. Teacher WWW. Teacher EBI. Literacy Target: Student Action Step

Colour Television 29PT3223. Operating Instructions

Why FPGAs? FPGA Overview. Why FPGAs?

!!!!!!!!!! Seventh!Grade,General!Music:!!! Creating!an!Original!Composition!in!ABA!Form!using! Garageband!! Mindy!Rubinlicht! Updated!January!2015!!!

Registers and Counters

Synchronous Capture of Image Sequences from Multiple Cameras. P. J. Narayanan, Peter Rander, Takeo Kanade CMU-RI-TR-95-25

Color Television Operating Instructions

Student Recital Checklist

Welcome to Palm Beach State College Boca Raton Campus. Use the buttons on the left to assist you in using the Multimedia Classroom Equipment.

CHAPTER1: Digital Logic Circuits

BAtn/MOtn Series Product Manual

Microprocessor Design

PALMETTO HIGH SCHOOL SHOW CHOIR Syllabus

Chapter 6 Registers and Counters

THE MIDDLE AGES:

NYS Common Core ELA & Literacy Curriculum Grade 9 Module 1 Unit 3 Lesson 16

CMV COMPETITION RULES

Registers and Counters

UNIVERSITI TEKNOLOGI MALAYSIA

ECE 3401 Lecture 11. Sequential Circuits

Anthem. Subject to change based on time and needs of the class

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

CB South Advanced Ensembles Symphonic Band and Jazz Ensemble Auditions

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

CCS-UC-1 Crestron Mercury Tabletop Conference System. Supplemental Guide Crestron Electronics, Inc.

hochschule fu r angewandte wissenschaften hamburg Prof. Dr. B. Schwarz FB Elektrotechnik/Informatik

User Guide. Table Of Contents. o o o o o o o o

Music Curriculum Map. EQ: How does practice improve performance? Establish routines and warm-ups.

SCHEDULE FOR THE EVENING:

ELE2120 Digital Circuits and Systems. Tutorial Note 8

ENGG2410: Digital Design Lab 5: Modular Designs and Hierarchy Using VHDL

SCHOOLS AND STUDENTS PERFORMING & RECEIVING AWARDS

Transcription:

ENG2410 Digital Design Registers & Cunters Registers: Definitin Register a set f flip-flps May include extensive lgic t cntrl state transitin Registers als refer t fast memry fr string data in a cmputer Fall 2017 S. Areibi Schl f Engineering University f Guelph 4 Week #8 Tpics Definitin f Register and Cunter Registers, Shift Registers Ripple Cunters Synchrnus Binary Cunters BCD Cunters Cunters: Definitin Cunter Register that ges thrugh sequence f states as it is clcked We designed a simple cunter in the previus Lecture using T Flip Flps! 000 001 010 011 111 110 101 100 2 5 Resurces Simple Register (N External Gates) Chapter #7, Man Sectins 7.1 Registers and Lad Enable 7.6 Shift Registers 7.6 Ripple Cunters 7.6 Synchrnus Binary Cunters Inputs Outputs Functinality Stre D (D 0,D 1,D 2,D 3 ) On ps-edge f Clck Clear signal nrmally high Pwer-up reset 3 6 Schl f Engineering 1

Disabling the Clcking Shift Registers 7 10 Clcking Shift Registers The transfer f new inf int a register is referred t as lading the register. Typically we dn t want t lad every clck We gate the clck!! (Disable the clck)!! We try t avid gating!! (Timing issues) A shift register is a chain f flip-flps in cascade, with the utput f ne flip-flp cnnected t the input f the next flip-flp. It is a register capable f shifting its stred bits laterally in ne r bth directins. All flip-flps receive a cmmn clck pulse, which activates the shift frm each stage t the next. Disable the Clck 8 11 Alternative Simple 4-bit Shift Register If lad H, then D ges thrugh Otherwise, Q is fed back Keep same value N clck gating Every bit shifts t the right at every clck edge. Why add all this lgic? Because D FF desn t have n change behavir New infrmatin will enter via S i and leave frm S 9 12 Schl f Engineering 2

Simple 4-Bit Shift Register: Diagram Schematic Clcked in cmmn Just serial in and serial ut Q 0 Q 1 Q 2 Q 3 SO One stage f a bidirectinal shift register with parallel lad 13 16 VHDL fr Shift Registers Shift Register with Parallel Lad -- 4 bit Shift Register with Reset library ieee; use ieee.std_lgic_1164.all; entity srg_4_r is prt (CLK, RESET, SI : in std_lgic; Q : ut std_lgic_vectr(3 dwnt 0); SO : ut std_lgic); end srg_4_r; architecture behaviral f srg_4_r is Signal shift : std_lgic_vectr(3 dwnt 0); begin prcess (CLK, RESET) begin if (RESET = `1 ) then shift <= `0000 ; elsif (CLK event and CLK = `1 )) then shift<= shift(2 dwnt 0) & SI; end if; end prcess; Q <= shift; S0 <= shift(3); end behaviral; Reset Lad any value t the shift register The shift register can then shift infrmatin ne bit at a time 14 17 Bidirectinal Shift Register Shift Register with Parallel Lad Shift either way Nw we have fllwing pssible inputs Parallel lad Shift frm left Shift frm right Als n change Schematic 15 18 Schl f Engineering 3

Shift Registers (Summary) Hardware Cmparisn Capability t shift bits In ne r bth directins Usage? Part f standard CPU instructin set Cheap Multiplicatin/Divisin Serial cmmunicatins Serial vs. parallel adder One full adder vs. n adders Serial takes n clck cycles, parallel nly ne clck cycle 19 22 Serial Additin Synchrnus Cunters 20 23 Initially reset all registers Register A accumulates At same time, new value ging int B Serial Additin Adds ne bit at a time Then shift thrugh adder int A. Added t 0 if A is empty. Cunters Cunter is a register but has states Als ges thrugh sequence f states cunts n clck r ther pulses Examples: Binary Cunter Cunts thrugh binary sequence n bit cunter cunts frm 0 t 2 n 1 BCD Cunter Any Sequence Cunter Shift value in serially Stres carry ne clck 21 24 Schl f Engineering 4

Synthesis Using T Flip Flps T Flip Flps Synchrnus Design a cunter that cunts frm 000 t 111 and then back t 000 again. Use T Flip-Flps By using K-maps we can minimize the flip flp input equatins. T A 2 T A 1 1 T A 0 25 28 A Cunter using T Flip Flps Synchrnus Cunters 000 001 010 011 Asynchrnus Cunters 111 110 101 100 26 29 Example: T Flip Flp Synthesis Asynchrnus Cunters 0 Asynchrnus cunters are yet anther type f cunters where nt all flip flps are driven by the glbal clck. Ripple cunters are asynchrnus cunters that are easy t design. 27 30 Schl f Engineering 5

Ripple Cunter Simple (Asynch) Tggle 31 34 Cunters with Parallel Lad BCD Cunters 32 35 Binary Cunter with Parallel Lad BCD Cunters Cunters emplyed in digital systems quite ften require a parallel-lad capability fr transferring an initial binary number int the cunter prir t the cunter peratin. When lad is equal t 1, the input lad cntrl disables the cunt peratin and causes a transfer f data frm the fur parallel inputs t the fur utputs. The carry utput C0 becmes a 1 if all flip-flps are equal t 1 while the cunt input is enabled. This feature is useful fr expanding the cunter t mre stages BCD Cunters can als be designed using individual flip-flps and gates 33 36 Schl f Engineering 6

BCD Cunter using Binary Cunters Circuit and State Diagram The Binary Cunter with parallel lad can be cnverted int a synchrnus BCD cunter (Hw?) By cnnecting an external AND gate t the lad cntrl (as shwn in the Figure). 011 111 37 40 Arbitrary Cunters VHDL fr Cunters 38 41 Arbitrary Cunt Sequence VHDL fr Cunters One mre type f cunter is useful Cunt an arbitrary sequence Maybe yu need a sequence f states -- 4 bit Binary Cunter with Reset library ieee; use ieee.std_lgic_1164.all; entity cunt_4_r is prt (CLK, RESET, EN : in std_lgic; Q : ut std_lgic_vectr(3 dwnt 0); CO : ut std_lgic); CLK RESET Q 3 Q 2 Q 1 Q 0 end cunt_4_r; EN CO architecture behaviral f cunt_4_r is Signal cunt : std_lgic_vectr(3 dwnt 0); begin prcess (CLK, RESET) begin if (RESET = `1 ) then cunt <= `0000 ; elsif (CLK event and CLK = `1 ) and (EN = `1 )) then cunt <= cunt + 0001 ; end if; end prcess; q <= cunt; C0 <= `1 when cunt = 1111 and EN = `1 else 0 ; end behaviral; 39 42 Schl f Engineering 7

Example II 46 Serial Transfer (8-bit Shift Register) Example II.. Cntinue Culd shift data in What s n wire at each clck? Clcked 4 times 44 47 Table Shwing Shift 45 Schl f Engineering 8