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.

Arithmetic Parts181 ALU (alu181)FunctionIf scalar input port mode = 1 and parameter mode_type = ActiveHigh or scalar input port mode= 0 and parameter mode_type = ActiveLow:f= NOT(a)= NOT(a AND b)= NOT(a) OR b= 1= NOT(a OR b)= NOT(b)= NOT(a XOR b)= a OR NOT(b)= NOT(a) AND b= a XOR b= b= a OR b= 0= a AND NOT(b)= a AND b= aif s = 0if s = 1if s = 2if s = 3if s = 4if s = 5if s = 6if s = 7if s = 8if s = 9if s = 10if s = 11if s = 12if s = 13if s = 14if s = 15cout = 0ovfl = 0else (if scalar input port mode = 0 and parameter mode_type = ActiveHigh or scalar input portmode = 1 and parameter mode_type = ActiveLow):f= a - 1 + cin= a AND b - 1 + cin= a AND NOT(b) - 1 + cin= -1 + cin= a + (a OR NOT(b) + cin= (a AND b) + (a OR NOT(b)) + cin= a - b - 1 + cin= a + NOT(b) + cin= a + (a OR b) + cin= a + b + cin= (a AND NOT(b)) + (a OR b) + cin= a + b + cin= a + a + cin= (a AND b) + a + cin= (a AND NOT(b)) + a + cin= a + cinif s = 0if s = 1if s = 2if s = 3if s = 4if s = 5if s = 6if s = 7if s = 8if s = 9if s = 10if s = 11if s = 12if s = 13if s = 14if s = 15(a MSB is the MSB of the arithmetic operation; this is the n+1th bit from the arithmeticoperation, where n is the width of ports a, b and f)cout= MSB<strong>ModuleWare</strong> <strong>Reference</strong> Manual, Library Version 1.9 99September 18, 2008

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

Saved successfully!

Ooh no, something went wrong!