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

Subversion Repositories neorv32

[/] [neorv32/] [trunk/] [rtl/] [core/] [neorv32_mtime.vhd] - Diff between revs 4 and 6

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

Rev 4 Rev 6
Line 106... Line 106...
        mtime_lo <= (others => '0');
        mtime_lo <= (others => '0');
        mtime_hi <= (others => '0');
        mtime_hi <= (others => '0');
      else
      else
        -- mtime low --
        -- mtime low --
        mtime_lo <= std_ulogic_vector(unsigned(mtime_lo) + 1);
        mtime_lo <= std_ulogic_vector(unsigned(mtime_lo) + 1);
 
        mtime_lo_msb_ff <= mtime_lo(mtime_lo'left);
        -- mtime high --
        -- mtime high --
        if ((mtime_lo_msb_ff xor mtime_lo(mtime_lo'left)) = '1') then -- mtime_lo carry?
        if ((mtime_lo_msb_ff xor mtime_lo(mtime_lo'left)) = '1') then -- mtime_lo carry?
          mtime_hi <= std_ulogic_vector(unsigned(mtime_hi) + 1);
          mtime_hi <= std_ulogic_vector(unsigned(mtime_hi) + 1);
        end if;
        end if;
      end if;
      end if;

powered by: WebSVN 2.1.0

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