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.

Bit Manipulation PartsFixed Shifter (fixshift)A 4-bit input example (mode = arithmetic):Table 5-30. Fixed Shifter Truth Table — Mode = Arithmeticdin shift dout1001 5 00001001 2 01001001 -2 11101001 -5 1111A 4-bit input example (mode = circular):Table 5-31. Fixed Shifter Truth Table — Mode = Circulardin shift dout1001 5 00111001 2 01101001 -2 01101001 -5 1100ParametersTable 5-32. Fixed Shifter ParametersParameter Values Defaultdin, dout Port widths (must be > 0) AutomaticmodeshiftLogical, Arithmetic, CircularNumber of bits to shift (must be > 0)Logical1Design Rule Checks• An error is issued if the width of any port cannot be determined.• A warning is issued and HDL generation fails for this part if any ports are not connected.• A warning is issued although generation is successful if parameter shift is greater than orequal to the width of port din when the mode is logical or arithmetic, if shift has a value of 0or if shift is an exact multiple of the width of the input port din when the mode of the shifteris circular.<strong>ModuleWare</strong> <strong>Reference</strong> Manual, Library Version 1.9 95September 18, 2008

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

Saved successfully!

Ooh no, something went wrong!