Jutge.org
The Virtual Learning Environment for Computer Programming
1-bit comparator
X60848 en
Design a circuit that compares two bits and indicates whether the first is greater than, equal
to or smaller than the second.
The top module must be called cmp.
module
cmp(a, b, eq , gt , lt );
input
a, b;
output
eq, gt , lt ;
Input
• a and b are the input bits
Output
• eq indicates that a=b.
• gt indicates that a
>
b.
• lt indicates that a
<
b.
Problem information
Author : Jordi Cortadella
Generation : 2013-07-17 16:31:38
© Jutge.org, 2006–2013.
http://www.jutge.org