prim_carry_select_adder
Add a_i and b_i with a carry-select datapath split into NUM_CHUNKS.
Compute each chunk for carry-in 0 and 1, then select on the prior carry. Drive c_o with the final carry out of the MSB chunk. DATA_WIDTH must divide evenly across NUM_CHUNKS.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
DATA_WIDTH | int unsigned | 64 | Operand width. |
NUM_CHUNKS | int unsigned | 2 | Number of carry-select chunks. |
Ports
| Name | Direction | Type | Description |
|---|---|---|---|
a_i | input | logic [DATA_WIDTH-1:0] | Addend A. |
b_i | input | logic [DATA_WIDTH-1:0] | Addend B. |
sum_o | output | logic [DATA_WIDTH-1:0] | Sum result. |
c_o | output | logic | Carry out. |