SIMPLIS Parts

Digital Constant

The Digital Constant models a digital value which is held constant for the entire simulation. The digital constant value can be entered in hex, decimal, or binary format and can have between 1 and 32 bits.

In this Topic Hide

Model Name:

Digital Constant

Simulator:

This device is compatible with the SIMPLIS simulator.

Parts Selector
Menu Location:

Digital Functions | Functions

Symbol Library:

None - the symbol is automatically generated when placed or edited.

Model File:

None - the device model is generated before simulation.

Subcircuit Name:

SIMPLIS_DIGI1_D_CONSTANT

Symbols:

Multiple Selections:

Only one device at a time can be edited.

Editing the Digital Constant

To configure the digital constant, follow these steps:

  1. Double click the symbol on the schematic to open the editing dialog to the Parameters tab.
  2. Make the appropriate changes to the fields described in the table below the image.
Label Parameter Description

Value

Output value of the digital constant.

Format

Determines the input formatting of the VALUE parameter of a digital constant

Number of Bits

Number of output bits for this digital constant.

Usage

The digital constant is used whenever a digital signal is held constant for the entire simulation. Although using a DC source or a ground symbol will accomplish the same simulation results, the devices connected to the source or ground reference must have a Ground Ref pin. Using a DC source or a ground reference symbol on a device forces SIMPLIS to convert each input on the device from analog to digital, which can slow down the simulation.

When you use the digital constant instead of a DC source or a ground symbol, the inputs are treated as digital signals and the maximum simulation speed is achieved. For more information on maximizing simulation speed, see Maximizing Simulation Speed in Mixed-Mode Simulations

Subcircuit Parameters

Because the digital lookup table model is generated by a template script when the simulation is executed, there is no fixed model which can be inserted into a netlist. The template script for this device is simplis_make_constant_model.sxscr, which you, as a licensed user, can download in a zip archive of all built-in scripts.

To download this zip file, follow these steps:

Note: You will be prompted to log in with the user name and password given to you when you registered.

  1. Click here to go to the product-installation page on the SIMetrix website.
  2. Click Download Links in the first paragraph of the product-installation web page.
  3. Scroll down to the Built-in Scripts section.
  4. Right click on Download and select Save target as..., and then navigate to a location on your computer to save the zip file.