当前位置:网站首页>CPU design related notes
CPU design related notes
2022-07-05 14:37:00 【Xiaowei programmer】
CPU Design - be based on LoongArch Architecturally MIPS
1. Simply talk about the assembly line CPU
Single launch static five stage pipeline CPU:
Fingering (IF)-> decoding (ID)-> perform (EXE)-> Visiting and depositing (MEM)-> Write back to (WB)
Assembly line CPU The essence of design is understood as a workshop for assembly line production , One stage completes a specified function alone .
(1) Time flows
Take five sections of running water as an example , The fifth paragraph is : Fingering - decoding - Visiting and depositing - perform - Write back
Treat each paragraph as a part , When the previous instruction goes from fetch to decoding , That is, start to fetch the next instruction .
(2) Space water
Analogy time flow , It is simply understood as expanding each part to the original work efficiency n times ; That is to say, one instruction is taken at a time in the finger fetching stage , Now you can take it at once 2 One or more .
2. Assembly line CPU Instruction correlation in and pipeline conflict

3. Solve the assembly line CPU Data related conflict method in design
(1) Blocking technology
Simple understanding : Let a level of the next instruction stop and wait for the last pending result of the above instruction , That is, wait until the above instructions have completely completed the five level pipeline operation .
And “ Read after writing ” Related conflicts : That is, the upper level has not written registers or data RAM The next instruction that follows already needs this new value in the execution phase .
Blocking technology : Let the next instruction wait for the last instruction to complete the whole instruction in the execution stage .
(2) Forward delivery technology
Simple understanding : Send the results to be used directly to the corresponding flow stage through a dedicated path , Don't wait for the writeback operation of the last paragraph .
Solution and “ Read after writing ” Related conflicts :
Forward delivery technology : The result of the previous instruction to be written will be sent directly to the pipeline stage of the next instruction .
I send the fresh addition result just released directly to the next instruction to eat . That's what's called Internal push forward (Internal Forwarding), Or internal bypass (Bypass).
reference :
《CPU Design practice 》 Wang Wenxiang Xing Jinzhang Writing
《 Fundamentals of computer architecture The third edition 》 Hu Chuanwu waited
《 Computer principle and design :Verilog HDL edition 》 Written by Li Yamin
边栏推荐
- PHP - fatal error: allowed memory size of 314572800 bytes exhausted
- 区间 - 左闭右开
- Isn't it right to put money into the external market? How can we ensure safety?
- Introduction, installation, introduction and detailed introduction to postman!
- R language ggplot2 visualization: use ggplot2 to visualize the scatter diagram, and use the labs parameter to customize the X axis label text (customize X axis labels)
- 日化用品行业智能供应链协同系统解决方案:数智化SCM供应链,为企业转型“加速度”
- Thymeleaf common functions
- 如何将电脑复制的内容粘贴进MobaXterm?如何复制粘贴
- Two Bi development, more than 3000 reports? How to do it?
- 安装配置Jenkins
猜你喜欢
随机推荐
日化用品行业智能供应链协同系统解决方案:数智化SCM供应链,为企业转型“加速度”
R language uses the multinom function of NNET package to build an unordered multi classification logistic regression model, and uses the coef function to obtain the log odds ratio corresponding to eac
[C question set] of Ⅷ
Under the crisis of enterprise development, is digital transformation the future savior of enterprises
Countermeasures of enterprise supply chain management system in UCA Era
Qingda KeYue rushes to the science and Innovation Board: the annual revenue is 200million, and it is proposed to raise 750million
分享 20 个稀奇古怪的 JS 表达式,看看你能答对多少
Matrix chain multiplication dynamic programming example
Thymeleaf th:with局部变量的使用
Principle and performance analysis of lepton lossless compression
Implement a blog system -- using template engine technology
一网打尽异步神器CompletableFuture
最长公共子序列 - 动态规划
Topology可视化绘图引擎
CPU设计实战-第四章实践任务二用阻塞技术解决相关引发的冲突
启牛学堂班主任给的证券账户安全吗?能开户吗?
区间 - 左闭右开
世界环境日 | 周大福用心服务推动减碳环保
Thymeleaf 常用函数
Thymeleaf common functions

![[learning notes] stage test 1](/img/22/ad16375d8d1510c2ec75c56403a8bf.png)







