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.

Logic PartsN-Input XOR Gate (xor)N-Input XOR Gate (xor)This part performs a logical XOR of input ports din0 to dinN. Eachbit of output port dout is the XOR of the corresponding bits of portsdin0 to dinN.Ports are automatically added or removed when you resize thecomponent instance to implement any number of input ports.This part is equivalent to n N-bit XOR gates where n is the port widthand N is the number of input ports.Setting the dout port polarity ActiveLow with all input portsActiveHigh, results in an N-Input XNOR gate.Functiondout = din0 XOR din1 XOR din2 … XOR dinNParametersTable 2-5. N-Input XOR Gate ParametersParameter Values Defaultdin0, dout Port widths (must be > 0) Automaticdin0_type to dinN_type, dout_type ActiveHigh, ActiveLow ActiveHighDesign Rule Checks• An error is issued if any of the ports din0 to dinN and dout do not have the same width or ifthe width of any port cannot be determined.• A warning is issued and HDL generation fails for this part unless the output port and at leasttwo input ports are connected.36<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!