diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-12-04 14:14:05 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-12-04 14:14:05 +0100 |
commit | 93a70959f3f67ffcee8159b18a5f68904e32a074 (patch) | |
tree | 1bf68c1a36c3d126fdb396b0ea9c06bcdc2040fb /passes/submod | |
parent | a2d053694b6269bab8871a810142943fac6a3a18 (diff) | |
download | yosys-93a70959f3f67ffcee8159b18a5f68904e32a074.tar.gz yosys-93a70959f3f67ffcee8159b18a5f68904e32a074.tar.bz2 yosys-93a70959f3f67ffcee8159b18a5f68904e32a074.zip |
Replaced RTLIL::Const::str with generic decoder method
Diffstat (limited to 'passes/submod')
-rw-r--r-- | passes/submod/submod.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/passes/submod/submod.cc b/passes/submod/submod.cc index 5b380beee..7d0811254 100644 --- a/passes/submod/submod.cc +++ b/passes/submod/submod.cc @@ -218,12 +218,12 @@ struct SubmodWorker for (auto &it : module->cells) { RTLIL::Cell *cell = it.second; - if (cell->attributes.count("\\submod") == 0 || cell->attributes["\\submod"].str.size() == 0) { + if (cell->attributes.count("\\submod") == 0 || cell->attributes["\\submod"].bits.size() == 0) { cell->attributes.erase("\\submod"); continue; } - std::string submod_str = cell->attributes["\\submod"].str; + std::string submod_str = cell->attributes["\\submod"].decode_string(); cell->attributes.erase("\\submod"); if (submodules.count(submod_str) == 0) { |