操作数与参数
RegDst- Reg5 destination: discard, R1..R23, push U, or push T
SSR_ID- system-register identifier
SSRGET reads the complete encoded system-register address.
PTO-SCALAR-SSRGETssrget SSR_ID, ->{t, u, Rd}| 字段 | 位宽 | 有符号性 | 架构角色 | 编码零 |
|---|---|---|---|---|
RegDst | 5 | encoding-defined | Reg5 destination: discard, R1..R23, push U, or push T | Encoded zero names the architectural zero GPR. |
SSR_ID | 12 | encoding-defined | system-register identifier | Encoded zero selects value zero of the system-register identifier. |
Loading WaveDrom diagram… The encoding table and WaveJSON remain available below.
| Decoded item | Bit range | Value |
|---|---|---|
| SSR_ID | 31:20 | variable |
| Constant | 19:12 | 8'b00000000 |
| RegDst | 11:7 | variable |
| Constant | 6:0 | 7'b0111011 |
{
"reg": [
{
"bits": 7,
"name": "7'b0111011"
},
{
"bits": 5,
"name": "RegDst"
},
{
"bits": 8,
"name": "8'b00000000"
},
{
"bits": 12,
"name": "SSR_ID"
}
],
"config": {
"bits": 32,
"fontsize": 13,
"hspace": 900,
"lanes": 1,
"offset": 0
}
}ssrget SSR_ID, ->{t, u, Rd}
RegDstSSR_ID下面是该指令所有者中的 Operation;页面没有重写这段行为。
readonly func InstructionContractOperation_SSRGET() => ScalarOperationbegin return ScalarOperation_SSRGET;end;readonly func InstructionContractHandler_SSRGET() => ScalarSemanticHandlerbegin return ScalarHandler_ExecuteSystemRegisterGet;end;
pure func InstructionContractRequiresSystemBlock_SSRGET() => booleanbegin return TRUE;end;
pure func InstructionContractSystemTransferKind_SSRGET() => bits(2)begin return '00';end;
pure func InstructionContractSystemAddressWidth_SSRGET() => integer {5,12,24}begin return 12;end;
pure func InstructionContractPushesTemporaryT_SSRGET() => booleanbegin return FALSE;end;// PTO-INSTRUCTION: {"assembly":["ssrget SSR_ID, ->{t, u, Rd}"],"block":[],"catalog_indices":[433],"catalog_records":[{"asm":"ssrget SSR_ID, ->{t, u, Rd}","constraints":[],"encoding":[{"index":0,"mask":"0x000ff07f","match":"0x0000003b","width_bits":32}],"encoding_kind":"L32","fields":[{"name":"RegDst","pieces":[{"instruction_lsb":7,"value_lsb":0,"width":5}],"signedness":"encoding-defined","width":5},{"name":"SSR_ID","pieces":[{"instruction_lsb":20,"value_lsb":0,"width":12}],"signedness":"encoding-defined","width":12}],"form_id":"ssrget_32_959957ab6b75","length_bits":32,"mnemonic":"SSRGET","semantic_family":"SYS","semantic_group":"SYS","semantic_handler":"ExecuteSystemRegisterGet","semantic_summary":"SSRGET reads the complete encoded system-register address.","status":"accepted"}],"classification":["sys"],"contract":{"block_composition":["SSRGET executes as one scalar operation in the body of an active SYS block."],"canonical_assembly":["ssrget SSR_ID, ->{t, u, Rd}"],"defaults":["Every displayed operand is encoded explicitly. Encoded zero is an assigned value and never denotes omission."],"encoding_class":"standalone-encoded","examples":["ssrget SSR_ID, ->{t, u, Rd}"],"exceptions":["Invalid block placement raises Illegal Block Exception before encoded-field legality or effects.","A reserved encoding or rejected access raises Illegal Instruction before destination, queue, system-state, or TPC effects."],"field_contracts":{},"field_zero_meanings":{"RegDst":"Encoded zero names the architectural zero GPR.","SSR_ID":"Encoded zero selects value zero of the system-register identifier."},"legality":["Every fixed bit and explicit field constraint is checked before operation semantics.","The complete encoded address is checked against its RO, WO, RW, unknown-address, and current-ACR access rules before effects."],"memory_effects":["none"],"operands":[{"field":"RegDst","role":"Reg5 destination: discard, R1..R23, push U, or push T"},{"field":"SSR_ID","role":"system-register identifier"}],"ordering":["Check block placement and encoded legality before source reads or architectural effects.","Snapshot every scalar source before the selected system effect, then advance TPC only after success."],"standalone_opcode":true,"state_effects":["Read the complete XLEN system-register value and publish it through the common Reg5 destination mapping.","A rejected read preserves the destination and queue state except for ordinary trap entry."]},"depends_on":["PTO-SCALAR-MODEL-SYS-REGISTERS"],"id":"PTO-SCALAR-SSRGET","mnemonic":"SSRGET","summary":"SSRGET reads the complete encoded system-register address.","surface":"scalar"}// PTO-REVIEW: {"review_method":"formal-definition-read","outcome":"FORMAL-COMPLETE","reviewed_fields":["assembly","encoding","defaults","operation","state","memory","ordering","faults","reserved"]}// NDF-BEGIN: PTO-SSRGET-ADR-CONTRACT-001// ndf: kind=contract level=L1 layer=scalar status=accepted// Decisions: ADR-0031.// SSRGET MUST enforce its mnemonic-owned system or maintenance access// domain before effects and MUST preserve destination, queue, and system state// on rejection except for the ordinary instruction-attempt trap envelope.// NDF-END: PTO-SSRGET-ADR-CONTRACT-001// DOC-BEGIN: decodereadonly func InstructionContractOperation_SSRGET() => ScalarOperationbegin return ScalarOperation_SSRGET;end;// DOC-END: decode// DOC-BEGIN: operationreadonly func InstructionContractHandler_SSRGET() => ScalarSemanticHandlerbegin return ScalarHandler_ExecuteSystemRegisterGet;end;
pure func InstructionContractRequiresSystemBlock_SSRGET() => booleanbegin return TRUE;end;
pure func InstructionContractSystemTransferKind_SSRGET() => bits(2)begin return '00';end;
pure func InstructionContractSystemAddressWidth_SSRGET() => integer {5,12,24}begin return 12;end;
pure func InstructionContractPushesTemporaryT_SSRGET() => booleanbegin return FALSE;end;// DOC-END: operation
SSRGET 读取已分配的系统寄存器地址并发布完整 XLEN 值。
ASL DOC 区域选择 ScalarHandler_ExecuteSystemRegisterGet。读取源或改变系统状态之前,必须先检查位置和编码合法性。
该指令占用活动 SYS 块体中的一个标量操作位置。
RegDst 承载 Reg5 目的地:丢弃、R1..R23、压入 U 或压入 T;SSR_ID 承载系统寄存器标识符。
编码零是已分配的字段值,从不表示省略操作数。
地址与访问预检完成后,完整 XLEN 系统寄存器值通过通用 Reg5 目的地映射发布。
读取被拒绝时,除普通陷阱进入外,不会改变所选目的地或临时队列顺序。
完整地址必须先通过已分配访问类别和当前 ACR 权限检查,之后才能产生目的地或队列效果。
无效的 SYS 块位置会在字段检查之前被拒绝。保留编码或访问拒绝除普通陷阱包络外,不产生目的地、队列、系统状态或 TPC 效果。
该写法示例只用于说明;确切合法性与效果仍由下方生成契约定义。
可从 ssrget SSR_ID, ->{t, u, Rd} 开始,先沿编码字段完成预检,再继续查看所选系统效果。
正文来自 owning ASL。拖拽或按钮只临时改变当前页面显示顺序。
Decisions: ADR-0031. SSRGET MUST enforce its mnemonic-owned system or maintenance access domain before effects and MUST preserve destination, queue, and system state on rejection except for the ordinary instruction-attempt trap envelope.
PTO-SSRGET-ADR-CONTRACT-001asl/scalar/sys/SSRGET.asla8ded2822340f6b7a11caf91a88a692adf59616e1db8253c2df6ef54a735746cddccc1f5b41edb040997fb70d8d2d8bd0925ae8f0b27604d2f9c545fbf82d54219 matching entries
PTO-AVS-SCALAR-SSRGET-DECODE-001tests/asl/scalar/sys/SSRGET/scalar-decode-ssrget-canonical-001.asl00a1840af919e2503354a4766a737a9e4fd1df7061c533fa67ee71daf7fa479aPTO-AVS-SYS-SSRGET-ACCESS-001tests/asl/scalar/sys/SSRGET/scalar-fault-ssrget-access-001.asl639d9f0212ace8b29535471f39dc524236a45dc2d5ea8418d2b7d73e51758265PTO-AVS-SYS-SSRGET-DISCARD-001tests/asl/scalar/sys/SSRGET/scalar-exec-ssrget-discard-001.asl70ce32d46da36219a8d7f8864253591ea4ece6a9429fdfb7a2a7452797d12303PTO-AVS-SYS-SSRGET-EXEC-001tests/asl/scalar/sys/SSRGET/scalar-exec-ssrget-direct-001.aslaf2127ac0b9c659ed497652093ae15bc3ace0ddcbe491346d0906d81435b51c4PTO-AVS-SYS-SSRGET-PLACE-001tests/asl/scalar/sys/SSRGET/scalar-fault-ssrget-place-001.asl16e984c28875abce93fc4789b7cfcee4334b3705adee84d3daf7f44110142e54PTO-AVS-SYS-SSRGET-RING-001tests/asl/scalar/sys/SSRGET/scalar-fault-ssrget-ring-001.asl01375da25cdef14be14d07be38f7a2f11a24bb1e55d72188ec368c7f49dcaaddPTO-AVS-SYS-SSRGET-TDST-001tests/asl/scalar/sys/SSRGET/scalar-exec-ssrget-tdst-001.asl89423f7c94ed3763852e5ef385005fc52cd21d573308330987f1b1488ade1475PTO-AVS-SYS-SSRGET-UDST-001tests/asl/scalar/sys/SSRGET/scalar-exec-ssrget-udst-001.asl5bf8e0fa9e132c7459c61c5266380b397b8ab00bceca68a2054ee9541b67c4aaPTO-AVS-SYS-SSRGET-UNKNOWN-001tests/asl/scalar/sys/SSRGET/scalar-fault-ssrget-unknown-001.aslfb068c51694b32f3e000f3d378735bb0b1624c9fbcb4fb1c6c86ff964dde31d1PTO-EVIDENCE-RELEASE-TRACEABILITYPTO-EVIDENCE-RELEASE-TRACEABILITYspec/evidence/release-traceability-readiness.jsonc7327021d39dc67ac5564bc55073b3870a397d79ac8d9648284d56e33bc14a3ePTO-EVIDENCE-INSTRUCTION-CONTRACT-CLOSUREPTO-EVIDENCE-INSTRUCTION-CONTRACT-CLOSUREspec/evidence/instruction-contract-closure.json3ef2bb62421c79dff8fa77a1c7983923b523244b8090812883ef81286ca8106aPTO-EVIDENCE-ARCHITECTURE-READINESSPTO-EVIDENCE-ARCHITECTURE-READINESSspec/evidence/architecture-readiness.json4b0b85199101251bea744e0f3591cc31906909dc80d5ab651c417a936036a004PTO-EVIDENCE-RELEASE-GATE-READINESSPTO-EVIDENCE-RELEASE-GATE-READINESSspec/evidence/release-gate-readiness.jsona0f4d2b6920c08981ea55fd8ef820708a40d4feb5402c5150e8e9ab532d84ce0PTO-EVIDENCE-RELEASE-MANIFESTPTO-EVIDENCE-RELEASE-MANIFESTspec/release-manifest.json1a64c109ed7a90351c41e2a418b3c0ebaf8ad975838986d2101385186b85c0d8Loading ADR-0003…
ADR-0003docs/status/decisions/0003-pto-owned-system-register-names.mdc6a5379776c3b29c25f0896bc56f84d8f5c15832bbba0859b822aa99a65e342dLoading ADR-0018…
ADR-0018docs/status/decisions/0018-pto-v0-trap-disposition.mdce33454ffd2a595425ebece5954c9990ea2b9c4890008ad700599f767d7b9716Loading ADR-0031…
ADR-0031docs/status/decisions/0031-scalar-sys-totality-and-profile-boundaries.md5680b3516be6c28a1ccb198c99f5efb66317c65330f6d87434173024d2795a7dLoading ADR-0059…
ADR-0059docs/status/decisions/0059-mnemonic-field-encoding-closure.mdf18d13f735cfaf9f2803c754c5818f4af33d1cc42c489f0d9ce060b07bb3a196Loading ADR-0084…
ADR-0084docs/status/decisions/0084-scalar-system-and-queue-operations.mde068992fa81e2c4ac46e492391a2f784141d68e041bf0b9e0586c37217d1e08c{
"classification": [
"sys"
],
"documentation": "docs/scalar/sys/SSRGET.md",
"id": "PTO-SCALAR-SSRGET",
"instruction_contract": {
"artifact": "spec/evidence/instruction-contract-closure.json",
"mnemonic": "SSRGET",
"ndf_clause": "PTO-INST-SCALAR-SSRGET"
},
"mnemonic": "SSRGET",
"readiness_subjects": [
"ADR-0003",
"ADR-0018",
"ADR-0031",
"ADR-0059",
"ADR-0084"
],
"semantic_tests": [
"PTO-AVS-SYS-SSRGET-ACCESS-001",
"PTO-AVS-SYS-SSRGET-DISCARD-001",
"PTO-AVS-SYS-SSRGET-EXEC-001",
"PTO-AVS-SYS-SSRGET-PLACE-001",
"PTO-AVS-SYS-SSRGET-RING-001",
"PTO-AVS-SYS-SSRGET-TDST-001",
"PTO-AVS-SYS-SSRGET-UDST-001",
"PTO-AVS-SYS-SSRGET-UNKNOWN-001"
],
"source": "asl/scalar/sys/SSRGET.asl",
"surface": "scalar",
"tests": [
"PTO-AVS-SCALAR-SSRGET-DECODE-001",
"PTO-AVS-SYS-SSRGET-ACCESS-001",
"PTO-AVS-SYS-SSRGET-DISCARD-001",
"PTO-AVS-SYS-SSRGET-EXEC-001",
"PTO-AVS-SYS-SSRGET-PLACE-001",
"PTO-AVS-SYS-SSRGET-RING-001",
"PTO-AVS-SYS-SSRGET-TDST-001",
"PTO-AVS-SYS-SSRGET-UDST-001",
"PTO-AVS-SYS-SSRGET-UNKNOWN-001"
]
}0.58.5 · 候选发布7dc8b7e5b121d2b2499a2273bebff29e2cd86812a8ded2822340f6b7a11caf91a88a692adf59616e1db8253c2df6ef54a735746c58087b21b4722b0ad100dbb60800bff0b4b851257dc40b11cebbaad02fee450basl/scalar/sys/SSRGET.aslasl/scalar/sys/SSRGET.aslasl/scalar/sys/SSRGET.asl