嵌入式开发者社区
标题:
OMAP-L138 JTAG仿真准确吗?
[打印本页]
作者:
A_Eagle
时间:
2015-1-8 14:20
标题:
OMAP-L138 JTAG仿真准确吗?
用的是创龙的OMAP-L138的板子和XDS100v3仿真器,用的方法是TSCL = 0;
: [* n. t4 b# C, |8 n
TSCH = 0;
0 S: Q! d8 r( x6 q3 T
unsigned long long start,stop,overhead;
# g: A' G! N& E& N4 P
start = _itoll(TSCH,TSCL);
! l- K% ^& W1 y) i0 z
stop = _itoll(TSCH,TSCL);
, Q6 j0 p5 U, ^& b& y
& Q" g5 {% o5 L' ^
overhead = stop - start;
) A, v5 [4 g, |0 \: z) W' j
printf("overhead run-time is %d\n",overhead);
; m3 `* i0 G+ u
" A6 w6 ]3 l0 [4 \! k3 X
start = _itoll(TSCH,TSCL);
/ B, [3 e7 c' h6 @. h4 G
//here is function
+ ?6 r6 r7 d9 g
function();
) w, f. m$ r, e. V% L3 ~: q
stop = _itoll(TSCH,TSCL);
/ u3 R. w% H& ]7 J% ^ m
printf("The function run-time time is %lu\n",(stop - start - overhead));
! e$ }2 g+ p8 l; k' ]# C
) a7 Z* P& [( u0 z# \) H
2 f. _# `8 i# t+ U& o
为什么每次测量出来的时间都不一致?测量出来的不是一个固定的值。
1 X: ^1 L( t3 V% B5 f# g
$ V2 S- N5 c! b# ~* j$ b% V
作者:
A_Eagle
时间:
2015-1-8 15:46
问题已解决,JTAG仿真测量时间准确
" H6 B$ d2 D2 p% K3 I% t1 q7 R
作者:
希望缄默
时间:
2015-1-9 09:31
{:soso_e103:}
; y7 z. `3 v; a6 d2 ~9 d" d$ v9 P. S9 x
欢迎光临 嵌入式开发者社区 (https://www.51ele.net/)
Powered by Discuz! X3.4