3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 17:15:33 +00:00

Update more stuff to use get_src_attribute() and set_src_attribute()

This commit is contained in:
Clifford Wolf 2017-09-01 12:26:55 +02:00
parent 8dc6083de7
commit 8a66bd30c6
2 changed files with 5 additions and 5 deletions

View file

@ -1643,7 +1643,7 @@ RTLIL::Cell *RTLIL::Module::addCell(RTLIL::IdString name, const RTLIL::Cell *oth
cell->parameters["\\Y_WIDTH"] = sig_y.size(); \
cell->setPort("\\A", sig_a); \
cell->setPort("\\Y", sig_y); \
if (!src.empty()) cell->attributes["\\src"] = src; \
cell->set_src_attribute(src); \
return cell; \
} \
RTLIL::SigSpec RTLIL::Module::_func(RTLIL::IdString name, RTLIL::SigSpec sig_a, bool is_signed, std::string src) { \