Docsity

Test 3 | Computer Organization - Spring 2007 | CSCI 2150, Exams of Computer Architecture and Organization

Toggle sidebar
bg1
Points missed: _____ Student's Name: _________________________________
Total score: _____ /100 points
East Tennessee State University
Department of Computer and Information Sciences
CSCI 2150 (Tarnoff) – Computer Organization
TEST 3 for Spring Semester, 2007
Read this before starting!
The total possible score for this test is 100 points.
This test is closed book and closed notes.
Please turn off all cell phones & pagers during the test.
All answers must be placed in space provided. Failure to do so may result in loss of points.
1 point will be deducted per answer for missing or incorrect units when required. No assumptions
will be made for hexadecimal versus decimal, so you should always include the base in your
answer.
If you perform work on the back of a page in this test, indicate that you have done so in case the
need arises for partial credit to be determined.
Calculators are not allowed. Use the tables below for any conversions you may need. Leaving an
answer as a numeric expression is acceptable.
Binary
Hex
Binary
Hex
Power of 2
Equals
0000
0
1000
8
23
8
0001
1
1001
9
24
16
0010
2
1010
A
25
32
0011
3
1011
B
26
64
0100
4
1100
C
27
128
0101
5
1101
D
28
256
0110
6
1110
E
29
512
0111
7
1111
F
210
1 kilo (K)
220
1 mega (M)
230
1 giga (G)
240
1 tera (T)
250
1 peta (P)
“Fine print”
Academic Misconduct:
Section 5.7 "Academic Misconduct" of the East Tennessee State University Faculty Handbook, October 21, 2005:
"Academic misconduct will be subject to disciplinary action. Any act of dishonesty in academic work constitutes
academic misconduct. This includes plagiarism, the changing of falsifying of any academic documents or materials,
cheating, and the giving or receiving of unauthorized aid in tests, examinations, or other assigned school work.
Penalties for academic misconduct will vary with the seriousness of the offense and may include, but are not limited to:
a grade of 'F' on the work in question, a grade of 'F' of the course, reprimand, probation, suspension, and expulsion. For
a second academic offense the penalty is permanent expulsion."
pf3
pf4
pf5

Partial preview of the text

Download Test 3 | Computer Organization - Spring 2007 | CSCI 2150 and more Exams Computer Architecture and Organization in PDF only on Docsity!

Points missed: _____ Student's Name: _________________________________

Total score: _____ /100 points

East Tennessee State University Department of Computer and Information Sciences CSCI 2150 (Tarnoff) – Computer Organization TEST 3 for Spring Semester, 2007

Read this before starting!

The total possible score for this test is 100 points. This test is closed book and closed notes. Please turn off all cell phones & pagers during the test. All answers must be placed in space provided. Failure to do so may result in loss of points. 1 point will be deducted per answer for missing or incorrect units when required. No assumptions will be made for hexadecimal versus decimal, so you should always include the base in your answer. If you perform work on the back of a page in this test, indicate that you have done so in case the need arises for partial credit to be determined. Calculators are not allowed. Use the tables below for any conversions you may need. Leaving an answer as a numeric expression is acceptable.

Binary Hex Binary Hex Power of 2 Equals 0000 0 1000 8 23 8 0001 1 1001 9 24 16 0010 2 1010 A 25 32 0011 3 1011 B 26 64 0100 4 1100 C 27 128 0101 5 1101 D 28 256 0110 6 1110 E 29 512 0111 7 1111 F 210 1 kilo (K) 220 1 mega (M) 230 1 giga (G) 240 1 tera (T) 250 1 peta (P)

“Fine print”

Academic Misconduct: Section 5.7 "Academic Misconduct" of the East Tennessee State University Faculty Handbook, October 21, 2005: "Academic misconduct will be subject to disciplinary action. Any act of dishonesty in academic work constitutes academic misconduct. This includes plagiarism, the changing of falsifying of any academic documents or materials, cheating, and the giving or receiving of unauthorized aid in tests, examinations, or other assigned school work. Penalties for academic misconduct will vary with the seriousness of the offense and may include, but are not limited to: a grade of 'F' on the work in question, a grade of 'F' of the course, reprimand, probation, suspension, and expulsion. For a second academic offense the penalty is permanent expulsion."

  1. For each of the following statements, place a checkmark in the column identifying which memory technology, SRAM or DRAM, the statement best describes. (1 point each) SRAM DRAM   is typically used as main memory   is typically used as cache RAM   is made from capacitors   needs to be refreshed/rewritten when read   is the faster of the two technologies
  2. What are the high and low addresses (in hexadecimal) of the memory range defined with the chip select shown to the right? (4 points)

