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)Truth Table (8-Bus examples)Example merging six 2-bit buses (din7 to din2) and two 1-bit buses (din1 and din0) into a 14-bit output bus (dout):Table 5-7. N-Bus Merge Truth Table — Eight-Busdin7 din6 din5 din4 din3 din2 din1 din0 dout00 01 10 00 00 10 0 0 0001100000100000 10 11 11 11 11 1 0 0010111111111001 01 00 10 01 00 0 0 0101001001000010 11 01 11 00 01 0 1 10110111000101Example merging six 2-bit buses (din7 to din2) and two 1-bit buses (din1 and din0) into a 15-bit output bus (dout) showing how the undefined bit in dout is filled with an X:Table 5-8. N-Bus Merge Truth Table — Eight-Busdin7 din6 din5 din4 din3 din2 din1 din0 dout00 01 10 00 00 10 0 0 X0001100000100000 10 11 11 11 11 1 0 X0010111111111001 01 00 10 01 00 0 0 X0101001001000010 11 01 11 00 01 0 1 X10110111000101Example merging six 2-bit buses (din7 to din2) and two 1-bit buses (din1 and din0) into a 10-bit output bus (dout) discarding the bits in din6 and din7:Table 5-9. N-Bus Merge Truth Table — Eight-Busdin7 din6 din5 din4 din3 din2 din1 din0 dout00 01 10 00 00 10 0 0 100000100000 10 11 11 11 11 1 0 111111111001 01 00 10 01 00 0 0 1001001000010 11 01 11 00 01 0 1 011100010184<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!