嵌入式开发者社区

标题: OMAP-L138 JTAG仿真准确吗? [打印本页]

作者: A_Eagle    时间: 2015-1-8 14:20
标题: OMAP-L138 JTAG仿真准确吗?
用的是创龙的OMAP-L138的板子和XDS100v3仿真器,用的方法是TSCL = 0;
) e# E3 n( }' z% P6 e8 [. D. T" S0 d        TSCH = 0;9 Q7 @, s5 P* J  e+ J2 t
        unsigned long long start,stop,overhead;
  l$ Q/ e( d6 z. V+ V. U        start = _itoll(TSCH,TSCL);
- v! w( t! H2 j! C2 H# @        stop  = _itoll(TSCH,TSCL); 2 ~2 G' u0 x/ Z  H
; ]; O2 Z0 S0 @* G# W; R
overhead = stop - start;
! M6 w3 f: B1 c$ s& S" _+ L7 t: K, p: Eprintf("overhead run-time is %d\n",overhead);
0 s" X4 A8 ]3 }' _5 ?
7 ]& q3 l: P) z3 O* L7 [start = _itoll(TSCH,TSCL);
8 Z5 }& n! g* e& \+ ~7 q; i3 w8 N+ V0 w3 g//here is function
. @6 a3 \; S6 C5 ^5 ~8 vfunction();' P* c/ v  y/ j, t$ O; L
stop = _itoll(TSCH,TSCL);
& q! w! _# y1 Iprintf("The function run-time time is %lu\n",(stop - start - overhead));
2 [5 Z7 Z. x, K% F, f& @
/ `$ K1 B0 z/ U  C
; a# U: w6 d3 [6 l$ R  j7 [" ^为什么每次测量出来的时间都不一致?测量出来的不是一个固定的值。
8 c9 x) n6 d; ^0 m- j* h5 c  h7 \) H1 w/ D6 H

作者: A_Eagle    时间: 2015-1-8 15:46
问题已解决,JTAG仿真测量时间准确' |& }* j8 T- W

作者: 希望缄默    时间: 2015-1-9 09:31
{:soso_e103:}, L6 t  h' Y0 h





欢迎光临 嵌入式开发者社区 (https://www.51ele.net/) Powered by Discuz! X3.4