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

Subversion Repositories s1_core

[/] [s1_core/] [trunk/] [docs/] [SIMULATION.txt] - Rev 114

Compare with Previous | Blame | View Log

S1 Core - Simulation Environment
================================

To run a simulation using the free software Icarus Verilog
simulator use the following commands:

  s1_sim_build icarus
  compile_test hello
  s1_sim_run icarus

If you want to use a commercial tool such as Synopsys VCS then
set up your PATH enviroment variable so that you are able to
find the "vcs" executable, and then type in the following
commands:

  s1_sim_build vcs
  compile_test hello
  s1_simrun vcs

Within this design the only visible difference between Icarus
and VCS is the speed: the commercial tool could be hundreds of
times faster than its FLOSS counterpart; but with Icarus if
you have time to wait for some minutes you will obtain exactly
the same results just using free software.

At the end of the simulation you can look at the logfile and
at the waveforms placed at the following paths:

  run/sim/icarus/sim.log
  run/sim/icarus/trace.vcd

  run/sim/vcs/sim.log
  run/sim/vcs/trace.vcd

Obviously if you do not have access to a commercial tool you
can use GTKWave to look at the waveforms: for instance from
the top-level directory just type in the following command:

  gtkwave run/sim/icarus/trace.vcd &

and then from "File|Read Save File" choose the file named
"tools/src/gtkwave.sav".

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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