mirror of
https://github.com/antonblanchard/microwatt.git
synced 2026-01-11 23:43:15 +00:00
Metavalue cleanup for pmu.vhdl
Signed-off-by: Michael Neuling <mikey@neuling.org>
This commit is contained in:
parent
43e62dbd9e
commit
7a3e5cac3b
6
pmu.vhdl
6
pmu.vhdl
@ -217,7 +217,11 @@ begin
|
||||
|
||||
-- Check for timebase events
|
||||
tbdiff := p_in.tbbits and not prev_tb;
|
||||
tbbit := tbdiff(3 - to_integer(unsigned(mmcr0(MMCR0_TBSEL + 1 downto MMCR0_TBSEL))));
|
||||
if is_X(mmcr0) then
|
||||
tbbit := 'X';
|
||||
else
|
||||
tbbit := tbdiff(3 - to_integer(unsigned(mmcr0(MMCR0_TBSEL + 1 downto MMCR0_TBSEL))));
|
||||
end if;
|
||||
if tbbit = '1' and mmcr0(MMCR0_TBEE) = '1' then
|
||||
event := '1';
|
||||
end if;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user