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控制流水线的阻塞/反压?