操作数与参数
SrcL- left absolute GPR source
SrcR- right absolute GPR source
C.SETC.EQ - Compare scalar operands and update the bundle commit condition.
PTO-SCALAR-C-SETC-EQc.setc.eq srcL, srcR| 字段 | 位宽 | 有符号性 | 架构角色 | 编码零 |
|---|---|---|---|---|
SrcL | 5 | encoding-defined | left absolute GPR source | Encoded zero names the architectural zero GPR. |
SrcR | 5 | encoding-defined | right absolute GPR source | Encoded zero names the architectural zero GPR. |
Loading WaveDrom diagram… The encoding table and WaveJSON remain available below.
| Decoded item | Bit range | Value |
|---|---|---|
| SrcR | 15:11 | variable |
| SrcL | 10:6 | variable |
| Constant | 5:0 | 6'b100110 |
{
"reg": [
{
"bits": 6,
"name": "6'b100110"
},
{
"bits": 5,
"name": "SrcL"
},
{
"bits": 5,
"name": "SrcR"
}
],
"config": {
"bits": 16,
"fontsize": 13,
"hspace": 640,
"lanes": 1,
"offset": 0
}
}c.setc.eq srcL, srcR
SrcLSrcR下面是该指令所有者中的 Operation;页面没有重写这段行为。
readonly func InstructionContractOperation_C_SETC_EQ() => ScalarOperationbegin return ScalarOperation_C_SETC_EQ;end;readonly func InstructionContractHandler_C_SETC_EQ() => ScalarSemanticHandlerbegin return ScalarHandler_ExecuteSetCommit;end;
pure func InstructionContractCondition_C_SETC_EQ() => ScalarConditionbegin return ScalarCondition_EQ;end;
pure func InstructionContractCommitResult_C_SETC_EQ( left: Word, right: Word) => booleanbegin return ConditionHolds( InstructionContractCondition_C_SETC_EQ(), left, right);end;// PTO-INSTRUCTION: {"assembly":["c.setc.eq srcL, srcR"],"block":[],"catalog_indices":[35],"catalog_records":[{"asm":"c.setc.eq srcL, srcR","constraints":[],"encoding":[{"index":0,"mask":"0x003f","match":"0x0026","width_bits":16}],"encoding_kind":"C16","fields":[{"name":"SrcL","pieces":[{"instruction_lsb":6,"value_lsb":0,"width":5}],"signedness":"encoding-defined","width":5},{"name":"SrcR","pieces":[{"instruction_lsb":11,"value_lsb":0,"width":5}],"signedness":"encoding-defined","width":5}],"form_id":"c_setc_eq_16_03e6b07a3699","length_bits":16,"mnemonic":"C.SETC.EQ","semantic_family":"BRU","semantic_group":"BRU","semantic_handler":"ExecuteSetCommit","semantic_summary":"C.SETC.EQ - Compare scalar operands and update the bundle commit condition.","status":"accepted"}],"classification":["bru"],"contract":{"block_composition":["Applicable only in the body of an active block whose BARG.TYPE is Conditional. Across the entire SETC condition-setting family, at most one occurrence may complete successfully in that block."],"canonical_assembly":["c.setc.eq srcL, srcR"],"defaults":["The selected assembly form determines which fields are present; every present field carries its encoded value and no encoded zero means omission."],"encoding_class":"standalone-encoded","examples":["c.setc.eq srcL, srcR"],"exceptions":["Wrong block placement or a second successful SETC condition setter raises Illegal Block Exception before scalar source readiness or any architectural or pending-block effect.","A fixed-bit mismatch or unavailable selected relative source raises Fault_IllegalInstruction before commit state, BARG, queues, or TPC effects."],"field_contracts":{},"field_zero_meanings":{"SrcL":"Encoded zero names the architectural zero GPR.","SrcR":"Encoded zero names the architectural zero GPR."},"legality":["All SETC condition setters share one block-private successful-occurrence marker; a failed first occurrence does not consume it."],"memory_effects":["none"],"operands":[{"field":"SrcL","role":"left absolute GPR source"},{"field":"SrcR","role":"right absolute GPR source"}],"ordering":["Check Conditional-block applicability and the shared occurrence marker before scalar source readiness or reads.","Snapshot all sources, compute the canonical zero-or-one condition, then atomically update the commit argument, BARG.TAKEN, and the occurrence marker."],"standalone_opcode":true,"state_effects":["Compute C.SETC.EQ's local comparison or logical condition from source snapshots and canonicalize it to zero or one.","Atomically write that value to the commit argument and BARG.TAKEN, then mark the block condition as set. Preserve BARG.BPC, BARG.BPCN, BARG.BlockType, and BARG.TYPE.","No memory, reservation, descriptor, numeric-status, or destination-register effect occurs. Successful execution advances TPC by the encoded instruction length."]},"depends_on":["PTO-BLOCK-MODEL-SCHEMA-PROFILE-ENCODING"],"id":"PTO-SCALAR-C-SETC-EQ","mnemonic":"C.SETC.EQ","summary":"C.SETC.EQ - Compare scalar operands and update the bundle commit condition.","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-C-SETC-EQ-CONDITIONAL-SETTER-001// ndf: kind=contract level=L1 layer=scalar status=accepted// C.SETC.EQ MUST be applicable only in one active Conditional block.// Across all SETC condition setters, only the first successful occurrence in// that block may snapshot sources and atomically update CommitArgument and// BARG.TAKEN. A rejected occurrence MUST NOT consume the shared marker.// NDF-END: PTO-C-SETC-EQ-CONDITIONAL-SETTER-001// DOC-BEGIN: decodereadonly func InstructionContractOperation_C_SETC_EQ() => ScalarOperationbegin return ScalarOperation_C_SETC_EQ;end;// DOC-END: decode// DOC-BEGIN: operationreadonly func InstructionContractHandler_C_SETC_EQ() => ScalarSemanticHandlerbegin return ScalarHandler_ExecuteSetCommit;end;
pure func InstructionContractCondition_C_SETC_EQ() => ScalarConditionbegin return ScalarCondition_EQ;end;
pure func InstructionContractCommitResult_C_SETC_EQ( left: Word, right: Word) => booleanbegin return ConditionHolds( InstructionContractCondition_C_SETC_EQ(), left, right);end;// DOC-END: operation
C.SETC.EQ 判断相等,并把结果发布为当前条件指令束的提交判定。
在检查源就绪状态或读取源之前,先检查放置和单次设置规则。
指令对源取快照,判断相等,再规范化为 XLEN 一或零。
SrcL 提供左侧标量源。SrcR 提供右侧标量源。规范化条件会原子写入 _CommitArgument 和 BARG.TAKEN,同时置位条件已设置标记。
成功时,C.SETC.EQ 让 TPC 前进 2 字节;它没有标量目的位置,也不产生内存或保留状态效果。
该指令只在适用的条件指令束上下文中合法,并且只能有一个条件设置操作成功。
放置错误或重复设置会在读取源之前引发非法指令束异常;编码或源不可用会在提交状态或 TPC 效果前引发 Fault_IllegalInstruction。
下面的示例只帮助理解当前所有者,不构成第二份语义定义。
c.setc.eq srcL, srcR 按上述规则计算条件,把规范化判定写入提交状态,并且只在更新完成后推进 TPC。
正文来自 owning ASL。拖拽或按钮只临时改变当前页面显示顺序。
C.SETC.EQ MUST be applicable only in one active Conditional block. Across all SETC condition setters, only the first successful occurrence in that block may snapshot sources and atomically update CommitArgument and BARG.TAKEN. A rejected occurrence MUST NOT consume the shared marker.
PTO-C-SETC-EQ-CONDITIONAL-SETTER-001asl/scalar/bru/C.SETC.EQ.aslfed2fc1e3916a33cb36d3060358ad2f7b844944bc559a0aecbd3a84bfed3d20990e2a1ef903b0301f0a4781fb541f696e79af6e411f18525413f7b75068bfa4f12 matching entries
PTO-AVS-BRU-C-SETC-EQ-ALIAS-001tests/asl/scalar/bru/C.SETC.EQ/scalar-exec-c-setc-eq-alias-001.asla6d9c2b0fdcf2613a0c54e797aaf5f52393e4453fa921cc02736a67a1b5a44dePTO-AVS-BRU-C-SETC-EQ-BOUND-001tests/asl/scalar/bru/C.SETC.EQ/scalar-bound-c-setc-eq-fields-001.asl915e69829b0f7db75f1a3b4aa64711939ac0b7ffc8c41a796b2e503af8c10866PTO-AVS-BRU-C-SETC-EQ-EXEC-001tests/asl/scalar/bru/C.SETC.EQ/scalar-exec-c-setc-eq-direct-001.aslc7a405972cae99a69db4bea39e3fdf2400215332cf6b450a83122fc8114cdc03PTO-AVS-SCALAR-C-SETC-EQ-DECODE-001tests/asl/scalar/bru/C.SETC.EQ/scalar-decode-c-setc-eq-canonical-001.asldcaddd1c4fa1bde72b05d0763bb7c52dcaaafd9a74c3e634ac74056b23fec85dPTO-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-0027…
ADR-0027docs/status/decisions/0027-scalar-bru-totality-and-target-legality.md9289112d250e31f4222dcd27d20bda791be7a1b57764af7ed9b187e767b7acedLoading 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": [
"bru"
],
"documentation": "docs/scalar/bru/C.SETC.EQ.md",
"id": "PTO-SCALAR-C-SETC-EQ",
"instruction_contract": {
"artifact": "spec/evidence/instruction-contract-closure.json",
"mnemonic": "C.SETC.EQ",
"ndf_clause": "PTO-INST-SCALAR-C-SETC-EQ"
},
"mnemonic": "C.SETC.EQ",
"readiness_subjects": [
"ADR-0027",
"ADR-0059",
"ADR-0084"
],
"semantic_tests": [
"PTO-AVS-BRU-C-SETC-EQ-ALIAS-001",
"PTO-AVS-BRU-C-SETC-EQ-BOUND-001",
"PTO-AVS-BRU-C-SETC-EQ-EXEC-001"
],
"source": "asl/scalar/bru/C.SETC.EQ.asl",
"surface": "scalar",
"tests": [
"PTO-AVS-BRU-C-SETC-EQ-ALIAS-001",
"PTO-AVS-BRU-C-SETC-EQ-BOUND-001",
"PTO-AVS-BRU-C-SETC-EQ-EXEC-001",
"PTO-AVS-SCALAR-C-SETC-EQ-DECODE-001"
]
}0.58.5 · 候选发布7dc8b7e5b121d2b2499a2273bebff29e2cd86812fed2fc1e3916a33cb36d3060358ad2f7b844944bc559a0aecbd3a84bfed3d209980e15c0ba4e3d1cdb2c3bce3d00d5f5ef824c5eab8383dc06e051b66f30355aasl/scalar/bru/C.SETC.EQ.aslasl/scalar/bru/C.SETC.EQ.aslasl/scalar/bru/C.SETC.EQ.asl