Skip to main content

Inst Schema

v0.2
Auto-generated

This page is generated from inst_schema.json by the schema doc generator. To update this page, edit the schema file and run bin/chore gen schema-docs.

Definitions​

fully_resolved_opcodes
PropertyTypeRequiredDescription
locationschema_defs.json#/$defs/field_locationβœ“
display_namestringβœ“field name, displayed in encoding drawings
valueOne of: An integer, either native to JSON or a number-like string | objectβœ“
$child_ofOne of: string | Array<string>
fully_resolved_variables
fully_resolved_format
old_encoding
PropertyTypeRequiredDescription
matchOne of: string | string | string
variablesArray<field>
additionalPropertiesnever
type
PropertyTypeRequiredDescription
$refstringβœ“Reference to an instruction type definition
subtype
PropertyTypeRequiredDescription
$refstringβœ“Reference to an instruction subtype definition
variable_metadata
field β€” Decode field

Decode field

Properties​

PropertyTypeRequiredDescription
$schemastring (const: inst_schema.json#)βœ“Path to schema, relative to <UDB ROOT>/schemas
kindstring (const: instruction)βœ“
namestringβœ“Instruction mnemonic (must be lowercase)
long_namestringβœ“One line description of the instruction
descriptionstring | Array<conditional_text>βœ“Detailed description of the instruction
definedByA condition (YAML structure or IDL function). See the conditions reference for details.βœ“Extension(s) that defines the instruction
accessobjectβœ“
assemblystringβœ“Assembly format of the instruction. Can use decode variables
encodingOne of: old_encoding | objectInstruction encoding and decode variables
formatobject
pseudoinstructionsArray<{when, to}> ↓ schemaVariations of this instruction that form a pseudoinstruction
data_independent_timingbooleanWhether or not the instruction must execute with data-independent timing when the Zkt extension is supported
cert_normative_rulesArchitecturally visible behaviors requiring validation by certification tests
operation_astobject
operation()stringFunctional description of the instruction using IDL language
access_detailstringExtra detail about access when at least one mode is 'sometimes'
hintsArray<{$ref}> ↓ schemaList of HINTs that use this instruction's codepoints
pseudoinstructions item schema
PropertyTypeRequiredDescription
whenstringCondition when the instruction has an alias
tostringpseudoinstruction format
hints item schema
PropertyTypeRequiredDescription
$refstringβœ“Ref to an instruction that is using a HINT codepoint(s) of this instruction
Tooling field

$source is an optional field set automatically by UDB tooling to record the file path this object was loaded from. You do not need to set it manually.

Schema Information​

PropertyValue
Versionv0.2
JSON Schema VersionDraft 07