CprE 281: Digital Logic

Similar documents
Sequential Circuit Background. Young Won Lim 11/6/15

Registers Shift Registers Accumulators Register Files Register Transfer Language. Chapter 8 Registers. SKEE2263 Digital Systems

EE 330 Integrated Circuit. Sequential Airbag Controller

VHDL (and verilog) allow complex hardware to be described in either single-segment style to two-segment style

6.823 Computer System Architecture Prerequisite Self-Assessment Test Assigned Feb. 6, 2019 Due Feb 11, 2019

Using SystemVerilog Assertions in Gate-Level Verification Environments

SDRAM AS4SD8M Mb: 8 Meg x 16 SDRAM Synchronous DRAM Memory. PIN ASSIGNMENT (Top View)

128Mb Synchronous DRAM. Features High Performance: Description. REV 1.0 May, 2001 NT5SV32M4CT NT5SV16M8CT NT5SV8M16CT

Introduction to Digital Techniques

HYB25D256400/800AT 256-MBit Double Data Rata SDRAM

FULLY SYNCHRONOUS DESIGN By Serge Mathieu

HYB25D256[400/800/160]B[T/C](L) 256-Mbit Double Data Rate SDRAM, Die Rev. B Data Sheet Jan. 2003, V1.1. Features. Description

IS42S32200L IS45S32200L

HYB25D256400B[T/C](L) HYB25D256800B[T/C](L) HYB25D256160B[T/C](L)

CMPEN 411 VLSI Digital Circuits Spring Lecture 24: Peripheral Memory Circuits

SYNCHRONOUS DRAM. 128Mb: x32 SDRAM. MT48LC4M32B2-1 Meg x 32 x 4 banks

IS42S32200C1. 512K Bits x 32 Bits x 4 Banks (64-MBIT) SYNCHRONOUS DYNAMIC RAM

SDRAM DEVICE OPERATION

XC95288 In-System Programmable CPLD

128Mb DDR SDRAM. Features. Description. REV 1.1 Oct, 2006

Using Tridium s Sedona 1.2 Components with Workbench

Investigation of timing constraints violation as a fault injection means. ZUSSA Loïc, DUTERTRE Jean-Max, CLEDIERE Jessy, ROBISSON Bruno, TRIA Assia

Parallelism I: Inside the Core

DOUBLE DATA RATE (DDR) SDRAM

CMPEN 411 VLSI Digital Circuits Spring Lecture 20: Multiplier Design

e-smart 2009 Low cost fault injection method for security characterization

ECE 550D Fundamentals of Computer Systems and Engineering. Fall 2017

- DQ0 - NC DQ1 - NC - NC DQ0 - NC DQ2 DQ1 DQ CONFIGURATION. None SPEED GRADE

A48P4616B. 16M X 16 Bit DDR DRAM. Document Title 16M X 16 Bit DDR DRAM. Revision History. AMIC Technology, Corp. Rev. No. History Issue Date Remark

- - DQ0 NC DQ1 DQ0 DQ2 - NC DQ1 DQ3 NC - NC

Chapter 3: Computer Organization Fundamentals. Oregon State University School of Electrical Engineering and Computer Science.

AUTO 121 Auto Electrical I Fall Section J01 3 credits

- DQ0 - NC DQ1 - NC - NC DQ0 - NC DQ2 DQ1 DQ

- - DQ0 NC DQ1 DQ0 DQ2 - NC DQ1 DQ3 NC - NC

Lecture 14: Instruction Level Parallelism

Contents. Preface... xiii Introduction... xv. Chapter 1: The Systems Approach to Control and Instrumentation... 1

XC95108 In-System Programmable CPLD

CS250 VLSI Systems Design

XC95144 In-System Programmable CPLD. Features. Description. Power Management. December 4, 1998 (Version 4.0) 1 1* Product Specification

- DQ0 - NC DQ1 - NC - NC DQ0 - NC DQ2 DQ1 DQ

4 Electric Circuits. TAKE A LOOK 2. Identify Below each switch, label the circuit as a closed circuit or an open circuit.

