Forum Discussion
Altera_Forum
Honored Contributor
15 years agolpm_add_sub output bits - MSB or LSB?
Hi, I looked through the help for lpm_add_sub megafunction <http://quartushelp.altera.com/9.1/mergedProjects/hdl/mega/mega_file_lpm_add_sub.htm> and couldn't really figure out if the input/output...
Altera_Forum
Honored Contributor
15 years agoThe general rule is MSBs for any arithmetic function.
Why are you using lpm_add_sub anyway when c <= a + b; in VHDL (and similar is available in verilog) is much much simpler to write and understand.