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.

Variable Width N-Input OR Gate (sor)Logic PartsVariable Width N-Input OR Gate (sor)This part performs a logical OR of input ports din0 to dinN. The result isplaced on the output port dout. Each bit of port dout is the OR of thecorresponding bits of ports din0 to dinN. Ports din0 to dinN and doutmay have different widths.Ports are automatically added or removed when you resize the componentinstance to implement any number of input ports.This part is equivalent to n N-input OR gates where n is the port width. Setting dout_typeActiveLow with all input ports ActiveHigh, results in a variable width N-input NOR gate.Functiondout = din0 OR din1 OR din2 … OR dinNTruth TableThis example is for positive polarity. For negative polarity, invert the values.Table 2-40. Variable Width N-Input OR Gate Truth Tabledin0(i) din1(i) dout(i)0 0 00 1 11 0 11 1 1ParametersTable 2-41. Variable Width N-Input OR Gate ParametersParameter Values Defaultdin0 to dinN, dout Port width (must be > 0) Automaticdin0_type to dinN_type, dout_type ActiveHigh, ActiveLow ActiveHighDesign Rule Checks• An error is issued if the width of any port cannot be determined.• A warning is issued and HDL generation fails for this part if at least two ports or the outputport are not connected.• A warning is issued but HDL generation succeeds for this part if the width of any of theports din0 to dinN is greater than the width of dout.<strong>ModuleWare</strong> <strong>Reference</strong> Manual, Library Version 1.9 57September 18, 2008

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

Saved successfully!

Ooh no, something went wrong!