diff --git a/ReceptionTrame_lib/receptionTrame_op.vhd b/ReceptionTrame_lib/receptionTrame_op.vhd index c5782f5..03b2032 100644 --- a/ReceptionTrame_lib/receptionTrame_op.vhd +++ b/ReceptionTrame_lib/receptionTrame_op.vhd @@ -169,5 +169,21 @@ WITH n_SELECT SELECT to_unsigned(N - 1, N_WIDTH) when '0', to_unsigned(N / 2, N_WIDTH) when '1', (others => '0') when others; - + +-- N counter +N_cmp : counter + GENERIC MAP( + WIDTH => N_WIDTH, + MAX_VAL => 0 + ) + PORT MAP( + H => H, + H_EN => n_EN, + nRst => nCLR, + INIT => n_INIT, + LOAD => n_LOAD, + upnDown => '0', + val => OPEN, + max => n_0 + ); END ARCHITECTURE arch; \ No newline at end of file diff --git a/ReceptionTrame_lib/receptionTrame_tb.vhd b/ReceptionTrame_lib/receptionTrame_tb.vhd index cce54a3..84d65fe 100644 --- a/ReceptionTrame_lib/receptionTrame_tb.vhd +++ b/ReceptionTrame_lib/receptionTrame_tb.vhd @@ -65,8 +65,8 @@ U0 : receptionTrame_op Lin => '1', octetRecu_EN => '1', n_SELECT => '0', - n_LOAD => '0', - n_EN => '0', + n_LOAD => '1', + n_EN => '1', nbBit_SELECT => '0', nbBit_LOAD => '1', nbBit_EN => '1',