Using Sedona 1.2 Components from Tridium s Kits

9/13/2017. Friction, Springs and Scales. Mid term exams. Summary. Investigating friction. Physics 1010: Dr. Eleanor Hodby

Subject: Pneumatic Training Kit with portable Air Compressor

Pipelined MIPS Datapath with Control Signals

54ACxxxx, 54ACTxxxx. Rad-hard advanced high-speed 5 V CMOS logic series. Features. Description

Circular BIST - Organization

2-marks question bank UNIT I - TRANSFORMERS UNIT II: AC MACHINES

54ACxxxx, 54ACTxxxx. Rad-hard advanced high-speed 5 V CMOS logic series. Features. Description

Advantage Memory Corporation reserves the right to change products and specifications without notice

The Fundamentals of DS3

AVS64( )L

GENERAL CHEMISTRY. Sub-disciplines of Chemistry. Course Organization. Course Organization: People. What You Need for Lecture

DQ0 NC DQ1 DQ0 DQ2 DQ3 DQ Speed Grade

Precision Air Track P4-2710

( DOC No. HX8705-B-DS ) HX8705-B

Chapter 5 Vehicle Operation Basics

Energy. on this world and elsewhere. Instructor: Gordon D. Cates Office: Physics 106a, Phone: (434)

8.6 Investigating gear ratios using LEGO

DAT105: Computer Architecture Study Period 2, 2009 Exercise 2 Chapter 2: Instruction-Level Parallelism and Its Exploitation

The Fundamentals of DS3

PowerChute TM Network Shutdown in Redundant UPS Configurations

MACH 5 CPLD Family. Fifth Generation MACH Architecture

Electrical Controls. Syllabus

IS42S Meg Bits x 16 Bits x 4 Banks (64-MBIT) SYNCHRONOUS DYNAMIC RAM FEATURES OVERVIEW. PIN CONFIGURATIONS 54-Pin TSOP (Type II)

t WR = 2 CLK A2 Notes:

Energy Efficient Content-Addressable Memory

MACH 5 CPLD Family. Fifth Generation MACH Architecture

Installation and Operations Manual

Notes: Clock Frequency (MHz) Target t RCD- t RP-CL t RCD (ns) t RP (ns) CL (ns) -6A

CMPEN 411 VLSI Digital Circuits Spring Lecture 22: Memery, ROM

Supersedes CL2 (512) Form CL2 (615) STARTUP CHECKLIST PHONE: CUSTOMER ORDER NO: JCI TEL NO: JCI ORDER NO: JCI CONTRACT NO:

Dispenser Communication Error Codes for units containing the DeLaRue SDD-1700 feeders only

Advantage Memory Corporation reserves the right to change products and specifications without notice

Phase Leg IGBT with an Integrated Driver Module

CF-10 Option Operating Instructions

PMD706416A. Document Title. 64Mb (4M x 16) DDR SDRAM (A die) Datasheet

Advantage Memory Corporation reserves the right to change products and specifications without notice

DQ18 DQ19 VDD DQ20 NC *VREF **CKE1 VSS DQ21 DQ22 DQ23 VSS DQ24 DQ25 DQ26 DQ27 VDD DQ28 DQ29 DQ30 DQ31 VSS **CLK2 NC NC SDA SCL VDD

SIMOREG SIMOREG DC-MASTER. 6RA70 Series

PMD709408C/PMD709416C. Document Title. Revision History. 512Mb (64M x 8 / 32M x 16) DDR SDRAM C die Datasheet

AP1000 European 7. Instrumentation and Controls Design Control Document

Index. sequencing, 21, 26 starting off, 22 using, 28 code sequence, 28 custom pallete, 28

Pipelining A B C D. Readings: Example: Doing the laundry. Ann, Brian, Cathy, & Dave. each have one load of clothes to wash, dry, and fold

5K - 50K Gates Coprocessor FPGA with FreeRAM AT40K05 AT40K05LV AT40K10 AT40K10LV AT40K20 AT40K20LV AT40K40 AT40K40LV

