URL
https://opencores.org/ocsvn/s1_core/s1_core/trunk
[/] [s1_core/] [trunk/] [tools/] [bin/] [tracan.sh] - Diff between revs 113 and 114
Only display areas with differences |
Details |
Blame |
View Log
Rev 113 |
Rev 114 |
#!/bin/bash -e
|
#!/bin/bash -e
|
|
|
# Take from the trace.vcd file (passed as argument)
|
# Take from the trace.vcd file (passed as argument)
|
# only the lines of outgoing and incoming packets
|
# only the lines of outgoing and incoming packets
|
# (read README.txt for details).
|
# (read README.txt for details).
|
|
|
if [ $# != 1 ]; then
|
if [ $# != 1 ]; then
|
echo "Tracan - Trace Analyzer"
|
echo "Tracan - Trace Analyzer"
|
echo "(C) 2006 by Simply RISC"
|
|
echo "Usage:"
|
echo "Usage:"
|
echo " tracan <VCDFILE>"
|
echo " tracan <VCDFILE>"
|
echo ""
|
echo ""
|
exit 1
|
exit 1
|
fi
|
fi
|
|
|
# VCD symbols as defined in tracan.h
|
# VCD symbols as defined in tracan.h
|
#const char VCD_ID_PCX_REQ = '!';
|
#const char VCD_ID_PCX_REQ = '!';
|
#const char VCD_ID_PCX_ATOM = '^';
|
#const char VCD_ID_PCX_ATOM = '^';
|
#const char VCD_ID_PCX_DATA = '"';
|
#const char VCD_ID_PCX_DATA = '"';
|
#const char VCD_ID_PCX_GRANT = 'f';
|
#const char VCD_ID_PCX_GRANT = 'f';
|
#const char VCD_ID_CPX_READY = '#';
|
#const char VCD_ID_CPX_READY = '#';
|
#const char VCD_ID_CPX_DATA = '$';
|
#const char VCD_ID_CPX_DATA = '$';
|
egrep ' \!$|^1\^$| "$| f$| #$| \$$' $1 | egrep -v "x|b00000 " | sed -e 's/^b//g' | sed -e 's/1^/1 ^/g' | tracan.bin
|
egrep ' \!$|^1\^$| "$| f$| #$| \$$' $1 | egrep -v "x|b00000 " | sed -e 's/^b//g' | sed -e 's/1^/1 ^/g' | tracan.bin
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.