-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
116 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,38 @@ | ||
MC: | ||
name: MC | ||
long_name: Microcontroller Certificate Class | ||
# yaml-language-server: $schema=../../schemas/cert_class_schema.json | ||
|
||
introduction: | | ||
This certification class specifies requirements for microcontrollers. | ||
It targets microcontrollers running low-level software on an RTOS or bare-metal. | ||
This CRD is not intended for the smallest possible microcontrollers but rather for applications | ||
benefiting from a standardized microcontroller. | ||
See the https://docs.google.com/document/d/133SZKc18tLsQcT1o6gEmBUkjwrtg2ow63me54RQ1jiY[RISC-V CRDs] | ||
document for information relevant to all RISC-V CRDs. | ||
$schema: cert_class_schema.json# | ||
kind: certificate class | ||
name: MC | ||
long_name: Microcontroller Certificate Class | ||
|
||
naming_scheme: | | ||
The MC (M = Microcontroller, C = Certificate) has the following naming scheme (suffixes after MC | ||
are optional but in the below order): | ||
introduction: | | ||
This certification class specifies requirements for microcontrollers. | ||
It targets microcontrollers running low-level software on an RTOS or bare-metal. | ||
This CRD is not intended for the smallest possible microcontrollers but rather for applications | ||
benefiting from a standardized microcontroller. | ||
See the https://docs.google.com/document/d/133SZKc18tLsQcT1o6gEmBUkjwrtg2ow63me54RQ1jiY[RISC-V CRDs] | ||
document for information relevant to all RISC-V CRDs. | ||
MC<model>[v<version>] | ||
naming_scheme: | | ||
The MC (M = Microcontroller, C = Certificate) has the following naming scheme (suffixes after MC | ||
are optional but in the below order): | ||
Where: | ||
MC<model>[v<version>] | ||
* Left & right square braces denote optional. | ||
* \<model> is a 3 digit integer. It is changed only when mandatory extensions are added to a CRD. | ||
** The one's digit is incremented when a small mandatory extension is added (e.g., Zicond) | ||
** The ten's digit is incremented when a medium mandatory extension is addded (e.g., PMP) | ||
** The hundreds's digit is incremented when a large mandatory extension is addded (e.g., V or H) | ||
* \<version> is a semantic version (see semver.org) formatted as <major>[.<minor>.[patch]]. If \<version> is omitted, the reference applies equally to all versions. | ||
** A <major> release indicates support for a new optional extension. | ||
** A <minor> release indicates one or more of the following changes to the certification tests associated with the CRD. | ||
*** Fix test bug or increase test coverage | ||
*** Add more allowed parameter values | ||
*** Support new extension version | ||
** A <patch> release indicates just CRD specification changes without any difference in functional behavior | ||
Where: | ||
mandatory_priv_modes: | ||
- M | ||
* Left & right square braces denote optional. | ||
* \<model> is a 3 digit integer. It is changed only when mandatory extensions are added to a CRD. | ||
** The one's digit is incremented when a small mandatory extension is added (e.g., Zicond) | ||
** The ten's digit is incremented when a medium mandatory extension is addded (e.g., PMP) | ||
** The hundreds's digit is incremented when a large mandatory extension is addded (e.g., V or H) | ||
* \<version> is a semantic version (see semver.org) formatted as <major>[.<minor>.[patch]]. If \<version> is omitted, the reference applies equally to all versions. | ||
** A <major> release indicates support for a new optional extension. | ||
** A <minor> release indicates one or more of the following changes to the certification tests associated with the CRD. | ||
*** Fix test bug or increase test coverage | ||
*** Add more allowed parameter values | ||
*** Support new extension version | ||
** A <patch> release indicates just CRD specification changes without any difference in functional behavior | ||
mandatory_priv_modes: | ||
- M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
MockCertificateClass: | ||
name: MockCertificateClass | ||
long_name: Mock Certificate Class Long Name | ||
# yaml-language-server: $schema=../../schemas/cert_class_schema.json | ||
|
||
introduction: | | ||
Here's the Mock Certificate Class introduction. | ||
$schema: cert_class_schema.json# | ||
kind: certificate class | ||
name: MockCertificateClass | ||
long_name: Mock Certificate Class Long Name | ||
|
||
naming_scheme: | | ||
Here's the Mock Certificate Class naming scheme. | ||
introduction: | | ||
Here's the Mock Certificate Class introduction. | ||
mandatory_priv_modes: | ||
- M | ||
naming_scheme: | | ||
Here's the Mock Certificate Class naming scheme. | ||
description: Here's the Mock Certificate Class description. | ||
mandatory_priv_modes: | ||
- M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
|
||
"type": "object", | ||
"required": ["$schema", "kind", "name", "long_name", "introduction"], | ||
"additionalProperties": false, | ||
"properties": { | ||
"$schema": { | ||
"type": "string", | ||
"const": "cert_class_schema.json#" | ||
}, | ||
"kind": { | ||
"type": "string", | ||
"const": "certificate class" | ||
}, | ||
"name": { | ||
"type": "string", | ||
"pattern": "^[A-Z][a-zA-Z0-9_]*$", | ||
"description": "The short name of the class, used as a database key" | ||
}, | ||
"long_name": { | ||
"type": "string", | ||
"description": "Descriptive name of the class" | ||
}, | ||
"introduction": { | ||
"type": "string", | ||
"description": "Asciidoc text containing the introduction prose for the class" | ||
}, | ||
"naming_scheme": { | ||
"type": "string", | ||
"description": "Asciidoc text describing the naming scheme for the class" | ||
}, | ||
"mandatory_priv_modes": { | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"enum": ["M", "S", "U", "VS", "VU"] | ||
}, | ||
"uniqueItems": true, | ||
"minItems": 1, | ||
"description": "List of mandatory privilege modes for the class" | ||
}, | ||
"__source": { | ||
"$ref": "schema_defs.json#/$defs/__source" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters