Forum Discussion
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- for add sub you can add carry input or output which accounts for bit growth --- Quote End --- I will probably have to do this if I can't find a comparable block, as well as increase some input widths with extra 0's in the MSB slots. Since there are many instances of this in the design I am porting I was hoping for a comparable block, but I have not had success in finding one yet, figured I'd see if I was missing anything before going with this route. --- Quote Start --- lpm_add_sub ? there is parallel_add IP. you can change width by typing you own. https://www.altera.com/content/dam/altera-www/global/en_us/pdfs/literature/ug/ug_lpm_alt_mfug.pdf --- Quote End --- PARALLEL_ADD looks like it only sums multiple values together (e.g. a+b+c+d...) and does not support signed values.