4 Electric Circuits. TAKE A LOOK 2. Identify Below each switch, label the circuit as a closed circuit or an open circuit.

Notes: Clock Frequency (MHz) Target t RCD- t RP-CL t RCD (ns) t RP (ns) CL (ns) A

Enabling Shift-Left through FV Methodologies on Intel Graphics Designs

EL In-Place Inclinometer Multiplexed Version

256Mbit SDRAM. 8M x 8bit x 4 Banks Synchronous DRAM LVTTL. Revision 0.1 Sept. 2001

Revision History Revision 1.0 (August, 2003) - First release. Revision 1.1 (February, 2004) -Corrected typo.

ASIC Design (7v81) Spring 2000

Laboratory 10 Assignment. Introduction

M464S1724CT1 SDRAM SODIMM 16Mx64 SDRAM SODIMM based on 8Mx16,4Banks,4K Refresh,3.3V Synchronous DRAMs with SPD. Pin. Pin. Back. Front DQ53 DQ54 DQ55

Algebra 2 Plus, Unit 10: Making Conclusions from Data Objectives: S- CP.A.1,2,3,4,5,B.6,7,8,9; S- MD.B.6,7

Conclusions. Fall 2010

SDR SDRAM. MT48LC8M8A2 2 Meg x 8 x 4 Banks MT48LC4M16A2 1 Meg x 16 x 4 Banks. Features. 64Mb: x8, x16 SDRAM. Features

ICTP Latin-American Advanced Course on FPGADesign for Scientific Instrumentation. 19 November - 7 December, 2012

Notes: Clock Frequency (MHz) Target t RCD- t RP-CL t RCD (ns) t RP (ns) CL (ns) -6A E

SE-3SCR-LM MANUAL MOTOR LOAD MANAGER

Transcription:

CprE 28: Digital Logic Instructor: Alexander Stoytchev http://www.ece.iastate.edu/~alexs/classes/

Registers and Counters CprE 28: Digital Logic Iowa State University, Ames, IA Copyright Alexander Stoytchev

Administrative Stuff The second midterm is this Friday. Homework 8 is due today. Homework 9 is out. It is due on Mon Nov 7. No HW due next Monday

Midterm Exam #2 Administrative Stuff When: Friday October 28 @ 4pm. Where: This classroom What: Chapters, 2, 3, 4 and 5.-5.8 The exam will be open book and open notes (you can bring up to 3 pages of handwritten notes).

Registers

Register (Definition) An n-bit structure consisting of flip-flops

Parallel-Access Register

-Bit Parallel-Access Register Load In D Out

-Bit Parallel-Access Register Load In D Out The 2-to- multiplexer is used to select whether to load a new value into the D flip-flop or to retain the old value. The output of this circuit is the output of the flip-flop.

-Bit Parallel-Access Register Load In D Out If Load =, then retain the old value. If Load =, then load the new value from In.

2-Bit Parallel-Access Register Out_ Out_ Load D D In_ In_

2-Bit Parallel-Access Register Parallel Output Out_ Out_ Load D D In_ In_ Parallel Input

3-Bit Parallel-Access Register Out_2 Out_ Out_ Load D D D In_2 In_ In_ Notice that all flip-flops are on the same clock cycle.

3-Bit Parallel-Access Register Parallel Output Out_2 Out_ Out_ Load D D D In_2 In_ In_ Parallel Input

4-Bit Parallel-Access Register Out_3 Out_2 Out_ Out_ Load D D D D In_3 In_2 In_ In_

4-Bit Parallel-Access Register Parallel Output Out_3 Out_2 Out_ Out_ Load D D D D In_3 In_2 In_ In_ Parallel Input

Shift Register

A simple shift register In D 2 3 4 D D D Out [ Figure 5.7a from the textbook ]

A simple shift register In D 2 3 4 D D D Out Positive-edge-triggered D Flip-Flop

A simple shift register In D 2 3 4 D D D Out D D m D s Clk Clk

A simple shift register In D 2 3 4 D D D Out D Flip-Flop D D m D s Clk Clk Gated D-Latch Gated D-Latch

