[source]

Entity arith_counter_gray

BITSINITclkstd_logicrststd_logicincstd_logicdecstd_logicvalstd_logic_vector[BITS - 1 downto 0]crystd_logic

Block Diagram of arith_counter_gray

Generics

Name

Type

Default

Description

BITS

positive

Bit width of the counter

INIT

natural

0

Initial/reset counter value

Ports

Name

Type

Direction

Description

clk

std_logic

in

rst

std_logic

in

Reset to INIT value

inc

std_logic

in

Increment

dec

std_logic

in

Decrement

val

std_logic_vector

out

Value output

cry

std_logic

out

Carry output