URL
https://opencores.org/ocsvn/neorv32/neorv32/trunk
[/] [neorv32/] [trunk/] [rtl/] [core/] [neorv32_mtime.vhd] - Diff between revs 64 and 65
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 64 |
Rev 65 |
Line 167... |
Line 167... |
-- Comparator -----------------------------------------------------------------------------
|
-- Comparator -----------------------------------------------------------------------------
|
-- -------------------------------------------------------------------------------------------
|
-- -------------------------------------------------------------------------------------------
|
cmp_sync: process(clk_i)
|
cmp_sync: process(clk_i)
|
begin
|
begin
|
if rising_edge(clk_i) then
|
if rising_edge(clk_i) then
|
cmp_lo_ge_ff <= cmp_lo_ge;
|
cmp_lo_ge_ff <= cmp_lo_ge; -- there is one cycle delay between low (earlier) and high (later) word
|
irq_o <= cmp_hi_gt or (cmp_hi_eq and cmp_lo_ge_ff);
|
irq_o <= cmp_hi_gt or (cmp_hi_eq and cmp_lo_ge_ff);
|
end if;
|
end if;
|
end process cmp_sync;
|
end process cmp_sync;
|
|
|
-- sub-word comparators --
|
-- sub-word comparators --
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.