1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-04-28 12:57:13 +00:00

ecp5: Helper functions for distributed RAM support

Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
David Shah
2018-10-01 15:23:12 +01:00
parent 931c78b1bb
commit d770eb672f
4 changed files with 66 additions and 0 deletions

View File

@@ -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;