当前位置:网站首页>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
边栏推荐
- Online electronic component purchasing Mall: break the problem of information asymmetry in the purchasing process, and enable enterprises to effectively coordinate management
- [learning notes] stage test 1
- IPv6与IPv4的区别 网信办等三部推进IPv6规模部署
- Disjoint Set
- Time to calculate cron expression based on cronsequencegenerator
- 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
- useMemo,memo,useRef等相关hooks详解
- Two policemen were shot dead in a "safety accident" in Philadelphia, USA
- 通过npm 或者 yarn安装依赖时 报错 出现乱码解决方式
- leetcode:881. 救生艇
猜你喜欢

Introduction, installation, introduction and detailed introduction to postman!

申请代码签名证书时如何选择合适的证书品牌?

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

安装配置Jenkins

一键更改多个文件名字

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

用 Go 跑的更快:使用 Golang 为机器学习服务

【数组和进阶指针经典笔试题12道】这些题,满足你对数组和指针的所有幻想,come on !

Section - left closed right open

729. 我的日程安排表 I :「模拟」&「线段树(动态开点)」&「分块 + 位运算(分桶)」
随机推荐
SaaS multi tenant solution for FMCG industry to build digital marketing competitiveness of the whole industry chain
APR protocol and defense
Topology visual drawing engine
Topology可视化绘图引擎
注意!软件供应链安全挑战持续升级
01. Solr7.3.1 deployment and configuration of jetty under win10 platform
【招聘岗位】基础设施软件开发人员
【学习笔记】阶段测试1
Redis如何实现多可用区?
LeetCode_ 67 (binary sum)
IPv6与IPv4的区别 网信办等三部推进IPv6规模部署
动态规划
R language uses the polR function of mass package to build an ordered multi classification logistic regression model, and uses the coef function to obtain the log odds ratio corresponding to each vari
leetcode:881. 救生艇
乌卡时代下,企业供应链管理体系的应对策略
Two policemen were shot dead in a "safety accident" in Philadelphia, USA
启牛学堂班主任给的证券账户安全吗?能开户吗?
Thymeleaf th:classappend attribute append th:styleappend style append th:data- custom attribute
mysql8.0JSON_ Instructions for using contains
How to protect user privacy without password authentication?