CprE 281: Digital Logic

Similar documents
CprE 281: Digital Logic

CprE 281: Digital Logic

CprE 281: Digital Logic

CprE 281: Digital Logic

CprE 281: Digital Logic

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1

Logic Design. Flip Flops, Registers and Counters

1. True/False Questions (10 x 1p each = 10p) (a) I forgot to write down my name and student ID number.

Engr354: Digital Logic Circuits

ECE 341. Lecture # 2

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

EECS 270 Midterm Exam Spring 2011

Unit 11. Latches and Flip-Flops

Department of Electrical and Computer Engineering Mid-Term Examination Winter 2012

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

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

AIM: To study and verify the truth table of logic gates

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

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

MODULE 3. Combinational & Sequential logic

Logic Design ( Part 3) Sequential Logic- Finite State Machines (Chapter 3)

Introduction to Digital Logic Missouri S&T University CPE 2210 Flip-Flops

Other Flip-Flops. Lecture 27 1

12/31/2010. Overview. 12-Latches and Flip Flops Text: Unit 11. Sequential Circuits. Sequential Circuits. Feedback. Feedback

CS 261 Fall Mike Lam, Professor. Sequential Circuits

CMSC 313 Preview Slides

Principles of Computer Architecture. Appendix A: Digital Logic

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

D Latch (Transparent Latch)

ECE321 Electronics I

ELE2120 Digital Circuits and Systems. Tutorial Note 7

DALHOUSIE UNIVERSITY Department of Electrical & Computer Engineering Digital Circuits - ECED 220. Experiment 4 - Latches and Flip-Flops

Introduction to Sequential Circuits

Chapter 2. Digital Circuits

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

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.

Sequential Logic Circuits

Chapter Contents. Appendix A: Digital Logic. Some Definitions

Flip-Flops and Registers

6. Sequential Logic Flip-Flops

Chapter 5 Sequential Circuits

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

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

Digital Logic Design ENEE x. Lecture 19

COE 202: Digital Logic Design Sequential Circuits Part 1. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

DIGITAL SYSTEM DESIGN UNIT I (2 MARKS)

Experiment 8 Introduction to Latches and Flip-Flops and registers

Course Administration

Computer Architecture and Organization

CHAPTER 4: Logic Circuits

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

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

CHAPTER 4: Logic Circuits

CHAPTER1: Digital Logic Circuits

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

Chapter 6 Digital Circuit 6-5 Department of Mechanical Engineering

Sequential Design Basics

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

Chapter 5: Synchronous Sequential Logic

DIGITAL CIRCUIT COMBINATORIAL LOGIC

LATCHES & FLIP-FLOP. Chapter 7

Topic D-type Flip-flops. Draw a timing diagram to illustrate the significance of edge

MUX AND FLIPFLOPS/LATCHES

EXPERIMENT: 1. Graphic Symbol: OR: The output of OR gate is true when one of the inputs A and B or both the inputs are true.

Flip-Flops and Sequential Circuit Design

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

ELCT201: DIGITAL LOGIC DESIGN

Lecture 8: Sequential Logic

Chapter. Synchronous Sequential Circuits

UNIVERSITY OF MASSACHUSSETS LOWELL Department of Electrical & Computer Engineering Course Syllabus for Logic Design Fall 2013

Midterm Exam 15 points total. March 28, 2011

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

Latches, Flip-Flops, and Registers. Dr. Ouiem Bchir

EE292: Fundamentals of ECE

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

Clocks. Sequential Logic. A clock is a free-running signal with a cycle time.

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

Sequential Digital Design. Laboratory Manual. Experiment #3. Flip Flop Storage Elements

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

Unit 9 Latches and Flip-Flops. Dept. of Electrical and Computer Eng., NCTU 1

1 Hour Sample Test Papers: Sample Test Paper 1. Roll No.

ECE 25 Introduction to Digital Design. Chapter 5 Sequential Circuits ( ) Part 1 Storage Elements and Sequential Circuit Analysis

ELCT201: DIGITAL LOGIC DESIGN

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

Sequential Circuits. Output depends only and immediately on the inputs Have no memory (dependence on past values of the inputs)

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

Chapter 5 Synchronous Sequential Logic

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

Chapter 11 Latches and Flip-Flops

Synchronous Sequential Logic

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

1.b. Realize a 5-input NOR function using 2-input NOR gates only.

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

Counters

INTRODUCTION TO SEQUENTIAL CIRCUITS

MC9211 Computer Organization

