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.

Left Shifter (lshift)Arithmetic PartsLeft Shifter (lshift)This part left shifts the input port din by the value given on the input portshift.The result of this shift operation is placed in the output port dout. Theenumerated parameter mode (Logical, Arithmetic, Circular) selects one ofthree shift modes.For logical and arithmetic mode, 0 is shifted in the least significant bit.For circular mode, the most significant bit of the input port din is shiftedinto the least significant bit.This part is equivalent to an n-bit left shifter; where n is the width of the ports din and dout. Theimplementation is controlled via the synthesis script. Silicon compilers perform better with thispart in terms of hardware performance.Functiondout = din

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

Saved successfully!

Ooh no, something went wrong!