BHCSI Computer Science Homework Assignment #2 Assigned: Wednesday 7/17/02 Due: Monday 7/22/02

advertisement
BHCSI Computer Science
Homework Assignment #2
Assigned: Wednesday 7/17/02
Due: Monday 7/22/02
In class, we showed how to design an adder to add two 8 bit unsigned binary numbers.
Using the components from that design and other components we have studied, design
the two following components:
1) A component that takes in two 8-bit unsigned integer inputs and outputs a 1 if the first
value is greater than the second, and a 0 if the first value is less than or equal to the
second.
2) A component that takes in two 8 bit unsigned integer inputs and outputs the absolute
value of the difference between the two values. The output should also be an 8 bit
unsigned integer.
Do this homework in groups of two.
Download