Logic Gates
The object that describes how to configure logic gate primitive.
Example
flux.on("setup", () => {
flux.simulationModel = {
type: "xOrGate",
highVoltage: 4.5,
map_input_one_to_terminal_uid: "input_one uid",
map_input_two_to_terminal_uid: "input_two uid",
map_output_to_terminal_uid: "output uid"
}
})
Fields
Name | Type | Description |
---|---|---|
type | Readonly | The type of gate, taking the following possible values: xOrGate , orGate , norGate , andGate , nandGate . |
highVoltage | number | (V) Determines the threshold and output voltage. |
map_input_one_to_terminal_uid | Readonly | The terminal ID corresponding to the gate's first input. |
map_input_two_to_terminal_uid | Readonly | The terminal ID corresponding to the gate's second input. |
map_output_to_terminal_uid | Readonly | The terminal ID corresponding to the gate's output. |
Was this page helpful?