02.02.2014 Views

05 Arithmetic in VHDL

05 Arithmetic in VHDL

05 Arithmetic in VHDL

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

• Signed <strong>Arithmetic</strong> Functions:<br />

Function Argument 1 Argument 2 Returns<br />

+<br />

signed signed signed<br />

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

-<br />

signed signed signed<br />

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

• i.e. functions to add/ subtract signed numbers<br />

– Note <strong>in</strong>teger as a +ve/ -ve argument for signed op’s<br />

118

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

Saved successfully!

Ooh no, something went wrong!