ETM and PTM
ETM:embedded Trace Macrocell
PTM:Program Flow Trace Macrocell
ETM-A7 macrocell提供Cortex-A7 MPcore的instruction和data的trace。
再與Cortex-A7的連接過程中,需要連接ETM interface和PMU 接口。
ETM interface包括:instruction address,branch,exception,data address,data value等。
ETM內(nèi)部實現(xiàn)DFT logic,提供DFTSE和DFTRSTDISABLE信號。
ETM內(nèi)部的block diagram:
PTM是基于Program Flow Trace(PFT)架構(gòu)的,進行real-time instruction flow tracing的模塊。
PTM會copy一份正在執(zhí)行的code,然后只在一些program execution point進行trace,這樣的點叫做waypoint。
Trace tools利用waypoint來follow program的execution。
一般的waypoint包括:
1)indirect branches,with target address and condition code;
2)direct branches with only the condition code;
3)exceptions
4)changes in processor security state
5)changes in processor instruction set state
可以自己config的point:
1)cycle count between traced waypoint
2)global system timestamps
3)target addresses for taken direct branches
PTM集成中的架構(gòu)圖:
PTM模塊內(nèi)部的block diagram:
Processor input FIFO:buffers the output from processor trace interface until the execution of the
waypoint。
Processor與CTI和PTM的連接:
總結(jié)
以上是生活随笔為你收集整理的ETM and PTM的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: HMac基本介绍
- 下一篇: 【概率论与数理统计】全概率公式和贝叶斯公