1. Explore the controls
Change the inputs and observe the model's response.
Add A, B and carry-in.
Change the inputs and observe the model's response.
total=A+B+Cin; sum=total mod 2; carry=floor(total/2)Adjust the controls to obtain the following outputs. Multiple valid solutions may exist.
Three ones total three (binary 11).
Simplified educational model. No real hardware is controlled. Code examples are illustrative and not executed as arbitrary programs.