diff options
author | Eddie Hung <eddie.hung+gitlab@gmail.com> | 2018-07-28 19:52:17 +0000 |
---|---|---|
committer | Eddie Hung <eddie.hung+gitlab@gmail.com> | 2018-07-28 19:52:17 +0000 |
commit | 7c1a7e7596cfdf1718e8c479cb281a3cedf0ec57 (patch) | |
tree | 6f21160deed301364cd866adf9d8dd2244e7c995 /json/jsonparse.cc | |
parent | 48b9d05d85dd2192b194cc7f931dfd2ac7663778 (diff) | |
parent | 0eaa92bd6a160696c2f221501d610c99d9231bef (diff) | |
download | nextpnr-7c1a7e7596cfdf1718e8c479cb281a3cedf0ec57.tar.gz nextpnr-7c1a7e7596cfdf1718e8c479cb281a3cedf0ec57.tar.bz2 nextpnr-7c1a7e7596cfdf1718e8c479cb281a3cedf0ec57.zip |
Merge branch 'redist_slack' into 'redist_slack'
Redist slack
See merge request eddiehung/nextpnr!13
Diffstat (limited to 'json/jsonparse.cc')
-rw-r--r-- | json/jsonparse.cc | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/json/jsonparse.cc b/json/jsonparse.cc index 3bcbe285..450556e8 100644 --- a/json/jsonparse.cc +++ b/json/jsonparse.cc @@ -263,21 +263,6 @@ void vcc_net(Context *ctx, NetInfo *net) ctx->cells[cell->name] = std::move(cell); } -void floating_net(Context *ctx, NetInfo *net) -{ - PortInfo port_info; - PortRef port_ref; - - port_info.name = ctx->id(net->name.str(ctx) + ".floating"); - port_info.net = net; - port_info.type = PORT_OUT; - - port_ref.cell = NULL; - port_ref.port = port_info.name; - - net->driver = port_ref; -} - // // is_blackbox // @@ -475,10 +460,10 @@ void json_import_ports(Context *ctx, const string &modname, const std::vector<Id } else if (wire_node->data_string.compare(string("x")) == 0) { - floating_net(ctx, net.get()); - log_warning(" Floating wire node value, " + ground_net(ctx, net.get()); + log_info(" Floating wire node value, " "\'%s\' of port \'%s\' " - "in cell \'%s\' of module \'%s\'\n", + "in cell \'%s\' of module \'%s\'\n, converted to zero driver", wire_node->data_string.c_str(), port_name.c_str(), obj_name.c_str(), modname.c_str()); } else |