Forum Discussion
Kuru
New Contributor
1 year agoEfficient 16-bit std_logic_vector comparator in VHDL
I'm working on a VHDL project where I need to implement a comparator between two 16-bit std_logic_vector signals, a and b. The goal is to check if a is greater than, less than, or equal to b. Th...
FvM
Super Contributor
1 year agoUsing different numerical types has no effect on resource consumption, arithmetic operation is essentially the same.
Using carry chain is appropriate for fast comparator, Quartus selects it automatically as default implementation.
Most LUT are used for 32 mux output bits and have nothing to do with comparator function as such.
Using carry chain is appropriate for fast comparator, Quartus selects it automatically as default implementation.
Most LUT are used for 32 mux output bits and have nothing to do with comparator function as such.
Kuru
New Contributor
1 year agoSo, are there no alternatives? Is this the best solution?
Do you think I could write the VHDL code in a way that uses even fewer resources?