当前位置:网站首页>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
边栏推荐
- 区间 - 左闭右开
- Thymeleaf 常用函數
- 总量分析 核算方法和势方法 - 分摊分析
- Chow Tai Fook fulfills the "centenary commitment" and sincerely serves to promote green environmental protection
- 申请代码签名证书时如何选择合适的证书品牌?
- How to protect user privacy without password authentication?
- World Environment Day | Chow Tai Fook serves wholeheartedly to promote carbon reduction and environmental protection
- FR练习题目---简单题
- 直播预告|如何借助自动化工具落地DevOps(文末福利)
- PostgreSQL 13 installation
猜你喜欢

分享 20 个稀奇古怪的 JS 表达式,看看你能答对多少

Online electronic component purchasing Mall: break the problem of information asymmetry in the purchasing process, and enable enterprises to effectively coordinate management

【学习笔记】阶段测试1

How to protect user privacy without password authentication?

世界环境日 | 周大福用心服务推动减碳环保

LeetCode_ 2 (add two numbers)

729. 我的日程安排表 I :「模拟」&「线段树(动态开点)」&「分块 + 位运算(分桶)」

分享 12 个最常用的正则表达式,能解决你大部分问题

How can non-technical departments participate in Devops?

快消品行业SaaS多租户解决方案,构建全产业链数字化营销竞争力
随机推荐
美国费城发生“安全事故” 2名警察遭枪杀
CPU设计实战-第四章实践任务二用阻塞技术解决相关引发的冲突
详解Vue适时清理keepalive缓存方案
PostgreSQL 13 installation
anaconda使用中科大源
How does redis implement multiple zones?
Strong connection component
Countermeasures of enterprise supply chain management system in UCA Era
Postgresql 13 安装
Is the securities account given by the head teacher of qiniu school safe? Can I open an account?
Qingda KeYue rushes to the science and Innovation Board: the annual revenue is 200million, and it is proposed to raise 750million
通过npm 或者 yarn安装依赖时 报错 出现乱码解决方式
危机重重下的企业发展,数字化转型到底是不是企业未来救星
mysql8.0JSON_CONTAINS的使用说明
实现一个博客系统----使用模板引擎技术
Catch all asynchronous artifact completable future
Explain Vue's plan to clean up keepalive cache in time
Sharing the 12 most commonly used regular expressions can solve most of your problems
Structure - C language
有一个强大又好看的,赛过Typora,阿里开发的语雀编辑器