aboutsummaryrefslogtreecommitdiffstats
path: root/common/design_utils.h
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2022-02-18 10:52:37 +0000
committergatecat <gatecat@ds0.me>2022-02-18 11:13:18 +0000
commit6a32aca4ac8705b637943c236cedd2f36422fb21 (patch)
tree28483964fb3c92bc104ab6162d1c9196651ced26 /common/design_utils.h
parent61d1db16be2c68cf6ae8b4d2ff3266b5c7086ad2 (diff)
downloadnextpnr-6a32aca4ac8705b637943c236cedd2f36422fb21.tar.gz
nextpnr-6a32aca4ac8705b637943c236cedd2f36422fb21.tar.bz2
nextpnr-6a32aca4ac8705b637943c236cedd2f36422fb21.zip
refactor: New member functions to replace design_utils
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'common/design_utils.h')
-rw-r--r--common/design_utils.h26
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