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.

Fixed Bit Setter (fbitset)This part reads the input port din and sets one of its bits to the value ofscalar input port value.The result is placed on the output port dout. The location of the bit to beset is specified by the parameter loc. This value is zero-indexed.This part is equivalent to 1-bit Vdd or Ground.FunctionFor every bit:dout = din (if bit location not equal to loc)dout = value (if bit location = loc)Truth TableTable 5-27. Fixed Bit Setter Truth Tabledin value dout(i)0 0 00 1 if (i not equal to loc) 0, else 11 0 if (i not equal to loc) 1, else 01 1 1ParametersBit Manipulation PartsFixed Bit Setter (fbitset)Table 5-28. Fixed Bit Setter ParametersParameter Values Defaultdin, dout Port widths (must be > 0) Automaticloc Bit location (must be >= 0 and < width of port din) 0Design Rule Checks• An error is issued if the width of any port cannot be determined, if parameter sel is notgreater than or equal to 0 and less than the width of port din or if port value does not have afixed width of 1.• A warning is issued and HDL generation fails for this part if any ports are not connected.<strong>ModuleWare</strong> <strong>Reference</strong> Manual, Library Version 1.9 93September 18, 2008

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

Saved successfully!

Ooh no, something went wrong!