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.

Arithmetic PartsAdder Subtractor (addsub)Table 6-16. Adder Subtractor Truth Table — Three-bit, Signed, cin=0 (cont.)din0 din1 addsub dout cout101 010 0 011 1110 010 0 00 0111 010 0 101 0ParametersTable 6-17. Adder Subtractor ParametersParameter Values Defaultdin0, din1, dout Port widths (must be > 0) Automaticsign_typecin_typeadd_sub_typecout_typeUnsigned, SignedActiveHigh, ActiveLowActiveHigh, ActiveLowActiveHigh, ActiveLowUnsignedActiveHighActiveHighActiveHighDesign Rule Checks• An error is issued if the width of any port cannot be determined, if any of the ports cin,add_sum and cout do not have a fixed width of 1 or if the width of dout is less than themaximum width of both input ports.• A warning is issued and HDL generation fails for this part if any of the ports din0, din1,add_sum or dout are not connected.112<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!