Operands and parameters
RegDst- ignored encoded alias field
SrcL- Reg5 address-base source
SrcR- Reg5 register-offset source
SrcRType- register-offset transformation selector
shamt- post-transformation logical-left-shift amount
PRF snapshots its scalar sources, forms its encoded address, and issues a non-binding 1-byte-granularity prefetch hint with no destination effect.
PTO-SCALAR-PRFprf [SrcL, SrcR<{.sw,.uw,.neg}><<<shamt>]| Field | Bits | Signedness | Architectural role | Encoded zero |
|---|---|---|---|---|
RegDst | 5 | encoding-defined | ignored encoded alias field | Encoded zero is the canonical ignored alias value and names no destination. |
SrcL | 5 | encoding-defined | Reg5 address-base source | Encoded zero reads the architectural zero GPR. |
SrcR | 5 | encoding-defined | Reg5 register-offset source | Encoded zero reads the architectural zero GPR. |
SrcRType | 2 | encoding-defined | register-offset transformation selector | Encoded zero leaves the complete PTO_XLEN register-offset value unchanged. |
shamt | 5 | encoding-defined | post-transformation logical-left-shift amount | Encoded zero performs no shift. |
Loading WaveDrom diagram… The encoding table and WaveJSON remain available below.
| Decoded item | Bit range | Value |
|---|---|---|
| shamt | 31:27 | variable |
| SrcRType | 26:25 | variable |
| SrcR | 24:20 | variable |
| SrcL | 19:15 | variable |
| Constant | 14:12 | 3'b111 |
| RegDst | 11:7 | variable |
| Constant | 6:0 | 7'b0001001 |
{
"reg": [
{
"bits": 7,
"name": "7'b0001001"
},
{
"bits": 5,
"name": "RegDst"
},
{
"bits": 3,
"name": "3'b111"
},
{
"bits": 5,
"name": "SrcL"
},
{
"bits": 5,
"name": "SrcR"
},
{
"bits": 2,
"name": "SrcRType"
},
{
"bits": 5,
"name": "shamt"
}
],
"config": {
"bits": 32,
"fontsize": 13,
"hspace": 900,
"lanes": 1,
"offset": 0
}
}prf [SrcL, SrcR<{.sw,.uw,.neg}><<<shamt>]
RegDstSrcLSrcRSrcRTypeshamtThis Operation comes directly from the instruction owner; the page does not rewrite its behavior.
readonly func InstructionContractOperation_PRF() => ScalarOperationbegin return ScalarOperation_PRF;end;readonly func InstructionContractHandler_PRF() => ScalarSemanticHandlerbegin return ScalarHandler_ScalarPrefetch;end;
pure func InstructionContractAGUAction_PRF() => ScalarAGUActionbegin return ScalarAGU_Prefetch;end;
pure func InstructionContractAGUAddressKind_PRF() => ScalarAGUAddressKindbegin return ScalarAGU_Register;end;
pure func InstructionContractAGUSizeBytes_PRF() => integer {1,2,4,8}begin return 1;end;
pure func InstructionContractAGUOffsetScale_PRF() => integer {0..3}begin return 0;end;
pure func InstructionContractAGUUpdateMode_PRF() => AddressUpdateModebegin return AddressUpdate_None;end;
pure func InstructionContractAGUSignedLoad_PRF() => booleanbegin return FALSE;end;
pure func InstructionContractAGUPrefetchReturnsAddress_PRF() => booleanbegin return FALSE;end;// PTO-INSTRUCTION: {"assembly":["prf [SrcL, SrcR<{.sw,.uw,.neg}><<<shamt>]"],"block":[],"catalog_indices":[370],"catalog_records":[{"agu":{"action":"Prefetch","address_kind":"Register","offset_scale":0,"prefetch_returns_address":false,"signed_load":false,"size_bytes":1,"update_mode":"None"},"asm":"prf [SrcL, SrcR<{.sw,.uw,.neg}><<<shamt>]","constraints":[],"encoding":[{"index":0,"mask":"0x0000707f","match":"0x00007009","width_bits":32}],"encoding_kind":"L32","fields":[{"name":"RegDst","pieces":[{"instruction_lsb":7,"value_lsb":0,"width":5}],"signedness":"encoding-defined","width":5},{"name":"SrcL","pieces":[{"instruction_lsb":15,"value_lsb":0,"width":5}],"signedness":"encoding-defined","width":5},{"name":"SrcR","pieces":[{"instruction_lsb":20,"value_lsb":0,"width":5}],"signedness":"encoding-defined","width":5},{"name":"SrcRType","pieces":[{"instruction_lsb":25,"value_lsb":0,"width":2}],"signedness":"encoding-defined","width":2},{"name":"shamt","pieces":[{"instruction_lsb":27,"value_lsb":0,"width":5}],"signedness":"encoding-defined","width":5}],"form_id":"prf_32_30e6dfe4e3ce","length_bits":32,"mnemonic":"PRF","semantic_family":"AGU","semantic_group":"LDA/BASE_REG","semantic_handler":"ScalarPrefetch","semantic_summary":"PRF snapshots its scalar sources, forms its encoded address, and issues a non-binding 1-byte-granularity prefetch hint with no destination effect.","status":"accepted"}],"classification":["agu"],"contract":{"block_composition":["none"],"canonical_assembly":["prf [SrcL, SrcR<{.sw,.uw,.neg}><<<shamt>]"],"defaults":["Every displayed operand field is encoded explicitly; encoded zero is a value and never denotes omission.","SrcRType=0 leaves SrcR unchanged, SrcRType=1 sign-extends SrcR[31:0], SrcRType=2 zero-extends SrcR[31:0], and SrcRType=3 negates the full PTO_XLEN value. Encoded shamt zero performs no shift."],"encoding_class":"standalone-encoded","examples":["prf [SrcL, SrcR<{.sw,.uw,.neg}><<<shamt>]"],"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 is the canonical ignored alias value and names no destination.","SrcL":"Encoded zero reads the architectural zero GPR.","SrcR":"Encoded zero reads the architectural zero GPR.","SrcRType":"Encoded zero leaves the complete PTO_XLEN register-offset value unchanged.","shamt":"Encoded zero performs no shift."},"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 encoded RegDst value is an assigned non-writing alias. Canonical assembly uses zero and does not expose a destination.","All four SrcRType values and all shamt values 0..31 are assigned; apply the modifier before the shift."],"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":"ignored encoded alias field"},{"field":"SrcL","role":"Reg5 address-base source"},{"field":"SrcR","role":"Reg5 register-offset source"},{"field":"SrcRType","role":"register-offset transformation selector"},{"field":"shamt","role":"post-transformation logical-left-shift amount"}],"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 4 bytes."],"standalone_opcode":true,"state_effects":["Form offset = LSL(Modify(SrcR, SrcRType), the encoded shamt) and add it modulo 2^PTO_XLEN to the SrcL base.","Discard the formed address after issuing the non-binding hint; no encoded field publishes a result.","Successful execution advances TPC by 4 bytes; a rejected or faulting attempt does not retire."]},"depends_on":["PTO-BLOCK-MODEL-SCHEMA-PROFILE-ENCODING"],"id":"PTO-SCALAR-PRF","mnemonic":"PRF","summary":"PRF snapshots its scalar sources, forms its encoded address, and issues a non-binding 1-byte-granularity prefetch hint with no destination effect.","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-PRF-NONFAULTING-HINT-001// ndf: kind=contract level=L1 layer=scalar status=accepted// PRF MUST form its modified and shifted register address as a non-faulting// hint. Every encoded RegDst value is a non-writing alias, and legal execution// MUST perform no translation, memory event, ordering edge, or destination effect.// NDF-END: PTO-PRF-NONFAULTING-HINT-001// DOC-BEGIN: decodereadonly func InstructionContractOperation_PRF() => ScalarOperationbegin return ScalarOperation_PRF;end;// DOC-END: decode// DOC-BEGIN: operationreadonly func InstructionContractHandler_PRF() => ScalarSemanticHandlerbegin return ScalarHandler_ScalarPrefetch;end;
pure func InstructionContractAGUAction_PRF() => ScalarAGUActionbegin return ScalarAGU_Prefetch;end;
pure func InstructionContractAGUAddressKind_PRF() => ScalarAGUAddressKindbegin return ScalarAGU_Register;end;
pure func InstructionContractAGUSizeBytes_PRF() => integer {1,2,4,8}begin return 1;end;
pure func InstructionContractAGUOffsetScale_PRF() => integer {0..3}begin return 0;end;
pure func InstructionContractAGUUpdateMode_PRF() => AddressUpdateModebegin return AddressUpdate_None;end;
pure func InstructionContractAGUSignedLoad_PRF() => booleanbegin return FALSE;end;
pure func InstructionContractAGUPrefetchReturnsAddress_PRF() => booleanbegin return FALSE;end;// DOC-END: operation
PRF is a standalone 32-bit AGU instruction that forms a register-offset address and issues a non-binding prefetch hint with no destination effect.
PRF transforms SrcR according to SrcRType, shifts the transformed value left by the encoded shamt, and adds it modulo 2^PTO_XLEN to the snapshotted SrcL base.
The formed address is a non-binding one-byte-granularity prefetch hint; legal execution performs no architectural translation, memory access, memory event, reservation update, ordering edge, or cache-placement guarantee.
No encoded destination publishes the hint address, and the instruction performs no base-register update.
SrcL supplies the base; SrcR supplies the offset; SrcRType supplies the offset transformation. Every encoded Reg5 source among SrcL, SrcR uses codes 0..23 for GPRs, 24..27 for T#1..T#4, and 28..31 for U#1..U#4 without consumption.RegDst is an ignored alias; every RegDst code is an assigned non-writing alias.SrcRType values 0..3 and all shamt values 0..31 are assigned; transformation precedes the encoded shift.All explicit and implicit scalar sources are snapshotted before memory or destination effects, so aliases observe pre-instruction values.
A legal hint produces no memory event, reservation change, or destination write and advances TPC by 4 bytes.
A legal prefetch does not perform data alignment, translation, permission, or bounded-memory checks and therefore cannot raise a data-access fault.
A reserved prefetch model rejects before source reads and before any optional address publication.
A fixed-bit mismatch, reserved field value, or unavailable selected T/U source raises Fault_IllegalInstruction before instruction effects.
This example demonstrates the address calculation only; exact behavior remains in the current ASL and instruction contract.
With base 0x100, unchanged offset source 2, and shamt=1, the formed hint address is 0x104; it is issued only as a non-binding hint and causes no architectural memory or destination effect.
Bodies come from owning ASL. Dragging or buttons change only this page-session view order.
PRF MUST form its modified and shifted register address as a non-faulting hint. Every encoded RegDst value is a non-writing alias, and legal execution MUST perform no translation, memory event, ordering edge, or destination effect.
PTO-PRF-NONFAULTING-HINT-001asl/scalar/agu/PRF.asl6bcbd0955c963d3e25c05d194cd9a2b5a08191c481ef0d61805d0da99961a46b5332ae3c04a79fefdd5badf7d686bd663c7bd8caa927f064b827970d9393410e14 matching entries
PTO-AVS-AGU-PRF-ALIAS-001tests/asl/scalar/agu/PRF/scalar-exec-prf-registers-001.asl60abe032efe08b1e4fd0b5a396413b32be01b0965544569ae4fd6b85e8b205e0PTO-AVS-AGU-PRF-BOUND-001tests/asl/scalar/agu/PRF/scalar-bound-prf-address-001.asl17078c4fc906a42ae823e812baecf616bb0121ff9fa0b6b1543b730f1a460041PTO-AVS-AGU-PRF-EXEC-001tests/asl/scalar/agu/PRF/scalar-exec-prf-direct-001.aslfb5c79d0e7d59afb3c93129091bed6eba1a25d357ef828eca42b17cb0b925b56PTO-AVS-AGU-PRF-FAULT-001tests/asl/scalar/agu/PRF/scalar-fault-prf-precise-001.asl505226a3b6dde0ab8469d3ab4133f1f4095a94f7fc77ef323bf9fff629540169PTO-AVS-SCALAR-PRF-DECODE-001tests/asl/scalar/agu/PRF/scalar-decode-prf-canonical-001.asl3352d4aacbdb7c9f2d8d4108fd1037a286b5a2babeec8aa3142798f240a3bf08PTO-AVS-SCALAR-PRF-MODIFIER-001tests/asl/scalar/agu/PRF/scalar-bound-prf-modifier-001.asl069c2eccece9123ab1171bda804122da44c6a6e817e5c1f211f6929b5e9358e8PTO-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/PRF.md",
"id": "PTO-SCALAR-PRF",
"instruction_contract": {
"artifact": "spec/evidence/instruction-contract-closure.json",
"mnemonic": "PRF",
"ndf_clause": "PTO-INST-SCALAR-PRF"
},
"mnemonic": "PRF",
"readiness_subjects": [
"ADR-0029",
"ADR-0059",
"ADR-0084"
],
"semantic_tests": [
"PTO-AVS-AGU-PRF-ALIAS-001",
"PTO-AVS-AGU-PRF-BOUND-001",
"PTO-AVS-AGU-PRF-EXEC-001",
"PTO-AVS-AGU-PRF-FAULT-001",
"PTO-AVS-SCALAR-PRF-MODIFIER-001"
],
"source": "asl/scalar/agu/PRF.asl",
"surface": "scalar",
"tests": [
"PTO-AVS-AGU-PRF-ALIAS-001",
"PTO-AVS-AGU-PRF-BOUND-001",
"PTO-AVS-AGU-PRF-EXEC-001",
"PTO-AVS-AGU-PRF-FAULT-001",
"PTO-AVS-SCALAR-PRF-DECODE-001",
"PTO-AVS-SCALAR-PRF-MODIFIER-001"
]
}0.58.5 · Release candidate7dc8b7e5b121d2b2499a2273bebff29e2cd868126bcbd0955c963d3e25c05d194cd9a2b5a08191c481ef0d61805d0da99961a46bc211fadf795e512bd558116e51c4aec45e48ee70d7a9b51284fc080ff1afa23dasl/scalar/agu/PRF.aslasl/scalar/agu/PRF.aslasl/scalar/agu/PRF.asl