




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





INFS515 | Fall 1999 George Mason University Nov. 1, 1999
Midterm Examination
You may NOT use any b o oks or notes. Be brief: Do what exactly you are asked. Be neat. And b e lucky.
Name Student# Score
Problem 1. Convert the decimal numb er 43.28125 into IEEE oating-p oint standard 754 32-bit representation. The nal representation must b e an 8-digit hexadecimal numb er.
Requirement: You need to show every step in detail, including all the step-by-step conversion(s) { decimal to/from binary (if any), binary to/from hexadecimal (if any), excess 127 representation derivation (if any), etc. For example, when you are converting a decimal numb er to binary (if any), you cannot simply give the binary representation of a decimal numb er; you need show how you arrive at this binary representation.
Hint: The IEEE 754 32-bit representation uses 1 sign bit (0 for p ositive and 1 for negative), 8 exp onent bits with excess 127 representation, and 23 fraction bits with implied \1.". The numb er you are asked to represent is not any of the sp ecial numb ers (like NAN or in nity).
The hexadecimal system uses the following digits to represent decimal numb ers b etween 10 and 15: A{10, B{11, C{12, D{13, E{14, and F{15.
Problem 4 The picture b elow shows the 8-way multiplexer, which has three \control" lines (A, B, C), and 8 inputs (D 0 {D 7 ), and one output (F). The function realized by this multiplexer is as follows: the input Di is routed to the output F if and only if the numb er represented by the three-bit input A,B,C is i. For example, if A=1, B=C=0, then D 4 is routed to F, i.e., F takes the value of D 4 , since 100 in binary is 4 in decimal.
As we know, this multiplexer can b e used to implement 3-variable Bo olean functions (with A, B and C viewed as the three input variables, and F as the output) by wiring the input lines D 0 {D 7 appropriately to the ground or Vcc.
Problem 4.1 Now implement the Bo olean function that gives 1 if the input has exactly two 0s, and gives 0 otherwise. You need to (1) show the truth table for the function (the table has 8 rows as given b elow), and (2) wire the lines D 0 {D 0 to the ground or to Vcc, resp ectively, based on the table.
Table:
A B C F 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1
Problem 4. Answer this: How many di erent 3-variable functions this 8-way multiplexer is capable of realizing using the ab ove metho d (i.e., by connecting D 0 {D 7 to the ground and Vcc, resp ectively)?
Answer:
True or False: Using the ab ove 8-way multiplexer, we can implement all p ossible three-variable Bo olean functions.
Answer:
Problem 5 Consider the following diagram.
AND gate
OR gate
NOT gate
Legend
A
B
C
F
Give the truth table for what this circuit implements:
Problem 7 Assume all the gates in the following gures have a propagation delay of 10 nsec, and all other delays can b e ignored. Consider the 8-bit ALU (comp osed of 8 1-bit ALU as shown).
Answer this: What is the earliest time the 8-bit ALU using this deisng can b e sure of having outputs as all valid? Brie y explain why.
Hint: (1) There are two outputs from a 1-bit ALU: \carry out" and \output". The time to get the \carry out" and the time to get the \output" may b e di erent (lo ok carefully at the left gure). (2) Each 1-bit ALU (except for the rightmost one) needs the \carry out" signal from its right neighb or (not the \output" signal).
Problem 8 Brie y answer the following:
(a) The cache memory is less exp ensive (in terms of \unit price") than the main memory. (b) The cache memory is faster than the main memory. (c) The accesses to memory lo cations by the CPU is totally random. (d) The accesses to memory lo cations by the CPU stay in a limited part of the memory for extended p erio ds.