nbBit counter
This commit is contained in:
parent
2b3f557736
commit
867ce4e68d
@ -6,7 +6,7 @@ USE ieee.numeric_std.all;
|
|||||||
ENTITY receptionTrame_op IS
|
ENTITY receptionTrame_op IS
|
||||||
GENERIC(
|
GENERIC(
|
||||||
N: integer := 1200;
|
N: integer := 1200;
|
||||||
N_WIDTH : integer := 0
|
N_WIDTH : integer := 11
|
||||||
);
|
);
|
||||||
PORT(
|
PORT(
|
||||||
H: IN std_logic;
|
H: IN std_logic;
|
||||||
@ -194,4 +194,20 @@ with nbBit_SELECT SELECT
|
|||||||
to_unsigned(13, 4) when '0',
|
to_unsigned(13, 4) when '0',
|
||||||
to_unsigned(8, 4) when '1',
|
to_unsigned(8, 4) when '1',
|
||||||
to_unsigned(0, 4) when others;
|
to_unsigned(0, 4) when others;
|
||||||
|
|
||||||
|
nbBIt_cmp : counter
|
||||||
|
GENERIC MAP(
|
||||||
|
WIDTH => 4,
|
||||||
|
MAX_VAL => 0
|
||||||
|
)
|
||||||
|
PORT MAP(
|
||||||
|
H => H,
|
||||||
|
H_EN => nbBit_EN,
|
||||||
|
nRst => nCLR,
|
||||||
|
INIT => nbBit_INIT,
|
||||||
|
LOAD => nbBit_LOAD,
|
||||||
|
upnDown => '0',
|
||||||
|
val => OPEN,
|
||||||
|
max => nbBit_0
|
||||||
|
);
|
||||||
END ARCHITECTURE arch;
|
END ARCHITECTURE arch;
|
Loading…
x
Reference in New Issue
Block a user