[source]

Component 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

Initial Value

Description

BITS

positive

Bit width of the counter

INIT

natural

0

Initial/reset counter value

Ports

Name

Direction

Type

Description

clk

in

std_logic

rst

in

std_logic

Reset to INIT value

inc

in

std_logic

Increment

dec

in

std_logic

Decrement

val

out

std_logic_vector

Value output

cry

out

std_logic

Carry output