操作数与参数
RegDst- Reg5 effective-address destination or discard
SrcL- Reg5 address-base source
model- cache-level hint selector
simm17- signed address displacement
HL.PRFI.UA snapshots its scalar sources, forms its encoded address, and issues a non-binding 1-byte-granularity prefetch hint and publishes the effective address.
PTO-SCALAR-HL-PRFI-UAhl.prfi.ua{.l1,.l2,.l3} [SrcL, simm], ->{t, u, Rd}| 字段 | 位宽 | 有符号性 | 架构角色 | 编码零 |
|---|---|---|---|---|
RegDst | 5 | encoding-defined | Reg5 effective-address destination or discard | Encoded zero discards this result without suppressing the instruction's other effects. |
SrcL | 5 | encoding-defined | Reg5 address-base source | Encoded zero reads the architectural zero GPR. |
model | 5 | encoding-defined | cache-level hint selector | Encoded zero selects the non-binding L1 cache hint. |
simm17 | 17 | signed | signed address displacement | Encoded zero supplies a zero displacement; it does not denote omission. |
Loading WaveDrom diagram… The encoding table and WaveJSON remain available below.
| Decoded item | Bit range | Value |
|---|---|---|
| simm17 | 47:36 | variable |
| SrcL | 35:31 | variable |
| Constant | 30:28 | 3'b111 |
| RegDst | 27:23 | variable |
| Constant | 22:16 | 7'b0101001 |
| model | 15:11 | variable |
| simm17 | 10:6 | variable |
| Constant | 5:0 | 6'b011110 |
{
"reg": [
{
"bits": 6,
"name": "6'b011110"
},
{
"bits": 5,
"name": "simm17"
},
{
"bits": 5,
"name": "model"
},
{
"bits": 7,
"name": "7'b0101001"
},
{
"bits": 5,
"name": "RegDst"
},
{
"bits": 3,
"name": "3'b111"
},
{
"bits": 5,
"name": "SrcL"
},
{
"bits": 12,
"name": "simm17"
}
],
"config": {
"bits": 48,
"fontsize": 13,
"hspace": 900,
"lanes": 2,
"offset": 0
}
}hl.prfi.ua{.l1,.l2,.l3} [SrcL, simm], ->{t, u, Rd}
RegDstSrcLmodelsimm17下面是该指令所有者中的 Operation;页面没有重写这段行为。
readonly func InstructionContractOperation_HL_PRFI_UA() => ScalarOperationbegin return ScalarOperation_HL_PRFI_UA;end;readonly func InstructionContractHandler_HL_PRFI_UA() => ScalarSemanticHandlerbegin return ScalarHandler_ScalarPrefetch;end;
pure func InstructionContractAGUAction_HL_PRFI_UA() => ScalarAGUActionbegin return ScalarAGU_Prefetch;end;
pure func InstructionContractAGUAddressKind_HL_PRFI_UA() => ScalarAGUAddressKindbegin return ScalarAGU_Immediate;end;
pure func InstructionContractAGUSizeBytes_HL_PRFI_UA() => integer {1,2,4,8}begin return 1;end;
pure func InstructionContractAGUOffsetScale_HL_PRFI_UA() => integer {0..3}begin return 0;end;
pure func InstructionContractAGUUpdateMode_HL_PRFI_UA() => AddressUpdateModebegin return AddressUpdate_None;end;
pure func InstructionContractAGUSignedLoad_HL_PRFI_UA() => booleanbegin return FALSE;end;
pure func InstructionContractAGUPrefetchReturnsAddress_HL_PRFI_UA() => booleanbegin return TRUE;end;// PTO-INSTRUCTION: {"assembly":["hl.prfi.ua{.l1,.l2,.l3} [SrcL, simm], ->{t, u, Rd}"],"block":[],"catalog_indices":[231],"catalog_records":[{"agu":{"action":"Prefetch","address_kind":"Immediate","offset_scale":0,"prefetch_returns_address":true,"signed_load":false,"size_bytes":1,"update_mode":"None"},"asm":"hl.prfi.ua{.l1,.l2,.l3} [SrcL, simm], ->{t, u, Rd}","constraints":[{"field":"model","operator":"one-of","values":[0,1,2]}],"encoding":[{"index":0,"mask":"0x0000707f003f","match":"0x00007029001e","width_bits":48}],"encoding_kind":"HL48","fields":[{"name":"RegDst","pieces":[{"instruction_lsb":23,"value_lsb":0,"width":5}],"signedness":"encoding-defined","width":5},{"name":"SrcL","pieces":[{"instruction_lsb":31,"value_lsb":0,"width":5}],"signedness":"encoding-defined","width":5},{"name":"model","pieces":[{"instruction_lsb":11,"value_lsb":0,"width":5}],"signedness":"encoding-defined","width":5},{"name":"simm17","pieces":[{"instruction_lsb":36,"value_lsb":0,"width":12},{"instruction_lsb":6,"value_lsb":12,"width":5}],"signedness":"signed","width":17}],"form_id":"hl_prfi_ua_48_c37fb30ecb0f","length_bits":48,"mnemonic":"HL.PRFI.UA","semantic_family":"AGU","semantic_group":"LDA","semantic_handler":"ScalarPrefetch","semantic_summary":"HL.PRFI.UA snapshots its scalar sources, forms its encoded address, and issues a non-binding 1-byte-granularity prefetch hint and publishes the effective address.","status":"accepted"}],"classification":["agu"],"contract":{"block_composition":["none"],"canonical_assembly":["hl.prfi.ua{.l1,.l2,.l3} [SrcL, simm], ->{t, u, Rd}"],"defaults":["Every displayed operand field is encoded explicitly; encoded zero is a value and never denotes omission.","model=0 selects L1, model=1 selects L2, and model=2 selects L3; the cache target is a non-binding performance hint."],"encoding_class":"standalone-encoded","examples":["hl.prfi.ua{.l1,.l2,.l3} [SrcL, simm], ->{t, u, Rd}"],"exceptions":["A fixed-bit mismatch, reserved field value, or unavailable selected T/U source raises Fault_IllegalInstruction before instruction effects.","A legal prefetch model cannot raise a data-access fault. A reserved model rejects before source reads and before optional address publication."],"field_contracts":{},"field_zero_meanings":{"RegDst":"Encoded zero discards this result without suppressing the instruction's other effects.","SrcL":"Encoded zero reads the architectural zero GPR.","model":"Encoded zero selects the non-binding L1 cache hint.","simm17":"Encoded zero supplies a zero displacement; it does not denote omission."},"legality":["Every encoded Reg5 source uses the complete domain: codes 0..23 select absolute GPRs, codes 24..27 select T#1..T#4, and codes 28..31 select U#1..U#4 without consumption.","Every Reg5 destination is assigned: codes 1..23 write GPRs, code 30 pushes U, code 31 pushes T, and codes 0 and 24..29 discard only that result.","simm17 assigns every signed 17-bit value -65536..65535; the encoded byte displacement is that value multiplied by 1.","model codes 0, 1, and 2 are assigned; codes 3..31 are reserved and raise Fault_IllegalInstruction before any scalar source read or architectural effect."],"memory_effects":["The 1-byte-granularity hint performs no architectural translation, permission or alignment check, memory access, memory event, reservation update, ordering edge, or cache-placement guarantee."],"operands":[{"field":"RegDst","role":"Reg5 effective-address destination or discard"},{"field":"SrcL","role":"Reg5 address-base source"},{"field":"model","role":"cache-level hint selector"},{"field":"simm17","role":"signed address displacement"}],"ordering":["Snapshot all explicit and implicit scalar sources before destination or memory effects; duplicate and source/destination aliases observe pre-instruction values.","For a legal model, form the hint, publish the optional address result, and then advance TPC by 6 bytes."],"standalone_opcode":true,"state_effects":["Sign-extend simm17, multiply it by 1, and add it modulo 2^PTO_XLEN to the SrcL base.","Publish the modulo-2^PTO_XLEN effective address through the Reg5 destination after source snapshot.","Successful execution advances TPC by 6 bytes; a rejected or faulting attempt does not retire."]},"depends_on":["PTO-BLOCK-MODEL-SCHEMA-PROFILE-ENCODING"],"id":"PTO-SCALAR-HL-PRFI-UA","mnemonic":"HL.PRFI.UA","summary":"HL.PRFI.UA snapshots its scalar sources, forms its encoded address, and issues a non-binding 1-byte-granularity prefetch hint and publishes the effective 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-HL-PRFI-UA-CACHE-MODEL-001// ndf: kind=contract level=L1 layer=scalar status=accepted// HL.PRFI.UA MUST assign model 0 to L1, 1 to L2, and 2 to L3.// Model values 3 through 31 MUST reject before scalar source reads or effects.// Legal hints MUST form the encoded address without translation, memory event,// ordering edge, data-access fault, or architecturally guaranteed placement.// The effective address MUST be published through RegDst after source snapshot.// NDF-END: PTO-HL-PRFI-UA-CACHE-MODEL-001// DOC-BEGIN: decodereadonly func InstructionContractOperation_HL_PRFI_UA() => ScalarOperationbegin return ScalarOperation_HL_PRFI_UA;end;// DOC-END: decode// DOC-BEGIN: operationreadonly func InstructionContractHandler_HL_PRFI_UA() => ScalarSemanticHandlerbegin return ScalarHandler_ScalarPrefetch;end;
pure func InstructionContractAGUAction_HL_PRFI_UA() => ScalarAGUActionbegin return ScalarAGU_Prefetch;end;
pure func InstructionContractAGUAddressKind_HL_PRFI_UA() => ScalarAGUAddressKindbegin return ScalarAGU_Immediate;end;
pure func InstructionContractAGUSizeBytes_HL_PRFI_UA() => integer {1,2,4,8}begin return 1;end;
pure func InstructionContractAGUOffsetScale_HL_PRFI_UA() => integer {0..3}begin return 0;end;
pure func InstructionContractAGUUpdateMode_HL_PRFI_UA() => AddressUpdateModebegin return AddressUpdate_None;end;
pure func InstructionContractAGUSignedLoad_HL_PRFI_UA() => booleanbegin return FALSE;end;
pure func InstructionContractAGUPrefetchReturnsAddress_HL_PRFI_UA() => booleanbegin return TRUE;end;// DOC-END: operation
HL.PRFI.UA 是一条独立的 48 位标量 AGU 指令,使用 Immediate 寻址,形成非绑定预取提示,但不执行架构内存访问。
地址路径先对 simm17 做符号扩展并乘以 1,再把位移与快照中的 SrcL 相加,结果按 2^PTO_XLEN 取模。
合法的 model 选择提示层级。该提示不执行地址翻译、权限检查、对齐检查、内存访问、内存事件、保留状态更新或排序边,也不保证缓存放置。
源值完成快照后,有效地址通过 RegDst 发布。
RegDst 是一个 5 位字段,用来选择有效地址结果。SrcL 是一个 5 位字段,用来选择地址基址。model 是一个 5 位字段,用来选择预取提示层级。simm17 是一个 17 位字段,用来选择乘以 1 缩放因子之前的有符号位移。所有显式和隐式标量源都会在任何内存或目的位置影响之前完成快照,因此别名读取指令执行前的值。
合法提示不记录架构内存事件,也不改变保留状态。
所有结果或回写发布完成后,HL.PRFI.UA 把 TPC 前进 6 字节;被拒绝或发生故障的尝试不会退休。
model 的 0、1 和 2 已分配;3..31 为保留值,并在读取源或发布地址之前选择 Fault_IllegalInstruction。
合法预取提示不执行架构访问,因此不会产生数据访问故障。固定位不匹配或选中的 T/U 源不可用,也会在任何影响之前被拒绝。
下面只说明如何使用本页,不增加指令行为。
hl.prfi.ua{.l1,.l2,.l3} [SrcL, simm], ->{t, u, Rd} 开始,找出已编码的地址字段。正文来自 owning ASL。拖拽或按钮只临时改变当前页面显示顺序。
HL.PRFI.UA MUST assign model 0 to L1, 1 to L2, and 2 to L3. Model values 3 through 31 MUST reject before scalar source reads or effects. Legal hints MUST form the encoded address without translation, memory event, ordering edge, data-access fault, or architecturally guaranteed placement. The effective address MUST be published through RegDst after source snapshot.
PTO-HL-PRFI-UA-CACHE-MODEL-001asl/scalar/agu/HL.PRFI.UA.asl9ee0676ade644ad428c1aeb99fcf0b75e07770ef2d96a2a5576eeec5f5f54826614c717ccaf888608835a266c2b9bb01895c96757c5c247bcaa2957b4afb148513 matching entries
PTO-AVS-AGU-HL-PRFI-UA-ALIAS-001tests/asl/scalar/agu/HL.PRFI.UA/scalar-exec-hl-prfi-ua-registers-001.asl6580228d262e0906b8e3405b1ae38dad6b126ad79d0a51fe606e731ca7a5cbd9PTO-AVS-AGU-HL-PRFI-UA-BOUND-001tests/asl/scalar/agu/HL.PRFI.UA/scalar-bound-hl-prfi-ua-address-001.asl460f9554b6c0a33bc825ba0eca1607b7499ff3163e157b0a502031bfb9accfbbPTO-AVS-AGU-HL-PRFI-UA-EXEC-001tests/asl/scalar/agu/HL.PRFI.UA/scalar-exec-hl-prfi-ua-direct-001.asl5d8a224c34149dae65b74ce604f6e13239b1c1d19f368aec855e6e8300dbe66dPTO-AVS-AGU-HL-PRFI-UA-FAULT-001tests/asl/scalar/agu/HL.PRFI.UA/scalar-fault-hl-prfi-ua-precise-001.asla4c81ec9865549f5f84e2c23be02816ac4cea10176654ad77f2fabbc4dce42daPTO-AVS-SCALAR-HL-PRFI-UA-DECODE-001tests/asl/scalar/agu/HL.PRFI.UA/scalar-decode-hl-prfi-ua-canonical-001.asl968b1d04bc0ae33f4cdd86c770c876d564864ee6d3e7cfc5da111d9471ec97edPTO-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-0029…
ADR-0029docs/status/decisions/0029-scalar-agu-totality-and-restart.md778e7bc53a5ae6487c051d66d0f84b6d697d6302628716bf5c745166ce982eefLoading 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": [
"agu"
],
"documentation": "docs/scalar/agu/HL.PRFI.UA.md",
"id": "PTO-SCALAR-HL-PRFI-UA",
"instruction_contract": {
"artifact": "spec/evidence/instruction-contract-closure.json",
"mnemonic": "HL.PRFI.UA",
"ndf_clause": "PTO-INST-SCALAR-HL-PRFI-UA"
},
"mnemonic": "HL.PRFI.UA",
"readiness_subjects": [
"ADR-0029",
"ADR-0059",
"ADR-0084"
],
"semantic_tests": [
"PTO-AVS-AGU-HL-PRFI-UA-ALIAS-001",
"PTO-AVS-AGU-HL-PRFI-UA-BOUND-001",
"PTO-AVS-AGU-HL-PRFI-UA-EXEC-001",
"PTO-AVS-AGU-HL-PRFI-UA-FAULT-001"
],
"source": "asl/scalar/agu/HL.PRFI.UA.asl",
"surface": "scalar",
"tests": [
"PTO-AVS-AGU-HL-PRFI-UA-ALIAS-001",
"PTO-AVS-AGU-HL-PRFI-UA-BOUND-001",
"PTO-AVS-AGU-HL-PRFI-UA-EXEC-001",
"PTO-AVS-AGU-HL-PRFI-UA-FAULT-001",
"PTO-AVS-SCALAR-HL-PRFI-UA-DECODE-001"
]
}0.58.5 · 候选发布7dc8b7e5b121d2b2499a2273bebff29e2cd868129ee0676ade644ad428c1aeb99fcf0b75e07770ef2d96a2a5576eeec5f5f54826818ae473a371326ced6f122f62200ecca3673b51b769f31d010959b8fa111be9asl/scalar/agu/HL.PRFI.UA.aslasl/scalar/agu/HL.PRFI.UA.aslasl/scalar/agu/HL.PRFI.UA.asl