Skip to content

Commit fdacc18

Browse files
authored
Merge pull request #32 from riscv/document_changes
Document changes
2 parents e428724 + a27a85b commit fdacc18

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
44

5+
## 2.2.2 - 2020-06-09
6+
### Changed
7+
- Changed quickstart 'riscv_config' to 'riscv-config'
8+
- Changed checker.py to add check_reset_fill_fields() description
9+
510
## 2.2.1 - 2020-05-18
611
### Changed
712
- Changed minimum python version requirement to 3.6.0 which is typically easy to install on all

docs/source/quickstart.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Usage Example
151151

152152
.. code-block:: bash
153153
154-
$ riscv_config -ispec examples/rv32i_isa.yaml -pspec examples/rv32i_platform.yaml
154+
$ riscv-config -ispec examples/rv32i_isa.yaml -pspec examples/rv32i_platform.yaml
155155
156156
Executing the above command should display the following on the terminal:
157157

riscv_config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from pkgutil import extend_path
22
__path__ = extend_path(__path__, __name__)
3-
__version__ = "2.2.1"
3+
__version__ = "2.2.2"

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)