Forum Discussion
Altera_Forum
Honored Contributor
18 years agoHi Brad,
thanks for response. The thing is, that I'm not really relying on using LPM counters, however one would expect that LPM implementation gives better results. In fact, it should because countup/down is just bunch of registers with very minimal amount of logic around. The one generated from VHDL code then needs more logic connections. When you write down function for shift register, it will correctly instantiate shift. As shift and counter are implemented in almost the same way, I do not see any reason why LPM counter should not be instantiated. I have found that here: http://www.altera.com.cn/support/examples/vhdl/vhd-counter-synch.html they claim that this inferres LPM_COUNTER. However when added into my project, it generates register + adder + multiplexer. so this behavior sounds to me rather like a bug.