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

Subversion Repositories mkjpeg

[/] [mkjpeg/] [trunk/] [design/] [BufFifo/] [BUF_FIFO.vhd] - Diff between revs 56 and 58

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

Rev 56 Rev 58
Line 211... Line 211...
        fdct_fifo_hf_full <= '1';
        fdct_fifo_hf_full <= '1';
      else
      else
        fdct_fifo_hf_full <= '0';
        fdct_fifo_hf_full <= '0';
      end if;
      end if;
 
 
      if wr_line_idx > rd_line_idx + C_NUM_LINES-1 then
      fifo_almost_full <= '0';
 
      if C_EXTRA_LINES = 0 then
 
        if wr_line_idx = rd_line_idx + C_NUM_LINES-1 then
 
          if pixel_cnt >= unsigned(img_size_x)-1-1 then
        fifo_almost_full <= '1';
        fifo_almost_full <= '1';
 
          end if;
 
        elsif wr_line_idx > rd_line_idx + C_NUM_LINES-1 then
 
          fifo_almost_full <= '1';
 
        end if;
      else
      else
        fifo_almost_full <= '0';
        if wr_line_idx > rd_line_idx + C_NUM_LINES-1 then
 
          fifo_almost_full <= '1';
 
        end if;
      end if;
      end if;
 
 
    end if;
    end if;
  end process;
  end process;
 
 
Line 243... Line 252...
      if fdct_fifo_rd = '1' then
      if fdct_fifo_rd = '1' then
        -- last pixel in block
        -- last pixel in block
        if pix_inblk_cnt = 8-1 then
        if pix_inblk_cnt = 8-1 then
          pix_inblk_cnt <= (others => '0');
          pix_inblk_cnt <= (others => '0');
 
 
          -- last block in line
 
          --if read_block_cnt = unsigned(img_size_x(15 downto 3))-1 then
 
          --  rd_line_idx <= rd_line_idx + 1;
 
          --end if;
 
 
 
          -- last line in 8
          -- last line in 8
          if line_inblk_cnt = 8-1 then
          if line_inblk_cnt = 8-1 then
            line_inblk_cnt <= (others => '0');
            line_inblk_cnt <= (others => '0');
 
 
            -- last block in last line
            -- last block in last line

powered by: WebSVN 2.1.0

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