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.

Logic PartsVariable Width N-Input AND Gate (sand)Variable Width N-Input AND Gate (sand)This part performs a logical AND of input ports din0 to dinN. The resultis placed on the output port dout. Each bit of port dout is the AND 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-bit AND gates where n is the port width.Setting dout_type ActiveLow with all input ports ActiveHigh, results in a variable width N-input NAND gate.Functiondout = din0 AND din1 AND din2 … AND dinNTruth TableThis example is for positive polarity. For negative polarity, invert the values.Table 2-38. Variable Width N-Input AND Gate Truth Tabledin0(i) din1(i) dout(i)0 0 00 1 01 0 01 1 1ParametersTable 2-39. Variable Width N-Input AND 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.56<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!