csee w3827 fundamentals of computer systems homework

13
CSEE W3827 Fundamentals of Computer Systems Homework Assignment 1 Profs. Stephen A. Edwards & Martha Kim Columbia University Due September 20th, 2012 at 10:00 AM Fill in this PDF form using Adobe Acrobat Reader, save it as PDF, and submit it through CourseWorks. Do not use Preview or another PDF viewer, which is unlikely to work correctly. Name: Uni:

Upload: others

Post on 16-Nov-2021

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CSEE W3827 Fundamentals of Computer Systems Homework

CSEE W3827

Fundamentals of Computer Systems

Homework Assignment 1

Profs. Stephen A. Edwards & Martha Kim

Columbia University

Due September 20th, 2012 at 10:00 AM

Fill in this PDF form using Adobe Acrobat Reader, save it as PDF, andsubmit it through CourseWorks.

Do not use Preview or another PDF viewer, which is unlikely to workcorrectly.

Name:

Uni:

Page 2: CSEE W3827 Fundamentals of Computer Systems Homework

1. (5 pts.) What are the values, in decimal, of the following bytes ifthey are interpreted as 8-bit numbers in

00001011 10001110

binary

one’s complement

two’s complement

Page 3: CSEE W3827 Fundamentals of Computer Systems Homework

2. (5 pts.) Show how to perform 5+−10 = −5 in 5-bit

Signed-magnitude One’s Complement Two’s Complementnumbers numbers numbers

+ + +

Page 4: CSEE W3827 Fundamentals of Computer Systems Homework

3. (10 pts.) Complete the truth table for the following Booleanfunctions:

= XY + XYZ + XZb = (X + Y)(Y + Z)(X + Z)

X Y Z a b

0 0 0

0 0 1

0 1 0

0 1 1

1 0 0

1 0 1

1 1 0

1 1 1

Page 5: CSEE W3827 Fundamentals of Computer Systems Homework

4. (30 pts.) Consider the function F, whose truth table is below.

X Y Z F

0 0 0 00 0 1 00 1 0 10 1 1 11 0 0 11 0 1 01 1 0 11 1 1 0

(a) Write F as a sum of minterms. Use aleading “!” to denote negation. Twohave been done for you.

(b) Write F as a product of maxterms. Twohave been done for you.

(c) Fill in the Karnaugh map for F as shownbelow. You do not have to simplify it.

Z

Y

X

Page 6: CSEE W3827 Fundamentals of Computer Systems Homework

hw1−4d

!XY!Z

Z x 1

XY!Z

x 1

X x 1

!XYZ

Y x 1

X!Y!Z

Page 7: CSEE W3827 Fundamentals of Computer Systems Homework

hw1−4e

Z

x 1

Y

x 1

X

x 1

F

x 1

Page 8: CSEE W3827 Fundamentals of Computer Systems Homework

In Logisim,

(d) Implement the circuit corresponding to your mintermsexpression of F. Make sure to label the three inputs “X,” “Y,”and “Z” and the output “F.” Verify your circuit using Logisim’sCombinational Analysis feature (Project→Analyze Circuit).

Save your solution as “hw1-4d.circ” and upload it toCourseWorks along with your filled-in PDF file.

(e) Implement the circuit corresponding to your maxtermsexpression of F. Again, verify your work.

Save your solution as “hw1-4e.circ” and upload it.

Page 9: CSEE W3827 Fundamentals of Computer Systems Homework

5. (10 pts.) Consider the function F whose truth table is shown below

W X Y Z F

0 0 0 0 00 0 0 1 00 0 1 0 10 0 1 1 10 1 0 0 00 1 0 1 10 1 1 0 00 1 1 1 11 0 0 0 01 0 0 1 01 0 1 0 11 0 1 1 01 1 0 0 01 1 0 1 11 1 1 0 01 1 1 1 0

(a) Write the function F insum-of-minterms form. Two are given.

(b) Fill in this Karnaugh map for F

Z

Y

X

W

(c) Use your Karnaugh map to write aminimal sum-of-productsrepresentation for F

Page 10: CSEE W3827 Fundamentals of Computer Systems Homework

6. (40 pts.) Intel’s 4004 microprocessor, released in 1971, was thefirst single-chip microprocessor. Most instructions were 8 bits long,but certain ones (JCN, FIM, JUN, JMS, and ISZ) took 16 bits.

Create a minimal circuit in Logisim that decodes the first byte ofthe instruction and generates a “1” only when the instruction hasa second byte.

Name your eight inputs R3, R2, R1, R0, A3, A2, A1, A0, whichrepresent the bits of the first “OPR” and “OPA” words mentioned inthe attached data sheet. Have it generate a single output named“TWO.”

Name your solution “hw1-6.circ” and submit it via Courseworks.

Page 11: CSEE W3827 Fundamentals of Computer Systems Homework
Page 12: CSEE W3827 Fundamentals of Computer Systems Homework
Page 13: CSEE W3827 Fundamentals of Computer Systems Homework

hw1−6

0010XXX0 FIM

A2 x 1

R2 x 1

R3 x 1

0100XXXX JUN

R0 x 1

A0 x 1

0001XXXX JCN

0111XXXX ISZ

TWOx 1

R1 x 1

0101XXXX JMS

A3 x 1

A1 x 1