
A wrapper surrounds an 32-bit integer ALU (just an adder/subtractor at the moment) to add functionality for LMUL, LDIV and LIM.
Pulse ld to shift ai and bi lsb first into internal 32-bit A and B registers, which are input to the ALU. (This takes at least 32 clock cycles). Once values are loaded, leave ld inactive, choose and alufunc to test, and use sel to select one byte of the ALU's ouptut on outp. The low-order 5 bits of alufunc are for reserved for RISC-V opcode; the other two bits trigger Gaussian mode for the Logarithmic Increment and Multiply (LIM) instruction, and LNS mode for the LIM, LDIV and LADD.
None
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | ai | outp0 | alufunc0 |
| 1 | bi | outp1 | alufunc1 |
| 2 | ld | outp2 | alufunc2 |
| 3 | sel0 | outp3 | alufunc3 |
| 4 | sel1 | outp4 | alufunc4 |
| 5 | outp5 | alufunc5_lnsmode | |
| 6 | outp6 | alufunc6_sbmode | |
| 7 | outp7 |