diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-07-17 11:49:04 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2019-07-17 11:49:04 +0200 |
commit | 56c00e871fbb73649d3b6f7ccee31c90942a020c (patch) | |
tree | 6ae5f0d0ebefc59f3d9c4f73fbc921e6d1522b27 /backends | |
parent | 82153059a1ba0fa64086a82fd5ae68f01b983e55 (diff) | |
download | yosys-56c00e871fbb73649d3b6f7ccee31c90942a020c.tar.gz yosys-56c00e871fbb73649d3b6f7ccee31c90942a020c.tar.bz2 yosys-56c00e871fbb73649d3b6f7ccee31c90942a020c.zip |
Remove old $pmux_safe code from write_verilog
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'backends')
-rw-r--r-- | backends/verilog/verilog_backend.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/backends/verilog/verilog_backend.cc b/backends/verilog/verilog_backend.cc index a020d82b6..778f9b855 100644 --- a/backends/verilog/verilog_backend.cc +++ b/backends/verilog/verilog_backend.cc @@ -788,7 +788,7 @@ bool dump_cell_expr(std::ostream &f, std::string indent, RTLIL::Cell *cell) return true; } - if (cell->type == "$pmux" || cell->type == "$pmux_safe") + if (cell->type == "$pmux") { int width = cell->parameters["\\WIDTH"].as_int(); int s_width = cell->getPort("\\S").size(); @@ -800,18 +800,17 @@ bool dump_cell_expr(std::ostream &f, std::string indent, RTLIL::Cell *cell) f << stringf("%s" " input [%d:0] s;\n", indent.c_str(), s_width-1); dump_attributes(f, indent + " ", cell->attributes); - if (cell->type != "$pmux_safe" && !noattr) + if (!noattr) f << stringf("%s" " (* parallel_case *)\n", indent.c_str()); f << stringf("%s" " casez (s)", indent.c_str()); - if (cell->type != "$pmux_safe") - f << stringf(noattr ? " // synopsys parallel_case\n" : "\n"); + f << stringf(noattr ? " // synopsys parallel_case\n" : "\n"); for (int i = 0; i < s_width; i++) { f << stringf("%s" " %d'b", indent.c_str(), s_width); for (int j = s_width-1; j >= 0; j--) - f << stringf("%c", j == i ? '1' : cell->type == "$pmux_safe" ? '0' : '?'); + f << stringf("%c", j == i ? '1' : '?'); f << stringf(":\n"); f << stringf("%s" " %s = b[%d:%d];\n", indent.c_str(), func_name.c_str(), (i+1)*width-1, i*width); |