Unit 12 Problem Solutions

Similar documents
Logic Design II (17.342) Spring Lecture Outline

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

Decoding A Counter. svbitec.wordpress.com 1

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

課程名稱 : 數位邏輯設計 P-1/ /6/11

Shift Register Counters

Introduction EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 6: Sequential Logic 3 Registers & Counters 5/9/2010

Chapter 7. Sequential Circuits Registers, Counters, RAM

Analysis of clocked sequential networks

PGT104 Digital Electronics. PGT104 Digital Electronics

Counters. We ll look at different kinds of counters and discuss how to build them

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

Design of Sequential Circuits

FSM model for sequential circuits

Unit 16 Problem Solutions

Philadelphia University Student Name: Student Number:

COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

Figure 1-1 Basic Gates

CARLETON UNIVERSITY Final EXAMINATION April 16, 2003

ELCT201: DIGITAL LOGIC DESIGN

Design at the Register Transfer Level

Digital Fundamentals

Exam for Physics 4051, October 31, 2008

Computers also need devices capable of Storing data and information Performing mathematical operations on such data

Digital Circuits. 1. Inputs & Outputs are quantized at two levels. 2. Binary arithmetic, only digits are 0 & 1. Position indicates power of 2.

Digital Electronics Circuits 2017

Philadelphia University Student Name: Student Number:

Unit 7 Sequential Circuits (Flip Flop, Registers)

DE58/DC58 LOGIC DESIGN DEC 2014

Logic. Basic Logic Functions. Switches in series (AND) Truth Tables. Switches in Parallel (OR) Alternative view for OR

Synchronous Sequential Circuit Design. Digital Computer Design

3. Complete the following table of equivalent values. Use binary numbers with a sign bit and 7 bits for the value

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Chapter 7 Logic Circuits

Layout of 7400-series Chips Commonly Used in. CDA 3101: Introduction to Computer Hardware and Organization

COMBINATIONAL LOGIC FUNCTIONS

SYNCHRONOUS SEQUENTIAL CIRCUITS

ELCT201: DIGITAL LOGIC DESIGN


WORKBOOK. Try Yourself Questions. Electrical Engineering Digital Electronics. Detailed Explanations of

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

ECE/Comp Sci 352 Digital Systems Fundamentals. Charles R. Kime Section 2 Fall Logic and Computer Design Fundamentals

CARLETON UNIVERSITY Final rev EXAMINATION Fri, April 22, 2005, 14:00

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

Chapter #7: Sequential Logic Case Studies Contemporary Logic Design

PSEUDORANDOM BINARY SEQUENCES GENERATOR

Chapter 2. Review of Digital Systems Design

ENGG 1203 Tutorial. Solution (b) Solution (a) Simplification using K-map. Combinational Logic (II) and Sequential Logic (I) 8 Feb Learning Objectives

CHW 261: Logic Design

BER KELEY D AV IS IR VINE LOS AN GELES RIVERS IDE SAN D IEGO S AN FRANCISCO

Synchronous Sequential Logic. Chapter 5

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Read this before starting!

EXPERIMENT Bit Binary Sequential Multiplier

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 9 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

10/12/2016. An FSM with No Inputs Moves from State to State. ECE 120: Introduction to Computing. Eventually, the States Form a Loop

Dept. of ECE, CIT, Gubbi Page 1

Chapter 7. Synchronous Sequential Networks. Excitation for

S.E. Sem. III [ETRX] Digital Circuit Design. t phl. Fig.: Input and output voltage waveforms to define propagation delay times.

Sample Test Paper - I

Integer Multipliers 1

Digital Fundamentals

EECS 270 Midterm 2 Exam Answer Key Winter 2017

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER

Logic and Computer Design Fundamentals. Chapter 8 Sequencing and Control

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters

Finite State Machine (FSM)

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Digital Electronics Sequential Logic

Name. ECE-200 Intelligent Systems

Digital Electronic Meters

Time Allowed 3:00 hrs. April, pages

Sequential Logic Circuits

SRC Language Conventions. Class 6: Intro to SRC Simulator Register Transfers and Logic Circuits. SRC Simulator Demo. cond_br.asm.

CPS 104 Computer Organization and Programming Lecture 11: Gates, Buses, Latches. Robert Wagner

Learning Objectives:

CprE 281: Digital Logic

Ch 7. Finite State Machines. VII - Finite State Machines Contemporary Logic Design 1

