[source]

Entity arith_counter_free

DIVIDERclkstd_logicrststd_logicincstd_logicstbstd_logic

Block Diagram of arith_counter_free

Implements a free-running counter that generates a strobe signal every DIVIDER-th cycle the increment input was asserted. There is deliberately no output or specification of the counter value so as to allow an implementation to optimize as much as possible.

The implementation guarantees a strobe output directly from a register. It is asserted exactly for one clock after DIVIDER cycles of an asserted increment input have been observed.

Generics

Name

Type

Default

Description

DIVIDER

positive

Ports

Name

Type

Direction

Description

clk

std_logic

in

Global Control

rst

std_logic

in

inc

std_logic

in

stb

std_logic

out

End-of-Period Strobe