Digital Networks and Systems Laboratory 2 Basic Digital Building Blocks Time 4 hours

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

Transcription:

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

Registers CprE 281: igital Logic Iowa State University, Ames, IA Copyright Alexander Stoytchev

Administrative Stuff Homework 8 is due next Monday. The second midterm exam is next Friday.

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

Midterm 2: Format The exam will be out of 130 points You need 95 points to get an A for this exam It will be great if you can score more than 100 points. but you can t roll over your extra points L

Midterm 2: Topics Binary Numbers and Hexadecimal Numbers 1 s complement and 2 s complement representation Addition and subtraction of binary numbers Circuits for adders and fast adders Single and ouble precision IEEE floating point formats Converting a real number to the IEEE format Converting a floating point number to base 10 Multiplexers (circuits and function) Synthesis of logic functions using multiplexers Shannon s Expansion Theorem

Midterm 2: Topics ecoders (circuits and function) emultiplexers Encoders (binary and priority) Code Converters K-maps for 2, 3, and 4 variables Synthesis of logic circuits using adders, multiplexers, encoders, decoders, and basic logic gates Synthesis of logic circuits given constraints on the available building blocks that you can use Latches (circuits, behavior, timing diagrams) Flip-Flops (circuits, behavior, timing diagrams) Registers and Register Files

Review of Flip-Flops

A simple memory element with NOT Gates x x x

A simple memory element with NAN Gates x x x

A simple memory element with NOR Gates x x x

Basic Latch

A simple memory element with NOR Gates

A simple memory element with NOR Gates

A simple memory element with NOR Gates Set Reset

A memory element with NOR gates Reset Set [ Figure 5.3 from the textbook ]

Two ifferent Ways to raw the Same Circuit [ Figure 5.3 & 5.4 from the textbook ]

R S SR Latch: Circuit and Truth Table a b S R a b 0 0 0/1 1/0 0 1 0 1 1 0 1 0 1 1 0 0 (no change) (Undesirable) (a) Circuit (b) Truth table [ Figure 5.4a,b from the textbook ] NOR Gate NOR Gate Truth table x 1 x 2 f 0 0 1 0 1 0 1 0 0 1 1 0

Gated SR Latch

Circuit iagram for the Gated SR Latch [ Figure 5.5a from the textbook ]

Circuit iagram for the Gated SR Latch This is the gate of the gated latch

Circuit iagram for the Gated SR Latch Notice that these are complements of each other

Gated SR Latch: Circuit iagram, Characteristic Table, and Graphical Symbol (Undesirable) [ Figure 5.5 from the textbook ]

Gated SR latch with NAN gates S Clk R [ Figure 5.6 from the textbook ]

Gated SR latch with NAN gates S Clk R In this case the gate is constructed using NAN gates! Not AN gates.

Gated SR latch with NAN gates S Clk R Also, notice that the positions of S and R are now swapped.

Gated SR latch with NAN gates S 1 S Clk = 1 R 1 R Finally, notice that when Clk=1 this turns into the basic latch with NAN gates, i.e., the SR Latch.

Gated SR latch with NOR gates Gated SR latch with NAN gates S Clk R

Gated SR latch with NOR gates Gated SR latch with NAN gates S Clk R Graphical symbols are the same

Gated SR latch with NOR gates (undesirable) Gated SR latch with NAN gates S Clk R (undesirable) Characteristic tables are the same

Gated Latch

Circuit iagram for the Gated Latch [ Figure 5.7a from the textbook ]

