gates module#
- class GatePort(num_inputs)[source]#
Bases:
PortN-Input Logic Gate Bundle
This is the base bundle implementation for a logic gate and is intended to drive the interface for gate bundle definitions.
This definition is not specific to the function of the gate. It is compatible with AND, OR, and other gates, as long as the gate has one output. This is sufficient for most applications.
- Parameters:
num_inputs (
int) – number of input pins to the gate
- inputs#
Gate Inputs
- output#
Gate Output