Logic Blocks

Make the conditions clear.

Review logical components in the general-block library. Keep input types and documented output behavior in view when building a condition.

Logical Block Models


Xor

File: general_blocks/Logical/Xor.sim
Description
The model to perform a logical XOR (exclusive - or) on the two input values.
For all logical operations, zero represents FALSE and any nonzero value
represents TRUE.
Ports

Input Ports

  • in1     Data Type: INTEGER
  • in2     Data Type: INTEGER

Output Ports

  • out Data Type: INTEGER

Parameters

  • none

True

True

File: general_blocks/Logical/True.sim
Description
The model which emits a TRUE (nonzero) output when it is triggered.
Ports

Input Ports

  • trigger     Data Type: TRIGGER

Output Ports

  • out Data Type: INTEGER

Parameters

  • none

Or

Or

File: general_blocks/Logical/Or.sim
Description
The model to logically OR the two input values.
Ports

Input Ports

  • in1     Data Type: INTEGER
  • in2     Data Type: INTEGER

Output Ports

  • out Data Type: INTEGER

Parameters

  • none

Nxor

Nxor

File: general_blocks/Logical/Nxor.sim
Description
The model to perform a logical NXOR on two input values. NXOR is
defined to be: NOT(in1 EXOR in2). Output out will be a logical true
(nonzero) only when both inputs have the same logical value.
Ports

Input Ports

  • in1     Data Type: INTEGER
  • in2     Data Type: INTEGER

Output Ports

  • out Data Type: INTEGER

Parameters

  • none

Not

Not

File: general_blocks/Logical/Not.sim

Description
The model to perform a logical NOT operation on a single input value.

Ports

Input Ports

  • in     Data Type: INTEGER

Output Ports

  • out Data Type: INTEGER

Parameters

  • none

Nor

Nor

File: general_blocks/Logical/Nor.sim

Description
The model to perform the logical NOR operation on two input values.
Ports

Input Ports

  • in1     Data Type: INTEGER
  • in2     Data Type: INTEGER

Output Ports

  • out Data Type: INTEGER

Parameters

  • none

Nand

Nand

File: general_blocks/Logical/Nand.sim

Description
The model to perform the logical NAND operation on the two input values.
Ports

Input Ports

  • in1     Data Type: INTEGER
  • in2     Data Type: INTEGER

Output Ports

  • out     Data Type: INTEGER

Parameters

  • none

False

False

File: general_blocks/Logical/False.sim
Description
The model which emits a FALSE (zero) output each time it is triggered.
Ports

Input Ports

  • trigger     Data Type: TRIGGER

Output Ports

  • out
    Data Type: INTEGER

Parameters

  • none

And

And

File: general_blocks/Logical/And.sim
Description
The model to perform a logical AND of the two input values. For the
out to be TRUE (non zero), both in1 AND in2 must be TRUE (nonzero).
Ports

Input Ports

  • in1     Data Type: INTEGER
  • in2     Data Type: INTEGER

Output Ports

  • out Data Type: INTEGER

Parameters

  • none

This page is an editorial rewrite of source documentation. Historical status, availability, and platform notes are not independently verified for a current release. Technical examples are reference material, not a live simulator.