A simple shift register In D 2 3 4 D D D Out

A simple shift register In D 2 3 4 D D D Out In D Clk D Clk D Clk D Clk D Clk D Clk D Clk D Clk

A simple shift register In D 2 3 4 D D D Out In D Clk D Clk D Clk D Clk D Clk D Clk D Clk D Clk

A simple shift register In D 2 3 4 D D D Out In D Clk D Clk D Clk D Clk D Clk D Clk D Clk D Clk

A simple shift register In D 2 3 4 D D D Out In D Clk D Clk D Clk D Clk D Clk D Clk D Clk D Clk

A simple shift register In D 2 3 4 D D D Out In D Clk D Clk D Clk D Clk D Clk D Clk D Clk D Clk

A simple shift register In D Clk D Clk D Clk D Clk D Clk D Clk D Clk D Clk

A simple shift register In D Clk D Clk D Clk D Clk D Clk D Clk D Clk D Clk

A simple shift register In D Clk D Clk D Clk D Clk D Clk D Clk D Clk D Clk

A simple shift register In D Clk D Clk D Clk D Clk D Clk D Clk D Clk D Clk

A simple shift register In D Clk D Clk D Clk D Clk D Clk D Clk D Clk D Clk

A simple shift register In D 2 3 4 D D D Out (a) Circuit t In 2 3 4 = Out t t 2 t 3 t 4 t 5 t 6 t 7 (b) A sample sequence [ Figure 5.7 from the textbook ]

Parallel-Access Shift Register

Parallel-access shift register [ Figure 5.8 from the textbook ]

A shift register with parallel load and enable control inputs [ Figure 5.59 from the textbook ]

Register File

