嵌入式开发者社区

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

作者: A_Eagle    时间: 2015-1-8 14:20
标题: OMAP-L138 JTAG仿真准确吗?
用的是创龙的OMAP-L138的板子和XDS100v3仿真器,用的方法是TSCL = 0;2 f6 T& t. c7 {- q
        TSCH = 0;. {" K4 L: u" {- o
        unsigned long long start,stop,overhead;7 Q6 P5 S+ P. F% O
        start = _itoll(TSCH,TSCL);
% c$ Z! T5 X/ Q2 S8 l, ]2 N        stop  = _itoll(TSCH,TSCL); 9 t/ }) ]+ V, ^
8 E) x' F6 d, G- Y
overhead = stop - start;
/ }6 e/ \% L7 ?printf("overhead run-time is %d\n",overhead);
* r1 Y+ p5 a" s. A/ S7 X
+ @) C& v' h$ g3 p- k1 gstart = _itoll(TSCH,TSCL);
7 M$ y4 z, d+ |) @# r8 o+ s7 M//here is function3 w. T9 g% e% b& |: A& B; d; v, t
function();
% Y3 Y! F% h1 k% Mstop = _itoll(TSCH,TSCL);* m2 @- J. {& H8 \+ V
printf("The function run-time time is %lu\n",(stop - start - overhead));
5 {- Y+ N$ D/ q% e! r* ?. t
1 B$ j1 a% J$ n9 X. L7 T# Q7 x/ ]9 X) ]/ P  A) }5 W
为什么每次测量出来的时间都不一致?测量出来的不是一个固定的值。
' B# w: \5 S: D0 ^0 ^& f
$ a0 T. U$ d8 j+ i% H3 K4 H
作者: A_Eagle    时间: 2015-1-8 15:46
问题已解决,JTAG仿真测量时间准确
" [" }8 W$ w, ]1 x8 b4 \
作者: 希望缄默    时间: 2015-1-9 09:31
{:soso_e103:}
" E: s; y: l: k: g* c8 ^/ J




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