{"format":"brushup-mindmap-v1","id":"co-00-sheet5","title":"⭐️第五章 中央处理器","structure":"timeline-h","theme":"auto","root":{"id":"3febb530007a418fc7c26a99d8","topic":"中央处理器","expanded":true,"children":[{"id":"132215d2-fdb7-43b8-9bb2-01ead8823d3b","topic":"CPU的功能、基本结构","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-7e55e4bc65271a.svg","width":60,"height":60},"children":[{"id":"8a6fd50f-f1be-4af4-80ff-4a91ed1d4809","topic":"具体功能","expanded":true,"children":[{"id":"ee544f13-a1c2-4f49-8ef0-b9328cb2cf5f","topic":"指令控制","expanded":true,"children":[{"id":"1bb572f5-fa9e-4263-94f1-f5b1300f7156","topic":"完成取指、分析指令、执行指令","expanded":true}]},{"id":"86d273c3-725a-4d1e-b862-b2d1a265e19c","topic":"操作控制","expanded":true,"children":[{"id":"4a5ccb3b-f2b6-40f9-899d-0a9f6d2017d6","topic":"一条指令由若干操作（微指令）组合实现，CPU管理产生每条指令的操作信号","expanded":true}]},{"id":"52cfe0a1-a917-418e-b31a-2cb235ebbc02","topic":"时间控制","expanded":true,"children":[{"id":"c402dece-6ebf-49e1-82ff-f638b96b8c67","topic":"对各种操作加以时间上的控制","expanded":true}]},{"id":"a497583b-7bde-419c-ae9e-272612d5262e","topic":"数据加工","expanded":true,"children":[{"id":"874bcda2-2460-468d-9a7c-8989c241e427","topic":"对数据提供算术和逻辑运算","expanded":true}]},{"id":"5acc0541-d42a-42d3-9d2d-1862e95d8003","topic":"中断处理","expanded":true,"children":[{"id":"e9ba76a3-15d5-41c6-80ad-bb89c76556e8","topic":"对计算机运行过程中的异常情况和特殊情况进行处理","expanded":true}]}]},{"id":"8ebf17c5-81f6-495f-bba8-9eb806ff4ace","topic":"CPU的基本结构","expanded":true,"children":[{"id":"42182f9e-d3b2-452b-8470-c06a02b65249","topic":"运算器","expanded":true,"children":[{"id":"91798d7e-a111-4d81-90a5-30386015e408","topic":"运算器是计算机的数据加工中心","expanded":true,"style":{"background":"#8EDE99"}},{"id":"835ebbe7-5d84-4cff-8bd5-bb06c01b6546","topic":"组成部分","expanded":true,"children":[{"id":"50e6117b-b37e-409d-85b1-48f330d02e5c","topic":"算术逻辑单元ALU","expanded":true,"children":[{"id":"a0134260-7538-4c29-8057-638e3770f4b0","topic":"进行算术/逻辑运算","expanded":true}]},{"id":"67198d5c-51eb-4bd9-b544-2a6bbbafb297","topic":"暂存寄存器","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"f23e046e-6fdb-4e46-8d8c-a67abc5d4970","topic":"用于暂存从主存读来的数据","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"2735676a-266b-40fd-886a-ec0782e540f7","topic":"例如ACC需要R0和R1的数据，就先把R0读入到暂存寄存器，然后把R1和暂存寄存器中的数同时写入到ACC中","expanded":true,"style":{"background":"#8EDDF9"}}]}]},{"id":"015d0149-32e9-4d7d-a8a2-a4b41e2aadf9","topic":"累加寄存器ACC","expanded":true,"children":[{"id":"c869d1c1-ed2f-4edf-bd67-b06c22e570f4","topic":"一个通用寄存器，用于存放ALU运算的结果，也可以作为运算的输入端","expanded":true}]},{"id":"fb630d3f-0250-4e41-a701-1a073c1beb52","topic":"通用寄存器组","expanded":true,"children":[{"id":"ad7ca77c-2942-4943-bd5f-8ae21042b510","topic":"A","expanded":true,"children":[{"id":"22005b2c-7f77-49d6-9660-d8a34b8c207c","topic":"累加器EAX","expanded":true}]},{"id":"91a7a8bb-fda0-4100-8090-04be7f3e1b88","topic":"B","expanded":true,"children":[{"id":"335b32ff-a9c0-4bd6-8f0f-feefd7118b06","topic":"基地址EBX","expanded":true}]},{"id":"2fcdbebb-fddb-41a4-844a-50b4f113c1fb","topic":"C","expanded":true,"children":[{"id":"5768d417-f971-450b-b975-916d92cfe516","topic":"计数ECX","expanded":true}]},{"id":"4fdb9992-2be2-4acb-abfa-6c937b471f3b","topic":"D","expanded":true,"children":[{"id":"bfba3254-7109-4c55-9ffa-856c28533035","topic":"数据EDX","expanded":true}]},{"id":"8167ad96-6342-4e2f-b24c-9590c55432b5","topic":"变址ESI、EDI","expanded":true},{"id":"8108fdc1-40df-4dbd-8a24-8f37ff1a3cd5","topic":"堆栈基EBP","expanded":true},{"id":"3aed7745-7ae4-497e-859f-51d555d48467","topic":"堆栈顶ESP","expanded":true}]},{"id":"3e62fc2a-1879-44f2-b07f-8fc677fde1d6","topic":"程序状态字寄存器PSW","expanded":true,"children":[{"id":"373eb5dd-34c3-4715-8985-02f832808849","topic":"由OF、ZF、SF、CF组成","expanded":true}]},{"id":"778b8937-8053-4794-926c-22d3128e02be","topic":"移位器","expanded":true,"children":[{"id":"b07eb9a3-143a-4770-bcef-082de8377035","topic":"对操作数或运算结果进行移位的运算","expanded":true}]},{"id":"35eb06b7-1603-4531-ad23-d29c07bde4e0","topic":"计数器CT","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"e57bc996-ce9a-4d4d-beb3-9bb6915a6348","topic":"控制乘除运算的操作步数","expanded":true,"style":{"background":"#8EDDF9"}}]}]}]},{"id":"836402cf-4a1c-4997-b356-a66643109f49","topic":"控制器","expanded":true,"children":[{"id":"f937b43b-78ed-4b60-98c6-6713a45a1a13","topic":"基本功能：执行指令，每条指令的执行由控制器发出的一组微操作实现","expanded":true,"style":{"background":"#8EDE99"}},{"id":"4beb3814-c769-4ea0-b469-320e61e64886","topic":"组成部分：","expanded":true,"children":[{"id":"df073ae9-256a-40bd-982d-d4f144d169cd","topic":"PC程序计数器","expanded":true,"children":[{"id":"5a1b9fde-63b0-4f52-9d16-6d04c99461bd","topic":"指出下一条指令在主存中的地址","expanded":true,"style":{"background":"#FDD834"}},{"id":"049c305d-192e-475d-a01b-dca686debd1e","topic":"CPU根据PC的内容去主存取指令","expanded":true},{"id":"7fa0fc2e-e3a1-46ab-8b2b-423bb668d193","topic":"PC具有自增功能","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"1b3ca307-67e2-4dc8-a776-7d001d3c49c6","topic":"IR指令寄存器","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"2eab0132-541b-47e3-8155-a16327d55274","topic":"保存当前执行的那个指令","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"0fb4df77-70a9-447b-806e-4fd0ff6cf66b","topic":"指令译码器","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"bbe4ece0-5608-4cd7-9ec5-401d8c4023e1","topic":"对操作码字段进行译码，向控制器提供操作信号","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"ff908edc-db6c-428b-be1e-29333f64eaf1","topic":"MAR存储器地址寄存器","expanded":true,"children":[{"id":"cbb347af-2bd3-453c-990b-c24323a2a9dc","topic":"存放要访问的主存单元的地址","expanded":true}]},{"id":"f9039edc-d50e-48c3-82d4-fa908e61de0f","topic":"MDR存储器数据寄存器","expanded":true,"children":[{"id":"f0da29cc-3531-40ba-af67-1e0d44322ba2","topic":"存放向主存写/从主存读的数据","expanded":true}]},{"id":"dbba6817-cfc0-4d63-a007-e2db50565d3b","topic":"时序系统","expanded":true,"children":[{"id":"4baa840f-3dc9-47cc-9f60-83180a2bfe6d","topic":"用于产生各种时序信号，由统一时钟(CLOCK)分频得到","expanded":true}]},{"id":"1c2595bf-3676-4322-ac65-479cacd4a9f2","topic":"微操作信号发生器","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"65aadb82-9d83-411e-96dc-83bc393bf897","topic":"根据IR、PSW、时序信号产生的控制整个计算机系统所需的各种控制信号","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"7d9b3f19-31c7-4ade-8c49-f3eeee047b26","topic":"分为：","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"7377dfff-5d4b-43f1-8ae3-290814d803e0","topic":"组合逻辑型","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"0d9a30d2-9e9b-4acb-be4f-45a224ad3e32","topic":"存储逻辑型","expanded":true,"style":{"background":"#8EDDF9"}}]}]}]}]},{"id":"a16845e0-1249-4340-a869-9fc74757d8ae","topic":"计算机可以划分为：","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"412a898e-604f-44a7-823d-2ee8fb5c4464","topic":"控制部件","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"5e6f1330-4a12-4e9c-8fa2-50ace264feb0","topic":"控制器：","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"29ed7efb-5b26-411f-856c-36b5bbc83d35","topic":"PC、IR、MAR、MDR、ID、时序、微操作信号发生器(CU的第一步)","expanded":true,"style":{"background":"#FFABD5"}}]}]},{"id":"5637021c-fe65-4b3f-9cf6-287fae886893","topic":"执行部件","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"9cb13136-888a-4a6c-8e82-9fac0875672e","topic":"运算器：","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"50d9873e-254b-4f32-8469-462ae7ae27f8","topic":"ALU、ACC、Reg(寄存器组)、X(暂存寄存器)、PSW、CT、移位器","expanded":true,"style":{"background":"#FFABD5"}}]},{"id":"fb83ea9c-1604-4fea-9c9b-06fdf87da427","topic":"存储器","expanded":true},{"id":"cbb77823-d217-4b0b-be56-57c449510036","topic":"外围设备","expanded":true}]}]},{"id":"785c18c4-f8c5-446a-88dd-47753ca81cf7","topic":"内存寄存器","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"b50eae25-8de9-4721-a4d4-f8c957f29147","topic":"用户透明（不可编程）","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"ed731517-4d0c-4a9e-8f5e-57b2ff79f05b","topic":"MAR、MDR、IR","expanded":true,"style":{"background":"#FFABD5"}}]},{"id":"357e82f4-cbea-4263-b822-947d83dfbd92","topic":"用户不透明（可编程）","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"4ea20b94-3c8d-41b5-8429-e11593d43a83","topic":"<Reg>、PSW、PC","expanded":true,"style":{"background":"#FFABD5"}}]}]}]},{"id":"58087fb5-a46a-4170-a9f1-6f9936cbe81b","topic":"考频：低","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"1ebec1d5-7de5-4dbc-9bab-d53c08c0e5bc","topic":"10、16","expanded":true}]}]},{"id":"ee98e053-89a6-4904-934a-19ad18297fe1","topic":"指令执行过程","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-29fe79c2b71a86.svg","width":60,"height":60},"children":[{"id":"2e97b328-b263-4c13-8694-8637f26a8164","topic":"考频：低","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"7342629f-84c2-4b91-9597-a2e0ecffd3fb","topic":"09、11","expanded":true}]},{"id":"a24f795f-3411-4ebe-849e-e0d474b13377","topic":"指令周期","expanded":true,"children":[{"id":"ce3f8916-1963-482e-9476-2cd49f219f14","topic":"CPU从主存取出一条指令并执行的时间：指令周期","expanded":true,"style":{"background":"#FF9595"}},{"id":"e7694f16-325d-456a-bd04-79dddab8ecbf","topic":"4+2大联系不同：","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"34979da9-0d7a-4906-91ff-6ddd8a3c87ee","topic":"【指令】","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"9b447c66-5bbc-4904-ae59-29fc8e525481","topic":"【指令周期】","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"51af1c44-2997-43ef-93fd-9e2778d2c6db","topic":"【机器周期】","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"af3513cf-1a83-4f05-9c9b-a8e721814b9e","topic":"【时钟周期/节拍】","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"665b4889-55dc-4735-a6bd-25c248d4db01","topic":"【微操作】","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"c8b526c7-e506-49a2-a488-d3b79c3c25d7","topic":"【微周期】","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"804a38d9-4f5a-4641-9a44-64ec2273b942","topic":"一般是一个时钟周期","expanded":true,"icons":["emoji:💬"],"style":{"borderStyle":"dashed","borderColor":"#F59E0B"}}]}]}]}]}]}]}]},{"id":"fa551894-d153-4344-ad29-a1e6518a1f5a","topic":"微操作与指令：","expanded":true,"children":[{"id":"9db2e779-f7ad-4f18-935f-13be9729729b","topic":"要完成一个机器周期，需要多个节拍/时钟周期，而一个节拍内完成的操作就是“微操作”","expanded":true}]},{"id":"dc242fea-e78b-4ac4-b0c3-31b634920716","topic":"其中：","expanded":true,"children":[{"id":"d24f3ea7-67e2-4dc3-9d01-f8bc9dce4fe5","topic":"定长的机器周期","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-95c769c8435707.png","width":512.12,"height":135.64}},{"id":"b43253a9-cade-4741-8637-2270c9a88fbf","topic":"不定长的机器周期","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-f47568899d445e.png","width":408.88,"height":146.54}}]},{"id":"65db625d-f9bd-447b-ac93-30449d945d45","topic":"举例：","expanded":true,"children":[{"id":"efcd01a8-6758-46bc-bfd9-bb35d30121c7","topic":"取指、执行、多执行、间址、中断","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-69731e8dd8ca21.png","width":522.31,"height":327.1},"children":[{"id":"0cd77852-0d80-45f3-87a2-74a588597f73","topic":"每个指令周期内的机器周期数可以不等，每个机器周期内的节拍数也可以不等。","expanded":true,"style":{"background":"#FF9595"}},{"id":"637820e8-e338-4617-90e9-62350b7fb3a8","topic":"只有检测到了中断请求，才会有“中断周期”","expanded":true,"style":{"background":"#FF9595"}},{"id":"cd872a6e-dda0-4284-a987-35b68526b0c8","topic":"中断请求是随时都可到来的","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"d42d32e8-34b5-48b2-9951-b10c5afe2ab4","topic":"只会在执行周期末尾进行中断检测，并且没有检测到中断的话会跳过中断周期","expanded":true,"style":{"background":"#FDD834"}}]}]}]}]},{"id":"342571c8-dab1-4fe2-92f6-a3ccfc9daab2","topic":"取指周期","expanded":true,"children":[{"id":"8e99cfa6-fed9-4c61-8be3-06d98636d32f","topic":"取值周期控制流","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-ae83db4523e75b.png","width":392.14,"height":199.52},"children":[{"id":"d277086c-17a8-4a40-a2f1-61c11f042150","topic":"1. (PC) -> MAR --- ①","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"69eda959-7409-4604-8e72-19c19e97c450","topic":"把PC寄存器中的值读入到MAR中","expanded":true}]},{"id":"d47d4039-9bee-454c-af27-37d2f086a220","topic":"2. 1 -> R --- ④⑤","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"e773a772-3c98-49bf-95ba-a07f48c891c2","topic":"CU发出控制信号，经主线传到主存，这里是读信号","expanded":true}]},{"id":"286e2c5a-a146-480e-900d-ea54e87fd262","topic":"3. M(MAR) -> MDR --- ②③⑥⑦","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"fccdbdfd-6b0a-454a-92bd-18655132749d","topic":"主存中地址为(MAR)的数据送入到MDR中","expanded":true}]},{"id":"fd942ff2-8d85-41a3-b603-02fea09bc020","topic":"4. (MDR) -> IR --- ⑧","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"bbed4676-8c16-4cdd-936e-9c67cd309648","topic":"把取得的指令放入到IR中","expanded":true}]},{"id":"826bf196-0245-46d2-911a-f5d75b97d271","topic":"5. (PC) + 1 -> PC --- ⑨","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"8dd0403c-e463-4913-96fd-91ac5b74374a","topic":"CU发出控制指令，PC自增","expanded":true}]}]}]},{"id":"78950bcf-5ee2-4a36-991b-81a6c0135dba","topic":"间址周期","expanded":true,"children":[{"id":"84b8dfdf-e32a-4b30-a2f2-87991b9cae2a","topic":"一次间址周期数据流","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-ec69668c484afe.png","width":391.87,"height":194.75},"children":[{"id":"d8afa7a4-ec1a-407d-9b21-28741803769d","topic":"1. Ad(IR)/Ad(MDR) -> MAR --- ①","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"a605bb4f-bf48-43dc-a0f6-621de86203c6","topic":"这里也可以是Ad(MDR) -> MAR？可以，在唐朔飞计算机组成原理中（第三版），有Ad(MDR)的原图和原描述","expanded":true,"style":{"background":"#FF5252"},"children":[{"id":"1725b7ae-5696-4381-a41e-10bab5f9b452","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-5ce6024dd14951.png","width":390.18,"height":241.13}},{"id":"506fa143-6cef-445d-b550-c36d64013526","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-f90410857239be.png","width":405.78,"height":41.66}},{"id":"8a40ede3-8d7c-4340-a072-438363845ee9","topic":"注意只在间址周期","expanded":true,"icons":["emoji:💬"],"style":{"borderStyle":"dashed","borderColor":"#F59E0B"}}]}]},{"id":"0f0c998a-3902-424a-b932-9e093b6739b5","topic":"2. 1 -> R  --- ④⑤","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"2f173e80-8a61-49c9-ac6d-e28eb5173cc5","topic":"3. M(MAR) -> MDR --- ②③⑥⑦","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"df812818-93f5-47de-97cf-caa3cbb740e0","topic":"4. (MDR) -> IR","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"14771830-87d2-4214-acea-64bde1e63d60","topic":"可以有，也可以无。修改IR的Add部分（IR的OP部分不变，只改地址）","expanded":true}]}]}]},{"id":"09b57a71-fdab-42b4-b1e8-c5e20038bdd0","topic":"执行周期","expanded":true,"children":[{"id":"1263f333-fb80-4da3-bd55-b1e88b2d22c1","topic":"不同指令的周期不同，没有固定的","expanded":true}]},{"id":"6b310037-0cf5-424c-89f7-2e41cd19c02a","topic":"中断周期","expanded":true,"children":[{"id":"eb4b8ab8-ec84-4248-af90-5d15d29c4a43","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-9f48db671c2d8f.png","width":397.52,"height":207.38},"children":[{"id":"5ded0dd5-bb0b-408b-8f03-e5ac7ceba529","topic":"1. (SP) - 1 -> SP，(SP) -> MAR --- ①②","expanded":true,"children":[{"id":"ccc1e843-f107-4e58-8af5-31d971451c85","topic":"检测到中断信号后，首先CU先让堆栈顶部SP-1，然后CU把SP中存的当前的地址送入到MAR中","expanded":true},{"id":"678ff1ed-eac7-4396-8cfe-ed0132ed7bf6","topic":"此处是SP - 1的原因是计算机的堆栈都是从顶至下的","expanded":true,"icons":["emoji:💬"],"style":{"borderStyle":"dashed","borderColor":"#F59E0B"}}]},{"id":"37ca7fff-e0f8-4460-9310-ac224706fc49","topic":"2. 1 -> W --- ④⑤","expanded":true,"children":[{"id":"2a6800c5-d0d9-4057-a393-b7e676e6c636","topic":"CU告诉主存要进行写操作","expanded":true}]},{"id":"90d63daa-a5f5-401a-8c3f-32cfca1a36e6","topic":"3. (PC) -> MDR --- ⑥⑦⑧","expanded":true,"children":[{"id":"d3c25668-ab88-4d5e-82ea-f5890d6fd1c9","topic":"PC的数据写入到MDR中，随后主存通过MAR、MDR中的数据把PC的地址写入到SP指向的位置","expanded":true},{"id":"1f168427-384b-4e89-8f25-f6f77f260e20","topic":"MDR -> M(MAR)","expanded":true,"style":{"background":"#ADADAD"},"children":[{"id":"c3aae6b3-b075-41ca-a285-fbc95b0ade37","topic":"个人感觉还差了一步","expanded":true,"style":{"background":"#ADADAD"}}]}]},{"id":"44c08b60-7d9c-46f3-a379-98742c842ac5","topic":"4. 向量地址 -> PC --- ⑨","expanded":true,"children":[{"id":"d7d97245-86dc-4cdf-bc89-64e53ed0edea","topic":"CU获得中断向量的向量地址，送入PC","expanded":true}]}]},{"id":"c511cf2e-a766-48bd-bbb6-9010b465c536","topic":"中断周期要做的事情只是硬件的操作（即中断隐指令的所有内容），引出中断向量对应的处理程序后，就交由软件执行","expanded":true,"style":{"background":"#FFABD5"}},{"id":"d95f768a-7d2d-4ac2-a237-51b9534b1d3d","topic":"执行中断时保存的内容不只有一个PC","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"8d1663d4-0f6c-437f-88d0-fbd9329355d5","topic":"指令执行方案","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"b043d737-15ab-4caa-a6b8-c40bc0176415","topic":"单指令周期","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"75f64862-1de3-45bc-aa57-62103f111b25","topic":"所有指令都用相同的时间执行","expanded":true},{"id":"8270cfc7-d2d4-4cb0-8787-1384daff6c90","topic":"指令间串行执行","expanded":true},{"id":"322f1696-9e96-4195-bf9f-6aa9bd9d6d54","topic":"指令周期取决于最长的指令的执行时间","expanded":true},{"id":"4e015fac-15ef-4891-b6f5-55fc32930656","topic":"降低整个系统的运行速度","expanded":true}]},{"id":"d1606cad-402e-47fd-bdff-0b2d39b2d277","topic":"多指令周期","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"b4bdf278-adec-4633-b04a-01a029a73eb0","topic":"对不同类型的指令选用不同的执行步骤","expanded":true},{"id":"ac8e9e5f-9878-42f0-8495-0c73c757d66e","topic":"指令间串行","expanded":true},{"id":"04a8728d-bc69-450f-8284-ecaacc6ec15d","topic":"每个指令的执行时间可以不同，按【时钟周期】来进行分配","expanded":true}]},{"id":"f09052ad-8039-4aa5-8118-5a1ff8a48a3b","topic":"流水线方案","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"050cdc2c-f901-40a0-9e1e-becee91bdee1","topic":"指令间可以并行执行的方案","expanded":true}]}]}]},{"id":"087f1c64-cf9b-443d-99e8-69cf93eed650","topic":"【数据通路】的功能、基本结构","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-9f20dc51c27b13.svg","width":60,"height":60},"children":[{"id":"bd67fbd0-3803-42ee-bbc9-4d71dec5eef1","topic":"数据通路的功能","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"45a9dbab-1bdd-4d7a-b7fe-6e4a4511f557","topic":"数据通路：数据在功能部件之间传送的路径","expanded":true,"style":{"background":"#8EDE99"}},{"id":"9066d349-4f14-4da9-9cd8-9d7e64b903fb","topic":"数据通路部件：通路上的部件","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"07728692-1775-4cae-8ec8-260248a8e143","topic":"如ALU、通用寄存器、状态寄存器等等","expanded":true}]},{"id":"ff93ed13-e01a-48db-a31e-b671b8486e07","topic":"执行/功能部件：在数据通路中专门进行数据运算的部件","expanded":true,"style":{"background":"#8EDE99"}}]},{"id":"66fc09c1-5da0-4a36-8db4-426234b6f3b3","topic":"数据通路的基本结构","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"a48f24a5-86ad-446c-96a9-755c5a6cf94c","topic":"CPU内部单总线方式","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"17feb541-2c5e-43d0-b425-ba49ad058fe4","topic":"各个部件对于总线的使用是独占的，同一时刻只能两个部件进行数据交换（一个in，一个out）","expanded":true,"style":{"background":"#FF9595"}},{"id":"da58d081-2f92-45f7-ba03-9e56159e983a","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-de755cae0bd666.png","width":273.8,"height":525.74},"children":[{"id":"8d007bb5-2cfe-4e61-a9a4-01164907f836","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-5e23c3d73c83a3.png","width":264.12,"height":536.86},"children":[{"id":"f998d799-a660-4c99-a6d4-4e70e66f392a","topic":"其中所有的寄存器的in out控制命令全是由CU发出的","expanded":true},{"id":"d0d9222d-b168-4e86-96d2-ce767319dea4","topic":"寄存器之间的数据流动","expanded":true,"children":[{"id":"01d1bcc8-5d45-4ee2-ae69-eefc17d9b9fe","topic":"例如：PC -> MAR\n1. (PC) -> Bus -> MAR， [ PCout有效，MARin有效 ]\n2. (PC) + 1 -> PC","expanded":true}]},{"id":"e9310f8b-b432-4894-9209-8195b974a26e","topic":"主存和CPU之间的数据传送","expanded":true,"children":[{"id":"6f795a6b-6f4b-41ae-9b35-c7c11c302efb","topic":"例如：从主存读取指令\n 1. (PC) -> Bus -> MAR，[ PCout，MARin有效 ]\n2. 1 -> R，(PC) + 1 -> PC\n3. MEM(MAR) -> MDR，[ MARoutE MDRinE 有效 ] \n4. (MDR) -> IR，[ MDRout，IRin ] 有效","expanded":true,"children":[{"id":"da325077-35fe-4125-81d3-9df24766c7a5","topic":"MARoutE 和主存交互","expanded":true,"style":{"background":"#FFABD5"}},{"id":"46c25ec8-474d-4244-9ac0-2e50ddaff885","topic":"MDR in/out E 和主存交互","expanded":true,"style":{"background":"#FFABD5"}}]}]},{"id":"62e73248-c822-4b39-87cb-a18aad7640ab","topic":"执行运算","expanded":true,"children":[{"id":"3f9440e9-1a76-45da-9d0f-d527c84eedc1","topic":"例如：执行加法运算 ACC + (ad(IR))，第一个加数在ACC或R0中，另一个加数的地址是IR的地址码\n 1. Ad(IR) -> Bus -> MAR，[ IRout ,MARin 有效]\n2. 1 -> R\n3. MEM(MAR) -> MDR，[ MARoutE MDRinE 有效 ]\n4. (MDR) -> Bus -> Y，[ MDRout Yin 有效 ]\n5. (ACC/R0) + (Y) -> Z，[ACCout/R0out Zin有效，CU发送加法指令]\n6. Z -> ACC/R0，[Zout ACCin/R0in有效]","expanded":true,"children":[{"id":"c10e693b-1a0b-49ce-a65b-c717ab1b9be6","topic":"这里的Y是一个暂存寄存器，因为单总线同时只能有一个数据流向。如果设置多总线，则可以不用该暂存寄存器","expanded":true,"style":{"background":"#FFABD5"}}]}]},{"id":"1e557f56-b9dc-46a9-8454-1caee566b3d8","topic":"例题：ACC (R0), R1","expanded":true,"note":"翻译一下就是((R0)) + (R1) -> (R0)，把R0内的地址间接寻址一次，然后和R1中的内容进行相加，最后存回到R0对应的地址中（为什么这里最后是(R0)而不是((R0))，因为如果只是向R0中写数据，就只写->R0就可以了）\n\n【故一共有三个阶段：取指阶段、间址阶段、执行阶段】\n\t【  1. 取指阶段】\n(PC) -> Bus -> MAR,  PCout MARin\n1 -> R, (PC) + 1 -> PC\nM(MAR) -> MDR, MARoutE MDRinE\n(MDR) -> IR, MDRout IRin\n\t【 2. 间址阶段】\n(R0) -> Bus -> MAR, MARin R0out\n1 -> R\nM(MAR) -> MDR, MARoutE MDRinE\n(MDR) -> Y, MDRout Yin\n\t【 3. 执行阶段】\n(R1) + (Y) -> Z, R1out Yout ALU发出加法控制信号\n(Z) -> MDR, Zout MDRin\n1 -> W\nMDR -> M(MAR), MDRout MARinE"},{"id":"7a8369c8-f920-471e-a1a8-34b08538624b","topic":"蓝色：补充；红色：更改","expanded":true,"icons":["emoji:💬"],"style":{"borderStyle":"dashed","borderColor":"#F59E0B"}}]}]},{"id":"6a1964d9-a42e-497b-b26a-1457ba7a08f3","topic":"内部总线&系统总线","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"3af4f32a-285f-4e98-8efe-d79fedead0e4","topic":"内部总线","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"701ee164-1876-42d1-b318-c00a8bcc5ad1","topic":"CPU连接各寄存器和各运算部件之间的总线","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"a49f211c-3ddd-4aaa-b524-44ff09c0303d","topic":"系统总线","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"64f40cd2-48f7-48f6-81d2-e09e54fbc0bc","topic":"同一台计算机系统的各部件，例如CPU、内存、通道之间的总线","expanded":true,"style":{"background":"#FF9595"}}]}]}]},{"id":"774cef22-0a60-4565-8ae1-3a54b7a98d2c","topic":"CPU内部多总线方式","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"a413835b-3165-4ceb-b052-216331dceaac","topic":"多个总线可以一定程度提升效率","expanded":true}]},{"id":"a38f777b-7a87-479f-8fd5-e0e44acfea57","topic":"CPU专用数据通路方式","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"22c87735-ee1c-4d75-a3f3-c723f8fd8fd3","topic":"造价比较高，但是可以支持指令流水线","expanded":true,"style":{"background":"#FF9595"}},{"id":"af092d2f-de0a-4199-bb8b-4268f6840119","topic":"基本结构 + 一个取指周期的例子","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-339e9dce8944a0.png","width":555.22,"height":278.54},"children":[{"id":"b47449bc-10c1-49cc-98aa-6e35472cd32b","topic":"例题","expanded":true,"style":{"background":"#FF9595"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-a6814b57b079dc.png","width":299.51,"height":269.56},"children":[{"id":"f0ae4522-407f-49e2-8697-774901e19f51","topic":"确定蓝色是哪个？MAR、PC、IR、MDR","expanded":false,"style":{"background":"#FF9595"},"children":[{"id":"6efc9aca-3ce3-46fa-bcbe-20ea099d642b","topic":"A：MDR","expanded":true},{"id":"8001588c-0788-445c-acf4-695028bd0d97","topic":"B：IR","expanded":true},{"id":"16380dae-c093-41e3-9160-dec844fb5131","topic":"C：MAR","expanded":true},{"id":"4498fd46-8109-445d-9d10-2d4a65934210","topic":"D：PC","expanded":true}]},{"id":"c1d6e3f8-ed55-43ff-a049-07cceeb58399","topic":"只有MAR和M是单向的","expanded":true,"style":{"background":"#FDD834"}},{"id":"0d9ace5a-13b4-4585-9957-fc9a266838d3","topic":"有自增的是PC","expanded":true,"style":{"background":"#FDD834"}},{"id":"7bd2b17c-3b59-4d88-ad15-961926a89899","topic":"IR和MDR是可以和M双向的","expanded":true,"style":{"background":"#FDD834"}},{"id":"7c40b903-28de-42db-9c20-5f86321a7a72","topic":"MDR不会直接到PC，IR可以直接到PC","expanded":true,"style":{"background":"#FDD834"}}]}]}]}]},{"id":"bf11349e-ebdd-415b-b500-c64f4a49f691","topic":"考频：中","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"8ec21414-6736-447a-b3fd-bee610e29e14","topic":"16、21、09大、15大、22大","expanded":true}]}]},{"id":"7c19bb81-2810-462b-9f7f-9e315d6f8e7a","topic":"控制器各部件之间的连接","expanded":true,"children":[{"id":"fdbf1e42-a945-4f7a-923d-544f280f13b3","topic":"考频：低","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"eb39f167-92f8-4634-a6b5-3f4b83896750","topic":"17、19、21","expanded":true}]},{"id":"2f0bcf82-bd35-4120-9353-7061dbf16fdf","topic":"CPU的三总线结构","expanded":true,"children":[{"id":"bff6566c-e560-451f-b693-e79b6c32531e","topic":"数据总线DB、地址总线AB、控制总线CB","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-7008cffde7ea38.png","width":536.97,"height":296.81},"children":[{"id":"fa296b72-b6b7-470d-8dd2-f4c20208559f","topic":"运算器部件","expanded":true,"children":[{"id":"a30b5369-58d3-4f9e-8ddc-c4c35c79b1ed","topic":"通过数据总线连接","expanded":true,"style":{"color":"#7986CB","shape":"underline","fontSize":14},"children":[{"id":"b7b60968-7240-482d-836c-5c557c699c8b","topic":"主存、IO设备之间传输数据","expanded":true}]}]},{"id":"1b03827d-44c8-4788-9e22-889c91d0331a","topic":"IO设备","expanded":true,"children":[{"id":"4c9aad79-22ed-4114-b8f8-1e94bcb26ac4","topic":"通过接口电路连接","expanded":true,"style":{"color":"#7986CB","shape":"underline","fontSize":14},"children":[{"id":"eb8ba96e-fe47-4bc8-9be1-284eddcc464f","topic":"总线","expanded":true}]}]},{"id":"20e047c1-7ad6-4e58-9a29-59f3bfb84251","topic":"主存、IO设备","expanded":true,"children":[{"id":"a8c1c685-2fcc-482d-9aff-84ed0b583e11","topic":"通过AB接受","expanded":true,"style":{"color":"#7986CB","shape":"underline","fontSize":14},"children":[{"id":"a9c1f33d-7385-430c-84c4-39c5f7aebc0c","topic":"地址信息","expanded":true}]},{"id":"baae6e4b-af21-4120-8643-02bd9ed19ef5","topic":"通过CB获得","expanded":true,"style":{"color":"#7986CB","shape":"underline","fontSize":14},"children":[{"id":"7a4ec31f-c214-4c10-992f-58a55eeb7bce","topic":"控制信号","expanded":true}]},{"id":"03166fba-51fc-48f5-8f57-c0464ed70104","topic":"通过DB","expanded":true,"style":{"color":"#7986CB","shape":"underline","fontSize":14},"children":[{"id":"42cde565-7aaf-412a-b822-5512c5822699","topic":"与其他部件传送数据","expanded":true}]}]},{"id":"474f36aa-b244-44e4-9866-efc50416005b","topic":"控制器","expanded":true,"children":[{"id":"2144564c-63ac-41e4-9655-2d58a6876dcb","topic":"通过DB","expanded":true,"style":{"color":"#7986CB","shape":"underline","fontSize":14},"children":[{"id":"c5d82560-d245-4431-8ccb-968eec13710f","topic":"接受指令信息","expanded":true}]},{"id":"69c704a1-50eb-4592-a106-0d450818b702","topic":"从运算器部件","expanded":true,"style":{"color":"#7986CB","shape":"underline","fontSize":14},"children":[{"id":"5d7faabf-7d7e-4c2e-9a31-a31bb0d17ea1","topic":"接受转移指令","expanded":true}]},{"id":"51a99853-2731-48ef-a376-69dfe563c32b","topic":"通过AB","expanded":true,"style":{"color":"#7986CB","shape":"underline","fontSize":14},"children":[{"id":"89d98ca9-bac3-4e1a-8d0e-a872f965a3a0","topic":"送出指令地址","expanded":true}]},{"id":"374a9165-a5d1-4532-95c6-6dc1ccff6f3f","topic":"向系统中的各部件提供运行所需的控制信号","expanded":true}]}]}]},{"id":"04f0fb05-be8c-42ce-b5ff-5c3196b0682d","topic":"硬布线、微程序","expanded":true,"children":[{"id":"ac3b0329-7cc1-4e16-b973-4f3210e12f89","topic":"看后节","expanded":true}]}]},{"id":"46530f28-be14-42e7-abc1-cd960def4b18","topic":"硬布线","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-718e219686daac.svg","width":61,"height":60},"children":[{"id":"5edb0063-0b95-4da9-a3e3-5cb85802567f","topic":"只能适用于RISC架构，执行速度超级快，扩展起来很复杂","expanded":true,"style":{"background":"#FDD834"}},{"id":"7f468902-e9b0-4ad0-94c1-8aac912383c2","topic":"四大机器周期","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"7f5b1fc2-c905-4766-a66c-aaf985c10312","topic":"FE 取指周期、IND 间址周期、EX 执行周期、INT 中断周期","expanded":true,"style":{"background":"#8EDE99"}}]},{"id":"ee9927ec-d0af-4543-bca6-81272ff84908","topic":"微指令的内容","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"318a6c6f-cb62-4db5-80ec-c6e1529c862e","topic":"特点一：每个周期中有多个微操作/微指令，很多微操作/微指令是可以并行的完成的（特别是多总线结构的时候）","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"bb0e4df8-a18d-4432-9f1e-b505fbbcf92e","topic":"三个原则","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"8e6cb7a6-f666-4834-8a2a-26692d36f14f","topic":"原则一：微操作的先后顺序不得随意更改","expanded":true,"style":{"background":"#FF9595"}},{"id":"0a108d27-58e3-4825-a3af-4f886548733b","topic":"原则二：被控对象不同的微操作尽量安排在一个节拍内完成","expanded":true,"style":{"background":"#FF9595"}},{"id":"d2af8ae1-d2e0-4d28-abee-2e43d9be37fe","topic":"原则三：占用时间较短的微操作尽量安排在一个节拍内完成并【允许有先后顺序】","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"76cb35b7-0801-471e-b4e8-ed9835cd47b3","topic":"时间较短：不用访问主存","expanded":true}]}]},{"id":"c44debf4-f2e8-479e-a1b5-369cf81e0b12","topic":"例如：取指周期","expanded":true,"children":[{"id":"b9e9f321-0693-452e-a4ef-156d7c40d1ea","topic":"取指周期微操作节拍","expanded":true,"children":[{"id":"33b71af1-f77f-4311-835d-72c69c6ff08b","topic":"M(MAR) → MDR 从主存取数据，用时较长，因此必须一个时钟周期才能保证微操作的完成","expanded":true,"style":{"background":"#8EDE99"}},{"id":"89cd68d3-4f0b-4393-b536-ab28fe19f52b","topic":"MDR → IR是CPU内部寄存器的数据传送，速度很快，因此在一个时钟周期内可以紧接着完成 OP(IR)。","expanded":true,"style":{"background":"#8EDE99"}}],"code":{"lang":"plaintext","code":"T0  (1) PC -> MAR\nT0  (2) 1 -> R            // 存储器空闲后\nT1  (3) M(MAR) -> MDR     // (1)之后（安排在一个节拍内）\nT1  (6) (PC)+1 -> PC      // (1)之后（安排在一个节拍内）\nT2  (4) MDR -> IR         // (3)之后\nT2  (5) OP(IR) -> ID      // (4)之后","tokens":[[{"text":"T0  (1) PC -> MAR"}],[{"text":"T0  (2) 1 -> R            // 存储器空闲后"}],[{"text":"T1  (3) M(MAR) -> MDR     // (1)之后（安排在一个节拍内）"}],[{"text":"T1  (6) (PC)+1 -> PC      // (1)之后（安排在一个节拍内）"}],[{"text":"T2  (4) MDR -> IR         // (3)之后"}],[{"text":"T2  (5) OP(IR) -> ID      // (4)之后"}]]}},{"id":"51003ce5-4cc3-4bd4-939b-310a5b21ee06","topic":"多个不涉及主存的数据传输可以在一个时钟周期内完成","expanded":true}]},{"id":"ee6a67fd-1b78-4641-b05b-25f373393e8f","topic":"微指令产生微操作信号","expanded":true,"icons":["emoji:💬"],"style":{"borderStyle":"dashed","borderColor":"#F59E0B"}}]},{"id":"dd543538-3499-45cc-aee7-7e918aecb65c","topic":"特点二：同一个微操作可能在不同指令、不同阶段被多次使用","expanded":true,"style":{"background":"#8EDE99"}},{"id":"a6676c9f-f434-44f1-bf57-83dbadc549be","topic":"特点三：使用定长的节拍来进行微操作的设计","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"618ba6a2-ec77-46a4-a9fd-6e218e6bafe7","topic":"一个机器周期三个节拍","expanded":true}]}]},{"id":"41269949-30db-449d-8d04-6224539cc375","topic":"确定一条微指令\n四大要素：","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"dae5c9d5-a2e6-4641-9010-7b3f1dbcb72d","topic":"微操作通过【指令的OP部分、当前处于哪个机器周期、当前机器周期的节拍号、PSW的状态】来确定","expanded":true,"style":{"background":"#8EDDF9"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-843ca4e9421d79.png","width":546.47,"height":257.58}},{"id":"5d18bca3-27d5-45e9-9f97-139633e84b27","topic":"确定指令操作码：","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"d80b9475-f5f0-457b-863a-37b64904ebfe","topic":"图示","expanded":true,"style":{"background":"#8EDDF9"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-ebc00f0c29c0e4.png","width":152.3,"height":208.32},"children":[{"id":"1be02394-c5b9-401a-875c-0eca6e94d5c9","topic":"把IR通过OP译码器连接到CU上，使得CU可以得知当前是哪一个操作指令","expanded":true,"children":[{"id":"22683c07-1468-464a-922c-d573137e7f2d","topic":"如何对应，可以参考（译码器）：","expanded":true}]}]}]},{"id":"58d321f5-f4fa-4229-bd71-114f79dea318","topic":"确定机器周期：","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"eb9376e9-53f1-47b4-85cb-394b36637d63","topic":"图示","expanded":true,"style":{"background":"#8EDDF9"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-02c921cbcbf845.png","width":279.18,"height":76.02},"children":[{"id":"7d5cb9a4-e1e7-4381-a067-10f2b1db3ae1","topic":"通过在CU内部的四个触发器的值来确定","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"1eb3ae07-afb5-495e-a989-aa699189bf97","topic":"根据四个触发器哪个值为1来确定","expanded":true}]}]},{"id":"19c42250-b597-4854-8217-51bae3a6a833","topic":"确定节拍号：","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"810e5c81-3a81-4bf1-9871-c7ea4fd4a176","topic":"图示","expanded":true,"style":{"background":"#8EDDF9"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-8261f3416adeef.png","width":317.33,"height":187.62},"children":[{"id":"6143b171-cc9c-40b5-bff6-753c6bc37dc0","topic":"通过连接的节拍发生器，来得知当前是哪一个节拍，且节拍不停的循环往复发出","expanded":true}]}]},{"id":"a9beac76-efaf-4aac-bcbd-757b7f1b4a59","topic":"确定标志信息：","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"956fba0c-664c-471b-9bac-bc3b658b1d75","topic":"图示","expanded":true,"style":{"background":"#8EDDF9"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-af43e327c9a6a0.png","width":364.73,"height":89.62},"children":[{"id":"b26889b1-6df1-443a-8987-8d60b14651e0","topic":"来自PSW、ACC等，也可能来自IO、主存","expanded":true}]}]},{"id":"65408eb4-f458-4ae7-9e99-ef32bd5aec98","topic":"最后CU输出微操作：","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"0ecd4851-a219-4e22-9c5a-8bcc548d5539","topic":"图示","expanded":true,"style":{"background":"#8EDDF9"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-67d499e90f579a.png","width":290.62,"height":196.69}}]},{"id":"ee9d8c85-2442-4630-8984-f346a36a5321","topic":"完整图","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"f6b5aa15-dccd-45e6-9d1d-7c1c82791d38","topic":"图示","expanded":true,"style":{"background":"#8EDE99"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-e7f7d0d5a3dba4.png","width":490.02,"height":251.53}}]}]},{"id":"7b132bc2-9879-41ed-8eea-3d3fc4e8e8bd","topic":"如何通过要素\n确定微指令：","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"f8b2170e-93e4-4ab1-a558-fea3aa666757","topic":"考虑所有可能的指令情况，写出对应的微操作所需要的四要素：","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"cf82936f-15d4-439c-9bfb-59eaa489cf84","topic":"例如：取指周期T0时刻的(PC) -> MAR","expanded":true,"style":{"background":"#8EDDF9"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-0d345c46260286.png","width":316.29,"height":163.99},"children":[{"id":"d208f523-66b8-4ec1-a6dd-29bf90309d0c","topic":"然后把所有情况考虑充分后。举个例子：可能出现的所有M(MAR) -> MDR的情况：","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"5847cef7-1fb5-468b-a071-7fe6b29fce9a","topic":"例如：M(MAR) -> MDR","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-8b1dead8032a1d.png","width":657.5,"height":311.71}},{"id":"7ab2f545-f3ba-4cfc-863b-61c718ca1e8c","topic":"此处C1就对应了PCout和MARin","expanded":true,"icons":["emoji:💬"],"style":{"borderStyle":"dashed","borderColor":"#F59E0B"}}]}]}]},{"id":"da104852-a623-47f3-825e-1c937ef92d8b","topic":"操作时间表：","expanded":true,"children":[{"id":"72fc1a5e-fb88-4677-9d16-99233b465578","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-f57e02d6d26133.png","width":403.87,"height":224.61}},{"id":"15396010-d3a6-4534-882b-c226a91fa49b","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-369047e6a30e6b.png","width":407.99,"height":231.41}}]},{"id":"ea47b6c7-b702-4b8f-8092-0b1a8b74a2da","topic":"根据操作时间表，把所有重复的微操作命令信号给归纳总结出来，合成一个电路","expanded":true,"style":{"background":"#8EDE99"}},{"id":"19e01ce2-89e9-44a6-83d8-c3c96944725a","topic":"考频：低","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"668e9cd5-eb6e-4645-96e4-1781265f7911","topic":"09","expanded":true}]}]},{"id":"fa6e3d3c-6c63-4c91-b614-d0c1b2f44bef","topic":"微程序","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-fb96c55c1fee10.svg","width":60,"height":60},"children":[{"id":"0261ae27-140d-4fa0-9309-e1735380f594","topic":"考频：低","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"557c9f04-0589-4393-a1cc-45e5e7c9f8e9","topic":"09、12、14","expanded":true}]},{"id":"914ecd17-2aef-4e7c-83df-91c7efc4bc79","topic":"引用了软件的思想","expanded":true,"children":[{"id":"c10fc0e8-aca5-4887-b777-01add427f782","topic":"把程序运行的【指令划分为多个微指令】，然后在CPU中再套娃一层CPU","expanded":true,"children":[{"id":"93374263-888b-4536-8c80-fd64a7790067","topic":"也可以称为【机器指令是多个微指令的封装】","expanded":true},{"id":"f9f82be0-4a0e-4a4b-a49b-de7ce43ecfc6","topic":"微指令 = n * 微操作","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"56a34383-5c5d-4b10-9ecd-68c3aa2d4097","topic":"微指令是微程序独有的概念","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"41321d4f-6213-460f-8cbb-c7d2c2235a75","topic":"微程序、微程序组、微指令、（微操作、微命令）","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"9abaea9b-b2ec-4dd1-aaa2-ed3e44ed2293","topic":"微程序：实现一条机器指令的程序","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"e0f2a7ef-677e-4455-a48b-b4630f9cfedc","topic":"耗费一个指令周期","expanded":true}]},{"id":"bd664876-f25b-4aff-91be-5678f826584b","topic":"微程序组：一条机器指令在不同机器周期执行一个微程序组","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"dad14b53-8f44-44b8-97e2-66b5b1ddbefc","topic":"耗费一个机器周期","expanded":true},{"id":"869e6bef-e95b-47bc-83f3-2c97804c5f6f","topic":"例如指令A的取值、间址阶段有不同的微程序组","expanded":true}]},{"id":"65b49e80-b818-4dce-8912-0823ba7ca1c8","topic":"微指令：","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"47a8705e-2e0d-4451-9415-dc254e7f4866","topic":"多个微操作的合集，是微程序的‘代码’","expanded":true,"children":[{"id":"fe9d41e3-4819-4baf-b54e-eea6f08cafa6","topic":"代码","expanded":true,"style":{"background":"#8EDE99"}}]}]},{"id":"19fad629-3676-4104-aa01-53176255da36","topic":"微操作、微命令：","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"932e2561-b836-4cf4-9985-9c8689e282f4","topic":"微命令是微操作的控制信号；微操作是微命令的执行过程。 [ 例如（PC)->MAR ]","expanded":true}]}]}]}]},{"id":"d2505444-8f96-42f8-ac5e-e08e691b97ac","topic":"微指令的结构","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"b547a75c-505a-4f71-b434-6e42ef744e9a","topic":"图示","expanded":true,"style":{"background":"#8EDE99"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-a53f70931111fa.png","width":384.66,"height":132.31},"children":[{"id":"8ab6e888-f818-4ca0-9413-37ffa7f86ba2","topic":"控制信号 + 下地址","expanded":true,"style":{"background":"#8EDE99"}}]}]},{"id":"c01c2edf-d5e0-4936-9d5a-68d4c55b32fa","topic":"微程序控制器\n（微CPU）部件","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"b21bc738-73ad-4ce7-b108-35e1521d5c53","topic":"微程序的CU","expanded":true,"style":{"background":"#FFABD5"}},{"id":"575c6111-cb51-479d-a67c-1053f9d44507","topic":"微地址形成部件","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"7c92370d-05b8-4247-ae7a-9c4937ef7b21","topic":"根据IR中的指令的OP部分，来指出该指令的微程序的起始地址","expanded":true}]},{"id":"f067d74e-0406-4c92-a6c8-be9b02073bd1","topic":"顺序逻辑","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"e0b3b7b7-771c-4da7-9c48-ece4adbfe8b5","topic":"连接有：众多标记","expanded":true,"children":[{"id":"98c2421f-7e22-44bb-84b5-b49c56f95937","topic":"例如 LDA A和 LDA (A)","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"fd7c0a4c-c10e-4038-a70c-db2059a76dd4","topic":"第一个就不用间接寻址，第二个就需要间接寻址","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"fd57e52b-8c63-44c9-baa7-5e3e0eca97fd","topic":"根据指令地址码的寻址特征来判断如何进行寻址","expanded":true}]},{"id":"012d5053-2b48-4a65-945b-c87ebfccb055","topic":"连接有：CLK","expanded":true,"children":[{"id":"0ae8cea8-cd0d-4ade-8104-cc6475a2702a","topic":"时钟信号","expanded":true}]}]},{"id":"774e292a-b4b9-4256-8a2f-c818bd961bb3","topic":"CM - 控制存储器","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"e579012d-72d3-4bfd-b157-ee147e3138ec","topic":"控存，由ROM组成，用来存各种指令的微程序段（就像存在内存中的程序的指令一样）","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-2cfc043c52802e.png","width":249.77,"height":230.74}}]},{"id":"081c8518-80da-434d-86a9-e578bb350a9e","topic":"CMAR - 微地址寄存器","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"969a2371-476c-458d-8221-77ab5c7197b5","topic":"别名：μPC，是 MAR 和 PC 功能的结合体","expanded":true}]},{"id":"e009da46-9664-4f9f-8cbf-3ef0ef5d77e3","topic":"地址译码","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"5900ba47-87f6-41be-b4f2-1a670e5517f7","topic":"将地址码转为存储单元的控制信号","expanded":true}]},{"id":"aa01a8f7-21d8-4246-ba88-e19846c3fead","topic":"CMDR - 微指令寄存器","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"9797f313-373b-42c6-aec5-61c699754432","topic":"别名：μIR，是 MDR 和 IR 功能的结合体，CMDR的【位数】和【最长的微指令的字长】应该相同","expanded":true}]}]},{"id":"1b1c2ca2-3e59-4791-a120-19f05bdbf7a2","topic":"微程序控制器\n的处理流程：","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"c7e617bf-5383-4a59-a8aa-9d97f3a3fe1d","topic":"图示","expanded":true,"style":{"background":"#8EDE99"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-ac76c2fd9e4622.png","width":395.36,"height":286.15},"children":[{"id":"61d9d4a6-9ef1-47bd-9477-2f87647315b0","topic":"1. 获得【IR中的OP部分】","expanded":true,"style":{"background":"#8EDE99"}},{"id":"d36f8059-ee7b-4a14-94c4-9425e399c913","topic":"2.【微地址形成部件和顺序逻辑配合】生成了微程序的起始地址，放入到CMAR中","expanded":true,"style":{"background":"#8EDE99"}},{"id":"841286d2-a455-4521-a3a2-181ca239b762","topic":"3. CMAR中的地址通过地址译码指明到控制存储器CM","expanded":true,"style":{"background":"#8EDE99"}},{"id":"cf27d158-969e-4e22-bd11-2fffdaf1509d","topic":"4. 把对应的微指令取到CMDR中，微指令分两个部分：","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"2141aa21-03e6-42e8-bc39-a244db66d8c0","topic":"μOP 控制信号","expanded":true,"children":[{"id":"8e81ffd8-6ed4-40f5-ae76-b63fa535b400","topic":"用来发送控制信号到CPU内部和系统总线","expanded":true}]},{"id":"64be4c74-cadb-4ac0-81a9-e7df979d755e","topic":"+","expanded":true},{"id":"794d6778-7ca6-471e-a44f-fe1d1469e47c","topic":"下地址","expanded":true,"children":[{"id":"e62c6ecc-b63a-4d05-968a-3d29cb195a30","topic":"指明下一条需要执行的微指令地址","expanded":true}]}]}]}]},{"id":"6e0e4c1a-7ad3-4e30-bcee-695a6bb4fa44","topic":"CM中的微指令序列","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"0219901c-2070-43da-884d-97e449f8be70","topic":"图示","expanded":true,"style":{"background":"#8EDE99"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-f61dd27b55c467.png","width":309.54,"height":339.41},"children":[{"id":"9adb5071-f7b4-401d-a84d-9ab249a1d107","topic":"特点","expanded":true,"children":[{"id":"fd63924a-eaf4-484b-9ee0-45804c3f494f","topic":"取指周期、间址周期、中断周期是所有指令共享的","expanded":true},{"id":"a217489f-04f8-4826-9143-10ac0a8fdc3b","topic":"取指周期的最后一条指令的下地址是3，但是在间址开始阶段，微指令形成部件会根据标记信息来控制要不要执行间址周期","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"113661db-a251-4aa2-9616-d0b936b8f66a","topic":"例如：LDA X","expanded":true,"style":{"background":"#8EDE99"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-eda05f72c446a1.png","width":606,"height":360}},{"id":"70531172-3dff-471f-b999-697229838020","topic":"考试的边边角角：如果系统中存在N条指令，那么我们应该至少设计N+1个微程序","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"354bcdbf-168b-4ccb-ba4a-c3c23f8f5542","topic":"古代、微型CPU可以不提供执行间址、中断","expanded":true,"style":{"background":"#FFABD5"}}]}]}]},{"id":"abbfed9d-b465-4792-8e7a-4b82a77e4b56","topic":"微指令的分类","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"4bb654a4-5410-4e7d-a62b-7ae05bb6cd04","topic":"在硬布线中，一个微操作就对应一个微命令，所以线是一一对应的。而在微程序中，一个微指令对应多个微操作","expanded":true,"style":{"background":"#8EDE99"}},{"id":"eef08d6a-6700-4e52-b272-450ff333367b","topic":"水平型微指令","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"abf1896d-44e5-43eb-b082-bc2fde5e077a","topic":"图示","expanded":true,"style":{"background":"#8EDDF9"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-36e3f1f6464f40.png","width":353.29,"height":39.76}},{"id":"aefd12c8-727e-48c0-b4dd-29082984916b","topic":"优点：","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"1d052cee-80aa-4857-89fe-ebfe52173b0c","topic":"微程序指令条数少、执行速度快","expanded":true}]},{"id":"e192e7e5-5f7d-458c-9185-6cd8f0c32904","topic":"缺点：","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"e7076f60-43f1-4e6a-92dd-f62b9ef930d1","topic":"微指令长，编写难度大","expanded":true}]}]},{"id":"bba10628-275b-4740-b682-fbcd2f028cc7","topic":"垂直型微指令","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"ff79cbf7-4c30-4ca4-bc4d-fbaa997b87a1","topic":"图示","expanded":true,"style":{"background":"#8EDDF9"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-e88334f6f10971.png","width":350.34,"height":48.02}},{"id":"4172e125-8817-4b4d-91f1-e397a5648eac","topic":"优点：","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"52dd66c9-4228-48ca-aa3b-9d3f5db745a8","topic":"微指令短，易于编写","expanded":true}]},{"id":"410c6536-ce25-4143-9635-2e2880b7883c","topic":"缺点：","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"2ade24d1-c951-4b37-a5fb-d2f1e3120f91","topic":"微程序指令条数多，性能比较低","expanded":true}]}]},{"id":"7358a9e7-22f0-4e01-8061-04996a9525b8","topic":"混合型微指令","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"eb294088-9a46-4c2e-acb4-dd613eb222d3","topic":"上面两种的折中","expanded":true,"children":[{"id":"a80591c3-e865-41e8-b9d9-046f918c3400","topic":"在垂直的基础上，增加上一些并不复杂的并行","expanded":true}]}]},{"id":"fa02160e-ff8e-4aaa-82a2-63f80aff1fb5","topic":"了解","expanded":true,"icons":["emoji:💬"],"style":{"borderStyle":"dashed","borderColor":"#F59E0B"}}]},{"id":"1de472f7-1bea-498c-8425-bcd147eea4dd","topic":"微指令的编码方式","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"24fafc4c-64d6-4f9d-acf9-7ed6fb92e9a2","topic":"μOP部分","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"9c4c6f13-f448-47f4-abe9-460e73b33383","topic":"直接编码方式","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"e3c355ec-b64f-439d-ace5-c36abbd257b3","topic":"一个bit的 0、1对应一个微操作的运行和不运行","expanded":true,"style":{"background":"#8EDDF9"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-8ad455971f570d.png","width":375.22,"height":110.33}},{"id":"3260a774-3498-4895-b268-5a48150882b8","topic":"优点：","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"b73d792f-86bb-46aa-9db0-9c2c2ac570a9","topic":"简单直观、执行速度快、操作并行性好","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"9b8f995c-ae62-4e6a-ba35-42a36e1e1f1d","topic":"缺点：","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"7153e79f-103a-494d-93bc-5515dc74e420","topic":"微指令过长，如果有n条微操作，就需要n个bit位","expanded":true,"style":{"background":"#8EDE99"}}]}]},{"id":"63325414-ab6b-4005-aa46-b2f1e6b295e1","topic":"字段编码方式","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"669a627d-98e3-4813-bcf2-f648c257975e","topic":"图示","expanded":true,"style":{"background":"#8EDDF9"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-a0642be6994895.png","width":258.44,"height":163.72},"children":[{"id":"7f1fc337-2b58-41a5-9774-177cd0bdabeb","topic":"如果一个类中的bit数为3，则说明该类一共可以对应 8 个微操作（其中一定包含一个空操作），故有7条有效微操作","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"a4cc92aa-cc1a-42c6-a7d6-ba821dcd124f","topic":"每个小段信息位不要太多，不然译码难度大","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"bb0920fe-48ad-4b0c-8353-fec3351ff263","topic":"互斥：微操作不可在同一节拍内进行","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"332ef2ab-0a50-4717-8c69-6fa9dc8539cc","topic":"把互斥的微操作放在同一个类 --- 不可并行","expanded":true,"style":{"background":"#FDD834"}},{"id":"94c01d8d-9ad8-482c-96d2-fc10f7343723","topic":"不互斥(相容)的微操作放在不同的类 --- 可并行","expanded":true,"style":{"background":"#FDD834"}}]}]},{"id":"8a3e605d-6f89-4d4a-9ffd-4e2a5735d671","topic":"优点：","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"bec90110-347c-4445-9231-838b84b96fe8","topic":"可以缩短编码字长","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"05faabe7-0346-460e-b700-6c792971b4c6","topic":"缺点：","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"2c5f02c5-8762-484f-9595-3f4abadc12e0","topic":"每个微指令都必须通过译码后才能产生微操作，速度比直接编码慢","expanded":true,"style":{"background":"#8EDE99"}}]}]},{"id":"2fb5be77-6efa-4883-9bf2-e32fe1877bf7","topic":"字段间接编码方式\n（隐式编码）","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"dc81a4d7-6f66-4f0b-b663-f356fa50a023","topic":"字段编码方式中，译码后不会直接发出微命令，而是需要多个译码结果来决定","expanded":true,"style":{"background":"#8EDE99"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-e9ed05f130f1a4.png","width":288.99,"height":197.84}},{"id":"d7f227ad-4e74-453f-bccc-c92dc97908cd","topic":"优点：","expanded":true,"children":[{"id":"1ba1f361-f85c-4262-b916-bf1efaeda8e3","topic":"进一步缩短字长","expanded":true}]},{"id":"9e739204-22c5-4123-b4d8-7e8fe818e9e5","topic":"缺点：","expanded":true,"children":[{"id":"22aabf55-b9f7-4b90-bbb4-a3c048ff962f","topic":"更慢了","expanded":true}]}]}]},{"id":"dc13c576-2fee-4e13-9a52-20b258022d25","topic":"下地址部分","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"f005c999-7235-4cac-a8ae-f464a9de2c64","topic":"断定方式","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"1dca8a2f-0930-4979-b497-f20b57ca4dc7","topic":"下地址写的哪条就运行哪条","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"abd4ef37-d739-4c31-b3e7-5781b54c3b2a","topic":"根据OP形成","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"a6f583f4-1b8e-46e1-b2fd-939435bfb35d","topic":"根据【机器指令】的OP部分来指明操作码","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"25ea4d75-9e66-4ff0-b53e-ce348e770978","topic":"就是这个","expanded":true,"style":{"background":"#FF9595"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-ac32b84f9f7d29.png","width":122.93,"height":97.81}}]}]},{"id":"172a8b3a-98b4-46c2-b47c-85ce7850737e","topic":"增量计数法","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"269bc91f-c7cc-42bc-b6d3-708ebe9af875","topic":"(CMAR) + 1 -> CMAR","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"e33edc7c-9e77-4fa7-b36a-ab442fa3ea32","topic":"分支转移","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"00b2ee89-d67a-40b4-9696-e299618ba75b","topic":"比较像JCondition","expanded":true,"style":{"background":"#8EDDF9"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-bd457da17c3af3.png","width":267.34,"height":39.18},"children":[{"id":"b00bc9f7-270f-4112-a167-1d7a61aa8f51","topic":"根据各种标记决定是否转移","expanded":true}]}]},{"id":"edc9d132-0e94-4eeb-b7a0-beae8c378bc9","topic":"测试网络","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"0e39c616-18f4-44a6-9d02-b51672ce8f5e","topic":"顺序逻辑部件就是测试网络","expanded":true,"style":{"background":"#8EDDF9"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-6a5ce681f22a5b.png","width":381.27,"height":180.5},"children":[{"id":"9377145a-c9c8-4397-96a6-d5369dfe293f","topic":"测试网络可以决定是否有间址、中断操作","expanded":true}]}]},{"id":"c9f4f039-90ed-4d24-bedb-d1df1302e651","topic":"硬件产生","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"1ce8ffde-8daf-427f-8f93-dd1a6be3f581","topic":"每个程序的【第一条微指令的入口地址】是专门由硬件产生的。每个程序的【中断程序】也是相同的，故也可以用硬件记录","expanded":true,"style":{"background":"#8EDDF9"}}]}]}]},{"id":"ff07b606-aaf4-4049-bbe1-d8aeb745d1ce","topic":"设计一个微程序控制单元","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"8563987c-d96c-4418-9824-3f0291c5316f","topic":"1. 分析每个阶段的微操作序列","expanded":true,"style":{"background":"#8EDE99"}},{"id":"ec226e9c-2ea3-4c87-acbb-f09a4153db9f","topic":"2. 写出对应机器指令的微操作命令","expanded":true,"style":{"background":"#8EDE99"}},{"id":"a54f02b5-91ea-4350-a2e1-879d36eeaf10","topic":"3. 写出......对应的节拍","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"09acdb3a-6a9e-4b92-bd0f-1f2ca5f1953e","topic":"扩充节拍","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"2242ae84-7e4c-4b1a-a0d5-9d95315f5563","topic":"第一条/中断是硬件自动产生的","expanded":true,"style":{"background":"#FDD834"}},{"id":"be05f17c-13ad-4644-b296-c5118f812430","topic":"扩充①：微指令运行结束后，把“下地址”存入到CMAR中，即每两个节拍之间会消耗一个节拍来执行Ad(CMDR) -> CMAR","expanded":true,"style":{"background":"#FF9595"}},{"id":"52cdcf7b-d50b-48f0-9928-f28048ba06b3","topic":"扩充②：【取指周期的】微程序运行结束后，需要把OP(IR)存入到CMAR中即：OP(IR) -> 微地址形成部件 -> CMAR","expanded":true,"style":{"background":"#BA69C8"}}]}]},{"id":"aea08a6e-7579-472a-a4d3-e057c7f6fada","topic":"4. 确定微指令格式","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"0df8938e-57aa-4fb3-95f5-bc0830584d3e","topic":"μOP","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"b9454aeb-a165-4063-bba3-9495db99eac1","topic":"确定有【多少个微操作】，然后选一种编码方式，最后确定位数","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"a3f7d23f-1f56-47d6-97bc-18b33865145f","topic":"下地址","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"cba668cd-e9ed-42d5-ae96-1801b5b4f573","topic":"根据有【多少条微指令】来决定地址的位数","expanded":true,"style":{"background":"#8EDDF9"}}]}]},{"id":"61d2872c-5ce8-48ea-a0d0-deaaec240fc5","topic":"5. 确定码点","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"7bedfc04-d438-48ba-95e2-17ca1dfa6c7f","topic":"根据【一条微指令】里面的【微操作】来编写码点","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"4bbf885d-c477-47cb-b2c8-ef22e18e5bb3","topic":"例如：直接编码可以确定哪一个bit为1 哪一个为0","expanded":true}]}]}]},{"id":"db42b0cd-2e26-45b9-8d9c-bf75176a8367","topic":"拓展：","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"3321599c-cd58-40ad-8f80-6bc9b175fdce","topic":"兼容性微指令：几个微指令可以同时出现","expanded":true,"style":{"background":"#FFABD5"}},{"id":"500c0d52-80e9-4684-aff6-8969f915079e","topic":"静态&动态","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"841704eb-e284-4577-b873-307e85fa8fa3","topic":"静态微程序：","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"358164ba-2e35-435e-bef0-f12232e9146f","topic":"微程序无需改变，采用 ROM","expanded":true}]},{"id":"f0ec5716-5e5c-4237-aa78-56cdd5b2c370","topic":"动态微程序：","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"c2a6ff56-8b5e-4655-91a4-072e5fdfbb63","topic":"通过改变微指令和微程序改变机器指令有利于仿真，采用EPROM","expanded":true}]}]},{"id":"397f4db1-7dcd-42cc-ba72-999f850a471b","topic":"毫微程序设计","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"bc5a512a-8a7f-4786-81b2-6f890fb18176","topic":"微程序设计","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"da4eb7ba-0d5c-469b-9ca7-36d673be6039","topic":"微程序解释机器指令","expanded":true}]},{"id":"5b2cb93e-44ba-49c3-b800-5faf02b60ed2","topic":"毫微程序设计","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"fc0ab951-3d9b-45d0-935f-0dc23205493a","topic":"毫微程序解释微程序","expanded":true,"children":[{"id":"08406653-51fa-4e47-a49a-068a91c52a9b","topic":"再套娃","expanded":true}]}]}]}]},{"id":"3f72e3d6-8643-4abc-be47-0a82061c1a32","topic":"硬布线、微程序区别：","expanded":true,"children":[{"id":"f1b56e83-af87-460c-965a-b5d2c9509fe7","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-b377cc51a46a75.png","width":660.37,"height":249.08}}]},{"id":"f2c61bda-60e0-4713-a99b-035235d68409","topic":"总结：","expanded":true,"icons":["star:red"],"style":{"background":"#FDD834"},"children":[{"id":"b432c83c-64dc-4387-abdb-2fb9cf96976a","topic":"微程序模式","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"08765e51-adf4-4438-ad9a-9dedb66a00b5","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-33b6afd00330cd.png","width":542.88,"height":681.2}}]},{"id":"e2963c90-b774-494c-8e7f-2db037698cbd","topic":"< --- >","expanded":true,"style":{"background":"#FDD834"}},{"id":"7b2568bf-efe5-4801-ac17-93750b4e45bf","topic":"硬布线模式","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"cda68a78-bc06-4161-8458-b3bc8e0edf15","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-ada655479d4b0a.png","width":593.16,"height":458.84}}]}]}]},{"id":"442af0f3-9b8a-48d6-985e-f1c93bb0ca2c","topic":"指令流水线","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-a19b35cfc9db91.svg","width":60,"height":61},"children":[{"id":"b8301edd-2ab7-4f19-bedf-879237c7c7e3","topic":"指令流水定义","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"2f2d608a-95ea-4cb6-930d-8b7ea14184ac","topic":"一般指令是分为\n【取指、分析（间址+其他）、执行】三个阶段","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"5f5a2425-4c09-477b-8bb8-d4ebc07df305","topic":"其中取指分析执行三个阶段使用的硬部件是可以不同的，故可以并行执行","expanded":true}]},{"id":"b613c83b-58bb-4b0d-af60-73be8f5a0587","topic":"传统方式：","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"d0193e97-c880-4408-a215-23929408619c","topic":"设取指、分析、执行3个阶段的时间都相等，用t表示，按以下几种执行方式分析n条指令的执行时间：","expanded":true},{"id":"c66246d0-2cc6-4a7c-8795-5cedb644bf2f","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-1f72638d5fed2a.png","width":386.13,"height":74.51}},{"id":"1b8a8296-c2ed-4aed-ab32-3435f8503901","topic":"优缺点：","expanded":true,"children":[{"id":"167783c4-3927-4a66-982e-0010e7e90a28","topic":"优点：控制简单，硬件代价小","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"08f93d0a-768d-4463-a934-0e2aff2dad6f","topic":"缺点：执行指令速度慢，CPU任何时刻只有一条指令在执行，部件利用率很低","expanded":true,"style":{"background":"#FF9595"}}]}]},{"id":"b8025369-6ba8-4c10-89d8-1d3af3a02f94","topic":"流水线方式：","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"2a2e8043-694e-4f08-a1de-1f6e4c2eef1f","topic":"一次重叠：","expanded":true,"children":[{"id":"04f3bceb-8726-4575-86c2-ee5592ced526","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-7212de0d5ba874.png","width":426.62,"height":98.26},"children":[{"id":"9f6f6232-c4ec-42c7-ac37-1c12124d5a57","topic":"优点：","expanded":true,"children":[{"id":"c5fa1341-6551-485e-989c-47a833c75fe7","topic":"程序的执行时间缩短了1/3， 各功能部件的利用率明显提高。","expanded":true}]},{"id":"6f512cdf-99ed-4571-8960-6db271feee03","topic":"缺点：","expanded":true,"children":[{"id":"aa46fc04-22f1-4bdf-8ed7-ae9a10d13a91","topic":"需要付出硬件上较大开销的代价，控制过程也比顺序执行复杂了。","expanded":true}]}]}]},{"id":"55f661b1-9ffe-474a-9490-3e914fbba256","topic":"两次重叠：","expanded":true,"children":[{"id":"5671dd62-6053-4bb7-b87c-1d1fee83846f","topic":"图示","expanded":true,"style":{"background":"#FDD834"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-f8544109df1843.png","width":416.94,"height":123.8},"children":[{"id":"16946fcf-1aaa-497d-ba2b-90a7b3df5776","topic":"与顺序执行方式相比，指令的执 行时间缩短近2/3。这是一种理想的指令执行方式，在正常情况下， 处理机中同时有3条指令在执行。","expanded":true,"style":{"background":"#FDD834"}}]}]}]}]},{"id":"00e8fce7-d34c-4c35-825d-e72cb275589f","topic":"指令流水线\n的表示方式","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"51852eae-8185-4d65-9efc-5abbeeb724b1","topic":"执行过程图、时空图","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"758c536c-1b8b-40f5-b0e5-39f468c739c1","topic":"指令执行过程图","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-20ce4fe359283f.png","width":380.65,"height":140.05},"children":[{"id":"0c54315a-3e1a-45e3-8d8f-16f4f8366131","topic":"时空图","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-cb5b90a9b42d03.png","width":400.76,"height":149.41}}]}]}]},{"id":"7faca2a9-aa00-4be1-939a-1316c4dcd7be","topic":"流水线的性能指标","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"140c0137-f188-418e-96c1-9cde5b904c1b","topic":"图示","expanded":true,"style":{"background":"#8EDE99"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-52ee6586b9db28.png","width":579.42,"height":249.34}},{"id":"129cf5ba-7748-4e5f-bda7-d015e0a630e1","topic":"装入时间 & 排空时间","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"94488aa5-2bd0-42e9-8f57-383e33c67fdb","topic":"例上图：前4个Δt是装入时间，后四个Δt是排空时间","expanded":true}]},{"id":"0129d166-c08f-4ba3-b65e-3ac8ac0bba4b","topic":"吞吐率：","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"5be77aba-66ad-4014-9c78-c0c8f245eb8c","topic":"单位时间内完成的任务的数量：TP = n / Tk","expanded":true,"children":[{"id":"fcef6546-b410-425a-9439-9c4fde7b0eb2","topic":"TP吞吐率、n 完成任务数、Tk 时间","expanded":true},{"id":"a25feda1-36a0-4582-a463-b306b12d8858","topic":"流水线吞吐率","expanded":true,"formula":{"tex":"TP = \\frac{n}{(k + n - 1)\\Delta t}","displayMode":true,"mathml":"<span class=\"katex\"><math xmlns=\"http://www.w3.org/1998/Math/MathML\" display=\"block\"><semantics><mrow><mi>T</mi><mi>P</mi><mo>=</mo><mfrac><mi>n</mi><mrow><mo stretchy=\"false\">(</mo><mi>k</mi><mo>+</mo><mi>n</mi><mo>−</mo><mn>1</mn><mo stretchy=\"false\">)</mo><mi mathvariant=\"normal\">Δ</mi><mi>t</mi></mrow></mfrac></mrow><annotation encoding=\"application/x-tex\">TP = \\frac{n}{(k + n - 1)\\Delta t}</annotation></semantics></math></span>"}},{"id":"1abbccd0-ec36-475c-b916-1d8f8b976764","topic":"一般取Δt为一个时钟周期 ---> 即一个节拍能完成一个机器周期的所有微操作","expanded":true}]}]},{"id":"838cfbbd-a59f-470b-b2f8-664a285446f7","topic":"加速比：","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"48f6ecb7-c4c5-47e5-b72e-fe264cd0ad1b","topic":"不使用流水线的时间 T ➗ 使用流水线的时间 T","expanded":true,"children":[{"id":"f1f92ebf-c202-48e0-88e1-6b8153cae8e2","topic":"流水线加速比","expanded":true,"formula":{"tex":"\\frac{k * n * \\Delta t}{(k + n - 1) * \\Delta t}","displayMode":true,"mathml":"<span class=\"katex\"><math xmlns=\"http://www.w3.org/1998/Math/MathML\" display=\"block\"><semantics><mrow><mfrac><mrow><mi>k</mi><mo>∗</mo><mi>n</mi><mo>∗</mo><mi mathvariant=\"normal\">Δ</mi><mi>t</mi></mrow><mrow><mo stretchy=\"false\">(</mo><mi>k</mi><mo>+</mo><mi>n</mi><mo>−</mo><mn>1</mn><mo stretchy=\"false\">)</mo><mo>∗</mo><mi mathvariant=\"normal\">Δ</mi><mi>t</mi></mrow></mfrac></mrow><annotation encoding=\"application/x-tex\">\\frac{k * n * \\Delta t}{(k + n - 1) * \\Delta t}</annotation></semantics></math></span>"}}]}]},{"id":"01a44f42-c088-4baf-91e2-a5e8f619e8f6","topic":"流水线的效率：","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"ac5610c2-fe49-4140-a5ff-40cefe08ef0d","topic":"1 - 红色区域面积 ➗ 蓝色区域面积","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-dedb06a4e81609.png","width":548.83,"height":228.42},"children":[{"id":"4452c6b7-4753-48cc-800a-edbb1cda1bd7","topic":"流水线效率","expanded":true,"formula":{"tex":"1 - \\frac{k(k - 1)\\Delta t}{k(k + n - 1)\\Delta t} = \\frac{k n \\Delta t}{k(k + n - 1)\\Delta t}","displayMode":true,"mathml":"<span class=\"katex\"><math xmlns=\"http://www.w3.org/1998/Math/MathML\" display=\"block\"><semantics><mrow><mn>1</mn><mo>−</mo><mfrac><mrow><mi>k</mi><mo stretchy=\"false\">(</mo><mi>k</mi><mo>−</mo><mn>1</mn><mo stretchy=\"false\">)</mo><mi mathvariant=\"normal\">Δ</mi><mi>t</mi></mrow><mrow><mi>k</mi><mo stretchy=\"false\">(</mo><mi>k</mi><mo>+</mo><mi>n</mi><mo>−</mo><mn>1</mn><mo stretchy=\"false\">)</mo><mi mathvariant=\"normal\">Δ</mi><mi>t</mi></mrow></mfrac><mo>=</mo><mfrac><mrow><mi>k</mi><mi>n</mi><mi mathvariant=\"normal\">Δ</mi><mi>t</mi></mrow><mrow><mi>k</mi><mo stretchy=\"false\">(</mo><mi>k</mi><mo>+</mo><mi>n</mi><mo>−</mo><mn>1</mn><mo stretchy=\"false\">)</mo><mi mathvariant=\"normal\">Δ</mi><mi>t</mi></mrow></mfrac></mrow><annotation encoding=\"application/x-tex\">1 - \\frac{k(k - 1)\\Delta t}{k(k + n - 1)\\Delta t} = \\frac{k n \\Delta t}{k(k + n - 1)\\Delta t}</annotation></semantics></math></span>"}}]}]}]},{"id":"1f8b58b2-ef2a-41c3-9946-64fe07f62568","topic":"-------------------------------------------------分隔符----------------------------------------------------","expanded":true,"style":{"color":"#EEEEEE","background":"#7986CB"}},{"id":"2ca67b2c-344e-43c5-9c54-45c02871cdfd","topic":"指令流水线\n的影响因素","expanded":true,"children":[{"id":"a7d1ab90-5a0e-4c84-938e-afd885dfd4f8","topic":"机器周期分段：","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"11c00852-c815-4ba9-b8ad-1b8c513a99db","topic":"FE 取指 -> ID 译码 -> EX 执行 -> M 访存 -> WB 写回","expanded":true,"style":{"background":"#8EDE99"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-2bc1f3c4cec0c6.png","width":551.97,"height":232.43},"children":[{"id":"e59e9f2e-2673-4591-a3d6-44e1e3b4e24c","topic":"五段式流水线","expanded":true},{"id":"8242789b-c89a-4f94-9615-925beb255774","topic":"MIPS架构(RISC)的经典模型","expanded":true},{"id":"ce54077b-7ecb-4b81-bdff-e72a35462392","topic":"每个阶段的时间设置为一样，以最长的时间看齐，所以每个阶段的末尾都添加了【锁存器】，用来存储产生的结果，以确保可以准时发出","expanded":true}]},{"id":"c2944351-0547-4418-a619-885e4d65bdb9","topic":"Cache分为：","expanded":true,"children":[{"id":"06421cee-1c95-4a5f-82f9-973b7da34505","topic":"指令Cache","expanded":true},{"id":"d1979d5a-4e9c-4049-990b-8150e57b7223","topic":"数据Cache","expanded":true}]},{"id":"3c64655e-96c2-4271-ba1e-8dc588600812","topic":"各阶段含义：","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"3d8cc172-b610-4249-b1f7-dd160b8ef986","topic":"FE 取指阶段","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"46263a94-2085-4d82-a0b0-1daebbb25605","topic":"访问指令Cache，把指令存到锁存","expanded":true},{"id":"d1b8d3ee-7ed2-404c-a7b1-6eacef830872","topic":"如果存在立即数，就把立即数放入到 Imm 锁存器中","expanded":true}]},{"id":"ee216b20-93cf-40dd-a513-760fc66f3342","topic":"ID 译码阶段","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"d77f92aa-f5cf-4dc2-a0cc-eb7cbae4a260","topic":"把操作数从寄存器组中取出，放入到AB锁存器中","expanded":true,"children":[{"id":"c90a22d0-f88c-43b9-b9e2-a9221f30628e","topic":"在RISC中所有的指令操作数都只来自于寄存器","expanded":true}]}]},{"id":"43a01c5f-32de-47fd-9f84-8c7f1f884745","topic":"EX 执行阶段","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"d8b969f2-9266-4a37-87e3-f1107e5f06ba","topic":"在ALU中进行运算，把运行结果然后到锁存器","expanded":true}]},{"id":"99c46efd-450a-4d07-a14a-a5992571b7ad","topic":"M 访存阶段","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"99b38216-ecee-459a-9882-adc14e3f9728","topic":"把运行结果写入到数据Cache中","expanded":true}]},{"id":"bbdc93aa-50d1-49c4-a7a8-a42caf8772ac","topic":"WB 写回阶段","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"186a09ba-e1c2-4771-b4bd-5a89b93ccf6a","topic":"把运行结果写回到寄存器中","expanded":true}]}]}]},{"id":"f1eb858e-5f19-40c9-b6f9-6dcc1eae61c5","topic":"流水线冲突：","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"16a9207a-a725-41f5-81cc-ca281c1c9a22","topic":"资源冲突（结构相关）","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"7e396d1e-cab6-40d8-a013-93c3deac428b","topic":"类比OS的互斥","expanded":true},{"id":"935c385d-9afa-4b58-96de-4ed3a3e51fc4","topic":"图示","expanded":true,"style":{"background":"#8EDDF9"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-bc009f5828fd47.png","width":478.87,"height":262.88},"children":[{"id":"f577ed29-d135-4645-9451-58e370650ef0","topic":"IF的Mem和M的Mem的访问冲突了","expanded":true},{"id":"ad52b055-975f-401d-86f1-409d12cbeffd","topic":"解决办法","expanded":true,"children":[{"id":"725bddb9-282e-4cb0-9738-fbd656e538c5","topic":"1. 相关指令暂停一个周期","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"1e1b9155-0232-4af1-aeb4-991f7f9cc40b","topic":"2. 重复配置资源：例如Mem分为Im和Dm","expanded":true,"style":{"background":"#FDD834"}}]}]}]},{"id":"0068528b-13fa-43a2-bff4-4721ba3f48c0","topic":"数据冲突（数据冲突）","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"f2b9333d-483e-4eb6-bbaa-293f5c23a092","topic":"类比OS的同步","expanded":true,"children":[{"id":"02aafd67-174f-444d-bdf6-a688e57a3527","topic":"最常考的部分","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"5f0f8262-9963-4919-a594-fbf92ca46798","topic":"图示","expanded":true,"style":{"background":"#FDD834"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-accc0de673b296.png","width":485.67,"height":237.02},"children":[{"id":"16a372f5-c3c8-43eb-b5ef-f31928f37d04","topic":"同一个Reg没有按照要求的顺序修改数据","expanded":true},{"id":"b6e824c1-7500-40de-8e85-43c69188710d","topic":"解决办法","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"1e453de8-ba65-4d49-a432-c54b7326de9f","topic":"1. 硬件阻塞 (stall)，插入气泡","expanded":true,"style":{"background":"#FF9595"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-12dbd8eb7a2311.png","width":417.97,"height":206.47},"children":[{"id":"92c85d41-a2f7-4f39-afbe-94fa6d83c1e4","topic":"2. 软件插入(NOP)，插入空指令","expanded":true,"style":{"background":"#FF9595"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-b3bc887e70b34f.png","width":427.17,"height":209.9}}]},{"id":"11947d27-7217-49f2-96fc-b9f5cce5cac9","topic":"3. 数据旁路技术，把ALU的输出端和输入端相接，这样在执行阶段后就可以直接使用上次的运算结果了","expanded":true,"style":{"background":"#FF9595"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-e944c738bac816.png","width":415.05,"height":206.5},"children":[{"id":"de9042ae-58c8-4174-99f3-2dce59a6d716","topic":"4. 编译优化，编译器来优化，效果好、难度大。例如后面有一些不需要r1结果的指令，可以提前来运行。","expanded":true,"style":{"background":"#FF9595"}}]}]}]}]},{"id":"940fbcc7-8539-417a-9081-40b39fcebb1f","topic":"控制冲突（控制冲突）","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"f027d177-6f35-4648-aa95-fbf06996fa14","topic":"因为转移指令或其他改变PC值的指令而导致断流","expanded":true,"style":{"background":"#8EDE99"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-746f539b71222d.png","width":428.83,"height":204.44},"children":[{"id":"9fe1d2aa-41bd-4a25-81bf-8ea0320e23ad","topic":"PC转移指令的\n解决办法","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"fcaa9e30-7366-4785-8f8a-dfcf8c0e8751","topic":"1. 转移指令预测","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"328a21ab-4ba3-4463-a4a0-d6791fa4488a","topic":"每次转移指令来的时候都预测一次到底是否会执行。分为简单预测（无脑猜true & false），动态预测（根据历史情况预测）","expanded":true}]},{"id":"6c0d2554-ca82-4983-a3ff-b82eb618d9df","topic":"2. 预测成功和不成功两个方向上的指令","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"c6079c5b-cffe-4801-b7ed-e0b541fdf169","topic":"需要硬件的支持","expanded":true}]},{"id":"f8bd5bb7-a5c5-4a70-aaec-f7fd0fe6bce4","topic":"3. 提前加快指令码的形成","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"c750439c-ef7d-451e-a7ff-aeafdb45e8e3","topic":"需要硬件的支持","expanded":true}]},{"id":"3d948a07-2353-4933-b125-96147d9f1d46","topic":"4. 提高猜测的猜准率","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"0f0b3d7e-1672-405d-93e7-b4c7411263a5","topic":"优化法 1","expanded":true}]}]}]}]}]}]},{"id":"70de3845-f52f-48a1-9be7-b3e08ef68bfa","topic":"举例说明五种类型指令：","expanded":true,"children":[{"id":"4a0d101a-746f-4b11-ab39-7adf983d6e5f","topic":"运算类指令","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"1acc0b31-5b52-4b07-a2cc-2f147ac651fa","topic":"① IF取指 ② ID译码&取值 ③ EX 执行 ④ 空过  ⑤ WB 写回寄存器","expanded":true,"style":{"background":"#8EDDF9"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-69ac71d199fc0f.png","width":625.75,"height":256.35},"children":[{"id":"de082f61-47a7-4254-9adf-f1a56aa65517","topic":"运算类指令：","expanded":true,"children":[{"id":"576fd4d3-2ffc-4e5f-a28e-01cc5bc2dc93","topic":"IF：根据PC从指令Cache中取指令到IF段的锁存器中","expanded":true,"style":{"background":"#FF9595"}},{"id":"62917326-45fa-43c4-80e7-91d88bad9dd5","topic":"ID：取IF中的op操作数到ID段锁存器","expanded":true,"style":{"background":"#FF9595"}},{"id":"8e1aaf25-d0cf-4cb5-bc2c-1625c7b7678e","topic":"EX：运算，结果放入EX锁存器","expanded":true,"style":{"background":"#FF9595"}},{"id":"31683fe5-c4cc-448e-8c9a-af34327908aa","topic":"M：空段","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"3e9a0032-7b45-4c0a-95c9-1e203ed14e62","topic":"WB：将运算结果写回指定的寄存器","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"4dcec23e-4062-421c-aef9-600955f0161c","topic":"Rs是源操作数，Rd是目的操作数","expanded":true,"style":{"background":"#FDD834"}},{"id":"e1a225e0-a4b4-4b4e-a910-3e3fa5670edd","topic":"指令举例","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"97988ddf-21f8-44ca-b9b6-b1f9411a6538","topic":"ADD Rs, Rd","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"700ba369-593f-467c-a107-a0656b5fe2fa","topic":"(Rs) + (Rd) → Rd","expanded":true}]},{"id":"23d32ec9-cae8-40d6-a16a-b674a618e573","topic":"ADD #996, Rd","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"d30cab1c-2a4c-4d8c-814e-248771f71027","topic":"996 + (Rd) → Rd","expanded":true}]},{"id":"1d8540ed-8dc4-4e2b-98da-953897310079","topic":"SHL Rd","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"22bb327f-717c-4800-bd15-615da3134750","topic":"(Rd) <<< 2 → Rd","expanded":true}]}]},{"id":"8094e5d1-f7c7-4c41-8089-a98a37918eb8","topic":"RISC运算只有Reg参与，没有M阶段","expanded":true,"style":{"background":"#FFABD5"}}]}]},{"id":"b522da3c-8eda-4f4a-ba23-ba0e7823b951","topic":"LOAD指令","expanded":true,"children":[{"id":"e3b0d08a-f83d-42ff-8155-4cb066c103c9","topic":"① IF取指 ② ID译码&取值 ③ EX 执行 ④ M 访存  ⑤ WB 写回寄存器","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-2bc1f3c4cec0c6.png","width":634.23,"height":267.07},"children":[{"id":"92f7a294-60ed-4d10-803f-cd2a4d943694","topic":"LOAD指令：","expanded":true,"children":[{"id":"b32d96d2-0fe2-4046-baef-5e598733f968","topic":"IF：根据PC从指令Cache中取指令到IF段的锁存器中","expanded":true,"style":{"background":"#FF9595"}},{"id":"9dbe1346-fa06-452b-9d55-03e75f05a007","topic":"ID：将BR基址寄存器的值放到A，将偏移量放到Imm","expanded":true,"style":{"background":"#FDD834"}},{"id":"d50a9c86-546a-4335-8acc-c55012788210","topic":"EX：运算，得到有效的地址 A + Imm","expanded":true,"style":{"background":"#FDD834"}},{"id":"803ba56f-ce73-426f-bb05-f90e49b6c26a","topic":"M：从数据Cache中取数据，放到锁存器","expanded":true,"style":{"background":"#FF9595"}},{"id":"1df25817-aa33-4ee3-b097-bfb1d0b921b1","topic":"WB：将运算结果写回指定的寄存器","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"65be98c0-77d4-4152-af89-253f83c9a122","topic":"指令举例","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"2f0b66d4-bf77-4dde-b9a8-0a1503c96ad9","topic":"LOAD Rd, 996(Rs)","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"26afab40-09f6-4976-9235-185dd5fb9589","topic":"(996+(Rs)) → Rd","expanded":true}]},{"id":"85b1906c-9c58-4256-bb92-98a1afd84b97","topic":"LOAD Rd, mem","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"250fcdb2-f915-4682-a745-1770470ea0d0","topic":"(mem) → Rd","expanded":true}]}]},{"id":"c755ac95-ea54-45fa-bbf9-5fc34920ffaf","topic":"RISC处理器中只有“LOAD”和“STORE”指令才能访问主存","expanded":true,"style":{"background":"#FFABD5"}}]}]},{"id":"de6daaaa-5639-4c09-a030-6f06acb96be6","topic":"STORE指令","expanded":true,"children":[{"id":"3c11a529-dc2f-4084-8afd-3dcbb617fe08","topic":"① IF取指 ② ID译码&取值 ③ EX 执行 ④ M 访存  ⑤ 空段","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-8641c2fe540b84.png","width":625.24,"height":260.03},"children":[{"id":"1ae1ea0d-17c2-4398-bdac-8090ef6f95ef","topic":"STORE指令：","expanded":true,"children":[{"id":"b0670696-9782-44ab-b020-143974dbf9a5","topic":"IF：根据PC从指令Cache中取指令到IF段的锁存器中","expanded":true,"style":{"background":"#FF9595"}},{"id":"1c9dce57-2c22-4979-9d2e-4dd9b105de2c","topic":"ID：将BR基址寄存器的值放到A，将偏移量放到Imm，将要存的数放到B","expanded":true,"style":{"background":"#FDD834"}},{"id":"f22ad337-ac4b-4d86-8a8c-edbb15e54444","topic":"EX：运算，得到有效的地址 A + Imm，把B的值放进去","expanded":true,"style":{"background":"#FDD834"}},{"id":"9b6c9eeb-37c8-4896-872b-4d94780e2b25","topic":"M：从数据Cache中取数据，放到锁存器","expanded":true,"style":{"background":"#FF9595"}},{"id":"c3bd1e2d-df67-4c44-abdb-68a88175bc63","topic":"WB：空段","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"890f1f37-adc7-4d7e-bb4d-2f8355da8c42","topic":"指令举例","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"d4f2a1d9-927d-4823-b5f3-9204da24aebe","topic":"STORE Rs, 996(Rd)","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"b67855c0-7d9c-4e6e-9873-39fa64c0c91e","topic":"Rs → (996+(Rd))","expanded":true}]},{"id":"6d86651d-4448-4763-8c15-fac946c4a418","topic":"STORE Rs, mem","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"a1b74a2d-3671-4b38-b458-9fdbf49380fc","topic":"Rs → (mem)","expanded":true}]}]}]}]},{"id":"ab128204-bda8-4458-b1c7-5844ffb63741","topic":"BRANCH指令","expanded":true,"children":[{"id":"a81a6885-f33d-408d-bcd3-e9a982d458ef","topic":"① IF取指 ② ID译码&取值 ③ EX 执行 ④ M/WrPC（目标PC值写回PC）  ⑤ 空段","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-a7eacfa51c0fa1.png","width":621.49,"height":279.91},"children":[{"id":"83cc041a-ead1-405b-931f-ab686d7994a8","topic":"转移类指令：通常采用相对寻址","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"fc5701d4-4161-4fd1-be84-eab9204d4165","topic":"BRANCH指令：","expanded":true,"children":[{"id":"91e5055f-22e6-430e-b42d-e0c98b3d2ac9","topic":"IF：根据PC从指令Cache中取指令到IF段的锁存器中","expanded":true,"style":{"background":"#FF9595"}},{"id":"87514f86-5c0a-4008-9f31-fb11ea9bba3f","topic":"ID：将需要比较的两个数放到锁存器A，B；偏移量放入到Imm","expanded":true,"style":{"background":"#FDD834"}},{"id":"e53648fa-ffeb-4f68-a2be-c1a5f25cce6e","topic":"EX：运算，比较两个数","expanded":true,"style":{"background":"#FDD834"}},{"id":"57f7e22e-5557-417e-a943-cc3e4b5cfffe","topic":"M：将目标PC值写回PC","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"3dca3f26-81e9-442c-a110-f290681c7828","topic":"也可以成为WrPC段，比M耗时短，安排在M段时间内完成","expanded":true,"style":{"background":"#FFABD5"}}]},{"id":"4b2d6e48-a3ab-4e02-aa91-1dd80f7cd498","topic":"WB：空段","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"fc8540fd-de34-4247-b60e-7f013435133d","topic":"WB阶段一般修改通用寄存器","expanded":true}]}]},{"id":"e45eed1e-c449-4a84-af99-b8b6dfb25252","topic":"偏移量：例如 beq Rs, Rt, #996 就是 \n【 (PC) + 4 + (996 * 4) -> PC 】","expanded":true},{"id":"4a49debe-9b29-4ae1-8eda-b6b77e0418fa","topic":"指令举例","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"f67b8c42-5268-4235-a337-e368050ecf7b","topic":"beq Rs, Rt, #off","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"928cac46-4928-43d9-9a57-9abaf2e17565","topic":"如果(Rs) == (Rt)，则(PC) + 指令字长 + (#off * 指令字长) → PC","expanded":true,"style":{"background":"#8EDE99"}},{"id":"a2e06ad2-8ac9-418b-974e-9f5f65acab0a","topic":"否则：(PC) + 指令字长 → PC","expanded":true}]},{"id":"99b7cfd1-982b-4cbe-a994-52c96ac29c4b","topic":"bne Rs, Rt, #off","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"a0b80117-7593-4522-9483-a838ca9e0878","topic":"如果(Rs) != (Rt)，则(PC) + 指令字长 + (#off * 指令字长) → PC","expanded":true,"style":{"background":"#8EDE99"}},{"id":"d9553612-ae8b-4f3e-b632-29f20679030e","topic":"否则：(PC) + 指令字长 → PC","expanded":true}]}]}]}]},{"id":"4e4ecaf7-8972-47b2-b127-8b441d1be4a0","topic":"JMP指令","expanded":true,"children":[{"id":"d034710b-fd7d-4059-8945-a3da53c107a1","topic":"① IF取指 ② ID译码&取值 ③ EX/WrPC ④ 空段  ⑤ 空段","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-be026e4c1944c9.png","width":660.67,"height":313.47},"children":[{"id":"032d80a3-33e6-4546-ae2e-eaa19c530882","topic":"转移类指令：通常采用相对寻址","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"a0f08d00-98c4-4c02-8c4d-7794510b86a6","topic":"把PC的操作安排在EX里面完成，WrPC","expanded":true,"children":[{"id":"6a99e775-b352-4f63-a394-33c5b5657a68","topic":"因为PC越早写入，越能够避免控制冲突","expanded":true}]},{"id":"31091fb7-e309-460f-a4f6-76e7b4b5360e","topic":"JMP指令：","expanded":true,"children":[{"id":"c2101aac-8a3c-4ee1-8745-879fe20b342a","topic":"IF：根据PC从指令Cache中取指令到IF段的锁存器中","expanded":true,"style":{"background":"#FF9595"}},{"id":"8746752e-0b1e-48f1-ae27-83bf58aba48c","topic":"ID：偏移量放入到Imm","expanded":true,"style":{"background":"#FDD834"}},{"id":"856819e4-63b4-47c2-8a76-8a9c085b6a34","topic":"EX：（计算PC值？）把PC值写回PC中","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"e9fe4479-f763-4780-94aa-5c328566382e","topic":"WrPC","expanded":true},{"id":"b5b4b3b0-adef-4f5b-a5b4-0055f464e1e5","topic":"咸鱼PPT中说不需要ALU，不用计算，这里存疑","expanded":true,"style":{"background":"#7986CB"}}]},{"id":"591c58a7-aec3-4f06-916b-1d34f81366e6","topic":"M：空段","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"88d84134-cf3b-4e51-974f-f7b4cd98ab20","topic":"WB：空段","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"f4643a29-a333-4944-848c-cb62084fad29","topic":"指令举例","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"e57f79ba-bad8-4eaf-92c5-7d11edcded47","topic":"jmp #off","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"53eac985-0689-48a0-8b21-5a50acd6a581","topic":"(PC) + 指令字长 + (#off * 指令字长) → PC","expanded":true,"style":{"background":"#8EDE99"}}]}]},{"id":"54fcdb85-8a81-486d-bb0c-8403ea9df5d3","topic":"WrPC段越早完成越能避免冲突，也可以在WB端修改PC","expanded":true,"style":{"background":"#FFABD5"}}]}]}]},{"id":"29c667d1-c1dd-470f-a584-c790fa3a83a5","topic":"指令流水线的分类","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"80060d47-e835-44a1-b680-3f6b5a26e0f9","topic":"根据流水线使用级别的不同","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"d2a2426e-d17a-4b0e-94ba-8645edf71664","topic":"【部件功能级】流水线","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"db52fb3d-db36-4fa9-a860-75660b097c22","topic":"把复杂的运算组成流水线","expanded":true},{"id":"99168909-bd89-46f3-bed8-de09d4940026","topic":"例如：ALU执行浮点的运算，可以把求阶差、对阶、尾数相加、结果规格化四个部分组装成流水线","expanded":true},{"id":"9e6aef65-5cea-432d-85b5-d782d0d46fac","topic":"更细一层","expanded":true,"icons":["emoji:💬"],"style":{"borderStyle":"dashed","borderColor":"#F59E0B"}}]},{"id":"6a8dee8c-d286-42b4-82e1-f8ccb5d72f1c","topic":"【处理机级】流水线","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"7e34def8-f0cc-47f8-b47e-6f1fc3174e39","topic":"把指令的执行组成流水线","expanded":true},{"id":"95652a01-cb4b-4af2-b138-a1c88404f602","topic":"例如：把指令的取值、分析、执行、访存、写回分为5个部分形成流水线","expanded":true},{"id":"158bf6d6-9017-476d-9966-e04760613fa3","topic":"【一个处理器中的不同部件】\n跑【一个指令不同阶段】","expanded":true,"icons":["emoji:💬"],"style":{"borderStyle":"dashed","borderColor":"#F59E0B"}}]},{"id":"4820e94a-945f-4c59-89d0-0505399daba4","topic":"【处理机间】流水线","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"04d4a609-3e66-46fe-b01d-7f6c254acc58","topic":"每个处理机完成某一类型的任务，然后把任务结果存在与下一个处理器共享的存储器中","expanded":true},{"id":"86c6d5f4-b2cf-4350-91c9-1b8394e1b798","topic":"【多个处理器】跑【一个任务】","expanded":true,"icons":["emoji:💬"],"style":{"borderStyle":"dashed","borderColor":"#F59E0B"}}]}]},{"id":"4103c4b2-9fbf-48d3-a5b6-d0466f416703","topic":"根据流水线完成的功能不同","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"c016427d-ce11-4f16-9971-8f7ac0efd192","topic":"单功能流水线","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"1cf1e629-2148-4047-bf85-94c5f4d17352","topic":"只能用于某个特定的任务：例如浮点运算流水线","expanded":true}]},{"id":"88cf2cea-d780-4bd3-b2ab-a8231c5933c1","topic":"多功能流水线","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"ec3c64a3-e22e-4e7a-928a-9f6bd2ae4afa","topic":"可以用于多个任务：例如指令流水线","expanded":true}]}]},{"id":"2fa04a65-a697-4d91-8309-a28761dcede3","topic":"动态&静态","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"2a687e91-87fa-4f01-9177-8b89bad27a3d","topic":"静态流水线","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"d6c6229f-e287-4ab1-8cc9-bab2e7929519","topic":"同一时间内，流水线的各段只能按同一种功能的连接方式工作","expanded":true}]},{"id":"3a6e0e12-6170-4b43-9ac3-6528e3403a67","topic":"动态流水线","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"00cc4c00-b445-4217-a040-214c7f4b5a3d","topic":"指在同一时间内，当某些段正在实现某种运算时，另一些段却正在进行另一种运算。","expanded":true,"children":[{"id":"4dc1c985-4f2b-4834-855f-fdc89eb4cf6c","topic":"这样对提高流水线的效率很有好处，但会使流水线控制变得很复杂。","expanded":true}]}]},{"id":"0f79ba6b-fa05-43b3-a379-99991a926b13","topic":"例子：动态 --- ALU又可以做除法又可以做加法","expanded":true}]},{"id":"2deb57c6-5cbc-444b-85dd-03113942b6b4","topic":"线性&非线性","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"95ef893a-c1b9-409e-93c0-b8e2b64096cd","topic":"线性流水线","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"799abec0-d446-49b3-aa5c-0ec4c8460de7","topic":"从输入到输出，每个功能段只允许经过一次，不存在反馈回路。","expanded":true}]},{"id":"10691f3b-9ead-44ab-9fcd-9ab996cf425a","topic":"非线性流水线","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"cc1659e7-f649-4c91-8c23-70ca4e00b7a6","topic":"存在反馈回路，从输入到输出过程中，某些功能段将数次通过流水线，这种流水线 适合进行线性递归的运算。","expanded":true}]},{"id":"8f1c3af1-a1c7-4729-a190-abbc5c4e09b0","topic":"例字：非线性 --- 只有加法指令的ALU，运行乘法需要多次EX，IF ID EX EX EX ...  EX M WB","expanded":true}]}]},{"id":"c8877ebd-3440-48bd-a531-e6f623d86a23","topic":"流水线的多发技术","expanded":true,"children":[{"id":"bd806124-5b64-4b6f-8d0c-88ddb84ccd2f","topic":"1. 超标量技术","expanded":true,"children":[{"id":"c6107d80-78c5-447f-b865-364d30198e57","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-d6bd0743d11959.png","width":288.86,"height":196.63},"children":[{"id":"1a41d317-f581-4f34-9d33-e7e188695762","topic":"每个时钟周期内可并发多条独立指令，需要配置多个功能部件","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"a4dfa097-0d68-4e8b-9fe0-9422b92ba41d","topic":"不能调整指令的执行顺序，通过编译优化技术，把可以并行执行的指令搭配起来","expanded":true},{"id":"92509e85-509b-4dde-bcda-d5def7eb3eaf","topic":"1. 多并发 --- 多个功能部件","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"d5695fa5-1b8e-468e-9481-aab14f6021ad","topic":"空分复用技术","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"d8591588-d44f-4129-bca1-6d78ff1ec2e6","topic":"2. 编译优化需要判断那些可以并行","expanded":true,"style":{"background":"#FF9595"}}]}]},{"id":"30467e49-66b3-4a54-ae6e-9550aebb8234","topic":"2. 超流水技术","expanded":true,"children":[{"id":"c6198509-f98b-4c3d-a58a-d86580fc45f4","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-300c29abc5c3de.png","width":377.67,"height":238.88},"children":[{"id":"843fbadb-6e7e-4048-a60b-93bab5ee510c","topic":"在一个时钟周期内再分段（3段）","expanded":true},{"id":"8498ae66-e5bb-47af-98f6-31086df7637a","topic":"在一个时钟周期内一个功能部件使用多次（3次）","expanded":true},{"id":"42b74a6f-1525-4949-b2fe-31a16d339f14","topic":"不能调整指令的执行顺序","expanded":true},{"id":"78e899c2-88ca-4b39-a8c8-833d7d05a6ec","topic":"靠编译程序解决优化问题","expanded":true},{"id":"5f781e03-f9e0-464f-947d-a14494140d58","topic":"时分复用技术","expanded":true,"style":{"background":"#FDD834"}},{"id":"ca36307e-5823-45ca-b55c-86b5f7e49f9d","topic":"和超标量差不多","expanded":true}]}]},{"id":"21b54c37-ef21-4f77-9b0a-5d3b757607a0","topic":"3. 超长指令字","expanded":true,"children":[{"id":"331a228c-78f2-4f4a-9979-b997802c4bd6","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-84f5a2ded3360f.png","width":376.25,"height":281.08},"children":[{"id":"1a57e623-e272-4a6c-9fff-c48a58268256","topic":"由编译程序挖掘出指令间潜在的并行","expanded":true},{"id":"0f6195a3-6f9f-40ce-b2c9-a37b322da737","topic":"多条能并行操作的指令组合成一条","expanded":true},{"id":"8fcf5415-a938-4394-9932-cf8af57bcec2","topic":"具有多个操作码字段的超长指令字（可达几百位）","expanded":true},{"id":"dbea594c-620e-467d-89f5-525552f86bd9","topic":"多个处理部件","expanded":true},{"id":"30319561-52b1-43f2-8b64-2156e5dba328","topic":"编译程序去挖掘发现哪些指令可以合并在一起执行","expanded":true}]}]}]},{"id":"a3bb090a-7281-4be7-8578-55d6da9f3010","topic":"考频：高","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"d01aefde-234f-4b88-aa3e-edfac2cb0c24","topic":"09、10、13、16、17*2、18-20、12大、14大*2","expanded":true}]}]},{"id":"131a8764-772a-4170-ba43-fbb4787ec2e0","topic":"多处理器","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-fe91a14c9b1b58.svg","width":60,"height":60},"children":[{"id":"dd5caa5b-608d-429a-9448-70feab1f92bc","topic":"考频：低","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"5f0092ff-e755-41a6-ad8d-522273801b13","topic":"22","expanded":true}]},{"id":"695a42e1-0be7-4761-814e-b7bf77bd27f2","topic":"XIXD","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"e00ec13d-6227-4517-8301-bbf095d5ead2","topic":"SISD","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"d55cf2c8-d326-433f-93f9-022d2412bf90","topic":"传统串行计算机，一个CPU一个存储器。指令按顺序串行执行，一次性只能处理一条数据","expanded":true},{"id":"abb59135-8624-43b0-9504-e9f4e8299341","topic":"优化：","expanded":true,"children":[{"id":"598954a6-3eed-4919-ac13-0a5e40810e8c","topic":"使用指令流水线","expanded":true},{"id":"e905fa7b-52fa-43ad-8fda-8af46a832538","topic":"使用多个功能部件，采用多模块交叉存储","expanded":true}]}]},{"id":"0ea79ea4-de86-48b5-b278-a6781a49d2ce","topic":"SIMD","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"8d42f187-df86-4360-abc0-dcf90d9624bf","topic":"一个指令对多个数据流进行处理，一般为【数据级并行技术】。由一个指令控制部件，多个处理单元组成","expanded":true,"children":[{"id":"db033337-ed41-491e-a914-0f430665540f","topic":"例如一个CPU多个ALU","expanded":true}]},{"id":"73350542-6464-4e8f-94de-efb82bfd038a","topic":"特点：","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"d11864f4-79f1-43c2-8e88-620dd0ef1555","topic":"一条指令中的多个数据是存在不同的地址中的，那么该条指令的执行的数据运算可以并发进行","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"f611522a-19ef-4cdc-aa21-0e90abcfc253","topic":"注意事项：","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"7e62b0fb-fd50-4a05-85f6-9241ba3aa190","topic":"SIMD的MD是与数据有关的，即一个进程编译过后，可能在第1、2、4次运算是int加减，故只能使用SISD的模式。但是在第3次运算的时候是数组运算，可以使用SIMD的模式","expanded":true,"style":{"background":"#FFABD5"}}]},{"id":"a5b05523-1689-4c3f-93d4-a23d6648b92c","topic":"向量处理器","expanded":true,"children":[{"id":"17b15822-8918-462b-8279-69c4c857d500","topic":"是特殊的SIMD，既可以一次处理多个数据，又一次处理的数据是一个多维的向量","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-605083848f8950.png","width":617.21,"height":327.66},"children":[{"id":"26242f16-601b-4025-b015-1016241de504","topic":"eg: 向量处理机的LOAD指令，可以将一个向量取到向量寄存器中；加法指令，可以实现两个向量相加","expanded":true},{"id":"1c637b2e-c89f-43aa-970a-bdbcbf56a0e5","topic":"应用于：向量计算、大量浮点数计算，空气动力学、核物理学、巨型矩阵计算问题很多超级计算机如中国的“银河”就是向量处理器","expanded":true},{"id":"62ba7f3a-a3e8-42f5-be49-b177828d658b","topic":"要求：","expanded":true,"children":[{"id":"d0b77524-6d87-42f7-94f8-222810b2d412","topic":"1. 有多个向量处理器","expanded":true},{"id":"59da1fb4-a5cd-4fac-841e-c309b2edf5bc","topic":"2. 主存是”多端口“交叉存储器","expanded":true},{"id":"0efe9a5a-13b1-46d1-80b7-a6118bb9ddfd","topic":"3. 主存要大容量，集中式最好","expanded":true}]}]}]},{"id":"bac2ba66-3036-4f0f-b0a1-de9c513df0d8","topic":"数据级并行","expanded":true,"icons":["emoji:💬"],"style":{"background":"#19A719","borderStyle":"dashed","borderColor":"#F59E0B"}}]},{"id":"d9969a8a-5e5a-4d0e-9cdd-f8b276ca7417","topic":"MISD","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"5fd66f86-72d9-4057-ba36-b70f9912b764","topic":"不存在","expanded":true}]},{"id":"82109e02-7356-4179-8f86-252d5c78692a","topic":"MIMD","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"f4234c5d-4f0d-41bb-aabe-65c3c0d78544","topic":"多计算机系统","expanded":true,"children":[{"id":"6fa1119e-9dbe-4051-836c-82bc64bd22a9","topic":"每个计算机拥有各自私有的存储器，有独立的主存空间，计算机之间只能够通过消息传递进行通信","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-05d576ac246c8f.png","width":481.52,"height":428.67}}]},{"id":"03b13b8a-09cb-4785-8c1c-c1ba847adb6d","topic":"多核处理器系统","expanded":true,"children":[{"id":"eb86d559-d32e-42da-a7a4-e0f2d11f1c67","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-694aad8782e600.png","width":502.14,"height":247.83},"children":[{"id":"dcf9c0ab-5a05-4b22-b1c9-0237c2d89613","topic":"SMP（对称多处理）系统，具有共享的单一地址空间，存取指令可以访问系统中的所有存储器","expanded":true},{"id":"c5c34cd8-f177-4a9c-a887-7bca4e7395d3","topic":"Cache的分配","expanded":true,"children":[{"id":"bf820740-06d9-4904-b7bb-731a24cfe8f6","topic":"例如有三级Cache，则每个核有自己的一级和二级Cache，三个核共享同一个三级Cache","expanded":true}]}]}]},{"id":"c7c38e06-3bcd-44f5-bbb0-7678161a7534","topic":"线程级或线程级以上并行","expanded":true,"icons":["emoji:💬"],"style":{"background":"#19A719","borderStyle":"dashed","borderColor":"#F59E0B"}}]}]},{"id":"6eafd2e6-fb85-40be-9128-d58180aed5db","topic":"硬件多线程","expanded":true,"children":[{"id":"34a3a2d5-dd98-4cdc-8ddc-78230fe3fb00","topic":"细粒度","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"80a6995e-c510-40c2-a964-2d8451bf1191","topic":"多个线程轮流交叉执行指令","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"c4e77a30-8ac4-4a2f-91f3-b1258761097c","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-27cb5c2a4f8fa3.png","width":892,"height":810}}]},{"id":"b6f6b320-4c4b-4385-8096-9e3ced489647","topic":"指令级并行","expanded":true,"icons":["emoji:💬"],"style":{"borderStyle":"dashed","borderColor":"#F59E0B"}}]},{"id":"e3da3c55-fa64-4032-b994-37c8bc4ee8e6","topic":"粗粒度","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"90897ad1-ede2-4233-b9e1-749a2a89df24","topic":"只有一个进程进行较大阻塞的时候才切换进","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"a3abe700-97f0-4f41-b2c2-b7835a1f0898","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-3230655c455edc.png","width":267.34,"height":266.23}}]},{"id":"e463a5ba-237a-453b-a057-302edc2fd562","topic":"指令级并行","expanded":true,"icons":["emoji:💬"],"style":{"borderStyle":"dashed","borderColor":"#F59E0B"}}]},{"id":"cba61fd1-2f49-422e-98db-a2f339853b32","topic":"同时","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"d556bc04-7395-4f0b-9e57-c2f4d2aa3d2a","topic":"单核处理器有多个功能部件、寄存器组、指令发射槽","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"a8b54681-2414-44dc-8147-383b2653b16b","topic":"处理器","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-b061bc8f423872.png","width":404.14,"height":219.01}},{"id":"e1a0b583-2790-4762-a122-be4a43e2419a","topic":"可以同时发多条，三种硬件多线程方式的调度示例","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-f5476c6af5eb51.png","width":396.59,"height":175.09}}]},{"id":"652cd65e-a836-474d-867b-64011fdb2841","topic":"线程级并行","expanded":true,"icons":["emoji:💬"],"style":{"borderStyle":"dashed","borderColor":"#F59E0B"}}]},{"id":"6b860d57-d2de-4950-91d0-50d3442bd199","topic":"单核","expanded":true,"icons":["emoji:💬"],"style":{"borderStyle":"dashed","borderColor":"#F59E0B"}}]},{"id":"61489589-3b0d-4351-8622-cf668676b9d3","topic":"多核/多处理器","expanded":true,"children":[{"id":"31cd826c-bbc8-41d6-a0ea-14c6a665216b","topic":"多处理器：","expanded":true,"children":[{"id":"cdf3e343-0c39-48b6-8e8c-f45783722af7","topic":"有多个CPU，每个CPU一个处理单元来运作","expanded":true},{"id":"599b9026-32e6-4035-a93c-b4f49bbb371d","topic":"多处理器的分类","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"e3db18ec-bfbf-468e-8499-d852373bb9c4","topic":"第一类：UMA统一存储访问","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"3b8a8fed-1b6c-49e0-9427-a0c546a6d56d","topic":"共享同一份内存，每个处理器访存所有存储单元的速度大致相同","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-5385144c91f7ca.png","width":432.06,"height":336.65},"children":[{"id":"1324babd-4eeb-4f37-b28e-a502df475387","topic":"SMP、UMA、NUMA拓展","expanded":true,"hyperlink":"https://blog.csdn.net/weixin_42319496/article/details/125940807"},{"id":"2100a4bb-a2cb-4572-9b6b-d296b7c287b6","topic":"UMA需要考虑Cache一致性的问题","expanded":true,"style":{"background":"#FFABD5"}},{"id":"d6e91cb9-3bb7-4b22-93fe-21524272d459","topic":"统一存储访问（UMA）多处理器：根据处理器与共享存储器之间的链接方式，分为基 于总线、基于交叉开关网络和基于多级交换网络连接等几种处理器。","expanded":true,"style":{"background":"#FFABD5"}}]},{"id":"fb09c12f-0685-40a9-a9f5-b425d1c76af9","topic":"SMP","expanded":true,"icons":["emoji:💬"],"style":{"borderStyle":"dashed","borderColor":"#F59E0B"}}]},{"id":"2a90a826-a243-4046-878a-f5270de18f2c","topic":"第二类：NUMA非统一存储访问","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"99e916ea-135b-4873-a5b5-5674f8456ee0","topic":"拥有自己的不同内存。会有特定几个处理器访存存储单元的速度更快","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-b687a55334a348.png","width":539.99,"height":337.69},"children":[{"id":"a1a9ee4f-e301-49ff-a975-c779d63e98e9","topic":"NUMA理论上是可以无限扩展的","expanded":true},{"id":"ef9d300b-358e-4d24-8fc4-6cb17b86e362","topic":"非统一存储访问 （NUMA）多处理器：处理器中不带高速缓存时，被称为 NC-NUMA; 处理器中带有一致性高速缓存时，被称为 CC-NUMA。","expanded":true,"style":{"background":"#FFABD5"}}]},{"id":"1a88291f-3656-4f76-bc38-2bc052a8cf0f","topic":"ASMP","expanded":true,"icons":["emoji:💬"],"style":{"borderStyle":"dashed","borderColor":"#F59E0B"}}]}]},{"id":"91d588c3-cb63-4750-85e5-c1c9b7ba1e76","topic":"自旋锁：","expanded":true,"style":{"background":"#BA69C8"},"children":[{"id":"a8749a5e-74a3-4236-a776-d70d11d629e7","topic":"SMP的多个处理器可能同时访问一个共享变量","expanded":true,"style":{"background":"#BA69C8"}},{"id":"3480d5f0-88f3-43fa-904f-913368469545","topic":"所以要使用自旋锁来进行互斥访问","expanded":true,"style":{"background":"#BA69C8"}}]}]},{"id":"a5974c0d-21c3-4819-92c0-32db523af7f9","topic":"多核处理器：","expanded":true,"children":[{"id":"5a6f4edd-e2db-4c84-89bd-17e80744a82d","topic":"一个CPU中集成了多个处理单元（核）","expanded":true},{"id":"fe6e26cc-889d-4705-8da2-87c6c26d397e","topic":"不共享Cache","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-92d92d2e5414f4.png","width":307.51,"height":274.61},"children":[{"id":"7f40a82a-e300-45ce-a38e-98f4cfb48605","topic":"比较","expanded":true,"children":[{"id":"8a045153-1414-4d81-90b1-9309a6b56f2b","topic":"共享Cache","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-694aad8782e600.png","width":556.56,"height":274.69}}]}]}]}]}]},{"id":"e5e20078-6ee0-442b-b171-72220bdc27ad","topic":"END","expanded":true}]},"relations":[{"id":"37bdd204-6d1c-4d17-995b-b8f0ec5cf265","from":"34979da9-0d7a-4906-91ff-6ddd8a3c87ee","to":"9b447c66-5bbc-4904-ae59-29fc8e525481","bidirectional":false,"label":"取出并执行一条指令的时间\n就是【一个】指令周期"},{"id":"cc90f299-f37b-4281-ae1c-f58e46a9e3b1","from":"9b447c66-5bbc-4904-ae59-29fc8e525481","to":"51af1c44-2997-43ef-93fd-9e2778d2c6db","bidirectional":false,"label":"一个指令周期内\n有【多个】机器周期"},{"id":"48a9b416-3fd8-48ea-8676-11ae053aa12e","from":"51af1c44-2997-43ef-93fd-9e2778d2c6db","to":"af3513cf-1a83-4f05-9c9b-a8e721814b9e","bidirectional":false,"label":"一个机器周期内有\n【多个】时钟节拍"},{"id":"93f2ef7a-4883-4402-ab4a-ecfb0c25dd42","from":"412a898e-604f-44a7-823d-2ee8fb5c4464","to":"5637021c-fe65-4b3f-9cf6-287fae886893","bidirectional":true},{"id":"0b34fb1f-b528-4c3d-8719-7671dffe1bb5","from":"5e6f1330-4a12-4e9c-8fa2-50ace264feb0","to":"9cb13136-888a-4a6c-8e82-9fac0875672e","bidirectional":true},{"id":"f0a1cf69-2912-4a05-a301-f61679b57a30","from":"af3513cf-1a83-4f05-9c9b-a8e721814b9e","to":"665b4889-55dc-4735-a6bd-25c248d4db01","bidirectional":false,"label":"一个节拍内有\n【多个】微操作"},{"id":"83b20e23-1d66-4950-9329-081b4fcce63b","from":"665b4889-55dc-4735-a6bd-25c248d4db01","to":"c8b526c7-e506-49a2-a488-d3b79c3c25d7","bidirectional":false,"label":"一个微操作执行时间\n是【一个】微周期"}],"summaries":[{"id":"9f1a4d2f-9922-486c-a04e-cf42718a8a44","parentId":"fb630d3f-0250-4e41-a701-1a073c1beb52","start":3,"end":3,"label":"32位：E__X\n低16位：__X\n__X的高8位：__H\n__X的低8位：__L"},{"id":"16f48383-8ecb-4ebd-a153-fb86364d0a56","parentId":"fb630d3f-0250-4e41-a701-1a073c1beb52","start":6,"end":6,"label":"这两个寄存器不能乱用"},{"id":"2a7be800-4ecb-4985-9b0b-066e019a5ca2","parentId":"dc242fea-e78b-4ac4-b0c3-31b634920716","start":0,"end":1,"label":"两个注意点"},{"id":"aeaa41a2-c85f-4fd8-a5a9-6b366afbcecc","parentId":"a24f795f-3411-4ebe-849e-e0d474b13377","start":2,"end":2,"label":"一个微操作需要一个节拍来完成执行，但是也可以多个微操作在同一个节拍里面共同执行"},{"id":"5e452f82-240a-4993-a105-ee1fb3a0c23d","parentId":"ee98e053-89a6-4904-934a-19ad18297fe1","start":2,"end":2,"label":"在指令长度相同的情况下，所有指令的取指操作才相同，如果是多字指令则取指操作不同"},{"id":"aa0e79c1-097c-4e67-a569-a47a7e2b0c7d","parentId":"a38f777b-7a87-479f-8fd5-e0e44acfea57","start":0,"end":0,"label":"题目一定会告诉你的"},{"id":"f0267876-3826-486e-8747-7f93d827c6e2","parentId":"da104852-a623-47f3-825e-1c937ef92d8b","start":0,"end":1,"label":"了解即可"},{"id":"30dc2df9-c78b-4690-87a8-0a8fc53849f1","parentId":"abbfed9d-b465-4792-8e7a-4b82a77e4b56","start":1,"end":1,"label":"胖胖的"},{"id":"3a706f37-bc3a-49c6-b2c5-4641c4853cbd","parentId":"abbfed9d-b465-4792-8e7a-4b82a77e4b56","start":2,"end":2,"label":"瘦瘦的"},{"id":"9dce8bac-7765-49a0-9a4e-ef7aa98aca6b","parentId":"ff07b606-aaf4-4049-bbe1-d8aeb745d1ce","start":0,"end":1,"label":"和硬布线一样 （除了最后一步硬布线是直接生成了控制信息，而微程序是把OP字段传入到了微地址形成部件中）"},{"id":"777d9057-d5ba-4da5-b128-d443e6c6efcc","parentId":"ff07b606-aaf4-4049-bbe1-d8aeb745d1ce","start":2,"end":2,"label":""},{"id":"80162910-be1c-45bb-930d-9f807f5c8b62","parentId":"ff07b606-aaf4-4049-bbe1-d8aeb745d1ce","start":3,"end":3,"label":"确定总位数"},{"id":"c4cd4b18-7282-4566-97bf-e14187098c40","parentId":"c2944351-0547-4418-a619-885e4d65bdb9","start":0,"end":1,"label":"这样访问Cache的指令和数据是可以并行进行的"},{"id":"4374897d-ec6e-4044-a86e-41814db0981c","parentId":"c8877ebd-3440-48bd-a531-e6f623d86a23","start":0,"end":1,"label":"都不能【动态调整】指令执行顺序。\n生成这种指令顺序的技术：【动态调度技术】"},{"id":"8917a80d-3321-4c99-bebf-c16abb5bd2fe","parentId":"73350542-6464-4e8f-94de-efb82bfd038a","start":0,"end":0,"label":"例如一个程序中的for处理循环数组，可以同时处理完16个下标的数据"},{"id":"e2da27be-7119-4583-bf42-f5ece28973c9","parentId":"d556bc04-7395-4f0b-9e57-c2f4d2aa3d2a","start":0,"end":0,"label":"超线程技术"},{"id":"7a92daa9-b54e-48df-a9ff-fd69af47ff7b","parentId":"91d588c3-cb63-4750-85e5-c1c9b7ba1e76","start":1,"end":1,"label":"和单处理器的互斥锁很类似的东西"},{"id":"2c866464-a5a3-4fe2-be07-f2db1a8981dc","parentId":"31cd826c-bbc8-41d6-a0ea-14c6a665216b","start":0,"end":0,"label":"多个CPU之间的信息交互是通过电脑主板进行的"},{"id":"9d40e947-d796-4007-ae7e-66a1e2ce83f6","parentId":"a5974c0d-21c3-4819-92c0-32db523af7f9","start":0,"end":0,"label":"可以共享Cache也可以不共享Cache"}],"boundaries":[{"id":"8835f002-f249-47db-8070-008d5319485c","parentId":"09acdb3a-6a9e-4b92-bd0f-1f2ca5f1953e","start":1,"end":2,"label":"重要！！！！"}]}