skidl.netpinlist module¶
Specialized list for handling nets, pins, and buses.
This module provides the NetPinList class, which is a specialized list that handles collections of pins and nets. It supports operations for connecting pins and nets in series or parallel configurations and provides access to common properties across all pins and nets in the list.
- class skidl.netpinlist.NetPinList(iterable=(), /)[source]¶
Bases:
listSpecialized list for handling collections of nets and pins.
NetPinList extends the Python list with additional functionality for working with collections of pins and nets. It handles bus expansion and provides operations to connect nets and pins in series or parallel.
- property aliases¶
Get the aliases for this NetPinList.
For NetPinList, no aliases are allowed, so returns an empty Alias object.
- Returns:
An empty Alias object.
- property circuit¶
Get the circuit the pins/nets are members of.
- Returns:
The Circuit object that the pins/nets belong to.
- Raises:
ValueError – If pins/nets belong to different circuits.
- create_network()[source]¶
Create a network from a list of pins and nets.
- Returns:
A Network object created from the pins and nets in this list.
- Raises:
ValueError – If the list has more than 2 items.
- property do_erc¶
Get the electrical rule checking status for pins/nets in the list.
- Raises:
NotImplementedError – This property can only be set or deleted, not read.
- property drive¶
Get the electrical rule checking status for pins/nets in the list.
- Raises:
NotImplementedError – This property can only be set or deleted, not read.
- property width¶
Return the width (number of pins/nets) in this list.
- Returns:
An integer representing the number of pins/nets after bus expansion.
