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 PartsN-Bus Merge (merge)Table 5-3. N-Bus Merge Truth Table — Two-Busdin1 din0 dout0001 000 0010000010 110 0101100100 000 1000001001 010 001010Truth Table (4-Bus examples)Example merging 2-bit buses din3, din2 and din1 with 1-bit bus din0 into 7-bit bus dout:Table 5-4. N-Bus Merge Truth Table — Four-Busdin3 din2 din1 din0 dout00 01 00 0 000100000 10 11 0 001011001 00 00 0 010000010 01 01 1 1001011Example merging 2-bit buses din3, din2 and din1 with 1-bit bus din0 into 8-bit bus doutshowing how the undefined bit in dout is filled with an X:Table 5-5. N-Bus Merge Truth Table — Four-Busdin3 din2 din1 din0 dout00 01 00 0 X000100000 10 11 0 X001011001 00 00 0 X010000010 01 01 1 X1001011Example merging 2-bit buses din3, din2 and din1 with 1-bit bus din0 into 6-bit bus doutdiscarding the highest bit in din3:Table 5-6. N-Bus Merge Truth Table — Four-Busdin3 din2 din1 din0 dout00 01 00 0 00100000 10 11 0 01011001 00 00 0 10000010 01 01 1 001011<strong>ModuleWare</strong> <strong>Reference</strong> Manual, Library Version 1.9 83September 18, 2008

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

Saved successfully!

Ooh no, something went wrong!