Gated Latch: Alternative esign Clk [https://en.wikipedia.org/wiki/flip-flop_(electronics)]

Gated Latch: Circuit iagram, Characteristic Table, and Graphical Symbol Note that it is now impossible to have S=R=1. When Clk=1 the output follows the input. When Clk=0 the output cannot be changed. [ Figure 5.7a,b from the textbook ]

Setup and hold times for Gated latch t su t h Clk Setup time (t su ) the minimum time that the signal must be stable prior to the the negative edge of the Clock signal Hold time (t h ) the minimum time that the signal must remain stable after the the negative edge of the Clock signal [ Figure 5.8 from the textbook ]

Master-Slave Flip-Flop

Constructing a Master-Slave Flip-Flop From Two Latches Master Slave

Constructing a Master-Slave Flip-Flop From Two Latches Master Slave

Constructing a Master-Slave Flip-Flop From Two Latches Master Slave

Constructing a Master-Slave Flip-Flop From Two Latches [ Figure 5.9a from the textbook ]

Constructing a Master-Slave Flip-Flop From one Latch and one Gated SR Latch (This version uses one less NOT gate) Master Slave

Constructing a Master-Slave Flip-Flop From one Latch and one Gated SR Latch (This version uses one less NOT gate) Master Slave

Edge-Triggered Flip-Flops

Master-Slave Flip-Flop Master Slave m s Clock Clk Clk (a) Circuit [ Figure 5.9a from the textbook ]

Negative-Edge-Triggered Master-Slave Flip-Flop Master Slave m s Clock Clk Clk Positive-Edge-Triggered Master-Slave Flip-Flop Master Slave m s Clock Clk Clk

Negative-Edge-Triggered Master-Slave Flip-Flop Master Slave m s Clock Clk Clk Positive-Edge-Triggered Master-Slave Flip-Flop Master Slave m s Clock Clk Clk

Negative-Edge-Triggered Master-Slave Flip-Flop Master Slave m s Clock Clk Clk Positive-Edge-Triggered Master-Slave Flip-Flop Master Slave m s Clock Clk Clk

T Flip-Flop

T Flip-Flop [ Figure 5.15a from the textbook ]

T Flip-Flop Positive-edge-triggered Flip-Flop [ Figure 5.15a from the textbook ]

T Flip-Flop What is this? [ Figure 5.15a from the textbook ]

What is this? T

What is this? T + =?

T Flip-Flop T 0 1 Clock

T Flip-Flop T 0 1 Clock Note that the two inputs to the multiplexer are inverses of each other.

Another Way to raw This T 0 1 Clock

Another Way to raw This T 0 1 Clock What is this?

What is this? T

What is this? T = T + T

It is an XOR T = + T

It is an XOR T = + T

What is this? + =?

T Flip-Flop T Clock

T Flip-Flop (circuit, truth table and graphical symbol) [ Figure 5.15a-c from the textbook ]

T Flip-Flop (How it Works) If T=0 then it stays in its current state If T=1 then it reverses its current state In other words the circuit toggles its state when T=1. This is why it is called T flip-flop.

JK Flip-Flop

JK Flip-Flop = J + K [ Figure 5.16a from the textbook ]

JK Flip-Flop J K Clock (a) Circuit J K ( t + 1) 0 0 0 1 t ( ) 0 J 1 1 0 1 1 t ( ) K (b) Truth table (c) Graphical symbol [ Figure 5.16 from the textbook ]

JK Flip-Flop (How it Works) A versatile circuit that can be used both as a SR flip-flop and as a T flip flop If J=0 and S =0 it stays in the same state Just like SR It can be set and reset J=S and K=R If J=K=1 then it behaves as a T flip-flop

Complete Wiring iagrams

Positive-Edge-Triggered Flip-Flop

Negative-Edge-Triggered Flip-Flop

The Complete Wiring iagram for a Positive-Edge-Triggered Flip-Flop Clock

The Complete Wiring iagram for a Negative-Edge-Triggered Flip-Flop Clock

The Complete Wiring iagram for a Negative-Edge-Triggered Flip-Flop Clock

Positive-Edge-Triggered T Flip-Flop T Clock

Negative-Edge-Triggered T Flip-Flop T Clock

The Complete Wiring iagram for a Positive-Edge-Triggered Flip-Flop T Clock

The Complete Wiring iagram for a Negative-Edge-Triggered Flip-Flop T Clock

Positive-Edge-Triggered JK Flip-Flop Clock J K

Negative-Edge-Triggered JK Flip-Flop Clock J K

The Complete Wiring iagram for a Positive-Edge-Triggered JK Flip-Flop J K Clock

The Complete Wiring iagram for a Negative-Edge-Triggered JK Flip-Flop J K Clock

Registers

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

Parallel-Access Register

1-Bit Parallel-Access Register Load In 0 1 Out Clock

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

1-Bit Parallel-Access Register Load 0 In 0 1 Out Clock If Load = 0, then retain the old value.

1-Bit Parallel-Access Register Load 1 In 0 1 Out Clock If Load = 1, then load the new value from In.

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

2-Bit Parallel-Access Register Out_1 Out_0 Load 0 1 0 1 Clock In_1 In_0

2-Bit Parallel-Access Register Parallel Output Out_1 Out_0 Load 0 1 0 1 Clock In_1 In_0 Parallel Input

3-Bit Parallel-Access Register Out_2 Out_1 Out_0 Load 0 1 0 1 0 1 Clock In_2 In_1 In_0 Notice that all flip-flops are on the same clock cycle.

3-Bit Parallel-Access Register Parallel Output Out_2 Out_1 Out_0 Load 0 1 0 1 0 1 Clock In_2 In_1 In_0 Parallel Input

4-Bit Parallel-Access Register Out_3 Out_2 Out_1 Out_0 Load 0 1 0 1 0 1 0 1 Clock In_3 In_2 In_1 In_0

4-Bit Parallel-Access Register Parallel Output Out_3 Out_2 Out_1 Out_0 Load 0 1 0 1 0 1 0 1 Clock In_3 In_2 In_1 In_0 Parallel Input

4-Bit Parallel-Access Register Out_3 Out_2 Out_1 Out_0 Load 0 1 0 1 0 1 0 1 Clock In_3 In_2 In_1 In_0

4-Bit Parallel-Access Register Out_3 Out_2 Out_1 Out_0 Load 0 0 1 0 1 0 1 0 1 Clock In_3 In_2 In_1 In_0

4-Bit Parallel-Access Register Out_3 Out_2 Out_1 Out_0 Load 1 0 1 0 1 0 1 0 1 Clock In_3 In_2 In_1 In_0

Shift Register

A simple shift register In 1 2 3 4 Out Clock [ Figure 5.17a from the textbook ]

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

A simple shift register In 1 2 3 4 Out Clock Master Slave m s Clock Clk Clk

A simple shift register In 1 2 3 4 Out Clock Flip-Flop Master Slave m s Clock Clk Clk Gated -Latch Gated -Latch

A simple shift register In 1 2 3 4 Out Clock

A simple shift register In 1 2 3 4 Out Clock In Clock Master Clk Slave Clk Master Clk Slave Clk Master Clk Slave Clk Master Clk Slave Clk

A simple shift register In 1 2 3 4 Out Clock In Clock Master Clk Slave Clk Master Clk Slave Clk Master Clk Slave Clk Master Clk Slave Clk

A simple shift register In 1 2 3 4 Out Clock In Clock Master Clk Slave Clk Master Clk Slave Clk Master Clk Slave Clk Master Clk Slave Clk

A simple shift register In 1 2 3 4 Out Clock In Clock Master Clk Slave Clk Master Clk Slave Clk Master Clk Slave Clk Master Clk Slave Clk

A simple shift register In 1 2 3 4 Out Clock In Clock Master Clk Slave Clk Master Clk Slave Clk Master Clk Slave Clk Master Clk Slave Clk

A simple shift register In Clock Master Clk Slave Clk Master Clk Slave Clk Master Clk Slave Clk Master Clk Slave Clk

A simple shift register In Clock Master Clk Slave Clk Master Clk Slave Clk Master Clk Slave Clk Master Clk Slave Clk Clock

A simple shift register In Clock Master Clk Slave Clk Master Clk Slave Clk Master Clk Slave Clk Master Clk Slave Clk Clock

A simple shift register In Clock Master Clk Slave Clk Master Clk Slave Clk Master Clk Slave Clk Master Clk Slave Clk Clock

A simple shift register In Clock Master Clk Slave Clk Master Clk Slave Clk Master Clk Slave Clk Master Clk Slave Clk Clock

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

Parallel-Access Shift Register

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

Parallel-access shift register 0 When Load=0, this behaves like a shift register. [ Figure 5.18 from the textbook ]

Parallel-access shift register 1 When Load=1, this behaves like a parallel-access register. [ Figure 5.18 from the textbook ]

Shift Register With Parallel Load and Enable

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

A shift register with parallel load and enable control inputs The directions of the input and output lines are switched relative to the previous slides. [ Figure 5.59 from the textbook ]

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

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

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

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

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

Parallel-access shift left / right register

Parallel-access shift left/right register Complete the following circuit diagram to implement a 4-bit register that has both parallel load and shift left/right functionality. The register has two control inputs (C1 and C0), four parallel input lines (I3, I2, I1, and I0), and four output lines (3, 2, 1, and 0). epending on the values of C1 and C0, the register performs one of the following four operations:

Parallel-access shift left/right register

Parallel-access shift left/right register Clock

Parallel-access shift left/right register 00 00 00 00 01 10 01 10 01 10 01 10 11 11 11 11 Clock

Parallel-access shift left/right register Out_3 Out_2 Out_1 Out_0 00 00 00 00 01 10 01 10 01 10 01 10 11 11 11 11 Clock

Parallel-access shift left/right register Out_3 Out_2 Out_1 Out_0 00 00 00 00 01 10 01 10 01 10 01 10 11 11 11 11 Clock In_0

Parallel-access shift left/right register Out_3 Out_2 Out_1 Out_0 00 00 00 00 01 10 01 10 01 10 01 10 11 11 11 11 Clock In_3 In_0

Parallel-access shift left/right register Out_3 Out_2 Out_1 Out_0 00 00 00 00 01 10 01 10 01 10 01 10 11 11 11 11 Clock In_3 In_2 In_1 In_0

Parallel-access shift left/right register Out_3 Out_2 Out_1 Out_0 00 00 00 00 01 10 01 10 01 10 01 10 11 11 11 11 Clock In_3 In_2 In_1 In_0

Parallel-access shift left/right register Out_3 Out_2 Out_1 Out_0 C 0 C 1 00 00 00 00 01 10 01 10 01 10 01 10 11 11 11 11 Clock In_3 In_2 In_1 In_0

Parallel-access shift left/right register Out_3 Out_2 Out_1 Out_0 C 0 C 1 00 00 00 00 01 10 01 10 01 10 01 10 11 11 11 11 Clock In_3 In_2 In_1 In_0

Multiplexer Tricks (select one of two 2-bit numbers)

Select Either A=A 1 A 0 or B=B 1 B 0 s A 0 B 0 0 1 F 0 A 1 B 1 0 1 F 1

Select Either A=A 1 A 0 or B=B 1 B 0 s 0 A 0 B 0 0 1 F 0 = A 0 A 1 B 1 0 1 F 1 = A 1

Select Either A=A 1 A 0 or B=B 1 B 0 s 1 A 0 B 0 0 1 F 0 = B 0 A 1 B 1 0 1 F 1 = B 1

Multiplexer Tricks (select one of four 2-bit numbers)

Select A=A 1 A 0 or B=B 1 B 0 or C=C 1 C 0 or = 1 0 s s 1 0 A 0 B 0 C 0 00 01 10 F 0 0 11 A 1 B 1 C 1 00 01 10 F 1 1 11

Select A=A 1 A 0 or B=B 1 B 0 or C=C 1 C 0 or = 1 0 0 0 s s 1 0 A 0 B 0 C 0 00 01 10 F 0 0 11 = A 0 A 1 B 1 C 1 00 01 10 F 1 1 11 = A 1

Select A=A 1 A 0 or B=B 1 B 0 or C=C 1 C 0 or = 1 0 0 1 s s 1 0 A 0 B 0 C 0 00 01 10 F 0 0 11 = B 0 A 1 B 1 C 1 00 01 10 F 1 1 11 = B 1

Select A=A 1 A 0 or B=B 1 B 0 or C=C 1 C 0 or = 1 0 1 0 s s 1 0 A 0 B 0 C 0 00 01 10 F 0 0 11 = C 0 A 1 B 1 C 1 00 01 10 F 1 1 11 = C 1

Select A=A 1 A 0 or B=B 1 B 0 or C=C 1 C 0 or = 1 0 1 1 s s 1 0 A 0 B 0 C 0 00 01 10 F 0 0 11 = 0 A 1 B 1 C 1 00 01 10 F 1 1 11 = 1

Register File

Complete the following circuit diagram to implement a register file with four 2-bit registers, one write port, one read port, and one write enable line.

Register 0 Register 1 Register 2 Register 3

Register A Register B Register C Register

A 1 A 0 Register A B 1 B 0 Register B C 1 C 0 Register C 1 0 Register

In 1 In 0 A 1 A 0 Register A B 1 B 0 Register B C 1 C 0 Register C 1 0 Register

In 1 In 0 A 1 A 0 Register A B 1 B 0 Register B C 1 C 0 Register C 1 0 Register Write_address_0 Write_address_1 Write_enable

In 1 In 0 A 1 A 0 Register A B 1 B 0 Register B C 1 C 0 Register C 1 0 Register Write_address_0 Write_address_1 Write_enable

In 1 In 0 A 1 A 0 Register A B 1 B 0 Register B C 1 C 0 Register C 1 0 Register Write_address_0 Write_address_1 Write_enable Out 1 Out 0 Read_address_1 Read_address_0

In 1 In 0 A 1 A 0 Register A B 1 B 0 Register B C 1 C 0 Register C 1 0 Register Clock Write_address_0 Write_address_1 Write_enable Out 1 Out 0 Read_address_1 Read_address_0

In 1 In 0 A 1 A 0 B 1 B 0 C 1 C 0 1 0 Clock Write_address_0 Write_address_1 Write_enable Out 1 Out 0 Read_address_1 Read_address_0

uestions?

THE EN