LPM_MODOLUS warning

Nov 15, 2004 2 Replies

Hi,



when compiling my project in QuartusII I get the warning:



LPM_MODULUS input value is . It should be within the range of



1 to 2^. Assume no modulus input

In the HELP it is explained like the following:



-------------------------------------------------------------------------------- CAUSE: The LPM_MODULUS is set to value that is not valid. Valid range should be between 1 to 2^LPM_WIDTH. ACTION: Change the LPM_MODULUS value to a value within the valid range.


Can somebody shed some light on it?



In which module do I find that LPM_MODULUS?



Rgds André


It's in your "magic" megafunction code:

entity LPM_COUNTER is generic (LPM_WIDTH : positive; LPM_MODULUS: natural := 0; LPM_DIRECTION : string := "UNUSED"; LPM_AVALUE : string := "UNUSED"; LPM_SVALUE : string := "UNUSED"; LPM_PVALUE : string := "UNUSED"; LPM_TYPE: string := "LPM_COUNTER"; LPM_HINT : string := "UNUSED"); For details see:

formatting link

This is the sort of thing that inspires some to banish the wizards and write n ;= n + 1;

-- Mike Treseler

Does it have any effect on my design if I ignore this warning?

Rgds André

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required