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 110

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

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

powered by: WebSVN 2.1.0

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