diff options
author | gatecat <gatecat@ds0.me> | 2022-02-18 12:07:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-18 12:07:49 +0000 |
commit | 347ba3afb3f541edc594c8bc276cce481c7a7e03 (patch) | |
tree | 28483964fb3c92bc104ab6162d1c9196651ced26 /common/design_utils.h | |
parent | 61d1db16be2c68cf6ae8b4d2ff3266b5c7086ad2 (diff) | |
parent | 6a32aca4ac8705b637943c236cedd2f36422fb21 (diff) | |
download | nextpnr-347ba3afb3f541edc594c8bc276cce481c7a7e03.tar.gz nextpnr-347ba3afb3f541edc594c8bc276cce481c7a7e03.tar.bz2 nextpnr-347ba3afb3f541edc594c8bc276cce481c7a7e03.zip |
Merge pull request #919 from YosysHQ/gatecat/netlist-iii
refactor: New member functions to replace design_utils
Diffstat (limited to 'common/design_utils.h')
-rw-r--r-- | common/design_utils.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/common/design_utils.h b/common/design_utils.h index 82c9ac45..63cb71d7 100644 --- a/common/design_utils.h +++ b/common/design_utils.h @@ -89,34 +89,8 @@ inline bool port_used(CellInfo *cell, IdString port_name) return port_fnd != cell->ports.end() && port_fnd->second.net != nullptr; } -// Connect a net to a port -void connect_port(const Context *ctx, NetInfo *net, CellInfo *cell, IdString port_name); - -// Disconnect a net from a port -void disconnect_port(const Context *ctx, CellInfo *cell, IdString port_name); - -// Connect two ports together -void connect_ports(Context *ctx, CellInfo *cell1, IdString port1_name, CellInfo *cell2, IdString port2_name); - -// Rename a port if it exists on a cell -void rename_port(Context *ctx, CellInfo *cell, IdString old_name, IdString new_name); - -// Rename a net without invalidating pointers to it -void rename_net(Context *ctx, NetInfo *net, IdString new_name); - void print_utilisation(const Context *ctx); -// Disconnect a bus of nets (if connected) from old, and connect it to the new ports -void replace_bus(Context *ctx, CellInfo *old_cell, IdString old_name, int old_offset, bool old_brackets, - CellInfo *new_cell, IdString new_name, int new_offset, bool new_brackets, int width); - -// Copy a bus of nets (if connected) from old, and connect it to the new ports -void copy_bus(Context *ctx, CellInfo *old_cell, IdString old_name, int old_offset, bool old_brackets, - CellInfo *new_cell, IdString new_name, int new_offset, bool new_brackets, int width); - -// Copy a port from one cell to another -void copy_port(Context *ctx, CellInfo *old_cell, IdString old_name, CellInfo *new_cell, IdString new_name); - NEXTPNR_NAMESPACE_END #endif |