summaryrefslogtreecommitdiff
path: root/cesar/common
diff options
context:
space:
mode:
authorNicolas Schodet2012-10-05 11:50:32 +0200
committerNicolas Schodet2012-10-19 15:17:45 +0200
commit4f0b2fdbcf35900d02c97339f43823ea9e577ccf (patch)
tree6622ab23c2dd43a4aef8b76fd3e51b420f220507 /cesar/common
parent819a98f9960a86e61f675d4cdeff7c45e5c74e7f (diff)
cesar/hal/phy/maximus: unify trace format with hal/phy, refs #3428
Diffstat (limited to 'cesar/common')
-rwxr-xr-xcesar/common/tools/vcd-trace12
1 files changed, 7 insertions, 5 deletions
diff --git a/cesar/common/tools/vcd-trace b/cesar/common/tools/vcd-trace
index 2280809723..14fcb799f5 100755
--- a/cesar/common/tools/vcd-trace
+++ b/cesar/common/tools/vcd-trace
@@ -96,11 +96,11 @@ while (<>)
date ($1, $t);
}
@fc_end_date = ($1, $t);
- } elsif (/^\[.+\] rx prepare short=true.*/) {
+ } elsif (/^\[.+\] rx prepare short/) {
next unless @fc_end_date;
print "sIDLE <\nsIDLE !\n";
@fc_end_date = ();
- } elsif (/^\[.+\] rx prepare short=false.*mod=(.+?) .* gil=(.+?) .*symb_nb=(.+)$/) {
+ } elsif (/^\[.+\] rx prepare mod=(.+?) .* gil=(.+?) symb_nb=(.+)$/) {
next unless @fc_end_date;
my $t = $fc_end_date[1];
my $gil = exists $gilpmod{$1} ? $gilpmod{$1} : $2;
@@ -112,8 +112,10 @@ while (<>)
}
print "sIDLE <\nsIDLE !\n";
@fc_end_date = ();
- } elsif (/^\[\.\] tx param mode=(.+?) short=(.+?) mod=(.+?) .*gil=(.+?)/) {
- %tx_param = (fc_mode => $1, short => $2, mod => $3, gil => $4);
+ } elsif (/^\[\.\] tx param mode=(.+?) mod=(.+?) .*gil=(.+?)/) {
+ %tx_param = (fc_mode => $1, short => 0, mod => $2, gil => $3);
+ } elsif (/^\[\.\] tx param short mode=(.+?)/) {
+ %tx_param = (fc_mode => $1, short => 1);
} elsif (/^\[\.\] tx symb_nb=(.*?)$/) {
$tx_symb_nb = $1;
} elsif (/^\[(.+)\] tx frame$/) {
@@ -131,7 +133,7 @@ while (<>)
date ($1, $t);
}
@fc_end_date = ($1, $t);
- if ($tx_param_current{short} eq 'true')
+ if ($tx_param_current{short})
{
print "sIDLE >\nsIDLE !\n";
%tx_param_current = ();