Assignment 1 Study Questions - Computer System Organization | CS 433, Assignments of Computer Architecture and Organization

Material Type: Assignment; Class: Computer System Organization; Subject: Computer Science; University: University of Illinois - Urbana-Champaign; Term: Spring 2007;

Typology: Assignments

Pre 2010

Uploaded on 03/11/2009

koofers-user-j7b
koofers-user-j7b 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS433G: Computer System Organization, Spring 2007
Homework 1
Due at 9:30am, Tuesday, Feb. 22nd
On-line students:
Please send your solutions to [email protected] by due time. PDF is preferred. In your
email please indicate alias you would like to use.
On-campus students:
Please print this page and attach to your solutions. Write down your name, NetID and
alias. Hand in your solutions at the beginning of the class.
Everyone:
You must read and obey course policies. Policies can be found at:
http://www.cs.uiuc.edu/class/sp07/cs433g/policies.html
Name:
NetID: Alias:
Problem Max Points
1a. 5
1b. 5
1c. 5
1d. 5
1e. 5
1f. 5
1g. 5
1h. 5
2a. 12
2b. 12
2c. 12
2d. 12
2.e 12
Total: 100
pf2

Partial preview of the text

Download Assignment 1 Study Questions - Computer System Organization | CS 433 and more Assignments Computer Architecture and Organization in PDF only on Docsity!

CS433G: Computer System Organization, Spring 2007

Homework 1

Due at 9:30am, Tuesday, Feb. 22

nd

On-line students: Please send your solutions to [email protected] by due time. PDF is preferred. In your email please indicate alias you would like to use.

On-campus students: Please print this page and attach to your solutions. Write down your name, NetID and alias. Hand in your solutions at the beginning of the class.

Everyone: You must read and obey course policies. Policies can be found at: http://www.cs.uiuc.edu/class/sp07/cs433g/policies.html

Name: NetID: Alias:

Problem Max Points 1a. 5 1b. 5 1c. 5 1d. 5 1e. 5 1f. 5 1g. 5 1h. 5 2a. 12 2b. 12 2c. 12 2d. 12 2.e 12 Total: 100

1. For this task you will need to perform binary operations, indicate if result has overflow or carry. You have the following binary numbers: A: 100001 B: 111111 a) Assume unsigned numbers. Show A+B. b) Assume unsigned numbers. Show A-B. c) Assume signed numbers. Show A+B. d) Assume signed numbers. Show AB. e) Assume signed numbers and saturating arithmetic. Show (A+B)+A. f) Assume signed numbers and saturating arithmetic. Show (A-B)-A. g) Assume signed numbers, saturating arithmetic and 2 bit fraction part (i.e. A – 1000.01). Show A+B. h) Assume signed numbers, saturating arithmetic and 2 bit fraction part. Show AA. 2. Assume the architecture with the following instruction formats:

ADD R1, R2, R3 – register-register format ADD R1, R2, A – register-memory format (destination is a register) ADD A, R2, A - memory-register-memory (MRM) format (source and the same memory location)

Additionally architecture has generic load, store and branching instructions. There is a single memory addressing mode (base register + offset). Branches compare two registers and depending on comparison, move to target address. The target can be specified as PC relative offset or in a register. Assume the pipeline has this organization:

IF RF ALU1 READ ALU2 WRITE

Each pipeline stage takes one cycle. ALU1 is used for effective address calculation, for memory references and for branches. ALU2 used for branch comparison and arithmetic operations. Memory write and register write-back occur in the WRITE stage and memory read in the READ stage.

a) If there is only one port to memory (for both loads and stores), at what rate can we execute MRM format instructions? Justify your answer. b) Find the number of adders needed to minimize structural hazards. Count all adders and incrementors. Justify why this number is needed. c) How many read and write ports register file needs to minimize structural hazards? Justify your answer. d) How many read and write ports memory needs to minimize structural hazards? Justify your answer. e) Will data forwarding from ALU2 stage to ALU1, ALU2 or READ stage help to avoid stalls? Give example for each stage when such forwarding would be helpful.