175-- 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.
176--
177process(reset_clk,clock)
178begin
179ifreset_clk='0'then
180resync_timer(0)<='0';
181timer_sec<=interval_retrans(19downto0);
182elsifrising_edge(clock)then
183resync_timer(0)<='0';
184iftimer_sec/=x"00000"then
185timer_sec<=timer_sec-"1";
186else
187timer_sec<=interval_retrans(19downto0);
188resync_timer(0)<='1';
189endif;
190endif;
191endprocess;
192
193process(reset_clk,clock)
194begin
195ifreset_clk='0'then
196nb_retrans<=x"20";
197low_buffer<='0';
198resync_timer(3downto1)<=(others=>'0');
199elsifrising_edge(clock)then
200 -- decrease the number ofbufferto2in cas eof too much retransmit
815-- 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)