json: Fixing ports set to 'x'
Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
parent
b9d774041b
commit
95ac838654
@ -263,21 +263,6 @@ void vcc_net(Context *ctx, NetInfo *net)
|
|||||||
ctx->cells[cell->name] = std::move(cell);
|
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
|
// 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) {
|
} else if (wire_node->data_string.compare(string("x")) == 0) {
|
||||||
|
|
||||||
floating_net(ctx, net.get());
|
ground_net(ctx, net.get());
|
||||||
log_warning(" Floating wire node value, "
|
log_info(" Floating wire node value, "
|
||||||
"\'%s\' of port \'%s\' "
|
"\'%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());
|
wire_node->data_string.c_str(), port_name.c_str(), obj_name.c_str(), modname.c_str());
|
||||||
|
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user