aboutsummaryrefslogtreecommitdiffstats
path: root/backends/verilog
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-09-03 21:20:59 +0200
committerClifford Wolf <clifford@clifford.at>2014-09-03 21:20:59 +0200
commitb9cb483f3e2a498ee75a422e09164a920918362b (patch)
treec1375a5e5b70895b2d392bfb308fc75d648a0c19 /backends/verilog
parent5733f4a39d56388e531b6c1471f56c3efb023f31 (diff)
downloadyosys-b9cb483f3e2a498ee75a422e09164a920918362b.tar.gz
yosys-b9cb483f3e2a498ee75a422e09164a920918362b.tar.bz2
yosys-b9cb483f3e2a498ee75a422e09164a920918362b.zip
Using $pos models for $bu0
Diffstat (limited to 'backends/verilog')
-rw-r--r--backends/verilog/verilog_backend.cc17
1 files changed, 1 insertions, 16 deletions
diff --git a/backends/verilog/verilog_backend.cc b/backends/verilog/verilog_backend.cc
index d1fa55b94..79672540b 100644
--- a/backends/verilog/verilog_backend.cc
+++ b/backends/verilog/verilog_backend.cc
@@ -538,6 +538,7 @@ bool dump_cell_expr(std::ostream &f, std::string indent, RTLIL::Cell *cell)
HANDLE_UNIOP("$not", "~")
HANDLE_UNIOP("$pos", "+")
+ HANDLE_UNIOP("$bu0", "+")
HANDLE_UNIOP("$neg", "-")
HANDLE_BINOP("$and", "&")
@@ -651,22 +652,6 @@ bool dump_cell_expr(std::ostream &f, std::string indent, RTLIL::Cell *cell)
return true;
}
- if (cell->type == "$bu0")
- {
- f << stringf("%s" "assign ", indent.c_str());
- dump_sigspec(f, cell->getPort("\\Y"));
- if (cell->parameters["\\A_SIGNED"].as_bool()) {
- f << stringf(" = $signed(");
- dump_sigspec(f, cell->getPort("\\A"));
- f << stringf(");\n");
- } else {
- f << stringf(" = { 1'b0, ");
- dump_sigspec(f, cell->getPort("\\A"));
- f << stringf(" };\n");
- }
- return true;
- }
-
if (cell->type == "$concat")
{
f << stringf("%s" "assign ", indent.c_str());