From 6a32aca4ac8705b637943c236cedd2f36422fb21 Mon Sep 17 00:00:00 2001 From: gatecat Date: Fri, 18 Feb 2022 10:52:37 +0000 Subject: refactor: New member functions to replace design_utils Signed-off-by: gatecat --- common/design_utils.h | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'common/design_utils.h') 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 -- cgit v1.2.3