Chargement…
Chargement…
The circuit is combinational and checks the six possible pairs.
Behaviour
o_found=1 if two distinct indices sum to i_target.o_i and o_j return the first pair in search order.| Signal | Direction | Width | Description |
|---|---|---|---|
i_a0 | Input | 4 bits | Input a0 |
i_a1 | Input | 4 bits | Input a1 |
i_a2 | Input | 4 bits | Input a2 |
i_a3 | Input | 4 bits | Input a3 |
i_target | Input | 5 bits | Input target |
o_found | Output | 1 bit | Output found |
o_i | Output | 2 bits | Output i |
o_j | Output | 2 bits | Output j |