Settings
Before using the Verilog interface, the following setup must be performed.
- Make sure a compiler exists on your system.
- For
Windows, this would be MingW or any other Windows gcc
compiler. The latest one is required. There are no path
settings for this compiler in VisualSim. The settings are done in the
Environment Variables of your Windows machine.
- For Linux, this would be g++ 4.0 or higher.
- Make sure a Verilog simulator exists and you have the ability to check out a license for it.
- Update the following lines in the vsconf.bat or vsconf.sh files:
- Remote_Address=127.0.0.1 - This is the IP address of the machine where the Verilog compiler is located.
- Port_Number=7200 - No change is required here.
- Make sure the root path to
the source location called “VS_C_Library” is set in the VisualSim.bat
(Windows) and VisualSim.sh (Linux).
- Set the following lines in
the VisualSim.bat (Windows) and VisualSim.sh (Linux) with the simulator
name and path to the simulation. For ModelSim, the values are shown
below:
- SimulatorName= ModelSim
- VERILOGPATH= D:\VisualSim\Tools\Modeltech_6.0
- Add a Verilog and a Verilog/blocks directory under the “VS_C_Library” directory.
Configuration for Verilog Simulator
- Select the Verilog Simulator for simulating the Verilog Code.
- Need to specify the Verilog Simulator and path for Verilog Simulator in the VisualSim.bat/VisualSim.sh
:: Verilog Simulator for VisualSim.bat
Add the below two lines based on the Verilog Simulator.
- Icarus verilog Simulator Configuration in VisualSim.bat
set SimulatorName=IcarusVerilog (If your are using Icarus Verilog Simulator, give the same name (IcarusVerilog is case sensitive)
set VERILOGPATH=D:\iverilog (This path could vary based on your system)
- ModelSim Simulator configuration in VisualSim.bat
set SimulatorName=ModelSim (If your are using ModelSim Verilog Simulator give the same name (ModelSim is case sensitive)
set VERILOGPATH=D:\ Modeltech_eval_6.1a (This path could vary based on your system)
:: Verilog Simulator for VisualSim.sh
Add the below two lines based on the Verilog Simulator
- Icarus verilog Simulator Configuration in VisualSim.bat
export
SimulatorName=IcarusVerilog (If your are using Icarus Verilog
Simulator, give the same name (IcarusVerilog is case sensitive)
export VERILOGPATH=/usr/bin (This path could vary based on your system)