mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-29 15:37:59 +00:00
macc: Stop using the B port
The B port is for single-bit summands. These can just as well be represented as an additional summand on the A port (which supports summands of arbitrary width). An upcoming `$macc_v2` cell won't be special-casing single-bit summands in any way. In preparation, make the following changes: * remove the `bit_ports` field from the `Macc` helper (instead add any single-bit summands to `ports` next to other summands) * leave `B` empty on cells emitted from `Macc::to_cell`
This commit is contained in:
parent
8fd40942e9
commit
652a1b9806
10 changed files with 89 additions and 51 deletions
|
@ -283,7 +283,7 @@ struct AlumaccWorker
|
|||
for (auto &it : sig_macc)
|
||||
{
|
||||
auto n = it.second;
|
||||
RTLIL::SigSpec A, B, C = n->macc.bit_ports;
|
||||
RTLIL::SigSpec A, B, C;
|
||||
bool a_signed = false, b_signed = false;
|
||||
bool subtract_b = false;
|
||||
alunode_t *alunode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue