diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-05-06 12:00:40 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2019-05-06 12:00:40 +0200 |
commit | 1cd1b5fc1adeb3ef62f061e27f5d8433d5c7dce6 (patch) | |
tree | e37957b70123f3772cbdcf0b3c216b78970b6c9b /backends/ilang | |
parent | c7f2e93024b7758a865254cfb350997645f663b2 (diff) | |
download | yosys-1cd1b5fc1adeb3ef62f061e27f5d8433d5c7dce6.tar.gz yosys-1cd1b5fc1adeb3ef62f061e27f5d8433d5c7dce6.tar.bz2 yosys-1cd1b5fc1adeb3ef62f061e27f5d8433d5c7dce6.zip |
Add "real" keyword to ilang format
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'backends/ilang')
-rw-r--r-- | backends/ilang/ilang_backend.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/backends/ilang/ilang_backend.cc b/backends/ilang/ilang_backend.cc index dc39e5e08..04d1ee311 100644 --- a/backends/ilang/ilang_backend.cc +++ b/backends/ilang/ilang_backend.cc @@ -160,7 +160,10 @@ void ILANG_BACKEND::dump_cell(std::ostream &f, std::string indent, const RTLIL:: } f << stringf("%s" "cell %s %s\n", indent.c_str(), cell->type.c_str(), cell->name.c_str()); for (auto &it : cell->parameters) { - f << stringf("%s parameter%s %s ", indent.c_str(), (it.second.flags & RTLIL::CONST_FLAG_SIGNED) != 0 ? " signed" : "", it.first.c_str()); + f << stringf("%s parameter%s%s %s ", indent.c_str(), + (it.second.flags & RTLIL::CONST_FLAG_SIGNED) != 0 ? " signed" : "", + (it.second.flags & RTLIL::CONST_FLAG_REAL) != 0 ? " real" : "", + it.first.c_str()); dump_const(f, it.second); f << stringf("\n"); } |