We changed our privacy policy. Read more.

Questions tagged [digital-comparator]

A digital comparator or magnitude comparator is a hardware electronic device that takes as input two numbers in binary and determines whether one number is greater than, less than or equal to the other number. Four-bit examples are the CMOS 4063 and the TTL 7485.

Filter by
Sorted by
Tagged with
0
votes
0answers
43 views

VHDL comparator only for equalities

as mentioned in the question i am trying to implement a 4 bit comparator. The purpose of the comparator is to check if the 4 bit that are fed are equal to the code combination that is stored in the ...
1
vote
1answer
58 views

3-to-2 line encoder (or generally 2^(n-1)-to-n) -- not priority, but telling how many inputs are on?

This is not homework (not taking any classes) although it could be homework. I am wondering what is the easiest implementation using a single TTL chip or gates (fewest chip count) to encode the number ...
2
votes
2answers
86 views

Digital Design: Is there an elegant way to put a number in a sorted register file?

Let's say we have a module that has a register file currently inside that can hold 3 numbers. Suppose the three numbers are: 4, 6, 7. 4 is at index 0, 6 is at index 1, and 7 is at index 2. A new ...
2
votes
1answer
88 views

Circuit to detect two sequential pulses

I have a window comparator with two outputs (hi-threshold and low-threshold) that would go high sequentially (few examples shown in the attached image). I want to use to combine these two signals into ...
0
votes
1answer
348 views

Duty cycle detection circuit for square wave

I have two signals coming out of one block. One signal is one period delayed than the other one. Is there any method to detect the duty cycle of these pulses?. Edit: Clk is my original signal. Going ...
0
votes
2answers
61 views

Detect a sequence inside a bit stream

I was recently in a discussion with my professor in which he told me that 'absolutely in no way would this design work'. I am hoping I could bounce it off you guys. The question asked to design (in ...
0
votes
2answers
236 views

Why aren’t the magnitude comparators cascaded the “more efficient” way?

In Practical Electronics for Inventors, Paul shows the following cascading of two \$ 74HC85 \$’s to build an 8-bit magnitude comparator. Question: Why doesn’t he cascade them in the apparently more ...
0
votes
1answer
223 views

Curious Behavior In Logisim while trying to mimic a halt instruction

I'm in the process of trying to simulate a halt instruction based on some arbitrary value. My circuit design may not follow best practices as I'm disabling the overall or master clock sign with a ...
2
votes
0answers
649 views

Comparing sine wave and triangular for spwm using comparator

i am trying to generate sinusoidal PWM by comparing sine and triangular wave. First i just tried to compare sine wave with reference voltage in order to check the working of op-amp. I get a problem ...
2
votes
0answers
260 views

Digital Comparator from LSB to MSB using Lookahead

This is homework to be upfront, but I'm really stuck on it and just need some kind of direction. I've been assigned to create a 16-bit lookahead comparator going from LSB to MSB using no more than 4-...
0
votes
3answers
905 views

How to design a combinational circuit that finds the minimum among multiple given numbers?

There are quite a few articles (for example, this) that can be found online discussing the design of a comparator that takes two numbers (say, A and ...
0
votes
1answer
1k views

Comparator on Logisim

Currently working on an elevator circuit. I am using 4-bits to represent the floor that the elevator is on, and I need a way of comparing this value to the floor that the user wants to get to. I am ...
1
vote
1answer
1k views

LT Spice Comparator Question [closed]

Does LT Spice have any way of creating a 4-bit Comparator with outputs A=B, A>B, A
0
votes
1answer
702 views

How do I design a cascade network of 1-bit comparators to determine if two n-bit numbers are equal?

I'm reading through the "Logic Design" chapter in Givone's Digitial Principles and Design and this is one of the problems at the end of the chapter. I read the section on comparators thoroughly, but ...
2
votes
2answers
709 views

Digital Magnitude Comparator: LSb first or MSb first

Most of the comparator designs/algorithms are based on MSb first approach (i.e, starting the comparison from MSb of the two numbers), which seems to be effective approach intuitively. I was just ...
0
votes
4answers
7k views

Comparator Latch circuit

I need a VERY simple latching circuit using comparator that will simply be off until a signal hits it (can be either + or -, I have no preference) and the circuit will remain on until I reset it.
2
votes
2answers
23k views

IC 7485 truth table

For IC 7485 truth table(given below), why is the the output A>B = 1 and A<B = 1 when you have got the inputs A(3,2,1,0)=B(3,2,1,0) with 0 for all cascading inputs(the last row). What exactly is the ...