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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…