magnitude comparator

Discussion in 'Homework Help' started by jaary, Sep 19, 2012.

  1. jaary

    Thread Starter New Member

    Sep 18, 2012
    2
    0
    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..
     
  2. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    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.
     
Loading...