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

Subversion Repositories s1_core

[/] [s1_core/] [trunk/] [tools/] [src/] [TRACAN.txt] - 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
Simply RISC S1 Core - Tracan (Trace Analyzer)
2
=============================================
3
 
4
This small tool has been written to convert the waveforms of the
5
original OpenSPARC T1 simulation environment into a format similar
6
to the one used in the "sim.log" file generated by the S1 simulations.
7
 
8
To have it working you have to:
9
- have a working OpenSPARC T1 simulation environment;
10
- modify the top-level testbench cmpt_top.v to add the
11
  following lines:
12
 
13
    initial begin
14
      $dumpfile("trace.vcd");
15
      $dumpvars(2);
16
    end
17
 
18
- run the T1 simulations you want (give to the sims script
19
  the argument to not delete the results);
20
- open the resulting trace.vcd file with a text editor and
21
  look for lines similar to these ones:
22
 
23
    $var wire 124 " spc_pcx_data_pa [123:0] $end
24
    $var wire 145 $ cpx_spc_data_cx2 [144:0] $end
25
 
26
- if the chars after the numbers are different from the double
27
  quote and the dollar sign shown above, then you have to change
28
  the string used by the egrep command into the 'tracan' script;
29
  for instance if the two chars are 'A' and 'B' the line will
30
  become:
31
 
32
    egrep ' A$| B$' $1 | egrep -v x | ./tracan.bin
33
 
34
- then you can finally run the program: if the binary file
35
  tracan.bin does not exists it will be compiled with GCC;
36
- if everything goes right you will be able to use the command:
37
 
38
    tracan.sh PATH_TO_YOUR_TRACE_VCD_FILE
39
 
40
  and you will get the logfile on the console; a typical usage
41
  would be:
42
 
43
    tracan.sh trace.vcd > sim.log
44
 
45
- if you want to improve the script to automatically extract the
46
  ASCII symbol used in the VCD file for outgoing and incoming
47
  packets, please modify the tool and we'll be happy to mention
48
  your name into this file!
49
- Enjoy!
50
 
51
  The development team at Simply RISC LLP
52
 

powered by: WebSVN 2.1.0

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