Low address: _________________ High address: _____________________

  1. For the chip select in problem 2, how big is the memory chip that uses this chip select? (3 points)
  2. For the chip select in problem 2, how big is the memory space of the processor whose address lines are used for the chip select? (3 points)
  3. What is the largest memory that can have a starting address of 590000 16? (3 points)
  4. Using logic gates, design an active low chip select for a memory device placed in a 16 Meg memory space with a low address of 280000 16 and a high address of 2BFFFF 16. Label all address lines used for chip select. (5 points)

A 23 A 22 A 21

CS

  1. Describe how the FIFO replacement algorithm for the fully associative mapping algorithm works. (2 points)
  2. There were two parts to the Principle of Locality. The first was that if a piece of data or code was used once, it would most likely be used again. What was the second part? (2 points)

The table below represents a small section of a cache using fully associative mapping. Each tag and word ID is in binary while the data is in hexadecimal. Refer to it to answer questions 17 through 21. Tags (binary)

Word within the block 0 0 0 0 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111

100110100110 00 61 C2^13 84 E5^46 A7^12 34 56 78 9A^ BC^ DE^ F 111001011001 60 71 D2^33 94 F5^36 B7^23 45^67^89 AB^ CD^ EF^01 011011011111 20 81 E2^83 A4^05 66 C7^88 99 AA^ BB^ CC^ DD^ EE^ FF 101110100110 30 91 F2^53 B4^15 A6^ D7^ FE^ DC^ BA^98 76 54 32 101011001100 40 A1^02 63 C4^25 86 E7^ ED^ CB^ A9^87 65 43 21 0F 000110100110 50 B1^22 73 D4^35 96 F7^11 44 55 77 0F^ 1F^ 2F^ 3F Column  a^ b^ c^ d^ e^ f^ g^ h^ i^ j^ k^ l^ m^ n^ o^ p

  1. Assuming the tags shown to the right do not delete leading zeros, how many address lines does the processor that uses this cache have? (2 points)
  2. What is the block size (in number of memory locations) for the cache shown above? (2 points)
  3. From what address in main memory did the value 67 16 (the value in the second row, column k) come from? Leave your answer in binary. (3 points)
  4. A copy of the data from memory address ACC9 16 is contained in the portion of the cache shown above. What is the value stored at that address? (3 points)
  5. If the block containing memory address BF16 16 were to be loaded into the cache described above, which column, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, or p, would the value be loaded into? (Note: This value it is not represented in the data shown above.) (2 points)
  1. Assume a processor takes 3 cycles to execute any instruction (fetch, decode, execute)

a. How many cycles would a non-pipelined processor take to execute 4 instructions? (2 points)

b. How many cycles would a pipelined processor take to execute 4 instructions? (2 points)

  1. What are the settings of the zero flag, the sign flag, the carry flag, the overflow flag, and the parity flag after a processor performs the addition shown to the right? (5 points)

ZF = ______ SF = ______ CF = ______ OF = ______ PF = ______

  1. Remember that a compare is basically a "virtual subtract", i.e., CMP A, B is the same thing as setting the flags after the operation A – B. What would the values of ZF and SF be if A is equal to B? (2 points) ZF = ______ SF = ______
  2. The CPU has four main components. Three of them are the registers, the ALU, and the control unit. What is the fourth component? (2 points)
  3. Assume AX=1000 16 , BX=2000 16 , and CX=3000 16. After the following code is executed, what would AX, BX, and CX contain? (3 points) Place your answers in space below: PUSH AX PUSH BX (^) AX = PUSH CX POP CX (^) BX = POP AX POP BX (^) CX =
  4. True or False: When the processor "pushes" a register to the stack, it clears the register so that it can be used for another purpose. (2 points)