From 6afc2c75fdf73493d63c511322ce06dbaa4ab0d7 Mon Sep 17 00:00:00 2001 From: David Shah Date: Sun, 30 Sep 2018 15:12:06 +0100 Subject: ecp5: Adding carry helper functions Signed-off-by: David Shah --- common/design_utils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/design_utils.h') diff --git a/common/design_utils.h b/common/design_utils.h index 95975179..ccf2463b 100644 --- a/common/design_utils.h +++ b/common/design_utils.h @@ -82,6 +82,9 @@ template CellInfo *net_driven_by(const Context *ctx, const NetInfo } } +// Connect a net to a port +void connect_port(const Context *ctx, NetInfo *net, CellInfo *cell, IdString port_name); + void print_utilisation(const Context *ctx); NEXTPNR_NAMESPACE_END -- cgit v1.2.3 From a4ac174ccbc26eeef3cb49dab89658e2b5ecd90f Mon Sep 17 00:00:00 2001 From: David Shah Date: Mon, 1 Oct 2018 15:43:02 +0100 Subject: design_utils: Adding some design helper functions Signed-off-by: David Shah --- common/design_utils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common/design_utils.h') diff --git a/common/design_utils.h b/common/design_utils.h index ccf2463b..8a42d21f 100644 --- a/common/design_utils.h +++ b/common/design_utils.h @@ -85,6 +85,12 @@ template CellInfo *net_driven_by(const Context *ctx, const NetInfo // 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); + void print_utilisation(const Context *ctx); NEXTPNR_NAMESPACE_END -- cgit v1.2.3