UNIT 8A Computer Circuitry: Layers of Abstraction. Boolean Logic & Truth Tables

ECE 341. Lecture # 3

CSE140: Components and Design Techniques for Digital Systems. Midterm Information. Instructor: Mohsen Imani. Sources: TSR, Katz, Boriello & Vahid

Boolean Logic Continued Prof. James L. Frankel Harvard University

15.1 Elimination of Redundant States

EECS150 - Digital Design Lecture 17 - Sequential Circuits 3 (Counters)

Sequential Circuits Sequential circuits combinational circuits state gate delay

Vidyalankar S.E. Sem. III [EXTC] Digital Electronics Prelim Question Paper Solution ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD = B

Chapter 5 Synchronous Sequential Logic

Appendix B. Review of Digital Logic. Baback Izadi Division of Engineering Programs

Logic. Combinational. inputs. outputs. the result. system can

EECS 270 Midterm Exam 2 Fall 2009

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Introduction to Digital Logic

Menu. Excitation Tables (Bonus Slide) EEL3701 EEL3701. Registers, RALU, Asynch, Synch

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

Digital Logic Design - Chapter 4

Latches. October 13, 2003 Latches 1

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

Chapter 4. Sequential Logic Circuits

Transcription:

Unit 2 Problem Solutions 2. onsider 3 Y = Y Y Y, that is, we need to add Y to itself 3 times. First, clear the accumulator before the first rising clock edge so that the -register is. Let the d pulse be for 3 rising clock edges and let the Y register contain the desired number (y 5 y 4 y 3 y 2 y y ) which is to be added three times. The timing diagram is on FL p. 65. Note: lrn should go to and back to before the first rising clock edge. d should be before the same clock edge. However, it does not matter in what order, that is, d could go to before lrn returns to, or even before it goes to. 2.2 Serial input connected to for left shift. Sh =, L = causes a left shift. Sh =, L = or causes a right shift Serial Out 2.3 See FL p. 65 for solution. SI SH Ld lock Q 3 Q 2 Q Q 4-bit Parallel In Parallel Out Shift Register 3 2 2.4 (a) Present State Next State Flip-Flop Inputs T T T T ' T ' T lock s explained in Section 2.3, it can be seen that changes on every pulse: T = changes only when = : T = changes only when both and = : T = changes only when,, and = : T = ' T ' T 2.4 (b) The binary counter using flip-flops is obtained by converting each T flip-flop to a flip-flop by adding an OR gate. See FL p. 65 and Figure 2-5 on FL p. 335. 2.5 Equations for,, and are from Equations (2-2) on FL p. 335. eginning with (b) of Problem 2.4 solutions, = = ' ()' = ' (' ' ') = ' ' ' '

2.6 In the following state graph, the first flip-flop () takes on the required sequence,,,,,, (repeat).. = '' = ' = ' 2.7 (a) = ' For flip-flop: goes to because = = ' ' = '' '' = '' ' 2.7 (b) T T T T = '' '' T = '' T = ' ' ' For T flip-flop: goes to because T T T = 2

2. (a) J K J K J K J = ' K = '' J = ' K = J = K = ' ' In state, J = ' =, K = '' =, = ' = J = ' =, K = =, = J = =, K = ' ' =, = = So the next state is = 2. (b) S R S R S R S = ' S = '' R = '' S = ' R = S = ' R = ' ' In state, S = ' =, R = '' =, = S = ' =, R = =, = S = ' =, R = ' ' =, = = So the next state is = 3

2.9 (a) Q Q M N 2.9 (b) M M = N N = M N M = ' N = ' M M = ' 2. See Lab Solutions for Unit 2 in this manual. N N = ' 2. The flip-flops change state only when Ld or Sh =. So E = Sh Ld. Now only a 2-to- MU is required to select the input to the flip-flop. SI Q Q 3 2 Q Q 3 2 E E E E Sh Ld 4

