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 /backends/edif/edif.cc | |
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 'backends/edif/edif.cc')
-rw-r--r-- | backends/edif/edif.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/edif/edif.cc b/backends/edif/edif.cc index 8843b3946..1748ed810 100644 --- a/backends/edif/edif.cc +++ b/backends/edif/edif.cc @@ -280,8 +280,8 @@ struct EdifBackend : public Backend { fprintf(f, " (viewRef VIEW_NETLIST (cellRef %s%s))", EDIF_NAME(cell->type), lib_cell_ports.count(cell->type) > 0 ? " (libraryRef LIB)" : ""); for (auto &p : cell->parameters) - if (!p.second.str.empty()) - fprintf(f, "\n (property %s (string \"%s\"))", EDIF_NAME(p.first), p.second.str.c_str()); + if ((p.second.flags & RTLIL::CONST_FLAG_STRING) != 0) + fprintf(f, "\n (property %s (string \"%s\"))", EDIF_NAME(p.first), p.second.decode_string().c_str()); else if (p.second.bits.size() <= 32 && RTLIL::SigSpec(p.second).is_fully_def()) fprintf(f, "\n (property %s (integer %u))", EDIF_NAME(p.first), p.second.as_int()); else { |