gates module#

class GatePort(num_inputs)[source]#

Bases: Port

N-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

class GateProvides(output, inputs)[source]#

Bases: Container, Generic

Gate Bundle Provider

This is a container to add provides for a gate bundle. >>> self.gate_provides = GateProvides(self.output, self.inputs) >>> gate_port = self.require(GatePort(len(self.inputs))))

Parameters: