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

Subversion Repositories s1_core

[/] [s1_core/] [trunk/] [docs/] [SIMULATION.txt] - Blame information for rev 114

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 114 albert.wat
S1 Core - Simulation Environment
2
================================
3 4 fafa1971
 
4
To run a simulation using the free software Icarus Verilog
5
simulator use the following commands:
6
 
7 111 albert.wat
  s1_sim_build icarus
8
  compile_test hello
9
  s1_sim_run icarus
10 4 fafa1971
 
11
If you want to use a commercial tool such as Synopsys VCS then
12
set up your PATH enviroment variable so that you are able to
13
find the "vcs" executable, and then type in the following
14
commands:
15
 
16 111 albert.wat
  s1_sim_build vcs
17
  compile_test hello
18
  s1_simrun vcs
19 4 fafa1971
 
20
Within this design the only visible difference between Icarus
21
and VCS is the speed: the commercial tool could be hundreds of
22
times faster than its FLOSS counterpart; but with Icarus if
23
you have time to wait for some minutes you will obtain exactly
24
the same results just using free software.
25
 
26
At the end of the simulation you can look at the logfile and
27
at the waveforms placed at the following paths:
28
 
29
  run/sim/icarus/sim.log
30
  run/sim/icarus/trace.vcd
31
 
32
  run/sim/vcs/sim.log
33
  run/sim/vcs/trace.vcd
34
 
35
Obviously if you do not have access to a commercial tool you
36
can use GTKWave to look at the waveforms: for instance from
37
the top-level directory just type in the following command:
38
 
39
  gtkwave run/sim/icarus/trace.vcd &
40
 
41
and then from "File|Read Save File" choose the file named
42
"tools/src/gtkwave.sav".
43
 

powered by: WebSVN 2.1.0

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