mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-19 16:39:39 +00:00
Refactored uses of log_id()
This commit is contained in:
parent
89d83a3410
commit
e41b969da2
186 changed files with 1219 additions and 1220 deletions
|
|
@ -224,7 +224,7 @@ AigerReader::AigerReader(RTLIL::Design *design, std::istream &f, RTLIL::IdString
|
|||
module = new RTLIL::Module;
|
||||
module->name = module_name;
|
||||
if (design->module(module->name))
|
||||
log_error("Duplicate definition of module %s!\n", log_id(module->name));
|
||||
log_error("Duplicate definition of module %s!\n", module->name.unescape());
|
||||
}
|
||||
|
||||
void AigerReader::parse_aiger()
|
||||
|
|
@ -821,7 +821,7 @@ void AigerReader::post_process()
|
|||
RTLIL::Wire* wire = inputs[variable];
|
||||
log_assert(wire);
|
||||
log_assert(wire->port_input);
|
||||
log_debug("Renaming input %s", log_id(wire));
|
||||
log_debug("Renaming input %s", wire);
|
||||
|
||||
RTLIL::Wire *existing = nullptr;
|
||||
if (index == 0) {
|
||||
|
|
@ -835,7 +835,7 @@ void AigerReader::post_process()
|
|||
wire->port_input = false;
|
||||
module->connect(wire, existing);
|
||||
}
|
||||
log_debug(" -> %s\n", log_id(escaped_s));
|
||||
log_debug(" -> %s\n", escaped_s.unescape());
|
||||
}
|
||||
else {
|
||||
RTLIL::IdString indexed_name = stringf("%s[%d]", escaped_s, index);
|
||||
|
|
@ -846,7 +846,7 @@ void AigerReader::post_process()
|
|||
module->connect(wire, existing);
|
||||
wire->port_input = false;
|
||||
}
|
||||
log_debug(" -> %s\n", log_id(indexed_name));
|
||||
log_debug(" -> %s\n", indexed_name.unescape());
|
||||
}
|
||||
|
||||
if (wideports && !existing) {
|
||||
|
|
@ -866,7 +866,7 @@ void AigerReader::post_process()
|
|||
RTLIL::Wire* wire = outputs[variable + co_count];
|
||||
log_assert(wire);
|
||||
log_assert(wire->port_output);
|
||||
log_debug("Renaming output %s", log_id(wire));
|
||||
log_debug("Renaming output %s", wire);
|
||||
|
||||
RTLIL::Wire *existing;
|
||||
if (index == 0) {
|
||||
|
|
@ -882,7 +882,7 @@ void AigerReader::post_process()
|
|||
module->connect(wire, existing);
|
||||
wire = existing;
|
||||
}
|
||||
log_debug(" -> %s\n", log_id(escaped_s));
|
||||
log_debug(" -> %s\n", escaped_s.unescape());
|
||||
}
|
||||
else {
|
||||
RTLIL::IdString indexed_name = stringf("%s[%d]", escaped_s, index);
|
||||
|
|
@ -894,7 +894,7 @@ void AigerReader::post_process()
|
|||
existing->port_output = true;
|
||||
module->connect(wire, existing);
|
||||
}
|
||||
log_debug(" -> %s\n", log_id(indexed_name));
|
||||
log_debug(" -> %s\n", indexed_name.unescape());
|
||||
}
|
||||
|
||||
if (wideports && !existing) {
|
||||
|
|
@ -912,7 +912,7 @@ void AigerReader::post_process()
|
|||
else if (type == "box") {
|
||||
RTLIL::Cell* cell = module->cell(stringf("$box%d", variable));
|
||||
if (!cell)
|
||||
log_debug("Box %d (%s) no longer exists.\n", variable, log_id(escaped_s));
|
||||
log_debug("Box %d (%s) no longer exists.\n", variable, escaped_s.unescape());
|
||||
else
|
||||
module->rename(cell, escaped_s);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ struct Xaiger2Frontend : public Frontend {
|
|||
|
||||
Module *module = design->module(module_name);
|
||||
if (!module)
|
||||
log_error("Module '%s' not found\n", log_id(module_name));
|
||||
log_error("Module '%s' not found\n", module_name.unescape());
|
||||
|
||||
std::ifstream map_file;
|
||||
map_file.open(map_filename);
|
||||
|
|
@ -158,7 +158,7 @@ struct Xaiger2Frontend : public Frontend {
|
|||
}
|
||||
|
||||
if (!def)
|
||||
log_error("Bad map file: no module found for box type '%s'\n", log_id(box->type));
|
||||
log_error("Bad map file: no module found for box type '%s'\n", box->type.unescape());
|
||||
|
||||
if (box_seq >= (int) boxes.size()) {
|
||||
boxes.resize(box_seq + 1);
|
||||
|
|
@ -276,9 +276,9 @@ struct Xaiger2Frontend : public Frontend {
|
|||
uint32_t nins = read_be32(*f);
|
||||
for (uint32_t j = 0; j < nins; j++)
|
||||
cell.ins.push_back(read_idstring(*f));
|
||||
log_debug("M: Cell %s (out %s, ins", log_id(cell.type), log_id(cell.out));
|
||||
log_debug("M: Cell %s (out %s, ins", cell.type.unescape(), cell.out.unescape());
|
||||
for (auto in : cell.ins)
|
||||
log_debug(" %s", log_id(in));
|
||||
log_debug(" %s", in.unescape());
|
||||
log_debug(")\n");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1544,7 +1544,7 @@ void AST::explode_interface_port(AstNode *module_ast, RTLIL::Module * intfmodule
|
|||
for (auto w : intfmodule->wires()){
|
||||
auto loc = module_ast->location;
|
||||
auto wire = std::make_unique<AstNode>(loc, AST_WIRE, std::make_unique<AstNode>(loc, AST_RANGE, AstNode::mkconst_int(loc, w->width -1, true), AstNode::mkconst_int(loc, 0, true)));
|
||||
std::string origname = log_id(w->name);
|
||||
std::string origname = w->name.unescape();
|
||||
std::string newname = intfname + "." + origname;
|
||||
wire->str = newname;
|
||||
if (modport != NULL) {
|
||||
|
|
@ -1584,7 +1584,7 @@ bool AstModule::reprocess_if_necessary(RTLIL::Design *design)
|
|||
continue;
|
||||
if (design->module(modname) || design->module("$abstract" + modname)) {
|
||||
log("Reprocessing module %s because instantiated module %s has become available.\n",
|
||||
log_id(name), log_id(modname));
|
||||
name.unescape(), modname);
|
||||
loadconfig();
|
||||
process_and_replace_module(design, this, ast.get(), NULL);
|
||||
return true;
|
||||
|
|
@ -1606,7 +1606,7 @@ void AstModule::expand_interfaces(RTLIL::Design *design, const dict<RTLIL::IdStr
|
|||
RTLIL::Module *intfmodule = intf.second;
|
||||
for (auto w : intfmodule->wires()){
|
||||
auto wire = std::make_unique<AstNode>(loc, AST_WIRE, std::make_unique<AstNode>(loc, AST_RANGE, AstNode::mkconst_int(loc, w->width -1, true), AstNode::mkconst_int(loc, 0, true)));
|
||||
std::string newname = log_id(w->name);
|
||||
std::string newname = w->name.unescape();
|
||||
newname = intfname + "." + newname;
|
||||
wire->str = newname;
|
||||
new_ast->children.push_back(std::move(wire));
|
||||
|
|
@ -1679,7 +1679,7 @@ RTLIL::IdString AstModule::derive(RTLIL::Design *design, const dict<RTLIL::IdStr
|
|||
|
||||
bool has_interfaces = false;
|
||||
for(auto &intf : interfaces) {
|
||||
interf_info += log_id(intf.second->name);
|
||||
interf_info += intf.second->name.unescape();
|
||||
has_interfaces = true;
|
||||
}
|
||||
|
||||
|
|
@ -1735,7 +1735,7 @@ RTLIL::IdString AstModule::derive(RTLIL::Design *design, const dict<RTLIL::IdStr
|
|||
new_subcell->set_bool_attribute(ID::is_interface);
|
||||
}
|
||||
else {
|
||||
log_error("No port with matching name found (%s) in %s. Stopping\n", log_id(intf.first), modname);
|
||||
log_error("No port with matching name found (%s) in %s. Stopping\n", intf.first, modname);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2197,10 +2197,10 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint)
|
|||
const auto* value = child->children[0].get();
|
||||
if (value->type == AST_REALVALUE)
|
||||
log_file_warning(*location.begin.filename, location.begin.line, "Replacing floating point parameter %s.%s = %f with string.\n",
|
||||
log_id(cell), log_id(paraname), value->realvalue);
|
||||
cell, paraname.unescape(), value->realvalue);
|
||||
else if (value->type != AST_CONSTANT)
|
||||
input_error("Parameter %s.%s with non-constant value!\n",
|
||||
log_id(cell), log_id(paraname));
|
||||
cell, paraname.unescape());
|
||||
cell->parameters[paraname] = value->asParaConst();
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1492,7 +1492,7 @@ bool AstNode::simplify(bool const_fold, int stage, int width_hint, bool sign_hin
|
|||
const RTLIL::Wire *ref = module->wire(port_name);
|
||||
if (ref == nullptr)
|
||||
input_error("Cell instance refers to port %s which does not exist in module %s!.\n",
|
||||
log_id(port_name), log_id(module->name));
|
||||
port_name.unescape(), module->name.unescape());
|
||||
|
||||
// select the argument, if present
|
||||
log_assert(child->children.size() <= 1);
|
||||
|
|
|
|||
|
|
@ -175,7 +175,7 @@ void parse_blif(RTLIL::Design *design, std::istream &f, IdString dff_name, bool
|
|||
obj_attributes = &module->attributes;
|
||||
obj_parameters = nullptr;
|
||||
if (design->module(module->name))
|
||||
log_error("Duplicate definition of module %s in line %d!\n", log_id(module->name), line_count);
|
||||
log_error("Duplicate definition of module %s in line %d!\n", module->name.unescape(), line_count);
|
||||
design->add(module);
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -295,7 +295,7 @@ void json_import(Design *design, string &modname, JsonNode *node)
|
|||
module->name = RTLIL::escape_id(modname.c_str());
|
||||
|
||||
if (design->module(module->name))
|
||||
log_error("Re-definition of module %s.\n", log_id(module->name));
|
||||
log_error("Re-definition of module %s.\n", module->name.unescape());
|
||||
|
||||
design->add(module);
|
||||
|
||||
|
|
@ -320,22 +320,22 @@ void json_import(Design *design, string &modname, JsonNode *node)
|
|||
JsonNode *port_node = ports_node->data_dict.at(ports_node->data_dict_keys[port_id-1]);
|
||||
|
||||
if (port_node->type != 'D')
|
||||
log_error("JSON port node '%s' is not a dictionary.\n", log_id(port_name));
|
||||
log_error("JSON port node '%s' is not a dictionary.\n", port_name.unescape());
|
||||
|
||||
if (port_node->data_dict.count("direction") == 0)
|
||||
log_error("JSON port node '%s' has no direction attribute.\n", log_id(port_name));
|
||||
log_error("JSON port node '%s' has no direction attribute.\n", port_name.unescape());
|
||||
|
||||
if (port_node->data_dict.count("bits") == 0)
|
||||
log_error("JSON port node '%s' has no bits attribute.\n", log_id(port_name));
|
||||
log_error("JSON port node '%s' has no bits attribute.\n", port_name.unescape());
|
||||
|
||||
JsonNode *port_direction_node = port_node->data_dict.at("direction");
|
||||
JsonNode *port_bits_node = port_node->data_dict.at("bits");
|
||||
|
||||
if (port_direction_node->type != 'S')
|
||||
log_error("JSON port node '%s' has non-string direction attribute.\n", log_id(port_name));
|
||||
log_error("JSON port node '%s' has non-string direction attribute.\n", port_name.unescape());
|
||||
|
||||
if (port_bits_node->type != 'A')
|
||||
log_error("JSON port node '%s' has non-array bits attribute.\n", log_id(port_name));
|
||||
log_error("JSON port node '%s' has non-array bits attribute.\n", port_name.unescape());
|
||||
|
||||
Wire *port_wire = module->wire(port_name);
|
||||
|
||||
|
|
@ -370,7 +370,7 @@ void json_import(Design *design, string &modname, JsonNode *node)
|
|||
port_wire->port_input = true;
|
||||
port_wire->port_output = true;
|
||||
} else
|
||||
log_error("JSON port node '%s' has invalid '%s' direction attribute.\n", log_id(port_name), port_direction_node->data_string);
|
||||
log_error("JSON port node '%s' has invalid '%s' direction attribute.\n", port_name.unescape(), port_direction_node->data_string);
|
||||
|
||||
port_wire->port_id = port_id;
|
||||
|
||||
|
|
@ -390,7 +390,7 @@ void json_import(Design *design, string &modname, JsonNode *node)
|
|||
module->connect(sigbit, State::Sz);
|
||||
else
|
||||
log_error("JSON port node '%s' has invalid '%s' bit string value on bit %d.\n",
|
||||
log_id(port_name), bitval_node->data_string.c_str(), i);
|
||||
port_name.unescape(), bitval_node->data_string.c_str(), i);
|
||||
} else
|
||||
if (bitval_node->type == 'N') {
|
||||
int bitidx = bitval_node->data_number;
|
||||
|
|
@ -405,7 +405,7 @@ void json_import(Design *design, string &modname, JsonNode *node)
|
|||
signal_bits[bitidx] = sigbit;
|
||||
}
|
||||
} else
|
||||
log_error("JSON port node '%s' has invalid bit value on bit %d.\n", log_id(port_name), i);
|
||||
log_error("JSON port node '%s' has invalid bit value on bit %d.\n", port_name.unescape(), i);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -425,15 +425,15 @@ void json_import(Design *design, string &modname, JsonNode *node)
|
|||
JsonNode *net_node = net.second;
|
||||
|
||||
if (net_node->type != 'D')
|
||||
log_error("JSON netname node '%s' is not a dictionary.\n", log_id(net_name));
|
||||
log_error("JSON netname node '%s' is not a dictionary.\n", net_name.unescape());
|
||||
|
||||
if (net_node->data_dict.count("bits") == 0)
|
||||
log_error("JSON netname node '%s' has no bits attribute.\n", log_id(net_name));
|
||||
log_error("JSON netname node '%s' has no bits attribute.\n", net_name.unescape());
|
||||
|
||||
JsonNode *bits_node = net_node->data_dict.at("bits");
|
||||
|
||||
if (bits_node->type != 'A')
|
||||
log_error("JSON netname node '%s' has non-array bits attribute.\n", log_id(net_name));
|
||||
log_error("JSON netname node '%s' has non-array bits attribute.\n", net_name.unescape());
|
||||
|
||||
Wire *wire = module->wire(net_name);
|
||||
|
||||
|
|
@ -468,7 +468,7 @@ void json_import(Design *design, string &modname, JsonNode *node)
|
|||
module->connect(sigbit, State::Sz);
|
||||
else
|
||||
log_error("JSON netname node '%s' has invalid '%s' bit string value on bit %d.\n",
|
||||
log_id(net_name), bitval_node->data_string.c_str(), i);
|
||||
net_name.unescape(), bitval_node->data_string.c_str(), i);
|
||||
} else
|
||||
if (bitval_node->type == 'N') {
|
||||
int bitidx = bitval_node->data_number;
|
||||
|
|
@ -479,7 +479,7 @@ void json_import(Design *design, string &modname, JsonNode *node)
|
|||
signal_bits[bitidx] = sigbit;
|
||||
}
|
||||
} else
|
||||
log_error("JSON netname node '%s' has invalid bit value on bit %d.\n", log_id(net_name), i);
|
||||
log_error("JSON netname node '%s' has invalid bit value on bit %d.\n", net_name.unescape(), i);
|
||||
}
|
||||
|
||||
if (net_node->data_dict.count("attributes"))
|
||||
|
|
@ -500,27 +500,27 @@ void json_import(Design *design, string &modname, JsonNode *node)
|
|||
JsonNode *cell_node = cell_node_it.second;
|
||||
|
||||
if (cell_node->type != 'D')
|
||||
log_error("JSON cells node '%s' is not a dictionary.\n", log_id(cell_name));
|
||||
log_error("JSON cells node '%s' is not a dictionary.\n", cell_name.unescape());
|
||||
|
||||
if (cell_node->data_dict.count("type") == 0)
|
||||
log_error("JSON cells node '%s' has no type attribute.\n", log_id(cell_name));
|
||||
log_error("JSON cells node '%s' has no type attribute.\n", cell_name.unescape());
|
||||
|
||||
JsonNode *type_node = cell_node->data_dict.at("type");
|
||||
|
||||
if (type_node->type != 'S')
|
||||
log_error("JSON cells node '%s' has a non-string type.\n", log_id(cell_name));
|
||||
log_error("JSON cells node '%s' has a non-string type.\n", cell_name.unescape());
|
||||
|
||||
IdString cell_type = RTLIL::escape_id(type_node->data_string.c_str());
|
||||
|
||||
Cell *cell = module->addCell(cell_name, cell_type);
|
||||
|
||||
if (cell_node->data_dict.count("connections") == 0)
|
||||
log_error("JSON cells node '%s' has no connections attribute.\n", log_id(cell_name));
|
||||
log_error("JSON cells node '%s' has no connections attribute.\n", cell_name.unescape());
|
||||
|
||||
JsonNode *connections_node = cell_node->data_dict.at("connections");
|
||||
|
||||
if (connections_node->type != 'D')
|
||||
log_error("JSON cells node '%s' has non-dictionary connections attribute.\n", log_id(cell_name));
|
||||
log_error("JSON cells node '%s' has non-dictionary connections attribute.\n", cell_name.unescape());
|
||||
|
||||
for (auto &conn_it : connections_node->data_dict)
|
||||
{
|
||||
|
|
@ -528,7 +528,7 @@ void json_import(Design *design, string &modname, JsonNode *node)
|
|||
JsonNode *conn_node = conn_it.second;
|
||||
|
||||
if (conn_node->type != 'A')
|
||||
log_error("JSON cells node '%s' connection '%s' is not an array.\n", log_id(cell_name), log_id(conn_name));
|
||||
log_error("JSON cells node '%s' connection '%s' is not an array.\n", cell_name.unescape(), conn_name.unescape());
|
||||
|
||||
SigSpec sig;
|
||||
|
||||
|
|
@ -547,7 +547,7 @@ void json_import(Design *design, string &modname, JsonNode *node)
|
|||
sig.append(State::Sz);
|
||||
else
|
||||
log_error("JSON cells node '%s' connection '%s' has invalid '%s' bit string value on bit %d.\n",
|
||||
log_id(cell_name), log_id(conn_name), bitval_node->data_string.c_str(), i);
|
||||
cell_name.unescape(), conn_name.unescape(), bitval_node->data_string.c_str(), i);
|
||||
} else
|
||||
if (bitval_node->type == 'N') {
|
||||
int bitidx = bitval_node->data_number;
|
||||
|
|
@ -556,7 +556,7 @@ void json_import(Design *design, string &modname, JsonNode *node)
|
|||
sig.append(signal_bits.at(bitidx));
|
||||
} else
|
||||
log_error("JSON cells node '%s' connection '%s' has invalid bit value on bit %d.\n",
|
||||
log_id(cell_name), log_id(conn_name), i);
|
||||
cell_name.unescape(), conn_name.unescape(), i);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -587,20 +587,20 @@ void json_import(Design *design, string &modname, JsonNode *node)
|
|||
mem->name = memory_name;
|
||||
|
||||
if (memory_node->type != 'D')
|
||||
log_error("JSON memory node '%s' is not a dictionary.\n", log_id(memory_name));
|
||||
log_error("JSON memory node '%s' is not a dictionary.\n", memory_name.unescape());
|
||||
|
||||
if (memory_node->data_dict.count("width") == 0)
|
||||
log_error("JSON memory node '%s' has no width attribute.\n", log_id(memory_name));
|
||||
log_error("JSON memory node '%s' has no width attribute.\n", memory_name.unescape());
|
||||
JsonNode *width_node = memory_node->data_dict.at("width");
|
||||
if (width_node->type != 'N')
|
||||
log_error("JSON memory node '%s' has a non-number width.\n", log_id(memory_name));
|
||||
log_error("JSON memory node '%s' has a non-number width.\n", memory_name.unescape());
|
||||
mem->width = width_node->data_number;
|
||||
|
||||
if (memory_node->data_dict.count("size") == 0)
|
||||
log_error("JSON memory node '%s' has no size attribute.\n", log_id(memory_name));
|
||||
log_error("JSON memory node '%s' has no size attribute.\n", memory_name.unescape());
|
||||
JsonNode *size_node = memory_node->data_dict.at("size");
|
||||
if (size_node->type != 'N')
|
||||
log_error("JSON memory node '%s' has a non-number size.\n", log_id(memory_name));
|
||||
log_error("JSON memory node '%s' has a non-number size.\n", memory_name.unescape());
|
||||
mem->size = size_node->data_number;
|
||||
|
||||
mem->start_offset = 0;
|
||||
|
|
|
|||
|
|
@ -212,7 +212,7 @@ struct RpcModule : RTLIL::Module {
|
|||
for (auto module : derived_design->modules_) {
|
||||
std::string mangled_name = name_mangling[module.first.str()];
|
||||
|
||||
log("Importing `%s' as `%s'.\n", log_id(module.first), log_id(mangled_name));
|
||||
log("Importing `%s' as `%s'.\n", module.first.unescape(), mangled_name);
|
||||
|
||||
module.second->name = mangled_name;
|
||||
module.second->design = design;
|
||||
|
|
|
|||
|
|
@ -332,7 +332,7 @@ struct RTLILFrontendWorker {
|
|||
error("No wires found for legalization");
|
||||
int hash = hash_ops<RTLIL::IdString>::hash(id).yield();
|
||||
RTLIL::Wire *wire = current_module->wire_at(abs(hash % wires_size));
|
||||
log("Legalizing wire `%s' to `%s'.\n", log_id(id), log_id(wire->name));
|
||||
log("Legalizing wire `%s' to `%s'.\n", id.unescape(), wire->name.unescape());
|
||||
return wire;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1392,13 +1392,13 @@ void VerificImporter::merge_past_ffs_clock(pool<RTLIL::Cell*> &candidates, SigBi
|
|||
RTLIL::Cell *new_ff = module->addDff(NEW_ID, clock, sig_d, sig_q, clock_pol);
|
||||
|
||||
if (verific_verbose)
|
||||
log(" merging single-bit past_ffs into new %d-bit ff %s.\n", GetSize(sig_d), log_id(new_ff));
|
||||
log(" merging single-bit past_ffs into new %d-bit ff %s.\n", GetSize(sig_d), new_ff);
|
||||
|
||||
for (int i = 0; i < GetSize(sig_d); i++)
|
||||
for (auto old_ff : dbits_db[sig_d[i]])
|
||||
{
|
||||
if (verific_verbose)
|
||||
log(" replacing old ff %s on bit %d.\n", log_id(old_ff), i);
|
||||
log(" replacing old ff %s on bit %d.\n", old_ff, i);
|
||||
|
||||
SigBit old_q = old_ff->getPort(ID::Q);
|
||||
SigBit new_q = sig_q[i];
|
||||
|
|
@ -1736,7 +1736,7 @@ void VerificImporter::import_netlist(RTLIL::Design *design, Netlist *nl, std::ma
|
|||
RTLIL::IdString wire_name = module->uniquify(mode_names || net->IsUserDeclared() ? RTLIL::escape_id(net->Name()) : new_verific_id(net));
|
||||
|
||||
if (verific_verbose)
|
||||
log(" importing net %s as %s.\n", net->Name(), log_id(wire_name));
|
||||
log(" importing net %s as %s.\n", net->Name(), wire_name.unescape());
|
||||
|
||||
RTLIL::Wire *wire = module->addWire(wire_name);
|
||||
import_attributes(wire->attributes, net, nl, 1);
|
||||
|
|
@ -1760,7 +1760,7 @@ void VerificImporter::import_netlist(RTLIL::Design *design, Netlist *nl, std::ma
|
|||
RTLIL::IdString wire_name = module->uniquify(mode_names || netbus->IsUserDeclared() ? RTLIL::escape_id(netbus->Name()) : new_verific_id(netbus));
|
||||
|
||||
if (verific_verbose)
|
||||
log(" importing netbus %s as %s.\n", netbus->Name(), log_id(wire_name));
|
||||
log(" importing netbus %s as %s.\n", netbus->Name(), wire_name.unescape());
|
||||
|
||||
RTLIL::Wire *wire = module->addWire(wire_name, netbus->Size());
|
||||
wire->start_offset = min(netbus->LeftIndex(), netbus->RightIndex());
|
||||
|
|
@ -1894,7 +1894,7 @@ void VerificImporter::import_netlist(RTLIL::Design *design, Netlist *nl, std::ma
|
|||
RTLIL::IdString inst_name = module->uniquify(mode_names || inst->IsUserDeclared() ? RTLIL::escape_id(inst->Name()) : new_verific_id(inst));
|
||||
|
||||
if (verific_verbose)
|
||||
log(" importing cell %s (%s) as %s.\n", inst->Name(), inst->View()->Owner()->Name(), log_id(inst_name));
|
||||
log(" importing cell %s (%s) as %s.\n", inst->Name(), inst->View()->Owner()->Name(), inst_name.unescape());
|
||||
|
||||
if (mode_verific)
|
||||
goto import_verific_cells;
|
||||
|
|
@ -2258,7 +2258,7 @@ void VerificImporter::import_netlist(RTLIL::Design *design, Netlist *nl, std::ma
|
|||
|
||||
for (auto &it : cell_port_conns) {
|
||||
if (verific_verbose)
|
||||
log(" .%s(%s)\n", log_id(it.first), log_signal(it.second));
|
||||
log(" .%s(%s)\n", it.first.unescape(), log_signal(it.second));
|
||||
cell->setPort(it.first, it.second);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue