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.

Sequential PartsModulo Counter (modcntr)For Binary Incrementing CounterThis table is for synchronous high reset. (n is the minimum number of registers required.)Table 8-29. Modulo Counter Truth Table — Binary Incrementing Counter,Synchronous High Resetmode clk_en clk rst creg (n-1) creg (n)- 0 - - - creg(n-1)- 1 - 1 - 2 n - countModulo 1 posedge 0 0 2 n - count + 1Wait-for 1 posedge 0 0 creg(n-1) + 1- 1 posedge 0 ≠ 0 creg(n-1) + 1This table is for asynchronous high reset.Table 8-30. Modulo Counter Truth Table — Binary Incrementing Counter,Asynchronous High Resetmode clk_en clk rst creg (n-1) creg (n)- 0 - 0 - creg(n-1)- - - 1 - 2 n - countModulo 1 posedge 0 0 2 n - count + 1Wait-for 1 posedge 0 0 creg(n-1) + 1- 1 posedge 0 ≠ 0 creg(n-1) + 1ParametersTable 8-31. Modulo Counter ParametersParameter Values Defaultclk_en_typeclk_typedout_typerst_typecountmodestylesync_rst_priorityActiveHigh,ActiveLow,NoneRising,Falling,RisingLast,FallingLast,RisingEdge,FallingEdgeActiveHigh,ActiveLowSyncActiveHigh,AsyncActiveHigh,SyncActiveLow,AsyncActiveLowValue of the count interval (1 < count < 65535)Modulo,Wait-forLFSR,BinaryIncrement,BinaryDecrementEnabled,DisabledActiveHighRisingActiveHighAsyncActiveHigh2ModuloLFSRDisabledDesign 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 any of ports clk, rst or dout arenot connected.194<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!