mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 02:45:52 +00:00
Merge remote-tracking branch 'origin/master' into xaig
This commit is contained in:
commit
cec2292b0b
2 changed files with 16 additions and 0 deletions
|
@ -292,6 +292,18 @@ void json_import(Design *design, string &modname, JsonNode *node)
|
|||
if (port_wire == nullptr)
|
||||
port_wire = module->addWire(port_name, GetSize(port_bits_node->data_array));
|
||||
|
||||
if (port_node->data_dict.count("upto") != 0) {
|
||||
JsonNode *val = port_node->data_dict.at("upto");
|
||||
if (val->type == 'N')
|
||||
port_wire->upto = val->data_number != 0;
|
||||
}
|
||||
|
||||
if (port_node->data_dict.count("offset") != 0) {
|
||||
JsonNode *val = port_node->data_dict.at("offset");
|
||||
if (val->type == 'N')
|
||||
port_wire->start_offset = val->data_number;
|
||||
}
|
||||
|
||||
if (port_direction_node->data_string == "input") {
|
||||
port_wire->port_input = true;
|
||||
} else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue