Altera_Forum
Honored Contributor
13 years agoLPM_Counter odd behavior
Hi guys, I'm fairly new to using Quartus (and FPGAs in general), and so I thought I would check out some of the LPM megafunctions. This was my schematic for a simple counter (using LPM_Counter):
https://www.alteraforum.com/forum/attachment.php?attachmentid=6924 When I performed a timing simulation of this circuit, I get this: https://www.alteraforum.com/forum/attachment.php?attachmentid=6926 My questions are: (1) What's with the unknown values? Why do q[5], q[4], and q[1] have values of undefined (X) (0000110010 seems to be 50, my LPM_AVALUE)? (2) What should I do to actually make this counter work from the get-go? (Apparently, manually setting the rst line to high once will make the counter work, but how can I make the counter reset automatically?) I'm using Quartus II v9.0, working with the Cyclone II EP2C20F484C7. I appreciate any help I can get. Thanks!