If pipelined, instantiate "clock", otherwise leave for default.
Charlene Eriksen pointed out a problem with the use of cin when using lpm_add_sub as a subtractor. If cin <= gnd (where gnd = '0') is assigned in the port map, the subtraction result is INCORRECT. If cin is omitted from the assignment list the subtraction result is correct (lpm_add_sub uses the default assignment of '0' as expected).
Automatic Register Packing and I/O cells chosen for all compilations.
Notes | Width | Pipelines | Optimization | Logic Cells | Speed |
Unsigned adder | 16-bit | 0 | 0, fast | 18 | 14.0ns |
" | " | 0 | 10 | 18 | 14.0ns |
" | " | 16* | 10 | 392 | 9.7ns |
" | " | 1 | 0 | 29 | 11.3ns |
" | " | 0 | 0 | 31 | 46.5ns |
* indicates optimum performance/utilization as given by Altera compiler Info.
Return to LPM hints