diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-25 16:16:02 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-25 16:16:02 +0200 |
commit | 069d78ab804fe53f21c641889035f30b3b6b8245 (patch) | |
tree | b12ea45d5a3881d6f3135f3422686b529f8bb624 /json | |
parent | 6de8b4ef7d5b6d04b6292e86c6a431c6985cc392 (diff) | |
download | nextpnr-069d78ab804fe53f21c641889035f30b3b6b8245.tar.gz nextpnr-069d78ab804fe53f21c641889035f30b3b6b8245.tar.bz2 nextpnr-069d78ab804fe53f21c641889035f30b3b6b8245.zip |
add cells to a cells collection
Diffstat (limited to 'json')
-rw-r--r-- | json/jsonparse.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/json/jsonparse.cc b/json/jsonparse.cc index 463efdd2..824ce15e 100644 --- a/json/jsonparse.cc +++ b/json/jsonparse.cc @@ -236,6 +236,7 @@ NetInfo *ground_net(Context *ctx, NetInfo *net) cell->ports[port_info.name] = port_info; + ctx->cells[cell->name] = cell; return net; } @@ -259,6 +260,7 @@ NetInfo *vcc_net(Context *ctx, NetInfo *net) cell->ports[port_info.name] = port_info; + ctx->cells[cell->name] = cell; return net; } |