13.07.2015 Views

ModuleWare Reference Guide - Hornad

ModuleWare Reference Guide - Hornad

ModuleWare Reference Guide - Hornad

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Arithmetic PartsIncrementer (inc)Incrementer (inc)This part increases the value of the input data port din and places theresult in the output data port dout.The carry out from this result is placed in scalar output port cout.The increment can be performed in unsigned or signed mode by settingthe parameter sign_type. Parameter cout_type controls the polarity of portcout.This part is equivalent to an n-bit incrementer; where n is the width of theports din and dout. The implementation of the incrementer is controlledvia the synthesis script.Functiondout = din + 1The increment is unsigned or signed depending of the value of sign_type.cout = 0= 1if there is a carry out during incrementotherwiseTruth TableA 3-bit example (sign_type = unsigned, positive polarities):Table 6-25. Incrementer Truth Table — 3-bit, Unsigned, Positive Polaritiesdin dout cout000 001 0001 010 0010 011 0011 100 0100 101 0101 110 0110 111 0111 000 1A 3-bit example (sign_type = signed):Table 6-26. Incrementer Truth Table — 3-bit, Signeddin dout cout000 001 0001 010 0118<strong>ModuleWare</strong> <strong>Reference</strong> Manual, Library Version 1.9September 18, 2008

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!