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.

Sequential PartsModulo Counter (modcntr)else at every enabled clk trigger (rising edge if clk_type = Rising, falling edge if clk_type =Falling):creg = reloadval= {NOT(LSB), creg} >> 1= {newmsb, creg} >> 1dout = (creg = 0)= NOT(creg = 0)if creg = 0 and mode = modulootherwise when count < 6otherwise when count ≥ 6if dout_type = ActiveHighif dout_type = ActiveLowFor Binary Decrement styleIf reset is synchronous, then at every enabled clk trigger (rising edge if clk_type = Rising,falling edge if clk_type = Falling):creg = count= count -1= creg -1dout = (creg = 0)= NOT(creg = 0)if rst is activeif creg = 0 and mode = modulootherwiseif dout_type = ActiveHighif dout_type = ActiveLowIf reset is asynchronous:creg = count if rst is activeelse at every enabled clk trigger (rising edge if clk_type = Rising, falling edge if clk_type =Falling):creg = count -1= creg - 1dout = (creg = 0)= NOT(creg = 0)if creg = 0 and mode = modulootherwiseif dout_type = ActiveHighif dout_type = ActiveLowFor Binary Increment stylen is the minimum number of registers required.If reset is synchronous, then at every enabled clk trigger (rising edge if clk_type = Rising,falling edge if clk_type = Falling):creg = 2 n - count= 2 n - count + 1= creg + 1dout = (creg = 0)= NOT(creg = 0)if rst is activeif creg = 0 and mode = modulootherwiseif dout_type = ActiveHighif dout_type = ActiveLowIf reset is asynchronous:creg = 2 n - count if rst is active<strong>ModuleWare</strong> <strong>Reference</strong> Manual, Library Version 1.9 191September 18, 2008

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

Saved successfully!

Ooh no, something went wrong!