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.

N-Input Multiplexer (mux)This part selects one of the input ports (din0 to dinN) and places it on theoutput port dout. The selection is based on the value of the input port sel.The default part has two inputs din0 and din1 and sel is a scalar port. However,you can resize the component instance to implement parts with four, eight (orany other multiple of two) input ports with a corresponding width sel port.Combinatorial PartsN-Input Multiplexer (mux)This part is equivalent to a gate count of N*n(log2(N)+1)-bit AND gates andn N-bit OR gates where n is the width of the data ports and N is the numberof input ports. For example a four-input mux has the gate count of three 2-bus multiplexers and an eight-input mux has the gate count of seven 2-busmultiplexers.The HDL code for any unconnected ports is optimized away.FunctionThe default two-input multiplexer has the following function:dout= din0= din1(if sel = 0)(if sel = 1)A four-input multiplexer has the following function:dout= din0= din1= din2= din3(if sel = 00)(if sel = 01)(if sel = 10)(if sel = 11)An eight-input multiplexer has the following function:dout= din0= din1= din2= din3= din4= din5= din6= din7(if sel = 000)(if sel = 001)(if sel = 010)(if sel = 011)(if sel = 100)(if sel = 101)(if sel = 110)(if sel = 111)<strong>ModuleWare</strong> <strong>Reference</strong> Manual, Library Version 1.9 71September 18, 2008

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

Saved successfully!

Ooh no, something went wrong!