or2 Component

The or2 logic component has two inputs and one output. When either input is ON the output will be ON.

Table 1. Truth Table
or2.n.in0 or2.n.in1 or2.n.out

False

False

False

True

False

True

False

True

True

True

True

True

Loading or2 in HAL
loadrt or2
addf or2.0 any-thread
HAL Pins
or2.n.in0
or2.n.in1
or2.n.out

Examples

Using or2 with two outputs
# hal example
net signal-a output-a => or2.0.in0
net signal-b output-b => or2.0.in1
net or-out or2.0.out => output
or2out.png
Figure 1: Output Example
Using or2 with two inputs
# hal example
net signal-a input-a => or2.0.in0
net signal-b input-b => or2.0.in1
net or-out or2.0.out => input
or2in.png
Figure 2: Input Example