cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
3,983 Views
Registered: ‎05-24-2011

floating point comparator

Hi.

I want a use a comparator for floating point signals.

i have made the ip core and i see that the output is (0 downto 0).

Does anyone know how comparator work?

 

thanks in advance.

 

Tags (1)
0 Kudos
1 Reply
Highlighted
Adventurer
Adventurer
3,967 Views
Registered: ‎11-12-2009

The data sheet for the core will tell you that the result of a comparison is obviously boolean and so the result only needs to be 1bit, 1=true, 0=false.

 

signal a : std_logic_vector(0 downto 0) := "0";    

 

is the same functionally as

 

signal a: std_logic := '0';

 

Syntactically VHDL will complain about different types but it's the same thing functionally, just access it via a (0 downto 0) signal.

0 Kudos