how will i convert an if less than condition to hardware in digital?
This is simply a subtractor. You subtract a from b, and th sign bit will tell you &lt; or >=. By the way, for &lt;= you can either check for all zeroes, or just swap a and b.