URL
https://opencores.org/ocsvn/s1_core/s1_core/trunk
Subversion Repositories s1_core
[/] [s1_core/] [trunk/] [tools/] [src/] [TRACAN.txt] - Rev 113
Go to most recent revision | Compare with Previous | Blame | View Log
Simply RISC S1 Core - Tracan (Trace Analyzer)=============================================This small tool has been written to convert the waveforms of theoriginal OpenSPARC T1 simulation environment into a format similarto the one used in the "sim.log" file generated by the S1 simulations.To have it working you have to:- have a working OpenSPARC T1 simulation environment;- modify the top-level testbench cmpt_top.v to add thefollowing lines:initial begin$dumpfile("trace.vcd");$dumpvars(2);end- run the T1 simulations you want (give to the sims scriptthe argument to not delete the results);- open the resulting trace.vcd file with a text editor andlook for lines similar to these ones:$var wire 124 " spc_pcx_data_pa [123:0] $end$var wire 145 $ cpx_spc_data_cx2 [144:0] $end- if the chars after the numbers are different from the doublequote and the dollar sign shown above, then you have to changethe string used by the egrep command into the 'tracan' script;for instance if the two chars are 'A' and 'B' the line willbecome:egrep ' A$| B$' $1 | egrep -v x | ./tracan.bin- then you can finally run the program: if the binary filetracan.bin does not exists it will be compiled with GCC;- if everything goes right you will be able to use the command:tracan.sh PATH_TO_YOUR_TRACE_VCD_FILEand you will get the logfile on the console; a typical usagewould be:tracan.sh trace.vcd > sim.log- if you want to improve the script to automatically extract theASCII symbol used in the VCD file for outgoing and incomingpackets, please modify the tool and we'll be happy to mentionyour name into this file!- Enjoy!The development team at Simply RISC LLP
Go to most recent revision | Compare with Previous | Blame | View Log
