.. _IP/arith_Counter_Ring: PoC.arith.Counter_Ring ###################### .. only:: html .. |gh-src| image:: /_static/logos/GitHub-Mark-32px.png :scale: 40 :target: https://github.com/VHDL/PoC/blob/main/src/arith/arith_Counter_Ring.vhdl :alt: Source Code on GitHub .. |gh-tb| image:: /_static/logos/GitHub-Mark-32px.png :scale: 40 :target: https://github.com/VHDL/PoC/blob/main/tb/arith/arith_Counter_Ring_tb.vhdl :alt: Source Code on GitHub .. sidebar:: GitHub Links * |gh-src| :pocsrc:`Sourcecode ` * |gh-tb| :poctb:`Testbench ` This module implements an up/down ring-counter with loadable initial value (``seed``) on reset. The counter can be configured to a Johnson counter by enabling ``INVERT_FEEDBACK``. The number of counter bits is configurable with ``BITS``. .. rubric:: Entity Declaration: .. literalinclude:: ../../../src/arith/arith_Counter_Ring.vhdl :language: vhdl :tab-width: 2 :linenos: :lines: 41-54 .. only:: latex Source file: :pocsrc:`arith/arith_Counter_Ring.vhdl `