操作数与参数
LoopNest- encoded LB0, LB1, or LB2 selector
imm8- unsigned eight-bit bundle-local dimension value
Writes one selected bundle-local LB from a zero-extended eight-bit immediate exactly once.
PTO-BLOCK-C-B-DIMIC.B.DIMI imm8, ->LB0C.B.DIMI imm8, ->LB1C.B.DIMI imm8, ->LB2| 字段 | 位宽 | 有符号性 | 架构角色 | 编码零 |
|---|---|---|---|---|
LoopNest | 2 | encoding-defined | encoded LB0, LB1, or LB2 selector | Code zero selects LB0. |
imm8 | 8 | encoding-defined | unsigned eight-bit bundle-local dimension value | Encoded zero writes numeric zero to the selected LB. |
Loading WaveDrom diagram… The encoding table and WaveJSON remain available below.
| Decoded item | Bit range | Value |
|---|---|---|
| LoopNest | 15:14 | variable |
| imm8 | 13:6 | variable |
| Constant | 5:0 | 6'b111100 |
{
"reg": [
{
"bits": 6,
"name": "6'b111100"
},
{
"bits": 8,
"name": "imm8"
},
{
"bits": 2,
"name": "LoopNest"
}
],
"config": {
"bits": 16,
"fontsize": 13,
"hspace": 640,
"lanes": 1,
"offset": 0
}
}C.B.DIMI imm, ->{LB0, LB1, LB2}
LoopNestimm8Decode 与 Operation 均直接来自指令所有者,并按执行阶段分开显示。
readonly func InstructionContractMatches_C_B_DIMI( operation: CommandOperation) => booleanbegin return operation == CommandOperation_c_b_dimi_16_3f1b113c76ce;end;pure func InstructionContractDimension_C_B_DIMI( loop_nest: bits(2)) => BundleDimensionIndexbegin assert loop_nest != '11'; return UInt(loop_nest) as BundleDimensionIndex;end;
pure func InstructionContractValue_C_B_DIMI( immediate: bits(8)) => Wordbegin return ZeroExtend{PTO_XLEN}(immediate);end;
readonly func InstructionContractHandler_C_B_DIMI() => CommandSemanticHandlerbegin return CommandHandler_SetBundleDimension;end;// PTO-INSTRUCTION: {"assembly":["C.B.DIMI imm8, ->LB0","C.B.DIMI imm8, ->LB1","C.B.DIMI imm8, ->LB2"],"block":[],"catalog_indices":[53],"catalog_records":[{"asm":"C.B.DIMI imm, ->{LB0, LB1, LB2}","constraints":[{"field":"LoopNest","operator":"not-equal","value":3}],"encoding":[{"index":0,"mask":"0x003f","match":"0x003c","width_bits":16}],"encoding_kind":"C16","fields":[{"name":"LoopNest","pieces":[{"instruction_lsb":14,"value_lsb":0,"width":2}],"signedness":"encoding-defined","width":2},{"name":"imm8","pieces":[{"instruction_lsb":6,"value_lsb":0,"width":8}],"signedness":"encoding-defined","width":8}],"form_id":"c_b_dimi_16_3f1b113c76ce","length_bits":16,"mnemonic":"C.B.DIMI","semantic_family":"CMD","semantic_group":"Bundle Dimension","semantic_handler":"SetBundleDimension","semantic_summary":"Zero-extends imm8 and writes one selected bundle-local LB exactly once.","status":"accepted"}],"classification":["attributes"],"contract":{"block_composition":["Header command after BSTART and before the first body instruction. C.B.DIMI and B.DIM share one write-once presence bit for each of LB0, LB1, and LB2."],"canonical_assembly":["C.B.DIMI imm8, ->LB0","C.B.DIMI imm8, ->LB1","C.B.DIMI imm8, ->LB2"],"defaults":["LoopNest 0, 1, and 2 select LB0, LB1, and LB2. imm8 is always present; encoded zero writes numeric zero and is not omission."],"encoding_class":"standalone-encoded","examples":["C.B.DIMI 0, ->LB0","C.B.DIMI 255, ->LB2"],"exceptions":["LoopNest code 3 raises Fault_IllegalInstruction before changing TPC or bundle state.","Execution outside an active block header or a second write to the same LB across C.B.DIMI and B.DIM raises Fault_BundleControl before changing the first value."],"field_contracts":{},"field_zero_meanings":{"LoopNest":"Code zero selects LB0.","imm8":"Encoded zero writes numeric zero to the selected LB."},"legality":["LoopNest codes 0..2 are assigned to LB0..LB2; code 3 is reserved.","imm8 accepts every unsigned value 0..255 and is zero-extended to the bundle dimension word.","Each selected LB is write-once for one block across full and compressed dimension commands."],"memory_effects":["none"],"operands":[{"field":"LoopNest","role":"encoded LB0, LB1, or LB2 selector"},{"field":"imm8","role":"unsigned eight-bit bundle-local dimension value"}],"ordering":["Placement and duplicate checks precede the LB update. A successful update sets the presence bit and value together, then command dispatch advances TPC by two bytes."],"standalone_opcode":true,"state_effects":["Write ZeroExtend(imm8) to the selected raw LB and set its presence bit.","LB meaning is selected by the completed operation schema; C.B.DIMI assigns no universal row, column, M, N, or K role."]},"depends_on":["PTO-BLOCK-MODEL-SCHEMA-DIMENSIONS"],"id":"PTO-BLOCK-C-B-DIMI","mnemonic":"C.B.DIMI","summary":"Writes one selected bundle-local LB from a zero-extended eight-bit immediate exactly once.","surface":"block"}// PTO-REVIEW: {"review_method":"formal-definition-read","outcome":"FORMAL-COMPLETE","reviewed_fields":["assembly","encoding","defaults","operation","state","memory","ordering","faults","reserved"]}// DOC-BEGIN: decodereadonly func InstructionContractMatches_C_B_DIMI( operation: CommandOperation) => booleanbegin return operation == CommandOperation_c_b_dimi_16_3f1b113c76ce;end;// DOC-END: decode// DOC-BEGIN: operationpure func InstructionContractDimension_C_B_DIMI( loop_nest: bits(2)) => BundleDimensionIndexbegin assert loop_nest != '11'; return UInt(loop_nest) as BundleDimensionIndex;end;
pure func InstructionContractValue_C_B_DIMI( immediate: bits(8)) => Wordbegin return ZeroExtend{PTO_XLEN}(immediate);end;
readonly func InstructionContractHandler_C_B_DIMI() => CommandSemanticHandlerbegin return CommandHandler_SetBundleDimension;end;// DOC-END: operation
C.B.DIMI 是压缩 Block 头属性,用于恰好写入一次所选束局部维度。
C.B.DIMI 只允许出现在活动头部的 BSTART 之后、第一条 Block 体操作之前;独立放置或放入 Block 体都会引发 Fault_BundleControl。
已接受载体使用 C16 编码类别;命令在读取绑定或改变状态前,会先解析所有显示字段。
C.B.DIMI 与 B.DIM 为 LB0、LB1、LB2 分别共享一个只写一次的存在位。
LoopNest — 编码的 LB0、LB1 或 LB2 选择器; imm8 — 无符号八位束局部维度值。LoopNest 选择 LB0..LB2;imm8 会被零扩展,编码 3 在改变 Block 状态前保留。放置检查和重复写检查发生在维度更新之前。
成功执行会原子发布所选原始 LB 值及其共享存在位,再将 TPC 前移 2 字节。
固定比特、保留值、选择器取值域与必需的 Block 放置关系都在架构效果之前检查。
当前归属单元通过 Fault_BundleControl, Fault_IllegalInstruction 报告无效模式、状态、地址或后继条件;本页说明文字不创建额外故障规则。
通过 C.B.DIMI 或 B.DIM 再次写同一 LB 时,会在改变首次写入的值或存在位之前拒绝。
该示例只演示放置关系与载体流;精确行为仍由当前 ASL 和指令契约定义。
C.B.DIMI 0, ->LB0活动 BSTART 之后,该头命令把数值零写入 LB0;进入 Block 体前不能再次写同一 LB。
正文来自 owning ASL。拖拽或按钮只临时改变当前页面显示顺序。
No NDF clause is attached to this unit.
13 matching entries
PTO-AVS-BLOCK-C-B-DIMI-DECODE-001tests/asl/block/attributes/C.B.DIMI/block-decode-c-b-dimi-canonical-001.asl7e6feff55ba2c331b486030ee107bdef84e0c8faa32113cea68394832ce88ed4PTO-AVS-BLOCK-C-B-DIMI-DUP-001tests/asl/block/attributes/C.B.DIMI/block-fault-c-b-dimi-duplicate-001.asl8400046af05b3e96144cbbd21ccf71909ae2bc739c39262a53bf834be8cd1f01PTO-AVS-BLOCK-C-B-DIMI-PLACE-001tests/asl/block/attributes/C.B.DIMI/block-fault-c-b-dimi-placement-001.aslb4ed8efa7faa7208e89e0b9a2ece1c4d5101cf9f50bedaaa559fa5ff1046498fPTO-AVS-BLOCK-C-B-DIMI-RSVD-001tests/asl/block/attributes/C.B.DIMI/block-fault-c-b-dimi-reserved-001.asle55bd8ab2b0e65efd6fd6e1ed7bcf07794bccaf76b35f08b73fc0581b5020738PTO-AVS-BLOCK-C-B-DIMI-VALUES-001tests/asl/block/attributes/C.B.DIMI/block-bound-c-b-dimi-values-001.asl291f5a8fd57f307a091254e85b20bccd0018b54c8734f90f4952c77fc06a13c4PTO-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-0032…
ADR-0032docs/status/decisions/0032-bundle-command-totality-and-profile-boundaries.mde1f91826817343c0977a565a91e495a15397b83fa2af227124f225821ffa54aeLoading ADR-0052…
ADR-0052docs/status/decisions/0052-direct-tile-and-bundle-catalog-closure.md5fdb38bf480e37affe5075f93b35a57d32803018c986bfe05160f188a19ccaf6Loading ADR-0059…
ADR-0059docs/status/decisions/0059-mnemonic-field-encoding-closure.mdf18d13f735cfaf9f2803c754c5818f4af33d1cc42c489f0d9ce060b07bb3a196{
"classification": [
"attributes"
],
"documentation": "docs/block/attributes/C.B.DIMI.md",
"id": "PTO-BLOCK-C-B-DIMI",
"instruction_contract": {
"artifact": "spec/evidence/instruction-contract-closure.json",
"mnemonic": "C.B.DIMI",
"ndf_clause": "PTO-INST-BLOCK-C-B-DIMI"
},
"mnemonic": "C.B.DIMI",
"readiness_subjects": [
"ADR-0032",
"ADR-0052",
"ADR-0059"
],
"semantic_tests": [
"PTO-AVS-BLOCK-C-B-DIMI-DUP-001",
"PTO-AVS-BLOCK-C-B-DIMI-PLACE-001",
"PTO-AVS-BLOCK-C-B-DIMI-RSVD-001",
"PTO-AVS-BLOCK-C-B-DIMI-VALUES-001"
],
"source": "asl/block/attributes/C.B.DIMI.asl",
"surface": "block",
"tests": [
"PTO-AVS-BLOCK-C-B-DIMI-DECODE-001",
"PTO-AVS-BLOCK-C-B-DIMI-DUP-001",
"PTO-AVS-BLOCK-C-B-DIMI-PLACE-001",
"PTO-AVS-BLOCK-C-B-DIMI-RSVD-001",
"PTO-AVS-BLOCK-C-B-DIMI-VALUES-001"
]
}0.58.5 · 候选发布7dc8b7e5b121d2b2499a2273bebff29e2cd86812e1c951c4e7f90f6fb1f7f23959decaac35a40ad39ad397342914672ebb16cd2f7fefc3ce99f551189fc570bbd6a6fa093d5e216cdb39e27912b9456283b06d29asl/block/attributes/C.B.DIMI.aslasl/block/attributes/C.B.DIMI.asl