OpenCores
URL https://opencores.org/ocsvn/mkjpeg/mkjpeg/trunk

Subversion Repositories mkjpeg

[/] [mkjpeg/] [trunk/] [design/] [BufFifo/] [BUF_FIFO.vhd] - Diff between revs 28 and 31

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 28 Rev 31
Line 195... Line 195...
            fifo_almost_full <= '1';
            fifo_almost_full <= '1';
          else
          else
            fifo_almost_full <= '0';
            fifo_almost_full <= '0';
          end if;
          end if;
        else
        else
           if unsigned(fifo_count(to_integer(last_idx))) = to_unsigned(64,8) then
          fifo_almost_full <= fifo_full(to_integer(last_idx));
            fifo_almost_full <= '1';
 
          else
 
            fifo_almost_full <= '0';
 
          end if;
 
        end if;
        end if;
      end if;
      end if;
    end if;
    end if;
  end process;
  end process;
 
 
Line 240... Line 236...
      for i in 0 to C_NUM_SUBF-1 loop
      for i in 0 to C_NUM_SUBF-1 loop
        fifo_half_full(i) <= '0';
        fifo_half_full(i) <= '0';
      end loop;
      end loop;
    elsif CLK'event and CLK = '1' then
    elsif CLK'event and CLK = '1' then
      for i in 0 to C_NUM_SUBF-1 loop
      for i in 0 to C_NUM_SUBF-1 loop
 
        if C_MEMORY_OPTIMIZED = 0 then
        if unsigned(fifo_count(i)) >= 64 then
        if unsigned(fifo_count(i)) >= 64 then
          fifo_half_full(i) <= '1';
          fifo_half_full(i) <= '1';
        else
        else
          fifo_half_full(i) <= '0';
          fifo_half_full(i) <= '0';
        end if;
        end if;
 
        else
 
          fifo_half_full(i) <= fifo_full(i);
 
        end if;
      end loop;
      end loop;
    end if;
    end if;
  end process;
  end process;
 
 
  -------------------------------------------------------------------
  -------------------------------------------------------------------

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.