EveryCircuit
Contact
Reviews
Home
jason9
modified 8 years ago

4 Bit Comparator

1
0
213
01:46:44
This is a four bit comparator. The top bit of each of the sets of four bits is the highest value bit. If the top LED is on, then the top set of four bits is greater than the bottom set of four bits. If the bottom LED is on, then the bottom set of bits is greater. If the middle LED is on, then they are both equal. The way it works is that if the highest value bits are different, then it says that the one that is on is greater, but if they are equal then it says which is greater by the next highest value pair of bits. If those are equal, it looks for which of the next set of bits is greater, and if those are equal, then the process continues until it finds which set of bits is greater, or it finds that all bits are equal. In this design, if which one is greater is dependent on the lowest value pair of bits then the information has to carry through all of the stages stage by stage in a way resembling that of a ripple carry adder. Because of that, it has to be treated with that delay at all times just like a ripple carry adder has to be treated with that delay all of the time even if it doesn’t always take that long.
published 8 years ago

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2026 by MuseMaze, Inc.     Terms of use     Privacy policy