Docsity

Quiz 3 for Combinational Logic and Basic Arithmetic and Logic Unit | CDA 3100, Quizzes of Electrical and Electronics Engineering

Toggle sidebar
bg1
Section: 9:05-9:55AM 10:10-11:00AM Name: ____________________
Quiz #3 – Combinational Logic and Basic Arithmetic/Logic Unit
CDA 3100, Computer Organization I, Fall 2007
Department of Computer Science, Florida State University
¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾
Problem 1 (60 points) View ab and cd as two-bit unsigned binary numbers, and efgh as the 4 bits of the
numerical multiplication of ab and cd. Here a, c, e are the most significant bit and b, d, h are the least
significant bit. For example, if ab is 10 and cd 01, then efgh should be 0010. (Hints on the other side.)
1) Give a logic expression for e, f, g, and h. You can only use AND, OR, and NOT.
2) Draw an implementation of e and f using AND gates and OR gates with bubbled inputs and
outputs
Problem 2 (40 points) The following diagram gives a 1-bit ALU. Complete the table by specifying the
control signals for the desired operations. For a do not care signal, use ‘X’.
Hint: For problem 1, the truth table is given below:
pf2

Partial preview of the text

Download Quiz 3 for Combinational Logic and Basic Arithmetic and Logic Unit | CDA 3100 and more Quizzes Electrical and Electronics Engineering in PDF only on Docsity!

Section:  9:05-9:55AM  10:10-11:00AM Name: ____________________

Quiz #3 – Combinational Logic and Basic Arithmetic/Logic Unit

CDA 3100, Computer Organization I, Fall 2007 Department of Computer Science, Florida State University ¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾¾ Problem 1 (60 points) View ab and cd as two-bit unsigned binary numbers, and efgh as the 4 bits of the numerical multiplication of ab and cd. Here a , c , e are the most significant bit and b , d , h are the least significant bit. For example, if ab is 10 and cd 01, then efgh should be 0010. (Hints on the other side.)

  1. Give a logic expression for e , f , g , and h. You can only use AND, OR, and NOT.
  2. Draw an implementation of e and f using AND gates and OR gates with bubbled inputs and outputs Problem 2 (40 points) The following diagram gives a 1-bit ALU. Complete the table by specifying the control signals for the desired operations. For a do not care signal, use ‘X’. Hint: For problem 1, the truth table is given below:

Inputs Outputs a b c d e f g h 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 0 0 0 1 0 1 1 0 0 0 1 0 0 1 1 1 0 0 1 1 1 0 0 0 0 0 0 0 1 0 0 1 0 0 1 0 1 0 1 0 0 1 0 0 1 0 1 1 0 1 1 0 1 1 0 0 0 0 0 0 1 1 0 1 0 0 1 1 1 1 1 0 0 1 1 0 1 1 1 1 1 0 0 1 Note that also