circuitsascode.interfaces.pmod module

PMOD(TM) Plugs & Sockets.

Warning

The pin numbering that Digilent uses for the PMOD connectors is completely different from the numbering used by the KiCad footprints, so use the pin names when assigning connections.

Note

GND/VCC pins on a PMOD plug usually serve as power inputs to a PMOD board. Therefore, these pins feed power to parts on the PMOD board so they are assigned to be POWER OUTPUTS w.r.t. on-board parts.

GND/VCC pins on a PMOD socket usually serve as power outputs from a main board to a PMOD board that is inserted in the socket. Therefore, these pins feed power from the main board to the PMOD board so they are assigned to be POWER INPUTS because some part on the main board has to supply power to them.

Example

>>> from circuitsascode.interfaces.pmod import *
>>> j1 = pmod_plug_6()
>>> j2 = pmod_socket_6()
>>> j3 = pmod_plug_12()
>>> j4 = pmod_socket_12()
>>>
>>> j1["io[0:3]"] += j2["io[0:3]"]
>>> j3["io[0:7]"] += j4["io[0:7]"]
>>>
>>> vcc, gnd = Net("VCC"), Net("GND")
>>>
>>> vcc += j1["VCC"], j2["VCC"], j3["VCC"], j4["VCC"]
>>> gnd += j1["GND"], j2["GND"], j3["GND"], j4["GND"]
circuitsascode.interfaces.pmod.pmod_plug_12()[source]

Returns a 12-pin (2x6) PMOD plug (male header).

Parameters

None

Returns

A Part object for a 12-pin (2x6) PMOD plug (male header).

circuitsascode.interfaces.pmod.pmod_plug_6()[source]

Returns a 6-pin (1x6) PMOD plug (male header).

Parameters

None

Returns

A Part object for a 6-pin (1x6) PMOD plug (male header).

circuitsascode.interfaces.pmod.pmod_socket_12()[source]

Returns a 12-pin (2x6) PMOD socket (female header).

Parameters

None

Returns

A Part object for a 12-pin (2x6) PMOD socket (female header).

circuitsascode.interfaces.pmod.pmod_socket_6()[source]

Returns a 6-pin (1x6) PMOD socket (female header).

Parameters

None

Returns

A Part object for a 6-pin (1x6) PMOD socket (female header).