xPU pipeline overview
insn define
item | feature |
---|---|
Dimension | scalar / vector |
insn | alu / shift / logic / load-store / control / csr |
Pipeline
example
- simple pipeline
- complex pipeline
- mulit-issue pipeline
- SIMT pipeline
define
- 使用buffer解耦
- 不同長度的pipeline
- 反饋導致pipeline阻塞
status
- forward
- stall
control/operate
-
drain off
-
cutoff
-
back pressure
-
flush
-
Speculative execution
-
buffer read/write
level
pipeline | feature |
---|---|
order 5 stage | IF,Decode,EXE,MEM,WB |
order multi-issue | multi pipeline, frondEnd/backEnd |
OoO | out-of-order execute, multi-issue |
multi-thread | order, multi-thread; OoO,multi-issue, multi-thread |
SIMT | SIMD, multi-thread |
insn mapping
- pipeline stage
- key data structure
performance
- buffer可將流水線解耦
- 流水線中,各階段的流量都等於起始的流量則性能達到最佳(後續流水線沒有阻塞/斷流)
- 上述特性可用於xPU的流水線性能分析
- referecen method: TMAT-Top-Down performance analysis methodology
思考
- pipeline中能使用狀態機嗎?
- pipeline中如何valid-ready控制流水線的阻塞/反壓?