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.

Bit Manipulation PartsFixed Bit Selector (fbitsel)Fixed Bit Selector (fbitsel)This part selects a particular bit from the input bus din and places this bit inthe scalar output port dout.The parameter sel is a zero-based index that specifies the location of the bitselected.Functiondout= din(sel)Truth TableA 4-bit input Example:Table 5-25. Fixed Bit Selector Truth Tabledin sel dout0101 00 10101 01 00100 10 10101 11 0ParametersTable 5-26. Fixed Bit Selector ParametersParameter Values Defaultdin Port width (must be > 1) Automaticsel 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 dout does not have afixed width of 1.• A warning is issued and HDL generation fails for this part if any ports are not connected.92<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!