| commit | 0e9471f91b117bce228decc902037b95a785f0a3 | [log] [tgz] |
|---|---|---|
| author | MohamedEldafrawy <mohamed.eldafrawy@mail.utoronto.ca> | Thu Nov 28 15:38:05 2019 -0500 |
| committer | MohamedEldafrawy <mohamed.eldafrawy@mail.utoronto.ca> | Thu Nov 28 15:38:05 2019 -0500 |
| tree | d8efcecda0a7c660a117457e99157bee580aa8fc | |
| parent | e3293c06a8ea795b6b9741e81706f6bbe237ab7d [diff] |
odin: Multiplier size is defined by the larger port
diff --git a/ODIN_II/SRC/multipliers.cpp b/ODIN_II/SRC/multipliers.cpp index 21ddb7b..d0fb2e5 100644 --- a/ODIN_II/SRC/multipliers.cpp +++ b/ODIN_II/SRC/multipliers.cpp
@@ -1456,7 +1456,7 @@ mula = node->input_port_sizes[0]; mulb = node->input_port_sizes[1]; - int mult_size = std::min<int>(mula, mulb); + int mult_size = std::max<int>(mula, mulb); bool operand_1bit = (mula == 1 || mulb == 1); if (mula < mulb) {