Skip to content

Commit

Permalink
[pmp] tie unused signals to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
stnolting committed Dec 29, 2024
1 parent 2a5470b commit 68d5c13
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions rtl/core/neorv32_cpu_pmp.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,9 @@ begin
region_gen:
for r in 0 to NUM_REGIONS-1 generate

-- naturally-aligned address mask --
-- NAPOT address mask --
nap_mode_enable:
if NAP_EN generate

-- compute address masks for NAPOT mode --
addr_mask_napot(r)(pmp_lsb_c) <= '0';
addr_mask_napot_gen:
Expand All @@ -275,9 +274,15 @@ begin
end if;
end if;
end process addr_masking;

end generate; -- /nap_mode_enable

-- NAPOT disabled --
nap_mode_disable:
if not NAP_EN generate
addr_mask_napot <= (others => (others => '0'));
addr_mask <= (others => (others => '0'));
end generate;


-- check region address match --
-- NA4 and NAPOT --
Expand Down

0 comments on commit 68d5c13

Please sign in to comment.