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.

D Latch (dlatch)Register PartsD Latch (dlatch)This part is a highly parameterized D-type latch. Upon a trigger of anenabled scalar input port gate, the data from the input port d is latchedinto the output ports q and qb.The optional output port qb has a bitwise inverted value of the output portq and can be enabled by setting the enumerated parameter qb_type(Enabled, Disabled). Note that using qb does not imply extra inverters,these inverters are usually absorbed by the inferred latches, because mosthave a qb port.The part can be triggered on the high or the low level of the scalar inputport gate. The polarity of gate is controlled by the enumerated parameter gate_type(ActiveHigh, ActiveLow).The latch has a scalar input port load with its mode controlled by the parameter load_type(AsyncActiveHigh, SyncActiveHigh, AsyncActiveLow, SyncActiveLow, None). Inasynchronous mode, the load input has a higher priority over the gate input and in synchronousmode, the gate input has a higher priority over the load input.The register can be set or reset to the value of the parameter set_val and rst_val by activating thescalar input ports set and rst. The modes for these inputs are controlled by enumeratedparameters set_type and rst_type (AsyncActiveHigh, SyncActiveHigh, AsyncActiveLow,SyncActiveLow, None). If the mode for these inputs is set to None or if they are unconnected,then the respective pins are not visible in the symbol and the functionality for that pin isdisabled. The modes for these ports can be synchronous or asynchronous.The enumerated parameter initialization (Enabled, Disabled) determines whether the localregisters have an initial value.This part is equivalent to n latches where n is the width of the ports d, q and qb. The inferredregister depends upon the type of rst and set behavior. The gate count greatly changes if thesynthesis tool is able to pick up smaller latches.If set, rst or load are not connected, the code for unused ports is removed.Parameters set_val and rst_val can take LNBF format as described in the Constant Value(constval) model, with no limitation on the size of the q and qb ports.FunctionIf rst and set are synchronous and load is synchronous, then at every gate trigger (high level ifgate_type = ActiveHigh or low level if gate_type = ActiveLow):qqb= rst_val= set_val= d= NOT(rst_val)= NOT(set_val)= NOT(d)If rst is activeIf set is activeIf load is active or not connectedIf rst is activeIf set is activeIf load is active or not connected<strong>ModuleWare</strong> <strong>Reference</strong> Manual, Library Version 1.9 143September 18, 2008

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

Saved successfully!

Ooh no, something went wrong!