mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-29 01:24:25 +02:00
updated to use get_src_attribute() and set_src_attribute().
This commit is contained in:
@@ -478,14 +478,14 @@ static void dfflibmap(RTLIL::Design *design, RTLIL::Module *module, bool prepare
|
||||
auto cell_type = cell->type;
|
||||
auto cell_name = cell->name;
|
||||
auto cell_connections = cell->connections();
|
||||
std::string src = cell->attributes["\\src"].decode_string();
|
||||
std::string src = cell->get_src_attribute();
|
||||
|
||||
module->remove(cell);
|
||||
|
||||
cell_mapping &cm = cell_mappings[cell_type];
|
||||
RTLIL::Cell *new_cell = module->addCell(cell_name, prepare_mode ? cm.cell_name : "\\" + cm.cell_name);
|
||||
|
||||
if (!src.empty()) new_cell->attributes["\\src"] = src;
|
||||
new_cell->set_src_attribute(src);
|
||||
|
||||
bool has_q = false, has_qn = false;
|
||||
for (auto &port : cm.ports) {
|
||||
|
||||
Reference in New Issue
Block a user