Forum Discussion
Altera_Forum
Honored Contributor
16 years agolittle question about VHDL
Hi,all, I want to ask is it costs a lot of resource or time delay to determine when using the sentence "if (vir+M)>500 then" ,here vir and M are both integer type. Thanks in advance.
Altera_Forum
Honored Contributor
16 years agoadders and comparators are pretty cheap. But as FvM says, make sure you constrain vir and M.
Personally, Id probably register vir + M before doing the compare, to keep the clock speed up.