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)ovfl= MSB= MSB XOR f(n)if parameter sign_type = unsignedif parameter sign_type = signedTruth TableFor positive polarities. (For negative polarities invert the signals, cin = 0; cin is added only inthe arithmetic mode).Table 6-1. 181 ALU Truth Tablesfs[3],s[2],s[1],s[0] logical (mode =1) arithmetic (mode = 0)0000 NOT(a) a - 10001 NOT(a AND b) a AND b - 10010 NOT(a) OR b a AND NOT(b)0011 1 -10100 NOT(a OR b) a + (a OR NOT(b))0101 NOT(b) (a AND b) + (a OR NOT(b))0110 NOT(a XOR b) a - b - 10111 a OR NOT(b) a + NOT(b)1000 NOT(a) AND b a + (a OR b)1001 a XOR b a + b1010 b (a AND NOT(b)) + (a OR b)1011 a OR b a + b1100 0 a + a1101 a AND NOT(b) (a AND b) + a1110 a AND b (a AND NOT(b)) + a1111 a a100<strong>ModuleWare</strong> <strong>Reference</strong> Manual, Library Version 1.9September 18, 2008

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

Saved successfully!

Ooh no, something went wrong!