minor edits

This commit is contained in:
stnolting 2020-08-12 21:17:53 +02:00
parent 968eb68c2c
commit a436a47ced
2 changed files with 2 additions and 5 deletions

View file

@ -1391,7 +1391,7 @@ begin
if (execute_engine.i_reg(27 downto 24) = x"b") then
for i in 0 to PMP_NUM_REGIONS-1 loop
if (execute_engine.i_reg(23 downto 20) = std_ulogic_vector(to_unsigned(i, 4))) and (csr.pmpcfg(i)(7) = '0') then -- unlocked pmpaddr access
csr.pmpaddr(i) <= csr_wdata_i;
csr.pmpaddr(i) <= csr_wdata_i(31 downto 1) & '0'; -- min granularity is 8 bytes -> bit zero cannot be configured
end if;
end loop; -- i (CSRs)
end if;

View file

@ -37,10 +37,7 @@
* @file neorv32.h
* @author Stephan Nolting
*
* @brief Main NEORV32 core library file.
*
* @details This file defines the addresses of the IO devices and their according
* registers and register bits as well as the available CPU CSRs and flags.
* @brief Main NEORV32 core library include file.
**************************************************************************/
#ifndef neorv32_h