QNet¶
- class QNet[source]¶
Use DataFrame to hold Net Information about the connected pins of a design.
There is one unique net_id for each connected pin.
Hold the net information of all the USED pins within a design.
Attributes
- net_info¶
Provide table of all nets within the design.
- Returns:
Table of the net of pins within design.
- Return type:
pd.DataFrame
- qnet_latest_assigned_id¶
Return unique number for each net in table.
- Returns:
For user of the design class to know the lastest id added to _net_info.
- Return type:
Methods
- add_pins_to_table(comp1_id: int, pin1_name: str, comp2_id: int, pin2_name: str) int[source]¶
Add two entries into the _net_info table. If either component/pin is already in net_info, the connection will NOT be added to the net_info.
- delete_all_pins_for_component(component_id_to_remove: int) set[source]¶
Delete all the pins for a given component id.
- delete_net_id(net_id_to_remove: int)[source]¶
Removes the two entries with net_id_to_remove. If id is in _net_info, the entry will be removed.
- Parameters:
net_id_to_remove (int) – The id to remove.