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 Example- I<br />

• Some concrete examples of the use of the arithmetic<br />

package !<br />

• Simple counter<br />

– Counts up to certa<strong>in</strong> value then resets back<br />

– Only <strong>in</strong>crements if <strong>in</strong>put ‘<strong>in</strong>c’ is set to ‘1’<br />

CLK<br />

INC<br />

COUNT 0000 0001 0001 0010 0011 0100 0000<br />

No change when <strong>in</strong>c = ‘0’<br />

125

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

Saved successfully!

Ooh no, something went wrong!