bus_tick block question: each tick = ? system clock ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

bus_tick block question: each tick = ? system clock ?

跳至解决方案
1,390 次查看
gzleng
Contributor II

hello, 

i'm trying to calculate the cpu usage. in the process i need to answer the question about "how much time elapsed by 1 bus_tick?" for example, i'm using an external 8mhz crystal on a s32k144 evb with 80Mhz clock. i placed a bus_tick block and read back every second. the diff between reading is 20,000,000 counts per second.. so does it mean there is a /4 from the sys clock? is that configurable?

 

thanks

gz

0 项奖励
回复
1 解答
1,336 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @gzleng.,

The profiler uses a hardware timer, PIT channel 3, configured to run at 20MHz to count the time elapsed of the subsystem where the profiler blocks are being added. Based on this frequency, a tick is 50 ns long.

Unfortunately, the timer configuration cannot be modified by the user, and it is inserted and configured in the generated code by the toolbox automatically.

Also, I want to recommend you have a look at this particular Community thread. Here we had a great discussion regarding the profiling capabilities and usage: https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32k144-Simulation-Time/m-p/1196373#M54... 

Hope this helps,
Marius

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,334 次查看
gzleng
Contributor II

thanks.. great information

0 项奖励
回复
1,337 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @gzleng.,

The profiler uses a hardware timer, PIT channel 3, configured to run at 20MHz to count the time elapsed of the subsystem where the profiler blocks are being added. Based on this frequency, a tick is 50 ns long.

Unfortunately, the timer configuration cannot be modified by the user, and it is inserted and configured in the generated code by the toolbox automatically.

Also, I want to recommend you have a look at this particular Community thread. Here we had a great discussion regarding the profiling capabilities and usage: https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32k144-Simulation-Time/m-p/1196373#M54... 

Hope this helps,
Marius

0 项奖励
回复