![]()
SIMPLIS Parts
|
The Digital Comparator compares two digital buses and outputs the comparison results on the five output pins. The device outputs the five combinatorial possibilities, allowing the user to easily see the results of the comparison. The bus inputs can have between 2 and 32 bits, and can be formatted as unsigned, offset binary, or two's complement.
For a comparator with analog inputs and digital outputs, see the Comparator with Analog Inputs and Digital Outputs topic.
In this Topic Hide
Model Name: |
Digital Comparator |
|
Simulator: |
This device is compatible with the SIMPLIS simulator. |
|
Parts Selector |
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_COMPARATOR |
|
Symbols: |
||
Multiple Selections: |
Only one device at a time can be edited. |
To configure the digital comparator, follow these steps:
Label | Parameter Description |
Output Delay |
Delay from when the input state changes until the output changes |
Number of Bits |
Number of input bits to the comparator, the number of output bits will be 2 * Number of Bits |
Ground Ref |
Determines whether or not a device has a ground reference pin. |
Code |
Encoding scheme for binary inputs / outputs for the comparator |
Initial Condition |
To define the parameters for the interface between this digital component and each analog component connected directly to an input or output pin, follow these steps from the Edit AND/NAND Gate dialog box:
Label | Parameter Description | |||||||
Input Resistance |
Input resistance of each input pin |
|||||||
Threshold Hysteresis |
The Threshold (T) and Hysteresis (H) of the Schmitt trigger input buffer on each Digital Comparator input. To determine the low-to-high threshold (TH) and the high-to-low threshold (TL), substitute Threshold (T) and Hysteresis (H) in each of the following formulas :
|
|||||||
Output Resistance |
||||||||
Output High Voltage |
||||||||
Output Low Voltage |
An example using the digital comparator is a up/down counter with programmable limits. This example is described in the Other Counters Topic.
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_adder_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.
© 2015 simplistechnologies.com | All Rights Reserved