菜鸟求解题 基本计算机运算 万分感谢
有谁帮忙解答一下 谢谢了Question 1.
a. What is the frequency of 1.333GHz in scientific notation?
b. What is the cycle time of a bus operating at 1.333GHz?
c. If a system needs 5 memory cycles to occur within the space of 2 bus cycles running at 1.333GHz, what must the minimum speed of the memory clock be?
Answers.
a. b. c.
Question 2.
What do the following TLAs* stand for?
Acronym Answer
a. USB U....
b. RAM R...
c. PCI P...
d. ALU A...
e. CPU C...
f. ISA I...
g. ATA A...
* TLA = Three Letter Acronym
Question 3.
Convert 243 base 10 to
a. unsigned 8 bits
b. ternary notation
c. octal notation
d. hexadecimal notation (without converting to binary first!)
e. Why did the last question ask you not to convert to binary first?
f. Two's complement 8 bits (warning: Trick Question!)
Answers.
a.
b.
c.
d.
e.
f.
Question 4.
a. subtract 35 from 72 (in decimal)
b. convert 35 and 72 to 8-bit two's complement
c. subtract 35 from 72 using 8-bit two's complement arithmetic
d. convert your result from c. to decimal.Does it equal your result from part a.?
Answers.
a.
b.
c.
d.
Question 5.
a. Convert 1.6 and 3.75 to floating point.Use the revised FP format discussed in lectures, namely signed magnitude, excess 16 exponent, 8 bit significand.
b. Add these two numbers in this floating point representation.
c. Convert your answer from b. back to decimal scientific notation.
d. Your answer from c. should be different from the sum in decimal (5.35). What is the difference in decimal?Convert this difference to a binary fraction, and explain why it occurs.
Answers.
a.
b.
c.
d.
Question 6.
A digital computer has a memory unit with 32 bits per word. The instruction set consists of 110 different instructions. All instructions have an operation code part (opcode) and an address part (allowing for only one address). Each instruction is stored in one word of memory.
a. How many bits are needed for the opcode?
b. How many bits are left for the address part of the instruction?
c. What is the maximum allowable memory size for this machine?
d. What is the largest unsigned binary number that can be accommodated in one word of memory?
Answers.
a. b.
c. ? words d.
Question 7.
Assume a 1Gigabyte memory:
a. What are the lowest and highest addresses if memory is byte-addressable?
b. How wide should the address bus?
c. What are the lowest and highest addresses if memory is word-addressable, assuming a 32-bit word?
d. What are the lowest and highest addresses if memory is word-addressable, assuming a 64-bit word?
Answers.
a.
b.
c.
d.
Question 8.
Hand execute the instructions in the following MARIE program (a 16 bit computer), and show the sequence of addresses in the Program Counter.
100 If, Load X /Load the first value
101 Subt Y /Subtract the value of Y, store result in AC
102 Skipcond 400/If AC=0 (X=Y), skip the next instruction
103 Jump Else /Jump to Else part if AC is not equal to 0
104 Then,Load X /Reload X so it can be doubled
105 Add X /Double X
106 Store X /Store the new value
107 Jump Endif /Skip over the false, or else, part to end of if
108 Else,Load Y /Start the else part by loading Y
109 Subt X /Subtract X from Y
10A Store Y /Store Y-X in Y
10B Endif, Halt /Terminate program (it doesn't do much!)
10C X, Dec 12 /Assume these values for X
10D Y, Dec 20 /Assume these values for Y
For each instruction address, show the contents of the accumulator (in hexadecimal) after the instruction executes.
Answers.
PC AC
… ...
Question 9.
A nonpipelined system takes 100ns to process a task. The same task can be processed in a 5-segment pipeline with a clock cycle of 20ns. Determine the speedup ratio of the pipeline for 100 tasks. What is the theoretical speedup that could be achieved with the pipeline system over a nonpipelined system?
Answers.
SpeedUp =
Max SpeedUp =
Question 10.
The memory unit of a computer has 256K words of 32 bits each. The computer has an instruction format with 4 fields: an opcode field; a mode field to specify 1 of 7 addressing modes; a register address field to specify one of 60 registers; and a memory address field. Assume an instruction is 32 bits long. Answer the following:
a. How large must the mode field be?
b. How large must the register field be?
c. How large must the address field be?
d. How large is the opcode field?
Answers.
a.
b.
c.
d.
Question 11.
Suppose a computer using direct mapped cache has 4G words of main memory, and a cache of 210 blocks, where each cache block contains 32 words.
a. How many blocks of main memory are there?
b. What is the format of a memory address as seen by the cache, i.e., what are the sizes of the tag, block, and word fields?
c. To which cache block will the memory reference 000063FA16 map?
Answers.
a.
b.
c.
Question 12.
Suppose a process page table contains the entries shown below.
Using the format shown in the lecture notes Chapter 4 slide 34, indicate where the process pages are located in memory.
Answer
Virtual memory Physical memory
Question 13.
Suppose a disk drive has the following characteristics:
• 5 surfaces
• 1024 tracks per surface
• 256 sectors per track
• 512 bytes/sector
• Track-to-track seek time of 8 milliseconds
• Rotational speed of 7500 RPM.
a. What is the capacity of the drive?
b. What is the access time?
Answers.
a.
b.
Question 14.
Name the four types of I/O architectures. Where are each of these typically used and why
are they used there?
Answers.
1.
2.
3.
4.
Question 15.
Hand assemble the following code using two passes.
a. Present the symbol table
b. List the assembled hexadecimal code for the program.
Hex Address Label Instruction
100 Load A
101 Add One
102 Jump S1
103 S2, Add One
104 Store A
105 Halt
106 S1, Add A
107 Jump S2
108 A, HEX 0023
109 One, HEX 0001
Answers.
a.
Symbol Value
A
One
S1
S2
b.
Address Instruction
100
101
102
103
104
105
106
107
108
109
Question 16.
What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you choose to use an interpreted language?
Answer Hey, Dude!
I m pretty sure u r My classmate :)
u guys so smart !! but why nobody answer u? lol
页:
[1]