Skip to content

Commit ec7b613

Browse files
committed
document additions
1 parent c294eea commit ec7b613

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

riscv_config/checker.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,10 @@ def get_fields(node, bitwidth):
388388

389389

390390
def check_reset_fill_fields(spec):
391+
'''The check_reset_fill_fields function fills the field node with the names of the sub-fields of the register and then checks whether the reset-value of the register is a legal value. To do so, it iterates over all the subfields and extracts the corresponding field value from the reset-value. Then it checks the legality of the value according to the given field description. If the fields is implemented i.e accessible in both 64 bit and 32 bit modes, the 64 bit mode is given preference. '''
391392
errors = {}
392393
for node in spec:
394+
393395
if isinstance(spec[node], dict):
394396
if spec[node]['rv32']['accessible']:
395397
spec[node]['rv32']['fields'] = get_fields(

0 commit comments

Comments
 (0)