ECE2030 Introduction to Computer Engineering Lecture 15: Registers, Toggle Cells, Counters Prof. Hsien-Hsin Sean Lee School of Electrical and Computer.

Slides:



Advertisements
Similar presentations
COUNTERS Counters with Inputs Kinds of Counters Asynchronous vs
Advertisements

ECE2030 Introduction to Computer Engineering Lecture 14: Sequential Logic Circuits Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering.
Registers and Counters
Digital Logic Chapter 5 Presented by Prof Tim Johnson
1 Sequential Circuits Dr. Pang. 2 Outline Introduction to sequential circuits Basic latch Gated SR latch and gated D latch D flip-flop, T flip-flop, JK.
ECE 331 – Digital System Design Flip-Flops and Registers (Lecture #18) The slides included herein were taken from the materials accompanying Fundamentals.
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Chapter #7: Sequential Logic Case Studies 7.1, 7.2 Counters.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
ENGIN112 L27: Counters November 5, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 27 Counters.
Chapter 7 - Part 2 1 CPEN Digital System Design Chapter 7 – Registers and Register Transfers Part 2 – Counters, Register Cells, Buses, & Serial Operations.
CS370 Counters. Overview °Counter: A register that goes through a prescribed series of states °Counters are important components in computers. °Counters.
COE 202: Digital Logic Design Sequential Circuits Part 4 KFUPM Courtesy of Dr. Ahmad Almulhem.
ENGIN112 L26: Shift Registers November 3, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 26 Shift Registers.
Sequential Circuit Introduction to Counter
C HAPTER S IX R EGISTERS AND C OUNTERS 1. A clocked sequential circuit consists of a group of flip-flops and combinational gates connected to form a feedback.
KU College of Engineering Elec 204: Digital Systems Design
What is shift register? A shift register is a digital memory circuit found in calculators, computers, and data-processing systems. Bits (binary digits)
1 Digital Design: Sequential Logic Blocks Credits : Slides adapted from: J.F. Wakerly, Digital Design, 4/e, Prentice Hall, 2006 C.H. Roth, Fundamentals.
Unit 12 Registers and Counters Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Counters.
A State Element “Zoo”.
Registers and Counters
Chapter 1_4 Part II Counters
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
Registers and Counters
© The McGraw-Hill Companies, Inc McGraw-Hill 1 PRINCIPLES AND APPLICATIONS OF ELECTRICAL ENGINEERING THIRD EDITION G I O R G I O R I Z Z O N I 14.
Rabie A. Ramadan Lecture 3
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
Princess Sumaya Univ. Computer Engineering Dept. Chapter 6:
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
Counters. November 5, 2003 Introduction: Counters  Counters are circuits that cycle through a specified number of states.  Two types of counters: 
Registers and Counters by Dr. Amin Danial Asham. References  Digital Design 5 th Edition, Morris Mano.
Digital Design Lectures 11 & 12 Shift Registers and Counters.
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.
Registers and Counters Chapter 6. Digital Circuits 2 Clocked sequential circuits a group of flip-flops and combinational gates connected to form a feedback.
CS 352 : Computer Organization and Design University of Wisconsin-Eau Claire Dan Ernst Latches & Flip-Flops.
Abdullah Said Alkalbani University of Buraimi
Sequential logic circuits
Registers and Counters
C HAPTER S IX R EGISTERS AND C OUNTERS 1. A clocked sequential circuit consists of a group of flip-flops and combinational gates connected to form a feedback.
Digital Electronics.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
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 Homework Reading –Tokheim Chapter 9.1 – 9.6 Machine Projects –Continue on mp3 Labs –Continue in labs with your assigned section.
Digital Design: Sequential Logic Blocks
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Registers and Counters
Prof. Hsien-Hsin Sean Lee
EKT 221 : Digital 2 COUNTERS.
Sequential Logic Counters and Registers
Prof. Hsien-Hsin Sean Lee
Sequential Circuit: Counter
DR S. & S.S. GHANDHY ENGINEENRING COLLEGE
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Digital System Design Review.
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.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Registers and Counters
Computer Architecture and Organization: L02: Logic design Review
CSE 370 – Winter Sequential Logic-2 - 1
Switching Theory and Logic Design Chapter 5:
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
Flip Flops Unit-4.
14 Digital Systems.
Outline Registers Counters 5/11/2019.
Presentation transcript:

ECE2030 Introduction to Computer Engineering Lecture 15: Registers, Toggle Cells, Counters Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia Tech

2 4-bit Register Register is the most fundamental storage, e.g. –x86 ISA has 8 general purpose registers –MIPS ISA has 32 general purpose registers Each 1-bit Flip-flop is a single bit register Cascade 4 of 1-bit FFs = A 4-bit Register in0 1-bit D Flip Flop 1111 out0 2222 in1 1-bit D Flip Flop out1 in2 1-bit D Flip Flop out2 in3 1-bit D Flip Flop out3

3 Read/Write Control a Register Read: Retrieve data stored inside a flip-flop Write: Update with a new input data into a flip-flop Given  1 and  2 are continuous clock signals Output 1-bit D Flip Flop 1111 2222 In READ mode Output 1-bit D Flip Flop 1111 2222Input In Write mode

4 Read/Write Control a Register Output 1-bit D Flip Flop 1111 2222 Input R/W

5 Another Read/Write Control of a Register Output 1-bit D Flip Flop 1111 2222 Input R/W Clock Gating

6 4-bit Register with Parallel Load Q3 11 22 DQ D3 R / W Q2 11 22 DQ D2 Q1 11 22 DQ D1 Q0 11 22 DQ D0

7 Logical Shift Register 11 22 DQ 11 22 DQ 11 22 DQ 11 22 DQ A3 A2A1A0 11 22 11 22 11 22 11 22 Right Shift

8 Arithmetic Shift Register 11 22 DQ 11 22 DQ 11 22 DQ 11 22 DQ A3 A2A1A0 11 22 11 22 11 22 11 22 Right Shift

9 Bidirectional Shift Register with Load (1-bit shown) 4-to-1 Mux s1 s0 11 22 DQ 11 22 DQ 11 22 DQ Q i+1 Q i Q i-1 DiDi 00: No shift 01: Shift Left 10: Shift Right 11: Load from Di

10 Serial Transfer DQ DQ DQDQ Shift Out (SO) Shift In (SI) Clock

11 Serial Shift Register DQ DQ DQDQ Shift Out (SO) (SI) Clock Clear SR4 SI SO Clock Clear

12 Design a Serial Adder (yet another adder) SR4 A SI SO Clock Clear SR4 B SI SO Clock Clear + A B S Co Ci DQ Clear A  A+B (1)Clear SRs (2)B  0111 (4 clks) (3)B=0111 A=0000 (4)B=1011 A=1000 (5)B=1101 A=1100 (6)B=0110 A=1110 (7)B=0011 A=0111 (8)B=0001 A=0011 (9)B=0000 A=1001 (10)B=0000 A=0100 (11)B=0000 A=1010 Ex: 0111 (A) (B) Input

13 Toggle Flip-Flop (Toggle Cell) Upon every clock, the output result is toggled D1Q1D2Q2 D1 D1 Q1=D2 Q2 En En En Transparent latch Transparent latch

14 Toggle Flip-Flop D1Q1D2Q2 1111 2222 Toggle Enable Bit (or TE bit) Toggle bit controls to toggle (T=1) or not to toggle (T=0) Transparent latch Transparent latch

15 Toggle F/F with Clear bit ClearToggle Enable Present Output Next Output 0XX D1Q1D2Q2 1111 2222 TE Bit Output Clear Transparent latch Transparent latch Note that output changes every clock cycle (e.g. rising edge or falling edge)

16 Toggle F/F Symbol TE Q CLR 1111 2222 ClearTEPresent QNext Q 0XX

17 Counters A register counts up or down per clock period –Count in binary –Could be preset: (with parallel loads) Types of counters –Ripple counter –Synchronous counter –Mod-n counter –Up/down counter –BCD counter –Gray code counter –Ring counter  a 1 moves in a ring from one F/F to the next –Johnson counter (or twisted ring count.)  The MSB is inversed and passed to the LSB)

18 2-bit Ripple Counter TE Q CLR 1111 2222 TE Q CLR O0 O1 Count Enable 1111 O0

19 2-bit Ripple Counter TE Q CLR 1111 2222 TE Q CLR O0 O1 Count Enable 1111 O0 O

20 4-bit Ripple Counter Count Enable 1111 O0 O1 TE Q CLR 1111 2222 TE Q CLR O0 O1 TE Q CLR O2 TE Q CLR O3 O2 O3

21 4-bit Synchronous Counter Count Enable TE Q CLR 1111 2222 O0 TE Q CLR O1 TE Q CLR O2 TE Q CLR O3 Clocks are applied to the inputs of all the F/F 1111 O0=TE1O1 O2 O4

22 Modulo-N (or Divide-by-N) Counter Mod-N –Count from 0 to N-1 –Then reset and start over CLR CE O3O2O1O0 1111 2222 4-bit Counter MOD-10 counter (a BCD Counter) CLR Terminal Count (TC)

23 Cascaded BCD Counter CLR CE O3O2O1O0 1111 2222 Mod-10Counter TC CLR CE O3O2O1O0 1111 2222 Mod-10Counter TC O7O6O5O4O3O2O1O0 Vdd