Forum Discussion
Altera_Forum
Honored Contributor
8 years agolpm functions and hdl
Hi all, So I'm trying to create a (synchronous) 8-bit loadable counter, as below but for some reason this synthesizes to around 28 LE's compared to the altera LPM 11 LE version. Any idea why? ...
Altera_Forum
Honored Contributor
8 years agoFrank,
Again it is not up to us to question the OP's intention: if the OP wants a q_next, so we should give him that, no? I think the OP is now painfully aware that there is a cost for this q_next option. My third solution is indeed functionally equivalent to the OP's original post# 1. The difference is in the coding: I'm sure you can spot the difference, studying the RTL diagrams will help, I attach the RTL schematic for the original post. https://www.alteraforum.com/forum/attachment.php?attachmentid=14930 I tried to put everything in 2 always blocks, one combinatorial, the other sequential, but that didn't work. I normally don't do Verilog, so I didn't persist. Regards, Josy