mirror of https://github.com/YosysHQ/yosys.git
Added support for $bu0 to verilog backend
This commit is contained in:
parent
2278995bd8
commit
0c67393313
|
@ -581,6 +581,22 @@ bool dump_cell_expr(FILE *f, std::string indent, RTLIL::Cell *cell)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cell->type == "$bu0")
|
||||||
|
{
|
||||||
|
fprintf(f, "%s" "assign ", indent.c_str());
|
||||||
|
dump_sigspec(f, cell->connections["\\Y"]);
|
||||||
|
if (cell->parameters["\\A_SIGNED"].as_bool()) {
|
||||||
|
fprintf(f, " = $signed(");
|
||||||
|
dump_sigspec(f, cell->connections["\\A"]);
|
||||||
|
fprintf(f, ");\n");
|
||||||
|
} else {
|
||||||
|
fprintf(f, " = { 1'b0, ");
|
||||||
|
dump_sigspec(f, cell->connections["\\A"]);
|
||||||
|
fprintf(f, " };\n");
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (cell->type == "$concat")
|
if (cell->type == "$concat")
|
||||||
{
|
{
|
||||||
fprintf(f, "%s" "assign ", indent.c_str());
|
fprintf(f, "%s" "assign ", indent.c_str());
|
||||||
|
|
Loading…
Reference in New Issue