页面框架已切换为简体中文。尚未完成本地化的交互标签暂时使用英文;ASL/NDF 源、稳定标识和证据在所有语言中保持原文。
PTO-TILE-MODEL-LEGALITY-INDEXED-REARRANGEMENT
PTO-TILE-MODEL-LEGALITY-INDEXED-REARRANGEMENTASL 伪代码
下面直接显示完整的 ASL 所有者。
// PTO-UNIT: {"id":"PTO-TILE-MODEL-LEGALITY-INDEXED-REARRANGEMENT","surface":"tile","classification":["model","legality","indexed-rearrangement"],"depends_on":["PTO-TILE-MODEL-LEGALITY-DTYPE-LAYOUT"]}
pure func InstructionContractValueDataTypeLegal_TGATHER( data_type: TileDataType) => booleanbegin return IndexedTLSUTransferDataTypeLegal(data_type);end;
pure func InstructionContractIndexDataTypeLegal_TGATHER( data_type: TileDataType) => booleanbegin return data_type == TileDataType_S32 || data_type == TileDataType_U32 || data_type == TileDataType_S16 || data_type == TileDataType_U16 || data_type == TileDataType_S64 || data_type == TileDataType_U64;end;
pure func InstructionContractTypePairLegal_TSCATTER( value_type: TileDataType, index_type: TileDataType) => booleanbegin return IndexedTLSUTransferDataTypeLegal(value_type) && (index_type == TileDataType_S16 || index_type == TileDataType_U16 || index_type == TileDataType_S32 || index_type == TileDataType_U32 || index_type == TileDataType_S64 || index_type == TileDataType_U64);end;
pure func TileIndexedRowIsNegative( value: Word, data_type: TileDataType) => booleanbegin if data_type == TileDataType_S16 then return SInt(value[15:0]) < 0; end; if data_type == TileDataType_S32 then return SInt(value[31:0]) < 0; end; if data_type == TileDataType_S64 then return SInt(value[63:0]) < 0; end; return FALSE;end;
pure func TileIndexedRowValue( value: Word, data_type: TileDataType) => integerbegin if data_type == TileDataType_S16 || data_type == TileDataType_U16 then return UInt(value[15:0]); end; if data_type == TileDataType_S32 || data_type == TileDataType_U32 then return UInt(value[31:0]); end; assert data_type == TileDataType_S64 || data_type == TileDataType_U64; return UInt(value[63:0]);end;
readonly func TileGatherReferencesLegal( source: TileIndex, indices: TileIndex) => booleanbegin let source_tile = _Tiles[[source]]; let index_tile = _Tiles[[indices]]; for row = 0 to index_tile.valid_rows - 1 looplimit 65536 do for column = 0 to index_tile.valid_columns - 1 looplimit 65536 do let index_element = TileLogicalLinearIndex( index_tile, row as integer {0..65535}, column as integer {0..65535}); let raw_index = TileReadLogicalElement(index_tile, index_element); if TileIndexedRowIsNegative(raw_index, index_tile.data_type) then return FALSE; end; let source_row = TileIndexedRowValue( raw_index, index_tile.data_type); if source_row >= source_tile.valid_rows then return FALSE; end; let source_element = TileLogicalLinearIndex( source_tile, source_row as integer {0..65535}, column as integer {0..65535}); if !TileLogicalElementDefined(source_tile, source_element) then return FALSE; end; end; end; return TRUE;end;
readonly func TileScatterReferencesLegal( destination: TileIndex, indices: TileIndex) => booleanbegin let destination_tile = _Tiles[[destination]]; let index_tile = _Tiles[[indices]]; var selected = Zeros{524288}; for row = 0 to index_tile.valid_rows - 1 looplimit 65536 do for column = 0 to index_tile.valid_columns - 1 looplimit 65536 do let index_element = TileLogicalLinearIndex( index_tile, row as integer {0..65535}, column as integer {0..65535}); let raw_index = TileReadLogicalElement(index_tile, index_element); if TileIndexedRowIsNegative(raw_index, index_tile.data_type) then return FALSE; end; let destination_row = TileIndexedRowValue( raw_index, index_tile.data_type); if destination_row >= destination_tile.valid_rows then return FALSE; end; let destination_element = TileLogicalLinearIndex( destination_tile, destination_row as integer {0..65535}, column as integer {0..65535}); if selected[destination_element] == '1' then return FALSE; end; selected[destination_element] = '1'; end; end; return TRUE;end;
readonly func TileOperandsLegal_TGATHER( destination: TileIndex, source: TileIndex, indices: TileIndex) => booleanbegin if !TileDescriptorLegal(destination) || !TileDescriptorLegal(source) || !TileDescriptorLegal(indices) then return FALSE; end; let destination_tile = _Tiles[[destination]]; let source_tile = _Tiles[[source]]; let index_tile = _Tiles[[indices]]; if destination_tile.storage_kind != TileStorage_Numeric || source_tile.storage_kind != TileStorage_Numeric || index_tile.storage_kind != TileStorage_Numeric || !InstructionContractValueDataTypeLegal_TGATHER( source_tile.data_type) || !InstructionContractIndexDataTypeLegal_TGATHER( index_tile.data_type) || destination_tile.data_type != source_tile.data_type || destination_tile.valid_rows == 0 || destination_tile.valid_columns == 0 || destination_tile.valid_rows != index_tile.valid_rows || destination_tile.valid_columns != index_tile.valid_columns || source_tile.valid_columns < destination_tile.valid_columns || !TileSourceContentsDefined(indices) || !TileSourceEncodingsValid(indices) then return FALSE; end; return TileGatherReferencesLegal(source, indices);end;
readonly func TileOperandsLegal_TSCATTER( destination: TileIndex, source: TileIndex, indices: TileIndex) => booleanbegin if !TileDescriptorLegal(destination) || !TileDescriptorLegal(source) || !TileDescriptorLegal(indices) then return FALSE; end; let destination_tile = _Tiles[[destination]]; let source_tile = _Tiles[[source]]; let index_tile = _Tiles[[indices]]; if destination_tile.storage_kind != TileStorage_Numeric || source_tile.storage_kind != TileStorage_Numeric || index_tile.storage_kind != TileStorage_Numeric || destination_tile.data_type != source_tile.data_type || !InstructionContractTypePairLegal_TSCATTER( source_tile.data_type, index_tile.data_type) || source_tile.valid_rows == 0 || source_tile.valid_columns == 0 || source_tile.valid_rows != index_tile.valid_rows || source_tile.valid_columns != index_tile.valid_columns || destination_tile.valid_rows == 0 || destination_tile.valid_columns != source_tile.valid_columns || !TileSourceContentsDefined(source) || !TileSourceContentsDefined(indices) || !TileSourceEncodingsValid(indices) then return FALSE; end; return TileScatterReferencesLegal(destination, indices);end;
架构行为
该内部模型单元不在双语读者指南迁移范围内;请直接阅读本页的 ASL/NDF 所有者与验证证据。
NDF 条款
正文来自 owning ASL。拖拽或按钮只临时改变当前页面显示顺序。
No NDF clause is attached to this unit.
Evidence index
8 matching entries
Executable evidence2
Indexed rearrangement exposes independent non-packed data and index domains.
- surfaceTILE
- ownerPTO-TILE-MODEL-LEGALITY-INDEXED-REARRANGEMENT
- categoryBOUNDARY
- case001
Show exact test source
Sources and references
- Complete stable ID
PTO-AVS-TILE-INDEXED-TYPES-001- Path
tests/asl/tile/model/legality/indexed-rearrangement/tile-bound-indexed-types-001.asl- Kind / role
- boundary
- Pass condition
- Non-packed gather/scatter values accept cross-width indices while packed values and unsupported M-family index widths reject.
- SHA-256
ae1f8d201af2cf5959a374143c4969a619d7ab0bfdd46e3e077c3d613eca78e6
PTO-TILE-MODEL-LEGALITY-INDEXED-REARRANGEMENT compiles as an independent normative unit
- surfaceTILE
- ownerPTO-TILE-MODEL-LEGALITY-INDEXED-REARRANGEMENT
- categorySTATIC-INVARIANT
- case001
Show exact test source
Sources and references
- Complete stable ID
PTO-AVS-TILE-MODEL-LEGALITY-INDEXED-REARRANGEMENT-STATIC-001- Path
tests/asl/tile/model/legality/indexed-rearrangement/tile-static-indexed-rearrangement-contract-001.asl- Kind / role
- static-invariant
- Pass condition
- the complete model and this unit's static invariant compile
- SHA-256
023e668e351fb591409624908378ac233eafd6d4311173f30bbf7197c0c47fb9
Commit-scoped evidence5
spec/evidence/release-traceability-readiness.json · closed
PTO-EVIDENCE-RELEASE-TRACEABILITYSources and references
- Complete stable ID
PTO-EVIDENCE-RELEASE-TRACEABILITY- Path
spec/evidence/release-traceability-readiness.json- Kind / role
- ASL/NDF/documentation/AVS traceability
- SHA-256
c7327021d39dc67ac5564bc55073b3870a397d79ac8d9648284d56e33bc14a3e
spec/evidence/instruction-contract-closure.json · closed
PTO-EVIDENCE-INSTRUCTION-CONTRACT-CLOSURESources and references
- Complete stable ID
PTO-EVIDENCE-INSTRUCTION-CONTRACT-CLOSURE- Path
spec/evidence/instruction-contract-closure.json- Kind / role
- mnemonic and encoding contract closure
- SHA-256
3ef2bb62421c79dff8fa77a1c7983923b523244b8090812883ef81286ca8106a
spec/evidence/architecture-readiness.json · open
PTO-EVIDENCE-ARCHITECTURE-READINESSSources and references
- Complete stable ID
PTO-EVIDENCE-ARCHITECTURE-READINESS- Path
spec/evidence/architecture-readiness.json- Kind / role
- architecture maturity and blockers
- SHA-256
4b0b85199101251bea744e0f3591cc31906909dc80d5ab651c417a936036a004
spec/evidence/release-gate-readiness.json · ready-for-exact-head-verification
PTO-EVIDENCE-RELEASE-GATE-READINESSSources and references
- Complete stable ID
PTO-EVIDENCE-RELEASE-GATE-READINESS- Path
spec/evidence/release-gate-readiness.json- Kind / role
- exact-head gate readiness
- SHA-256
a0f4d2b6920c08981ea55fd8ef820708a40d4feb5402c5150e8e9ab532d84ce0
spec/release-manifest.json · draft
PTO-EVIDENCE-RELEASE-MANIFESTSources and references
- Complete stable ID
PTO-EVIDENCE-RELEASE-MANIFEST- Path
spec/release-manifest.json- Kind / role
- release content and encoding fingerprints
- SHA-256
1a64c109ed7a90351c41e2a418b3c0ebaf8ad975838986d2101385186b85c0d8
Decision history1
Re-encode B.IOT and B.IOS size and PE mode fields · accepted
- decision recordADR
- case0096
Decision record
Loading ADR-0096…
Sources and references
- Complete stable ID
ADR-0096- Path
docs/status/decisions/0096-b-iot-b-ios-sizecode-pemode.md- Affected units
- PTO-ARCH-DATA-TYPES-INTEGER, PTO-ARCH-FEATURES-TILE-ALLOCATION, PTO-ARCH-MEMORY-MODEL-GLOBAL-MEMORY-ACCESS, PTO-ARCH-PROFILE-RESET, PTO-ARCH-PROGRAMMING-MODEL-CORE-PE-TOPOLOGY, PTO-BLOCK-B-IOS, PTO-BLOCK-B-IOT, PTO-BLOCK-MODEL-DISPATCH-COMMANDS, PTO-BLOCK-MODEL-DISPATCH-CUBE-TMATMUL, PTO-BLOCK-MODEL-DISPATCH-DESTINATION-SHAPE, PTO-BLOCK-MODEL-DISPATCH-SHARED-CUBE-MATRIX, PTO-BLOCK-MODEL-DISPATCH-SHARED-TLSU, PTO-BLOCK-MODEL-OPERANDS-SHARED-BINDINGS, PTO-BLOCK-MODEL-OPERANDS-TILE-BINDINGS, PTO-BLOCK-MODEL-SCHEMA-PROFILE-ENCODING, PTO-BLOCK-MODEL-STATE-TYPES, PTO-TILE-MODEL-DEFINEDNESS-ELEMENTS, PTO-TILE-MODEL-DEFINEDNESS-PACKED-BOUNDARY, PTO-TILE-MODEL-EXECUTION-COMPARISON, PTO-TILE-MODEL-EXECUTION-COMPLEX, PTO-TILE-MODEL-EXECUTION-CUBE, PTO-TILE-MODEL-EXECUTION-ELEMENTWISE, PTO-TILE-MODEL-EXECUTION-EXPANSION, PTO-TILE-MODEL-EXECUTION-FUSED-MULTIPLY-ADD, PTO-TILE-MODEL-EXECUTION-GENERATION, PTO-TILE-MODEL-EXECUTION-IMAGE-TO-COLUMN, PTO-TILE-MODEL-EXECUTION-INDEXED-REARRANGEMENT, PTO-TILE-MODEL-EXECUTION-REARRANGEMENT, PTO-TILE-MODEL-EXECUTION-REDUCTION, PTO-TILE-MODEL-EXECUTION-SORTING, PTO-TILE-MODEL-EXECUTION-UNARY, PTO-TILE-MODEL-LEGALITY-ALLOCATION-CAPACITY, PTO-TILE-MODEL-LEGALITY-DESCRIPTOR-SHAPE, PTO-TILE-MODEL-LEGALITY-IMAGE-TO-COLUMN, PTO-TILE-MODEL-LEGALITY-INDEXED-REARRANGEMENT, PTO-TILE-MODEL-LEGALITY-MATRIX-INFO-DESCRIPTOR, PTO-TILE-MODEL-LEGALITY-MATRIX-POSTPROCESS, PTO-TILE-MODEL-LEGALITY-PE-MASK, PTO-TILE-MODEL-MEMORY-LOAD-STORE, PTO-TILE-MODEL-MEMORY-SHARED-MOVEMENT, PTO-TILE-MODEL-NUMERIC-FORMATS, PTO-TILE-MODEL-ORDERING-SORTING, PTO-TILE-MODEL-SHAPE-VALID-REGION, PTO-TILE-MODEL-STATE-ALLOCATION, PTO-TILE-MODEL-STATE-DESCRIPTORS, PTO-TILE-MODEL-STATE-FEATURE-MAP-DESCRIPTORS, PTO-TILE-MODEL-STATE-SHARED-REGISTERS, PTO-TILE-MODEL-STATE-TYPES, PTO-TILE-TLOAD
- Affected NDF
- PTO-ARCH-GM-ACCESS-001, PTO-B-IOS-SHARED-STATE-001, PTO-B-IOT-STREAM-001, PTO-CUBE-ACCUMULATOR-OUTPUT-001, PTO-TLOAD-CUBE-001, PTO-TLOAD-MEMORY-001
- SHA-256
c4b4fb7bc17878f710015207dc19ddaf22a0cf6989d185b16844714c71e23f62
Unit metadata
Open 4 generated metadata fields
Open generated traceability record
{
"classification": [
"model",
"legality",
"indexed-rearrangement"
],
"documentation": "docs/tile/model/legality/indexed-rearrangement.md",
"id": "PTO-TILE-MODEL-LEGALITY-INDEXED-REARRANGEMENT",
"mnemonic": null,
"readiness_subjects": [
"ADR-0096"
],
"semantic_tests": [
"PTO-AVS-TILE-INDEXED-TYPES-001"
],
"source": "asl/tile/model/legality/indexed-rearrangement.asl",
"surface": "tile",
"tests": [
"PTO-AVS-TILE-INDEXED-TYPES-001",
"PTO-AVS-TILE-MODEL-LEGALITY-INDEXED-REARRANGEMENT-STATIC-001"
]
}来源与发布信息
展开 commit、路径、hash、版本和规范所有者
- 发布
0.58.5· 候选发布- Commit
7dc8b7e5b121d2b2499a2273bebff29e2cd86812- ASL SHA-256
63ebfe99202fd4ab8a72d3bc289c3ef0ef7e2f06b982c82be3dc24d6bb53b83e- 生成文档
- docs/tile/model/legality/indexed-rearrangement.md · 已融合到当前页面
- 文档 SHA-256
06d2e2649e5933910503c8fedf3a11ac3c279150606fbe9732a8ce83356b1755
精确所有者
- ASL PTO-TILE-MODEL-LEGALITY-INDEXED-REARRANGEMENT
asl/tile/model/legality/indexed-rearrangement.asl