¡¶¼ÆËã»ú×é³ÉÔÀí¡·Ï°Ìâ´ð°¸ £¨ÇØÀÚ»ª£©
±í4.12 ijҳʽÐéÄâ´æ´¢Æ÷µÄÒ³±í
ÐéÒ³ºÅ ʵҳºÅ ×°Èëλ 0 1 2 3 4 5 6 7 3 2 1 2 3 1 0 0 1 1 0 0 1 0 1 0 (1)ʧЧµÄÒ³ÓÐÄļ¸Ò³?
(2)ÐéµØÖ·(ÓÃÊ®½øÖÆÊý±íʾ)0,3028,1023,2048,4096,8000µÄʵµØÖ··Ö±ðÊǶàÉÙ? ½â£º(1)ʧЧµÄҳΪ£º2¡¢3¡¢5¡¢7
(2)Ðé´æ¿Õ¼ä´óСΪ8*1KB= 8KB£¬¹ÊÐéµØַΪ13룬ÆäÖÐÐéÒ³ºÅΪ3λ 0£º ÐéÒ³ºÅΪ£º0
Ëù¶ÔÓ¦µÄʵҳºÅΪ£º3 Ò³ÄÚÆ«ÒÆΪ£º0
¹ÊÆäʵµØַΪ(¶þ½øÖƱíʾ)£º0110000000000 £¬¶ÔÓ¦µÄÊ®½øÖÆʵµØַΪ£º 3*1K+0=3072 3028£º£¨3028£©10= £¨010 1111000100£©2
ÐéÒ³ºÅΪ£º2
Ëù¶ÔÓ¦µÄʵҳºÅΪ£º1 ¹ÊÆäʵµØַΪ£º£¨001 1111000100£©2= 1988 1023£º(000 1111111111)
ÐéÒ³ºÅΪ£º0
Ëù¶ÔÓ¦µÄʵҳºÅΪ£º3 ¹ÊÆäʵµØַΪ£º£¨011 1111111111£©2= 3*1K+1023=4095 2048: £¨010 0000000000£©2
ÐéÒ³ºÅΪ£º2
Ëù¶ÔÓ¦µÄʵҳºÅΪ£º1 µ«ÓÉÓÚ×°ÈëλΪÁ㣬¹Ê¸ÃÒ³²»ÔÚÐé´æÖС£ Ò³ÄÚÆ«ÒƵØַΪ£º0
¹ÊÆäʵµØַΪ£º1*1K+0=1024
±¾ÌâºóÃ沿·ÖÂÔ £¬Çë²ÎÕÕÍê³É£¡
4.18ij¼ÆËã»úϵͳÖÐÓÐÒ»¸öTLBºÍL1¼¶Êý¾ÝCache,´æ´¢ÏµÍ³°´×Ö½Ú±àÖ·,ÐéÄâ´æ´¢ÈÝÁ¿Îª2GB, Ö÷´æÈÝÁ¿Îª4MB,Ò³´óСΪ128KB,TLB²ÉÓÃËÄ·×éÏàÁª·½Ê½,¹²ÓÐ16¸öÒ³±íÏî.CacheÈÝÁ¿Îª16KB,ÿ¿é°üº¬8¸ö×Ö,ÿ×Ö32λ,²ÉÓÃËÄ·×éÏàÁª,¿é´óСΪ4B,¹²32ÐÐ.²ÎÕÕͼ4.51ËùÃèÊöµÄҳʽÐéÄâ´æ´¢ÏµÍ³ÖÐTLBºÍCacheÃüÖÐʱÏêϸµÄ´æ´¢·ÃÎʹý³Ì,»Ø´ðÏÂÁÐÎÊÌâ:
(1)ÐéÄâµØÖ·ÖÐÄļ¸Î»±íʾÐéÒ³ºÅ?Äļ¸Î»±íʾҳÄÚÆ«ÒƵØÖ·?ÐéÒ³ºÅÖÐÄļ¸Î»±íʾTLB±ê¼Ç?Äļ¸Î»±íʾTLBË÷Òý?
(2)ÎïÀíµØÖ·ÖÐÄļ¸Î»±íʾÎïÀíÒ³ºÅ?Äļ¸Î»±íʾƫÒƵØÖ·?
(3)ΪʵÏÖÖ÷´æÓëÊý¾ÝCacheÖ®¼äµÄ×éÏàÁªÓ³Éä,¶Ô¸ÃµØÖ·ÓÖ½øÐÐÔõÑùµÄ»®·Ö? ½â£º(1)ÐéÄâ´æ´¢µÄÒ³ÃæÊýΪ£º2GB/128KB=16K£¬¹ÊÐéÒ³ºÅµÄλÊýΪ£º14λ ÓÉÓÚÒ³´óСΪ128KB£¬¹ÊÒ³ÄÚÆ«ÒƵØÖ·µÄλÊýΪ17λ
ËùÒÔÐéÄâµØÖ·µÄ¸ß14λ±íʾµÄÊÇÐéÒ³ºÅ£¬µÍ17λ±íʾµÄÊÇÒ³ÄÚÆ«ÒƵØÖ·
TLB²ÉÓÃËÄ·×éÏàÁª·½Ê½,¹²ÓÐ16¸öÒ³±íÏËùÒÔË÷ÒýÐèÒª2룬¹ÊÐéÄâÒ³ºÅµÄ¸ß12λΪTLB±ê¼Ç£¬µÍ2λΪTLBË÷Òý
(2)ÎïÀíÄÚ´æÖаüº¬µÄÒ³ÊýΪ£º4MB/128KB=32£¬¹ÊÎïÀíÒ³ºÅÕ¼5룬ҳÄÚÆ«ÒƵØÖ·µÄλÊýΪ17λ
µÚ 37 Ò³ ¹² 70 Ò³
¡¶¼ÆËã»ú×é³ÉÔÀí¡·Ï°Ìâ´ð°¸ £¨ÇØÀÚ»ª£©
ËùÒÔÎïÀíµØÖ·Öиß5λ±íʾÎïÀíÒ³ºÅ£¬µÍ17λ±íʾҳÄÚÆ«ÒƵØÖ·
(3)Ö÷´æÈÝÁ¿Îª4MB,·ÃÎʸÃÖ÷´æÐèÒª22¸ùµØÖ·Ïß,¿é´óСΪ32B,¹Ê¿éÄÚ×Ö½ÚÆ«ÒƵØַΪ5λ, Cache²ÉÓÃËÄ·×éÏàÁª£¬Cache¹²·Ö³É16KB/32B = 512¸ö×飬¹ÊË÷Òý×Ö¶ÎÐèÒª9λ£¬Ê£ÏµÄ22-5-9 = 8λΪ±ê¼Ç¡£ ÔòÖ÷´æµØÖ·»®·ÖÈçÏ£º
17 Ö÷´æ×éºÅ(±ê¼Ç) ×éÄÚ¿éºÅ(Ë÷Òý) ¿éÄÚµØÖ· 8 9 5
4.19ij´ÅÅÌ´æ´¢Æ÷¹²ÓÐ6¸ö¼Ç¼Ã棬ÅÌÃæÄÚȦֱ¾¶Îª1Ó¢´ç£¬ÍâȦֱ¾¶Îª5Ó¢´ç£¬µÀÃܶÈΪ50TPI£¬Î»ÃܶÈΪ 2000BPI£¬×ªËÙΪ 3000r£¯min£¬Æ½¾ùÕÒµÀʱ¼äΪ 10ms¡£ÊÔÎÊ£º (l)¸Ã´æ´¢Æ÷µÄ´æ´¢ÈÝÁ¿ÊǶàÉÙ£¿ (2)ƽ¾ù´æȡʱ¼äÊǶàÉÙ£¿ (3)¹²ÓжàÉÙ¸öÔ²ÖùÃ棿 (4)Êý¾Ý´«ÊäÂÊÊǶàÉÙ£¿
(5)Èç¹ûijÎļþµÄ³¤¶È³¬¹ýÁËÒ»¸ö´ÅµÀµÄÈÝÁ¿£¬Æ䳬¹ý²¿·ÖÓ¦¼Ç¼ÔÚͬһ¼Ç¼ÃæÉÏ£¬»¹ÊǼǼÔÚͬһ»ØÖùÃæÉÏ£¿
½â£º(l)¸Ã´ÅÅÌ´æ´¢Æ÷6¸ö¼Ç¼Ã棬×îÍâÁ½¸ö¼Ç¼Ãæ²»¼Ç¼ÄÚÈÝ£¬Ôò¸Ã´ÅÅÌÇý¶¯Æ÷µÄ×ܴŵÀÊýΪ£º[(5-1)/2]*50TPI*4=400
ÓÉÓÚλÃܶÈÒ»°ãÖ¸´ÅÅÌÄÚȦÉϵÄÐÅÏ¢¼Ç¼Ãܶȣ¬¹Êÿ¸ö´ÅµÀµÄ´æ´¢Î»ÊýΪ£º 3.14*2000BPI=6280λ
Ôò¸Ã´ÅÅÌ´æ´¢Æ÷µÄ´æ´¢ÈÝÁ¿Îª£º400*6280/8=306KB (2)´ÅÅÌת°ëȦÓÃʱ£º60s*0.5/3000r£¯min=10ms ƽ¾ù´æȡʱ¼äÊÇ£º10ms+10ms=20ms
(3)Ô²ÖùÃæµÄ¸öÊýΪ£º[(5-1)/2]*50TPI=100
(4)¸Ã´ÅÅ̵Ä×î´óÊý¾Ý´«ÊäÂÊ£º3000*6280/(60*8) =38KB/s (5)¼Ç¼ÔÚͬһÖùÃæÉÏ,ÕâÑù¿ÉÒÔÊ¡µôÒ»´ÎÑ°µÀʱ¼ä.
µÚ 38 Ò³ ¹² 70 Ò³
¡¶¼ÆËã»ú×é³ÉÔÀí¡·Ï°Ìâ´ð°¸ £¨ÇØÀÚ»ª£©
4.20 дÈë´úÂëΪ011001£¬»³öRZ£¬NRZ£¬PEºÍFMÖƼǼ·½Ê½µÄдµçÁ÷²¨ÐΡ£ ½â£º
0 1 1 0 0 1 RZ NRZ PEFM
3.1 ´æ´¢ÏµÍ³Öж༶´æ´¢Æ÷¸÷ÓÐÄÄЩÌص㣿
3.2 ˵Ã÷Áù¹Ü¾²Ì¬´æ´¢Î»µÄ¼ÇÒäÔÀíºÍ¶Á/д²Ù×÷ÔÀí¡£
3.3 ¶¯Ì¬MOS´æ´¢Æ÷Ó뾲̬MOS´æ´¢Æ÷¸÷ÓÐÄÄЩÌص㣿Ö÷Òª²»Í¬µãÊÇʲô£¿ 3.4 ÐðÊö¾²Ì¬Ëæ»ú´æ´¢Æ÷µÄ×é³ÉÌØÕ÷ºÍ¹¤×÷ÔÀí¡£
3.5 ÓÃ4Ƭ32K¡Á8λ´æ´¢Ð¾Æ¬¿ÉÉè¼ÆÄļ¸ÖÖ²»Í¬ÈÝÁ¿ºÍ×Ö³¤µÄ´æ´¢Æ÷£¿»³öÏàÓ¦Éè¼Æͼ²¢Íê³ÉÓëCPUÁ¬½Ó¡£
3.6 ÓÃ32K¡Á8λRAMоƬºÍ64¡Á4λROMоƬ£¬Éè¼Æ256K¡Á8λ´æ´¢Æ÷¡£ÆäÖУ¬´Ó30000Hµ½3FFFFHµØÖ·¿Õ¼äΪֻ¶Á´æ´¢Çø£¬ÆäËüΪ¿É¶Á¡¢¿Éд´æ´¢Çø¡£Íê³É´æ´¢Æ÷ÓëCPUÁ¬½Ó¡£ 3.7 ¶Ô128K¡Á8λµÄDRAMоƬ²ÉÓÃÒ첽ˢз½Ê½£¬²¢ÇÒˢа´ÐнøÐУ¬ÐÐˢеļä¸ôʱ¼ä20¦Ìs£¬Ð¾Æ¬µÄ´æ´¢ÌåΪ1024¡Á1024¾ØÕó£¬Ë¢ÐÂÖÜÆÚÊǶàÉÙ£¿Èô²ÉÓü¯ÖÐʽˢз½Ê½ËÀʱ¼äÂÊÊǶàÉÙ£¿
3.8 ÓÃ16K¡Á8λRAMоƬ×éÖ¯³É128K¡Á16λ´æ´¢Æ÷£¬ÊÔÎÊ£º (1) Êý¾Ý¼Ä´æÆ÷Ϊ¶àÉÙλ£¿ (2) µØÖ·¼Ä´æÆ÷Ϊ¶àÉÙλ£¿ (3) ¹²Ðè¶àÉٴ洢оƬ£¿
(4) ƬÄÚµØַΪ¶àÉÙλ£¬Æ¬Ñ¡µØַΪ¶àÉÙλ£¿ (5) »³ö´æ´¢Æ÷×é³É¿òͼ¡£
3.9 ÊÔÊöCPU¶Ôº¬CacheµÄÄÚ´æ´¢Æ÷½øÐвÙ×÷µÄ¶Á/д²Ù×÷ÔÀí¡£
3.10 ÈôÖ÷´æÈÝÁ¿Îª4MB£¬Èô°´×Ö±àÖ·£¬µ±×Ö³¤Îª32λʱ£¬CPU°´×Ö·ÃÎÊÖ÷´æʱµØַӦΪ¶àÉÙλ£¿Êý¾ÝӦΪ¶àÉÙλ£¿
3.11 ÊÔÊö¶àÌå½»²æ´æ´¢Æ÷µÄÉè¼Æ˼ÏëºÍʵÏÖ·½·¨¡£ 3.12 ÊÔÊö¶àÄ£¿é½»²æ´æ´¢Æ÷Ìá¸ß¹¤×÷ËٶȵÄÒ»°ãÔÀí¡£ 3.13 Ö÷´æÈÝÁ¿Îª8MB£¬Ðé´æÈÝÁ¿Îª2GB£¬·ÖÒ³¹ÜÀíʱÈôÒ³Ãæ´óСΪ4KB£¬ÔòÒ³±í³¤¶ÈÊǶàÉÙ£¿ 3.14 ÊÔÊö´Å±íÃæ´æ´¢Æ÷µÄ¼ÇÒäÔÀíºÍ¶Á/д²Ù×÷¹ý³Ì¡£ 3.15 ¼¤¹â´æ´¢Æ÷ÓÐÄļ¸ÖÖÀàÐÍ£¿ 3.16 ½âÊÍÏÂÁÐÊõÓ
´æ´¢ÖÜÆÚ ´æ´¢Î» ´æ´¢½éÖÊ ÃüÖÐ ÏàÁª´æ´¢Æ÷ Ö±½ÓÓ³É䷽ʽ
µÚ 39 Ò³ ¹² 70 Ò³
¡¶¼ÆËã»ú×é³ÉÔÀí¡·Ï°Ìâ´ð°¸ £¨ÇØÀÚ»ª£©
µÚÎåÕ ָÁîϵͳ Ï° Ìâ Îå
5.1½âÊÍÏÂÁÐÃû´Ê
Ö¸Áî Ö¸Áîϵͳ ²Ù×÷Âë µØÖ·Âë Ñ°Ö··½Ê½ ³ÌÐò¼ÆÊýÆ÷PC ÓÐЧµØÖ· µØÖ·ÂëÀ©Õ¹ CISC RISC ´æ´¢Æ÷¶ÑÕ» ¼Ä´æÆ÷¶ÑÕ» »ùÖ·¼Ä´æÆ÷ ±äÖ·¼Ä´æÆ÷
½â£º(1)Ö¸Á¿ØÖƼÆËã»úÖ´ÐÐijÖÖ²Ù×÷(Èç¼Ó¡¢¼õ¡¢´«ËÍ¡¢×ªÒƵȲÙ×÷)µÄÃüÁî³ÆΪָÁî¡£ (2)Ö¸Áîϵͳ£ºÒ»Ì¨¼ÆËã»úÖÐËùÓÐÖ¸ÁîµÄ¼¯ºÏ³ÆΪ¸Ã¼ÆËã»úµÄÖ¸Áîϵͳ¡£
(3)²Ù×÷Â룺ָÁîÖÐÓÃÓÚ¿ØÖÆÖ¸Áî²Ù×÷ÐÔÖʵÄ×ֶγÆΪ²Ù×÷Âë¡£²»Í¬¹¦ÄܵÄÖ¸ÁîÆä²Ù×÷Âë±àÂ벻ͬ,Èç¿ÉÓÃ0001±íʾ¼Ó·¨²Ù×÷£¬0010±íʾ¼õ·¨²Ù×÷¡£
(4)µØÖ·Â룺ָÁîÖÐÓÃÓÚ¶¨²ÎÓëÖ¸Áî²Ù×÷µÄ²Ù×÷ÊýµÄµØÖ·»òÆ«ÒÆÁ¿µØÖ·µÄ×ֶΡ£ (5)Ñ°Ö··½Ê½£ºÑ°ÕÒÖ¸Áî»ò²Ù×÷ÊýÓÐЧµØÖ·µÄ·½·¨¡£
(6)³ÌÐò¼ÆÊýÆ÷PC£º³ÌÐò¼ÆÊýÆ÷ÊÇÓÃÓÚ´æ·ÅÏÂÒ»ÌõÖ¸ÁîËùÔÚµ¥ÔªµÄµØÖ·µÄ¼Ä´æÆ÷¡£ (7)ÓÐЧµØÖ·£º±íʾ²Ù×÷ÊýËùÔÚÖ÷´æµ¥ÔªµÄÎïÀíµØÖ·¡£
(8)µØÖ·ÂëÀ©Õ¹£º½«Ö¸ÁîµÄ²Ù×÷Âë×Ö¶ÎÏò²»ÓõĵØÖ·Âë×Ö¶ÎÀ©Õ¹£¬´Ó¶øÔÚÖ¸Á¶È²»±äµÄÇé¿öÏÂÖ§³Ö¸ü¶àµÄÖ¸Áî¡£
(9)CISC£ºCISCÊǸ´ÔÓÖ¸Áîϵͳ¼ÆËã»ú£¨ComplexInstructionSetComputer£©µÄ¼ò³Æ£¬ÕâÀà¼ÆËã»úÖ¸Áîϵͳ¸´ÔÓ£¬Ñ°Ö··½Ê½ÖÖÀà½Ï¶à£¬Ö¸ÁîÖ´ÐÐЧÂʵ͡£
(10)RISC£ºRISCÊǾ«¼òÖ¸Á¼ÆËã»ú£¨reduced instruction set computer£¬£©µÄ¼ò³Æ£¬ÕâÀà¼ÆËã»úÖ¸Áîϵͳ¼òµ¥£¬Ñ°Ö··½Ê½ÖÖÀàÉÙ£¬Ö¸ÁîÖ´ÐÐЧÂʸߡ£
(11)´æ´¢Æ÷¶ÑÕ»£ºÒÔÏȽøºó³öµÄ·½Ê½´æ´¢Êý¾Ý£¬ÔÚÄÚ´æ¿Õ¼ä¿ª±Ù¶ÑÕ»Çø£¬¸ÃÀà¶ÑÕ»ÈÝÁ¿´ó£¬ËÙ¶ÈÂý£¬Õ»¶¥Òƶ¯¶ø¶ÑÕ»ÖеÄÊý¾Ý²»¶¯¡£ (12)¼Ä´æÆ÷¶ÑÕ»£ºÒÔÏȽøºó³öµÄ·½Ê½´æ´¢Êý¾Ý£¬ÀûÓüĴæÆ÷¿ª±ÙµÄ¶ÑÕ»Çø£¬¸ÃÀà¶ÑÕ»ÈÝÁ¿Ð¡£¬Ëٶȿ飬ջ¶¥²»¶¯£¬³öÕ»ºÍÈëÕ»²Ù×÷Éè¼ÆÕ»ÄÚËùÓÐÊý¾ÝµÄÒƶ¯¡£ (13)»ùÖ·¼Ä´æÆ÷£º»ùÖ·Ñ°Ö··½Ê½ÏÂÓÃÓÚ´æ·Å»ùµØÖ·µÄ¼Ä´æÆ÷¡£
(14)±äÖ·¼Ä´æÆ÷£º±äÖ·Ñ°Ö··½Ê½Ï£¬ÓÃÓÚ´æ·Å±ä»¯µÄµØÖ·µÄ¼Ä´æÆ÷¡£
5.2 ¼òÒª»Ø´ðÏÂÁÐÎÊÌâ
(1)ʲô½ÐÖ¸Áʲô½ÐÖ¸Áîϵͳ£¿
(2)¼ÆËã»úÖÐΪʲôҪÉèÖöàÖÖ²Ù×÷ÊýÑ°Ö··½Ê½? (3)²Ù×÷ÊýÑ°Ö··½Ê½ÔÚÖ¸ÁîÖÐÈçºÎ±íʾ?
(4)»ùÖ·Ñ°Ö·ºÍ±äÖ·Ñ°Ö·µÄ×÷ÓÃÊÇʲô?·ÖÎöËüÃǵÄÒìͬµã. (5)RISC´¦ÀíÆ÷ÓкÎÌصã?
(6)±È½Ï¶¨³¤Ö¸ÁîÓë±ä³¤Ö¸ÁîµÄÓÅȱµã¡£
(7)Ö¸ÁîµÄµØÖ·ÂëÓëÖ¸ÁîÖеĵØÖ·Â뺬ÒåÓкβ»Í¬?
½â:(1) Ö¸ÁîÊÇÖ¸¿ØÖƼÆËã»úÖ´ÐÐijÖÖ²Ù×÷(Èç¼Ó¡¢¼õ¡¢´«ËÍ¡¢×ªÒƵȲÙ×÷)µÄÃüÁ¶øһ̨¼ÆËã»úÖÐËùÓÐÖ¸ÁîµÄ¼¯ºÏ³ÆΪ¸Ã¼ÆËã»úµÄÖ¸Áîϵͳ¡£
(2) ÕâÊÇΪÁËÔÚЧÂʺͷ½±ãÐÔÒÔ¼°Ñ°Ö·¿Õ¼ä´óС±£³Öƽºâ¡£ ÓÃÓÚ¿ìËÙ·ÃÎʵÄÑ°Ö··½Ê½£ºÁ¢¼´ÊýÑ°Ö·¡¢¼Ä´æÆ÷Ñ°Ö·µÈ
À©´óÑ°Ö··¶Î§µÄÑ°Ö··½Ê½£º¼ä½ÓÑ°Ö·¡¢¼Ä´æÆ÷¼ä½ÓÑ°Ö·¡¢»ùÖ·Ñ°Ö·µÈ ±ãÓÚ³ÌÐòÉè¼ÆÁé»îÐÔµÄÑ°Ö··½Ê½£º±äÖ·Ñ°Ö·¡¢Ïà¶ÔÑ°Ö·¡¢Ö±½ÓÑ°Ö·µÈ
¼ÈÀ©´óÑ°Ö··¶Î§£¬ÓÖÓÉÀûÓÚÖ¸ÁîÖ´ÐÐËÙ¶ÈÌá¸ßµÄÑ°Ö··½Ê½£º¼Ä´æÆ÷¼ä½ÓÑ°Ö· ÁíÍ⣬¶àÖÖ¸´ºÏÑ°Ö·Ñ°Ö··½Ê½Ê¹µÃÑ°Ö·¸ü¼ÓÁé»î¡£
(3)ÓÉÓÚ²»Í¬Ö¸Áî¿ÉÄܲÉÓò»Í¬µÄÑ°Ö··½Ê½»ñµÃ²Ù×÷Êý,Òò´Ë,Ò»°ãÇé¿öÏ£¬Ö¸ÁîµÄ¸ñʽ»á½øÒ»²½Ï¸·Ö³öÑ°Ö··½Ê½×ֶΡ£ÏÂͼËùʾµÄΪ°üº¬Ñ°Ö··½Ê½×ֶεĵ¥µØÖ·Ö¸Áî½á¹¹¡£
µÚ 40 Ò³ ¹² 70 Ò³