1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-04-02 19:58:07 +00:00

xics: Fix warning when comparing two std_ulogic_vectors

Use unsigned() to make it clear what we are doing.

Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
This commit is contained in:
Anton Blanchard
2022-03-15 16:04:18 +11:00
committed by Anton Blanchard
parent f01f3d233a
commit 00bf0af21c

View File

@@ -269,7 +269,7 @@ architecture rtl of xics_ics is
begin
masked := x"00";
masked(PRIO_BITS - 1 downto 0) := (others => '1');
if pri8 >= masked then
if unsigned(pri8) >= unsigned(masked) then
return pri_masked;
else
return pri8(PRIO_BITS-1 downto 0);