3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-29 01:18:46 +00:00

Added "$fa" cell type

This commit is contained in:
Clifford Wolf 2014-09-08 12:15:39 +02:00
parent 1a88e47396
commit d46bac3305
8 changed files with 164 additions and 5 deletions

View file

@ -620,6 +620,16 @@ namespace {
return;
}
if (cell->type == "$fa") {
port("\\A", param("\\WIDTH"));
port("\\B", param("\\WIDTH"));
port("\\C", param("\\WIDTH"));
port("\\X", param("\\WIDTH"));
port("\\Y", param("\\WIDTH"));
check_expected();
return;
}
if (cell->type == "$alu") {
param_bool("\\A_SIGNED");
param_bool("\\B_SIGNED");
@ -1793,6 +1803,11 @@ void RTLIL::Cell::fixup_parameters(bool set_a_signed, bool set_b_signed)
return;
}
if (type == "$fa") {
parameters["\\WIDTH"] = SIZE(connections_["\\Y"]);
return;
}
bool signedness_ab = !type.in("$slice", "$concat", "$macc");
if (connections_.count("\\A")) {