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 PartsConfigurable Counter (cntr)If reset is asynchronous:count = rst_valif rst is active (irrespective of the clk trigger)else at every enabled clk trigger (rising edge if clk_type = Rising; falling edge if clk_type =Falling):countmax= din= count > 1= nmsb= nlsbif load = 1, elseif up_dn = 1, elseotherwiseif up_dn = 1otherwiseAll the following truth tables are for positive polarities. For negative polarities, invert thevalues.Truth Table for Binary CounterThis table is for asynchronous high reset.Table 8-9. Configurable Counter Truth Table — Binary Counter,Asynchronous High Resetmax_count mcount0 all bits are 1 (width = width of port count)else max_countTable 8-10. Configurable Counter Truth Table — Binary Counter,Asynchronous High Resetload clk_en clk rst up_dn count- - - 1 - rst_val- 0 - 0 - count1 1 posedge 0 - din0 1 posedge 0 1 if (count

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

Saved successfully!

Ooh no, something went wrong!