From d770eb672fcaf303d391d4fb22e57b13dd130ca5 Mon Sep 17 00:00:00 2001 From: David Shah Date: Mon, 1 Oct 2018 15:23:12 +0100 Subject: ecp5: Helper functions for distributed RAM support Signed-off-by: David Shah --- common/design_utils.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common') diff --git a/common/design_utils.cc b/common/design_utils.cc index 7ad7f749..e3051d20 100644 --- a/common/design_utils.cc +++ b/common/design_utils.cc @@ -76,6 +76,8 @@ void print_utilisation(const Context *ctx) // Connect a net to a port void connect_port(const Context *ctx, NetInfo *net, CellInfo *cell, IdString port_name) { + if (net == nullptr) + return; PortInfo &port = cell->ports.at(port_name); NPNR_ASSERT(port.net == nullptr); port.net = net; -- cgit v1.2.3