Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

COSC 201 Exam 2 Fall 2004, Exams of Computer Architecture and Organization

Questions from the cosc 201 exam 2 held in fall 2004. The questions cover topics such as arithmetic with two's complement integers, circuit diagrams for alus, mips instructions, and cpu functional units. Students are expected to demonstrate their understanding of these concepts through problem-solving and circuit design.

Typology: Exams

Pre 2010

Uploaded on 08/19/2009

koofers-user-b92-1
koofers-user-b92-1 🇺🇸

10 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
COSC 201 Exam 2 Fall 2004 Page 1 of 4
1) Arithmetic with two’s complement integers.
a) Write the 8-bit two’s complement representation for the number 67.
b) Write the 8-bit two’s complement representation for the number –13.
c) Compute the 8-bit result of 67 – 13. Show your work.
d) Did an overflow occur in part (c)? Explain.
pf3
pf4

Partial preview of the text

Download COSC 201 Exam 2 Fall 2004 and more Exams Computer Architecture and Organization in PDF only on Docsity!

  1. Arithmetic with two’s complement integers. a) Write the 8-bit two’s complement representation for the number 67. b) Write the 8-bit two’s complement representation for the number –13. c) Compute the 8-bit result of 67 – 13. Show your work. d) Did an overflow occur in part (c)? Explain.
  1. Draw the circuit diagram for a 1-bit ALU that can be used in a larger ALU to perform the operations AND , OR , add , and subtract. Two control lines determine which operation is performed according to the table on the right. Use a 1-bit adder, multiplexors, and AND , OR , and NOT gates in your circuit. Label all control lines, inputs and outputs, including carry.
  2. Write a short sequence of MIPS instructions to place 12 times the value of $s0 into $s1 (ig noring any overflow that may occur) using shift and add instructions instead of a multiply in struction. Try to use as few instructions and as few registers as possible. Operation AND OR add subtract
  1. The major functional units of a processor have delays as specified in the table to the right. a) What is the shortest clock cycle that can be used for a single-cycle implementation? How long does it take to execute a lw instruction? How long does it take to execute an add instruction? b) What is the shortest clock cycle that can be used for a multi-cycle implementation? How long does it take to execute a lw instruction? How long does it take to execute an add instruction? instruction fetch 2 ns register read 1 ns ALU operation 2 ns data access 2 ns register write 1 ns