Home › Practice › RTL Design › 4-bit comparator
4-bit comparator
EasyRTLcombinational
Compare two unsigned 4-bit numbers.
gt= 1 whena > b.eq= 1 whena == b.lt= 1 whena < b.- Exactly one of the three is 1 for any input. No clock.
No install and no sign-up needed. You write your answer in the editor and Nishkam checks it.