2.2 (a) When ShLd =, the MU for flip-flop i selects Q i to hold its state When ShLd =, the MU for flip-flop i selects i to load. When ShLd = or, the MU for flip-flop i selects Q i to shift left. Q Q Q Q 3 2 SI 3 2 Sh Ld 2.2 (b) Q 3 = Ld'Sh'Q 3 LdSh' 3 ShQ 2 ; Q 2 = Ld'Sh'Q 2 LdSh' 2 ShQ ; Q = Ld'Sh'Q LdSh' ShQ Q = Ld'Sh'Q LdSh' ShSI 2.3 Notice that Sh overrides Ld when Sh = Ld = lock Sh Ld Q Q SI = Q Q 2.4 (b) Similar to problem 2.4 (b), E = E.,,, and, remain unchanged. 2.4 (a) Similar to problem 2.4 (a), T E =. T, T, T, and T, remain unchanged. E' E E' E E T E lk lk E 2.5 4-bit Johnson counter using J-K flip-flops: J 4 Q 4 J 3 Q 3 J 2 Q 2 J Q K 4 Q' 4 K 3 Q' 3 K 2 Q' 2 K Q' LK Starting in :,,,,,,,, (repeat),... Starting in :,,,,,,,, (repeat),... 5

2.6 When U =, =, add. When U =, =, subtract : add. When U =, =, no change: add. U =, =, can never occur. So add the contents of the register to 2, where 2 = = and = U. (Note: to save the OR gate, let = and in = U.) Q 2 Q Q 2 lk S 2 S S 3-IT ER in Y 2 Y Y 2 2.7 (a) = ' = '' ' = ' ' ' = ' U 2.7 (b) See table 2-7 (c) on FL p. 345. J = J = J = ' J = K = K = 6 K = K =

2.7 (c) See table 2-5 (c) on FL p. 342. S S S S S = S = ' S = '' S = ' R R R R R = ' R = R = R = R = R = ' 2.7 (d) See table 2-4 on FL p. 339. T T T T T = T = T = ' T = 2.7 (e) Use equations to find next states for unused states. State : J = =, K = =, = J = =, K = =, = = J = ' =, K = =, = J =, K =, = ' = So the next state is. Other next states can be found in a similar way. 7

2. 2. (a) 2. (b) 2. (c) 2. (d) 2. (e) = '''' ; = '; = '' '; = ' J = ''', K = '; J = ', K = ''; J = ' ', K = '; J =, K = S = '''', R = '; S = '', R = '' or '''; S = '' ', R = ', S = ', R = T = '''; T = '' ''; T = ' ' '; T = 2.9 2.9 (a) = ' ; = '; = ' ' 2.2 (a) Q Q L M 2.9 (b) 2.9 (c) 2.9 (d) 2.9 (e) 2.2 (b) J = ', K = '; J =, K = '; J = ' ', K = '' T = '' '; T = ' '; T = '' '' '' S = ', R = '; S =, R = '; S = ' ', R = '' State goes to, because =.

2.2 (b) L =, M = ; L = ', M = ' '; L = '', (contd) M = ' L = M = L = ' M = ' ' L = '' M = ' 2.2 J K J K J K J K Using Karnaugh maps: J =, K = ; J =, K = ; J = ', K = '; J =, K = 2.22 lock ycle Input ata EnIn End Ldc Ldd ccumulator Register ddend Register us escription Input to accumulator 3 3 Input to addend 2 5 3 3 Sum to accumulator 3 93 3 3 93 Input to addend 4 47 3 93 24 Sum to accumulator 5 22 24 93 22 Input to addend 6 24 22 46 Sum on bus Note: Register values change after the clock edge. So a value loaded from the bus appears in the register on the next clock cycle after the load signal and bus value are present. 9

2.23 (a, b) NN gates Y E ' k E En E E R k E En k E En k E En E 2 G G 2-to-4 decoder E ' ' E 2 ' E E 2 2.23 (c) all the values beginning in the & registers and Y, respectively. We want = Y = ('Y')'. Invert using M' = NN M. To invert a value on the right side, in register or, we will need a on the left side, in register or. This can be accomplished using = NN (anything.) There are several solutions using different registers. Here is an example: lock ycle G G E E E 2 escription NN = ' = ' 2 NN = 3 NN = NN Y = Y' 4 NN = ' NN Y' = Y lternate three-cycle solution: Use Y = 'Y = (' ('Y)')' lock ycle G G E E E 2 escription NN = ' = ' 2 NN = ('Y)' 3 NN = (' ('Y)')' = Y 2.24 (a) For bit reversal using the inputs of the shift register: Sh =, Ld = Ld Sh SI lk Q 3 Q 2 Q Q 3 2 2.24 (b) Same as Figure 2- (b) on FL p. 33, except that for the "" input of each MU, instead of SI, Q 3, Q 2, or Q, use Q, Q, Q 2, or Q 3, respectively. lso, replace Sh with and Ld with. 9