Comparator- something wrong

Joined
Jun 5, 2007
Messages
51
Reaction score
0
Comparator- More LUTs,why?

Hi everyone,

I am using the following code for counter. as for me, it should occupy only 32 LUTs for inferring integer counter and the output should be mapped to routing channels. i don't know why it infers 64 LUTs. can any of you explain me.

Entity Comparator_less is

Port ( Data1,Data2 : in Integer;
d : out Integer;


End Comparator_less;

Architecture Behavioral of Comparator_less is

Begin

d <= Data1 when Data1 < Data2 else Data2;

End Behavioral;
 
Last edited:
Joined
Mar 10, 2008
Messages
348
Reaction score
0
Hi
This example based @ a 2x4 bit data structure in order to simplify.
Please note that 3 LUTs used for the compare and 4 LUTs used for multiplexers.

No wonder this will take 64 LUTs in your example - hope this usefull
Your welcome
Jeppe

Capture_094.jpg

Capture_095.jpg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top