13.07.2015 Views

ModuleWare Reference Guide - Hornad

ModuleWare Reference Guide - Hornad

ModuleWare Reference Guide - Hornad

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Bit Manipulation PartsN-Way Splitter (split)N-Way Splitter (split)This part splits the input bus din into N output buses doutN to dout0.Ports are automatically added or removed when you resize the componentinstance to implement any number of output ports.The lower bits of din are placed in dout0 until it is completely filled, thenthe remaining bits of din are copied to dout1 to doutN.If the sum of the widths of doutN to dout0 is greater than the width of din,extra bits on the output would be filled with X.If the width of dout is less than the sum, then only the lower order bits are copied into dout0 todoutN until all are filled. Any bits remaining in din are ignored.FunctiondoutN,…, dout0= dinTruth Table (2-Bus Examples)Example splitting the 7-bit bus din into 4-bit dout1 and 3-bit dout2 buses:Table 5-11. N-Way Splitter Truth Table — Two-Busdin dout1 dout00001000 0001 0000010110 0010 1100100000 0100 0001001010 1001 010Example splitting the 8-bit bus din into 4-bit dout1 and 3-bit dout2 buses showing how thehighest bit of din is discarded:Table 5-12. N-Way Splitter Truth Table — Two-Busdin dout1 dout010001000 0001 00000010110 0010 11010100000 0100 00011001010 1001 01086<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!