Skip to content
LIBRARY
Logical.Nor.md

Logical.Nor

Logical 'nor': y = not (u1 or u2).

The output is true if none of the inputs is true, otherwise the output is false.

This component extends from BlockComponents.Interfaces.PartialBooleanSI2SO

Usage

BlockComponents.Logical.Nor()

Connectors

  • u1 - This connector represents a boolean signal as an input to a component (BooleanInput)

  • u2 - This connector represents a boolean signal as an input to a component (BooleanInput)

  • y - This connector represents a boolean signal as an output from a component (BooleanOutput)

Behavior

Source

dyad
"""
Logical 'nor': y = not (u1 or u2).

The output is **true** if none of the inputs is **true**, otherwise the output is **false**.
"""
component Nor
  extends BlockComponents.Interfaces.PartialBooleanSI2SO
relations
  y = !(u1 or u2)
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://BlockComponents/Nor.svg"}
  }
}
end
Flattened Source
dyad
"""
Logical 'nor': y = not (u1 or u2).

The output is **true** if none of the inputs is **true**, otherwise the output is **false**.
"""
component Nor
  "Connector of first Boolean input signal"
  u1 = BooleanInput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -100, "y1": 150, "x2": 0, "y2": 250, "rot": 0}
      },
      "tags": []
    }
  }
  "Connector of second Boolean input signal"
  u2 = BooleanInput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -100, "y1": 710, "x2": 0, "y2": 810, "rot": 0}
      },
      "tags": []
    }
  }
  "Connector of Boolean output signal"
  y = BooleanOutput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
relations
  y = !(u1 or u2)
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://BlockComponents/Nor.svg"}
  }
}
end


Test Cases

No test cases defined.