Sim+ : Creating and Executing Simulation

Sim+ is a 'terminal application' - which means there is no graphical user interface. It is recommended to run the Sim+ translator (as well as the C++ compiler and the executable simulation program) from a DOS window.

If you follow the installation instructions, then you should have the following directories on your hard drive:

c:\simplus\bin
c:\simplus\work\orcadsdt
c:\simplus\work\actcad
c:\simplus\work\microsim

First thing after you open a DOS window, you should run the batch file 'c:\simplus\bin\setenv.bat'
this will set the PATH and other environment variables.

Depending on the EDA package you are using, you should change directory to one of the 'c:\simplus\work\...' subdirectories, and run one of the translation/compilation batch files -

Batch file EDA package
transsdt.bat OrCAD SDT
transact.bat Aldec Active-CAD
microsim.bat MicroSim Design Lab

All these batch files are located in 'c:\simplus\bin' , it is recommended that you look at the appropriate batch file and understand it.

Note: the translation and compilation can only take place after the simulated system's netlist have been created, the above batch files assume certain name and path for the netlist files -

EDA Package netlist file full name (including path)
OrCAD SDT c:\simplus\systems\OrCAD\SDT\systemname\system.net
Aldec Active-CAD c:\simplus\systems\ActCAD\systemname\systemname.net
MicroSim Design Lab c:\simplus\systems\MicroSim\systemname\top.tan

remember to replace systemname with the actual name of the system you wish to simulate.
These batch files also copy the 'user.h' file (if exists) from the netlist file directory to the working directory, so you may maintain a customized header file for each of the simulated systems you are working on, and they will automatically be used by the batch file.

Example:

To create and run the 16 points QAM simulation from the example pages -

  1. Use OrCAD SDT to create the system's netlist in c:\simplus\systems\OrCAD\SDT\qam16\system.net
    Also use the 'create label report' option, this will create 'c:\simplus\systems\OrCAD\SDT\qam16\system.lab' which Sim+ reads the '@GLOBAL ...' labels from. If you do not generate a label report, you may also modify 'user.h' and add #define directives to assign values to BITS_PER_SYMBOL, NG, and MAXERR
  2. Open a DOS window
  3. Run 'c:\simplus\bin\setenv.bat'
  4. Change directory to 'c:\simplus\work\orcadsdt'
  5. Run 'transsdt qam16' - this will create 'system.exe' (you must have DJGPP (C++ compiler) installed)
  6. Run 'system.exe'
  7. Use Matlab to load and view simulations results. for example -
    cd \simplus\work\orcadsdt
    load 'pse.sig';
    plot(pse);

    to plot the probability for symbol error

[abSim] [Sim+] [Examples] [Download] [Feedback]

This page is hosted by