188-- in regular interval we set the nb retransmit to20 , during this interval, if the number of retransmit is > to20 , we decrease the number ofbufferuntil the next interval.
189--
190process(reset_clk,clock)
191begin
192ifreset_clk='0'then
193resync_timer(0)<='0';
194timer_sec<=interval_retrans(19downto0);
195elsifrising_edge(clock)then
196resync_timer(0)<='0';
197iftimer_sec/=x"00000"then
198timer_sec<=timer_sec-"1";
199else
200timer_sec<=interval_retrans(19downto0);
201resync_timer(0)<='1';
202endif;
203endif;
204endprocess;
205
206process(reset_clk,clock)
207begin
208ifreset_clk='0'then
209nb_retrans<=x"20";
210low_buffer<='0';
211resync_timer(3downto1)<=(others=>'0');
212elsifrising_edge(clock)then
213 -- decrease the number ofbufferto2in cas eof too much retransmit
841-- the command function pulse (WEN_funct) should be enable only if seq_nm_cmd /= seqnb_rcv before the following assignment (only one command is sent at the time)