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.

Declar<strong>in</strong>g <strong>Arithmetic</strong> Signals & Variables<br />

• SIGNED<br />

– 2’s complement form, with MSB used as a sign bit<br />

– Example declaration<br />

signal count: signed (3 downto 0)<br />

– Creates a signal used for stor<strong>in</strong>g the values -8 -> +7<br />

Integer<br />

Signed<br />

-8 1000<br />

-1 1111<br />

0 0000<br />

+7 0111<br />

115

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

Saved successfully!

Ooh no, something went wrong!