
8-bit saturated arithmetic unit. This module snaps the result to the maximum or minimum possible value for the given data type to prevent wrap-around errors.The module supports four operations selected via the sel bits:00 (Signed Add): 8-bit signed addition.
-Set the operation mode using the top two bits of the bidirectional switches (uio_in[7:6]). -Input the first 8-bit operand on the dedicated input switches (ui_in). -Input the second 6-bit operand on the lower bidirectional switches (uio_in[5:0]). -Observe the 8-bit result on the dedicated output LEDs (uo_out).
List external hardware used in your project (e.g. PMOD, LED display, etc), if any
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | a[0] | res[0] | b[0] |
| 1 | a[1] | res[1] | b[1] |
| 2 | a[2] | res[2] | b[2] |
| 3 | a[3] | res[3] | b[3] |
| 4 | a[4] | res[4] | b[4] |
| 5 | a[5] | res[5] | b[5] |
| 6 | a[6] | res[6] | sel[0] |
| 7 | a[7] | res[7] | sel[1] |