@@ -56,7 +56,7 @@ package neorv32_package is
56
56
57
57
-- Architecture Constants -----------------------------------------------------------------
58
58
-- -------------------------------------------------------------------------------------------
59
- constant hw_version_c : std_ulogic_vector (31 downto 0 ) := x"01080609 " ; -- hardware version
59
+ constant hw_version_c : std_ulogic_vector (31 downto 0 ) := x"01080610 " ; -- hardware version
60
60
constant archid_c : natural := 19 ; -- official RISC-V architecture ID
61
61
constant XLEN : natural := 32 ; -- native data path width, do not change!
62
62
@@ -93,17 +93,17 @@ package neorv32_package is
93
93
94
94
-- IO Address Map --
95
95
constant iodev_size_c : natural := 256 ; -- size of a single IO device (bytes)
96
- -- constant base_res_cfs_c : std_ulogic_vector(31 downto 0) := x"ffffe000"; -- reserved
97
- -- constant base_res_cfs_c : std_ulogic_vector(31 downto 0) := x"ffffe100"; -- reserved
98
- -- constant base_res_cfs_c : std_ulogic_vector(31 downto 0) := x"ffffe200"; -- reserved
99
- -- constant base_res_cfs_c : std_ulogic_vector(31 downto 0) := x"ffffe300"; -- reserved
100
- -- constant base_res_cfs_c : std_ulogic_vector(31 downto 0) := x"ffffe400"; -- reserved
101
- -- constant base_res_cfs_c : std_ulogic_vector(31 downto 0) := x"ffffe500"; -- reserved
102
- -- constant base_res_cfs_c : std_ulogic_vector(31 downto 0) := x"ffffe600"; -- reserved
103
- -- constant base_res_cfs_c : std_ulogic_vector(31 downto 0) := x"ffffe700"; -- reserved
104
- -- constant base_res_cfs_c : std_ulogic_vector(31 downto 0) := x"ffffe800"; -- reserved
105
- -- constant base_res_cfs_c : std_ulogic_vector(31 downto 0) := x"ffffe900"; -- reserved
106
- -- constant base_res_cfs_c : std_ulogic_vector(31 downto 0) := x"ffffea00"; -- reserved
96
+ -- constant base_???_c : std_ulogic_vector(31 downto 0) := x"ffffe000"; -- reserved
97
+ -- constant base_???_c : std_ulogic_vector(31 downto 0) := x"ffffe100"; -- reserved
98
+ -- constant base_???_c : std_ulogic_vector(31 downto 0) := x"ffffe200"; -- reserved
99
+ -- constant base_???_c : std_ulogic_vector(31 downto 0) := x"ffffe300"; -- reserved
100
+ -- constant base_???_c : std_ulogic_vector(31 downto 0) := x"ffffe400"; -- reserved
101
+ -- constant base_???_c : std_ulogic_vector(31 downto 0) := x"ffffe500"; -- reserved
102
+ -- constant base_???_c : std_ulogic_vector(31 downto 0) := x"ffffe600"; -- reserved
103
+ -- constant base_???_c : std_ulogic_vector(31 downto 0) := x"ffffe700"; -- reserved
104
+ -- constant base_???_c : std_ulogic_vector(31 downto 0) := x"ffffe800"; -- reserved
105
+ -- constant base_???_c : std_ulogic_vector(31 downto 0) := x"ffffe900"; -- reserved
106
+ -- constant base_???_c : std_ulogic_vector(31 downto 0) := x"ffffea00"; -- reserved
107
107
constant base_io_cfs_c : std_ulogic_vector (31 downto 0 ) := x"ffffeb00" ;
108
108
constant base_io_slink_c : std_ulogic_vector (31 downto 0 ) := x"ffffec00" ;
109
109
constant base_io_dma_c : std_ulogic_vector (31 downto 0 ) := x"ffffed00" ;
@@ -126,7 +126,7 @@ package neorv32_package is
126
126
constant base_io_sysinfo_c : std_ulogic_vector (31 downto 0 ) := x"fffffe00" ;
127
127
constant base_io_dm_c : std_ulogic_vector (31 downto 0 ) := x"ffffff00" ;
128
128
129
- -- OCD Debug Module Entry Points --
129
+ -- On-Chip Debugger - Debug Module Entry Points (Code ROM) --
130
130
constant dm_exc_entry_c : std_ulogic_vector (31 downto 0 ) := x"ffffff00" ; -- = base_io_dm_c + 0, exceptions entry point
131
131
constant dm_park_entry_c : std_ulogic_vector (31 downto 0 ) := x"ffffff08" ; -- = base_io_dm_c + 8, normal entry point
132
132
@@ -1076,7 +1076,7 @@ package body neorv32_package is
1076
1076
if (2 ** i >= input ) then
1077
1077
return i;
1078
1078
end if ;
1079
- end loop ; -- i
1079
+ end loop ;
1080
1080
return 0 ;
1081
1081
end function index_size_f ;
1082
1082
@@ -1143,7 +1143,7 @@ package body neorv32_package is
1143
1143
tmp_v(input 'length - 1 ) := input (input 'length - 1 ); -- keep MSB
1144
1144
for i in input 'length - 2 downto 0 loop
1145
1145
tmp_v(i) := input (i) xor input (i+ 1 );
1146
- end loop ; -- i
1146
+ end loop ;
1147
1147
return tmp_v;
1148
1148
end function bin_to_gray_f ;
1149
1149
@@ -1155,7 +1155,7 @@ package body neorv32_package is
1155
1155
tmp_v(input 'length - 1 ) := input (input 'length - 1 ); -- keep MSB
1156
1156
for i in input 'length - 2 downto 0 loop
1157
1157
tmp_v(i) := tmp_v(i+ 1 ) xor input (i);
1158
- end loop ; -- i
1158
+ end loop ;
1159
1159
return tmp_v;
1160
1160
end function gray_to_bin_f ;
1161
1161
@@ -1167,7 +1167,7 @@ package body neorv32_package is
1167
1167
tmp_v := '0' ;
1168
1168
for i in a'range loop
1169
1169
tmp_v := tmp_v or a(i);
1170
- end loop ; -- i
1170
+ end loop ;
1171
1171
return tmp_v;
1172
1172
end function or_reduce_f ;
1173
1173
@@ -1179,7 +1179,7 @@ package body neorv32_package is
1179
1179
tmp_v := '1' ;
1180
1180
for i in a'range loop
1181
1181
tmp_v := tmp_v and a(i);
1182
- end loop ; -- i
1182
+ end loop ;
1183
1183
return tmp_v;
1184
1184
end function and_reduce_f ;
1185
1185
@@ -1191,7 +1191,7 @@ package body neorv32_package is
1191
1191
tmp_v := '0' ;
1192
1192
for i in a'range loop
1193
1193
tmp_v := tmp_v xor a(i);
1194
- end loop ; -- i
1194
+ end loop ;
1195
1195
return tmp_v;
1196
1196
end function xor_reduce_f ;
1197
1197
@@ -1233,7 +1233,7 @@ package body neorv32_package is
1233
1233
for i in 0 to 7 loop
1234
1234
hex_v := tmp_v(i* 4 + 3 downto i* 4 + 0 );
1235
1235
res_v(i+ 1 ) := to_hexchar_f(bit_rev_f(hex_v));
1236
- end loop ; -- i
1236
+ end loop ;
1237
1237
return res_v;
1238
1238
end function to_hstring32_f ;
1239
1239
@@ -1244,7 +1244,7 @@ package body neorv32_package is
1244
1244
begin
1245
1245
for i in 0 to input 'length - 1 loop
1246
1246
output_v(input 'length - i- 1 ) := input (i);
1247
- end loop ; -- i
1247
+ end loop ;
1248
1248
return output_v;
1249
1249
end function bit_rev_f ;
1250
1250
@@ -1289,7 +1289,7 @@ package body neorv32_package is
1289
1289
if (input (i) = '1' ) then
1290
1290
cnt_v := cnt_v + 1 ;
1291
1291
end if ;
1292
- end loop ; -- i
1292
+ end loop ;
1293
1293
return cnt_v;
1294
1294
end function popcount_f ;
1295
1295
@@ -1305,7 +1305,7 @@ package body neorv32_package is
1305
1305
else
1306
1306
exit ;
1307
1307
end if ;
1308
- end loop ; -- i
1308
+ end loop ;
1309
1309
return cnt_v;
1310
1310
end function leading_zeros_f ;
1311
1311
@@ -1319,9 +1319,9 @@ package body neorv32_package is
1319
1319
if (init'length > depth) then
1320
1320
return mem_v;
1321
1321
end if ;
1322
- for idx_v in 0 to init'length - 1 loop -- init only in range of source data array
1323
- mem_v(idx_v ) := init(idx_v );
1324
- end loop ; -- idx_v
1322
+ for i in 0 to init'length - 1 loop -- init only in range of source data array
1323
+ mem_v(i ) := init(i );
1324
+ end loop ;
1325
1325
return mem_v;
1326
1326
end function mem32_init_f;
1327
1327
0 commit comments