-- TX STATS
-- when an update is txd load shifter (plus start/stop bit)
-- shifter always runs (no power concerns as this is an example design)
gen_shift_tx : process (fifo_clk_i)
begin
  if fifo_clk_i'event and fifo_clk_i = '1' then
    tx_statistics_valid_reg <= tx_statistics_valid;
    if tx_statistics_valid_reg = '0' and tx_statistics_valid = '1' then
      tx_stats_shift <= '1' & tx_statistics_vector & '1';
    else
      tx_stats_shift <= tx_stats_shift(32 downto 0) & '0';
    end if;
  end if;
end process gen_shift_tx;

tx_statistics_s <= tx_stats_shift(33);