OpenCores
URL https://opencores.org/ocsvn/s1_core/s1_core/trunk

Subversion Repositories s1_core

[/] [s1_core/] [trunk/] [tools/] [bin/] [tracan.sh] - Blame information for rev 113

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 113 albert.wat
#!/bin/bash -e
2
 
3
# Take from the trace.vcd file (passed as argument)
4
# only the lines of outgoing and incoming packets
5
# (read README.txt for details).
6
 
7
if [ $# != 1 ]; then
8
  echo "Tracan - Trace Analyzer"
9
  echo "(C) 2006 by Simply RISC"
10
  echo "Usage:"
11
  echo "      tracan <VCDFILE>"
12
  echo ""
13
  exit 1
14
fi
15
 
16
# VCD symbols as defined in tracan.h
17
#const char VCD_ID_PCX_REQ   = '!';
18
#const char VCD_ID_PCX_ATOM  = '^';
19
#const char VCD_ID_PCX_DATA  = '"';
20
#const char VCD_ID_PCX_GRANT = 'f';
21
#const char VCD_ID_CPX_READY = '#';
22
#const char VCD_ID_CPX_DATA  = '$';
23
egrep ' \!$|^1\^$| "$| f$| #$| \$$' $1 | egrep -v "x|b00000 " | sed -e 's/^b//g' | sed -e 's/1^/1 ^/g' | tracan.bin
24
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.