Skip to content

Commit

Permalink
Metavalue cleanup for pmu.vhdl
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Neuling <[email protected]>
  • Loading branch information
mikey committed Jul 28, 2022
1 parent 43e62db commit 7a3e5ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pmu.vhdl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7a3e5ca

Please sign in to comment.