diff --git a/CHANGELOG.md b/CHANGELOG.md index 76569e0..034bb34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.16.1] - 2023-12-25 + - Add support for Ssqosid extension + ## [3.16.0] - 2024-01-03 - use the "hartX" naming for the merged dict - improve logging statements diff --git a/riscv_config/__init__.py b/riscv_config/__init__.py index dfbbd6a..e47e99e 100644 --- a/riscv_config/__init__.py +++ b/riscv_config/__init__.py @@ -1,4 +1,4 @@ from pkgutil import extend_path __path__ = extend_path(__path__, __name__) -__version__ = '3.16.0' +__version__ = '3.16.1' diff --git a/riscv_config/constants.py b/riscv_config/constants.py index ab410aa..c98e6e4 100644 --- a/riscv_config/constants.py +++ b/riscv_config/constants.py @@ -33,7 +33,7 @@ "Zpn", "Zpsf" ] + Zve_extensions + Zvl_extensions -S_extensions = ['Smrnmi','Svnapot','Svadu', 'Sdext'] +S_extensions = ['Smrnmi','Svnapot','Svadu', 'Sdext', 'Ssqosid', 'Smstateen'] sub_extensions = Z_extensions + S_extensions diff --git a/riscv_config/schemaValidator.py b/riscv_config/schemaValidator.py index 01a7498..5233746 100644 --- a/riscv_config/schemaValidator.py +++ b/riscv_config/schemaValidator.py @@ -47,6 +47,13 @@ def _check_with_zicfiss_check(self, field, value): "Register cannot be implemented without Zicfiss extension in ISA." ) + def _check_with_ssqosid_check(self, field, value): + global extension_list + if value and 'Ssqosid' not in extension_list: + self._error(field, + "Register cannot be implemented without Ssqosid extension in ISA." + ) + def _check_with_satp_modes64(self, field, value): pass diff --git a/riscv_config/schemas/schema_isa.yaml b/riscv_config/schemas/schema_isa.yaml index d7d2960..de7e9d0 100644 --- a/riscv_config/schemas/schema_isa.yaml +++ b/riscv_config/schemas/schema_isa.yaml @@ -9733,6 +9733,131 @@ hart_schema: check_with: - rv64_check default: {accessible: false} + srmcfg: + type: dict + schema: + description: { type: string, default: SXLEN-bit register which provides supervisor-mode resource management configurations } + address: {type: integer, default: 0x181, allowed: [0x181]} + priv_mode: {type: string, default: S, allowed: [S]} + reset-val: { type: integer, check_with: max_length , default: 0} + rv32: + type: dict + check_with: s_check + schema: + fields: {type: list, default: []} + rcid: + type: dict + schema: + description: { type: string , default: Resource Control Identifier. } + shadow: {type: string, default: , nullable: True} + shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']} + msb: {type: integer, default: 11, allowed: [11]} + lsb: {type: integer, default: 0, allowed: [0]} + implemented: {type: boolean, default: true} + type: + type: dict + oneof: + - schema: {ro_constant: {type: integer, max: 4095}} + - schema: { warl: *ref_warl } + default: + warl: + dependency_fields: [] + legal: + - rcid[11:0] in [0x0:0xFFF] + wr_illegal: + - Unchanged + default: {implemented: False} + check_with: s_check + mcid: + type: dict + schema: + description: { type: string, default: Monitoring counter identifier. } + shadow: {type: string, default: , nullable: True} + shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']} + msb: {type: integer, default: 27, allowed: [27]} + lsb: {type: integer, default: 16, allowed: [16]} + implemented: {type: boolean, default: true} + type: + type: dict + oneof: + - schema: {ro_constant: {type: integer, max: 4095 }} + - schema: { warl: *ref_warl } + default: + warl: + dependency_fields: [] + legal: + - mcid[11:0] in [0x0:0xFFF] + wr_illegal: + - Unchanged + default: {implemented: False} + check_with: s_check + accessible: + type: boolean + check_with: + - rv32_check + - ssqosid_check + default: {accessible: false} + rv64: + type: dict + check_with: s_check + schema: + fields: {type: list, default: []} + rcid: + type: dict + schema: + description: + type: string + default: Resource control identifier + shadow: {type: string, default: , nullable: True} + shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']} + msb: {type: integer, default: 11, allowed: [11]} + lsb: {type: integer, default: 0, allowed: [0]} + implemented: {type: boolean, default: true} + type: + type: dict + oneof: + - schema: {ro_constant: {type: integer, max: 4095}} + - schema: { warl: *ref_warl } + default: + warl: + dependency_fields: [] + legal: + - rcid[13:0] in [0x0:0xFFF] + wr_illegal: + - Unchanged + default: {implemented: False} + check_with: s_check + mcid: + type: dict + schema: + description: + type: string + default: Monitoring counter identifier. + shadow: {type: string, default: , nullable: True} + shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']} + msb: {type: integer, default: 27, allowed: [27]} + lsb: {type: integer, default: 16, allowed: [16]} + implemented: {type: boolean, default: true} + type: + type: dict + oneof: + - schema: {ro_constant: {type: integer, max: 4095}} + - schema: { warl: *ref_warl } + default: + warl: + dependency_fields: [] + legal: + - mcid[11:0] in [0x0:0xFFF] + wr_illegal: + - Unchanged + default: {implemented: False} + check_with: s_check + accessible: + type: boolean + check_with: + - rv64_check + - ssqosid_check + default: {accessible: false} ustatus: type: dict schema: diff --git a/setup.cfg b/setup.cfg index 24483d1..fec6c06 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 3.16.0 +current_version = 3.16.1 commit = True tag = True