Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Best way to implement a comparator

Status
Not open for further replies.

xvibe

Member level 5
Joined
Jul 11, 2003
Messages
88
Helped
5
Reputation
10
Reaction score
3
Trophy points
1,288
Location
Portugal
Activity points
783
What is the best way to implement this comparator?
if ( A > x and B < y) then
....
else
....

where x and y are diferent values

What i want to know is the best way to implement in VHDL the comparator funciontion > or/and <. I know you can just type in VHDL the > or > symbols but it will use a lot of logic. Any ideas?
 

Using the '>' and '<' is the best way to go and leave it to the synthesis tools to optimize.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top