This chip seems to be very similar to the 16 bit adder, except that the second number is hard coded to be 1. However, we will not get this '1' as input. We will have to represent it internally. We can represent it as the result of an AND chip, but this is just a possible representation. It is possible to represent 1 in many ways. Also notice the last line in the script. Instead of a HalfAdder, we use an OR gate... guess why...
No comments:
Post a Comment