Register File [https://jindongpu.wordpress.com/22/3/7/register-file/]

[http://fourier.eng.hmc.edu/e85_old/lectures/digital_logic/node9.html]

[http://fourier.eng.hmc.edu/e85_old/lectures/digital_logic/node9.html]

[http://www.eecg.toronto.edu/~enright/teaching/ece243s/notes/l9-implemenation-single-cycle.html]

Register File Register file is a unit containing r registers r can be 4, 8, 6, 32, etc. Each register has n bits n can be 4, 8, 6, 32, etc. n defines the data path width Output ports (DATA and DATA2) are used for reading the register file Any register can be read from any of the ports Each port needs a log 2 r bits to specify the read address (RA and RA2) Input port (LD_DATA) is used for writing data to the register file Write address is also specified by log 2 r bits (WA) Writing is enabled by a -bit signal (WR) RA LD_DATA WR Reg File RA2 WA DATA DATA2

Suppose that a register file contains 32 registers width of data path is 6 bits (i.e., each register has 6 bits) How many bits are there for each of the signals? RA RA2 DATA DATA2 WA LD_DATA WR Register File: Exercise 5 5 6 6 5 6 RA LD_DATA WR Reg File RA2 WA DATA DATA2

Register file design We will design an eight-register file with 4-bit wide registers A single 4-bit register and its abstraction are shown below LD D3 D2 D D D P 3 D P 2 D P D P LD D3 D2 D D 3 2 We have to use eight such registers to make an eight register file LD D3 D2 D D LD D3 D2 D D LD D3 D2 D D Clk 3 2 Clk 3 2 Clk 3 2 How many bits are required to specify a register address?

Reading Circuit A 3-bit register address, RA, specifies which register is to be read For each output port, we need one 8-to- 4-bit multiplier Register Address LD7 D3 D2 D D LD D3 D2 D D LD D3 D2 D D Clk 3 2 Clk 3 2 Clk 3 2 7 6 5 4 3 2 RA 8-to- 4-bit multiplex DATA 7 6 5 4 3 2 8-to- 4-bit multiplex RA2 DATA2

Adding write control to register file To write to any register, we need the register's address (WA) and a write register signal (WR) A 3-bit write address is decoded if write register signal is present One of the eight registers gets a LD signal from the decoder LD_DATA 3 to 8 D e c o d e r WA WR LD7 LD LD D3 D2 D D D3 D2 D D D3 D2 D D LD7 3 2 3 2 3 2 Clk Clk Clk LD2 LD LD 7 6 5 4 3 2 7 6 5 4 3 2 RA 8-to- 4-bit multiplex 8-to- 4-bit multiplex RA2 DATA DATA2

Counters

A three-bit up-counter [ Figure 5.9 from the textbook ]

A three-bit up-counter The first flip-flop changes on the positive edge of the clock [ Figure 5.9 from the textbook ]

A three-bit up-counter The first flip-flop changes on the positive edge of the clock The second flip-flop changes on the positive edge of [ Figure 5.9 from the textbook ]

A three-bit up-counter The first flip-flop changes on the positive edge of the clock The second flip-flop changes on the positive edge of The third flip-flop changes on the positive edge of [ Figure 5.9 from the textbook ]

A three-bit up-counter T T T 2 (a) Circuit 2 Count 2 3 4 5 6 7 (b) Timing diagram [ Figure 5.9 from the textbook ]

A three-bit up-counter T T T 2 (a) Circuit The propagation delays get longer 2 Count 2 3 4 5 6 7 (b) Timing diagram [ Figure 5.9 from the textbook ]

A three-bit down-counter [ Figure 5.2 from the textbook ]

A three-bit down-counter T T T 2 (a) Circuit 2 Count 7 6 5 4 3 2 (b) Timing diagram [ Figure 5.2 from the textbook ]

Synchronous Counters

A four-bit synchronous up-counter [ Figure 5.2 from the textbook ]

A four-bit synchronous up-counter The propagation delay through all AND gates combined must not exceed the clock period minus the setup time for the flip-flops [ Figure 5.2 from the textbook ]

A four-bit synchronous up-counter T T T 2 T 3 (a) Circuit 2 3 Count 2 3 4 5 6 7 8 9 2 3 4 5 (b) Timing diagram [ Figure 5.2 from the textbook ]

Derivation of the synchronous up-counter cycle 2 3 4 5 6 7 8 2 changes 2 changes [ Table 5. from the textbook ]

Derivation of the synchronous up-counter cycle 2 3 4 5 6 7 8 2 changes 2 changes T = T = T 2 = [ Table 5. from the textbook ]

A four-bit synchronous up-counter T = T = T 2 = [ Figure 5.2 from the textbook ]

In general we have T = T = T 2 = T 3 = 2 T n = 2 n-

Adding Enable and Clear Capability

Inclusion of Enable and Clear capability Enable T T T T Clear_n [ Figure 5.22 from the textbook ]

Inclusion of Enable and Clear capability This is the new thing relative to the previous figure, plus the clear_n line Enable T T T T Clear_n [ Figure 5.22 from the textbook ]

Providing an enable input for a D flip-flop [ Figure 5.56 from the textbook ]

Synchronous Counter with D Flip-Flops

A four-bit counter with D flip-flops [ Figure 5.23 from the textbook ]

Counters with Parallel Load

A counter with parallel-load capability [ Figure 5.24 from the textbook ]

Reset Synchronization

Motivation An n-bit counter counts from,,, 2 n - For example a 3-bit counter counts up as follow,, 2, 3, 4, 5, 6, 7,,, 2, What if we want it to count like this,, 2, 3, 4, 5,,, 2, 3, 4, 5,,, In other words, what is the cycle is not a power of 2?

What does this circuit do? [ Figure 5.25a from the textbook ]

A modulo-6 counter with synchronous reset Enable D D D 2 Load 2 (a) Circuit 2 Count 2 3 4 5 (b) Timing diagram [ Figure 5.25 from the textbook ]

A modulo-6 counter with asynchronous reset T T T 2 (a) Circuit 2 Count 2 3 4 5 2 (b) Timing diagram [ Figure 5.26 from the textbook ]

A modulo-6 counter with asynchronous reset T T T 2 (a) Circuit The number 5 is displayed for a very short amount of time 2 Count 2 3 4 5 2 (b) Timing diagram [ Figure 5.26 from the textbook ]

uestions?

THE END