计算机组成原理大作业I.pdf
计算机组成原理大 作 业 计算机组成原理 大作业(I)2、Consider a hypothetical microprocessor generating a 16-bit address(for example,assume that the program counter and the address registers are 16 bits wide)and havinga 16-bit data bus.(12 points)使用专业、班级学号姓名la)a).What is the maximum memory address space that the processor can access directlyif it is connected to a“16-bit memory”?题数一二总分b)b).What is the maximum memory address space that the processor can access directlyif it is connected to an“8-bit memory”?得分c)c).What architectural features will allow this microprocessor to access a separate“I/O space”?d)d).If an input and an output instruction can specify an 8-bit I/O port number,howmany 8-bit I/O ports can the microprocessor support?How many 16-bit I/O ports?Explain.一、系统总线部分 共计 30分1、Consider a hypothetical 32-bit microprocessor having 32-bit instructions composed oftwo fields:the first byte contains the opcode and the remainder the immediate operand or anoperand address.(10 points)a).a).What is the maximum directly addressable memory capacity(in bytes)?b).b).Discuss the impact on the system speed if the microprocessor bus has(1).(1).a 32-bit local address bus and a 16-bit local data bus,or(2).(2).a 16-bit local address bus and a 16-bit local data bus.c).c).How many bits are needed for the program counter and the instruction register?1计算机组成原理大 作 业3、Consider a 32-bit microprocessor whose bus cycle is the same duration as that of a16-bit microprocessor.Assume that,on average,20%of the operands and instructionsare 32 bits long,40%are 16 bits long,and 40%are only 8 bits long.Calculate theimprovement achieved when fetching instructions and operands with the 32-bitmicroprocessor.(8 points)二、存储器部分 共计 70分2、Consider a computer with the following characteristics:total of 1Mbyte of main1、Consider a 32-bit microprocessor that has an on-chip 16-Kbyte four-way setassociativememory;word size of 1 byte;block size of 16 bytes;and cache size of 64 Kbytes.(25 points)cache.Assume that the cache has a line size of four 32-bit words.Draw a block diagram ofa a).For the main memory addresses of F0010,01234,and CABBE,give the correspondingthis cache showing its organization and how the different address fields are used to determinetag,cache line address,and word offsets for a direct-mapped cache.a cache hit/miss.Where in the cache is the word from memory location ABCDE8F8 mapped?b)b).Give any two main memory addresses with different tags that map to the same(25 points)cache slot for a direct-mapped cache.c)c).For the main memory addresses of F0010 and CABBE,give the corresponding tagand offset values for a fully-associative cache.d)d).For the main memory addresses of F0010 and CABBE,give the correspondingtag,cache set,and offset values for a two-way set-associative cache.2计算机组成原理大 作 业3、A computer system contains a main memory of 32K 16-bit words.It also has a 4Kwordcache divided into four-line sets with 64 words per line.Assume that the cache is initiallyempty.The processor fetches words from locations 0,1,2,.,4351 in that order.It thenrepeats this fetch sequence nine more times.The cache is 10 times faster than main memory.Estimate the improvement resulting from the use of the cache.Assume an LRU policy forblock replacement.(10 points)4、Let s say this module of chips is packaged as a single 1-Mbyte chip,where the word sizeis 1 Mbyte.Give a high-level chip diagram of how to construct an 8-Mbyte computermemory using eight 1-Mbyte chips.Be sure to show the address lines in your diagram andwhat the address lines are used for(10 points)3