02.02.2014 Views

05 Arithmetic in VHDL

05 Arithmetic in VHDL

05 Arithmetic in VHDL

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.

<strong>Arithmetic</strong> Package Functions- VI<br />

• Simple conversion functions<br />

– Used to convert <strong>in</strong>teger/ natural numbers to and from signed/<br />

unsigned<br />

Function Description Argument 1 Argument 2 Returns<br />

to_<strong>in</strong>teger<br />

Convert to<br />

<strong>in</strong>teger<br />

unsigned<br />

signed<br />

natural<br />

<strong>in</strong>teger<br />

to_unsigned<br />

to_signed<br />

Convert to<br />

unsigned<br />

Convert to<br />

signed<br />

natural<br />

<strong>in</strong>teger<br />

natural<br />

(size)<br />

natural<br />

(size)<br />

unsigned<br />

(size)<br />

signed<br />

(size)<br />

122

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

Saved successfully!

Ooh no, something went wrong!