magnitude comparator

Thread Starter

jaary

Joined Sep 18, 2012
2
Hi. I need some help about my homework. it goes this way.

Develop a program that will compare two 4-bit binary numbers (A and B) and will indicate whether A>B, A=B, or A<B. (Note: the program has 3 outputs, one for >, one for <, and one for =)

example

A B A>B A=B A<B
0011 1000 0 0 1
1100 0111 1 0 0
0101 0101 0 1 0

thanks much..
 

t06afre

Joined May 11, 2009
5,934
What have you done so far. I idea behind this section is to provide some, a push in the correct direction. We like to help in this forum. But we will not do the homework for you.
 
Top