Processor block diagram¶
The diagrams below show the two cores at the same level of detail: front end, rename, out-of-order window, schedulers, execution pipes, and the memory path. The numbers come from Chips and Cheese, LoongPerf, and the LA464/LA664 microarchitecture measurements, and they describe the core rather than the package. The diagrams use the 4-core 3A6000 and 3A5000 packages; the server parts put the same cores around a 32 MB L3 per die; multi-die packages scale to 64 or 128 MB. Clock speed, the memory controller, and the L3 interconnect are left out.
LA664¶
%%{init: {"theme":"base","flowchart":{"curve":"basis","nodeSpacing":35,"rankSpacing":45},"themeVariables":{"fontFamily":"Inter, Helvetica, Arial, sans-serif","fontSize":"13px","lineColor":"#8aa0b8","primaryTextColor":"#1f2937"}}}%%
flowchart TB
FE("Front end<br/>64 KB L1I · 8-wide fetch<br/>96 BTB · 16 RAS")
REN("Rename<br/>6-wide")
ROB("ROB 256<br/>192 + 192 regs")
SCH("Schedulers<br/>3 × 48 entries")
ALU("4 × ALU<br/>2 mul · 2 branch")
AGU("4 × AGU<br/>2 load · 2 store")
FPV("4 × FP / vector<br/>2 FMA per cycle")
LSU("LSU<br/>80 load · 64 store")
MEM("L1D 64 KB · 3c/4c<br/>L2 256 KB · 12c<br/>L3 16 MB shared")
FE --> REN --> ROB --> SCH
SCH --> ALU
SCH --> AGU
SCH --> FPV
AGU --> LSU --> MEM
classDef fe fill:#eaf2fb,stroke:#7ba7d4,stroke-width:1.5px,color:#17324d
classDef be fill:#f2edfa,stroke:#9a86c4,stroke-width:1.5px,color:#2e2450
classDef sc fill:#fdf3e3,stroke:#d3a45f,stroke-width:1.5px,color:#4a3410
classDef ex fill:#eaf6ec,stroke:#78ad7a,stroke-width:1.5px,color:#1e3b21
classDef mem fill:#e9f6f5,stroke:#6fa9a4,stroke-width:1.5px,color:#193b38
class FE,REN,ROB fe
class SCH sc
class ALU,AGU,FPV ex
class LSU,MEM mem
LA664 is a 6-wide out-of-order core. It fetches up to 8 instructions per cycle and decodes 6 from a 64 KB, 4-way L1I. Branch targets come from a 96-entry, fully associative BTB and a 16-entry return stack (8 entries per thread when SMT is active). There is no micro-op cache and no second-level BTB: a BTB miss falls back to fetch and decode from the L1I, which is why the 64 KB L1I matters more than it does on cores with a large decoupled BTB.
Rename is 6-wide. The ROB holds 256 entries, backed by 192 integer and 192 vector physical registers. Three schedulers of 48 entries each feed the integer, memory, and FP/vector pipes.
The integer cluster has four ALUs. Two can execute branches and two can multiply. Memory has four AGUs, two for loads and two for stores, feeding an 80-entry load queue and a 64-entry store queue. The FP/vector cluster has four pipes: all four handle 256-bit packed FP adds, and the core can start two FMAs per cycle.
The L1D is 64 KB and 4-way. Its load-to-use latency is 3 cycles for a pointer
chase and 4 cycles for other dependent integer loads; fld, vld, and xvld
take 5 cycles. It can serve two 256-bit loads, two 256-bit stores, or one
256-bit load plus one 256-bit store per cycle; with 128-bit accesses it can also
do two loads and two stores in the same cycle. L2 is 256 KB with a 12-cycle
latency. L3 is 16 MB, shared by the four cores of a cluster.
LA464¶
%%{init: {"theme":"base","flowchart":{"curve":"basis","nodeSpacing":35,"rankSpacing":45},"themeVariables":{"fontFamily":"Inter, Helvetica, Arial, sans-serif","fontSize":"13px","lineColor":"#8aa0b8","primaryTextColor":"#1f2937"}}}%%
flowchart TB
FE("Front end<br/>64 KB L1I · 8-wide fetch<br/>96 BTB · 32 RAS")
REN("Rename")
ROB("ROB 128")
SCH("Scheduler<br/>3 × 32 entries")
ALU("4 × ALU<br/>1 branch · 2 mul")
AGU("2 × AGU<br/>2 memory ops")
FPV("2 × vector<br/>5-cycle FP")
LSU("LSU<br/>7c forward")
MEM("L1D 64 KB · 4c<br/>L2 256 KB · 14c<br/>L3 16 MB · ~40c")
FE --> REN --> ROB --> SCH
SCH --> ALU
SCH --> AGU
SCH --> FPV
AGU --> LSU --> MEM
classDef fe fill:#eaf2fb,stroke:#7ba7d4,stroke-width:1.5px,color:#17324d
classDef be fill:#f2edfa,stroke:#9a86c4,stroke-width:1.5px,color:#2e2450
classDef sc fill:#fdf3e3,stroke:#d3a45f,stroke-width:1.5px,color:#4a3410
classDef ex fill:#eaf6ec,stroke:#78ad7a,stroke-width:1.5px,color:#1e3b21
classDef mem fill:#e9f6f5,stroke:#6fa9a4,stroke-width:1.5px,color:#193b38
class FE,REN,ROB fe
class SCH sc
class ALU,AGU,FPV ex
class LSU,MEM mem
LA464 is a 4-wide core with a 128-entry ROB and no SMT. Its 64 KB, 4-way L1I feeds an 8-wide fetch and a 4-wide decode, with a 96-entry fully associative BTB and a 32-entry return stack. The L1I hit latency appears to be 3 cycles. The renamer shows no sign of zeroing or move elimination; what you write is what the execution pipes see.
Four ALUs handle the integer work. Only one branch can resolve per cycle, and two integer multiplies can start per cycle with a 4-cycle latency. Integer division is data-dependent, up to 38 cycles for 64-bit operands. Two AGUs can issue two loads or one load plus one store. The vector cluster has two 256-bit pipes. FP add, multiply, and FMA all take 5 cycles, and the core starts two FMAs per cycle.
Store forwarding takes 7 cycles when the load is fully contained in the store,
and 14 cycles on a partial overlap. A misaligned load costs 2 cycles; a
misaligned store costs 10, or 15 when it crosses a 16 KB page. The L1D is 64 KB
and 4-way with a 4-cycle integer load-to-use latency in all cases; fld, vld,
and xvld take 5 cycles. L2 is 256 KB, 16-way, a victim
cache with a 14-cycle latency. L3 is 16 MB with about 40 cycles, shared by four
cores. The L1 DTLB has 64 entries, the L2 TLB 2048, and the default page size is
16 KB.
What the diagrams leave out¶
The diagrams stop at the core boundary. On LA664, SMT is part of the picture: the ROB, register files, and load/store queues are statically partitioned between the two threads, while the schedulers are watermarked so a thread can use what appears to be about 30 entries even when its sibling is active. LA464 has no SMT, so none of that applies.
Branch prediction is drawn as one box because its internals are largely undocumented. The 96-entry L1 BTB and the return stacks are measured; the direction predictor's structure is not public, and the numbers in the diagram are the observable capacities, not the vendor's specification.
The diagrams also skip the TLB hierarchy, the L3 interconnect, and the memory controller. Those belong to the address translation and cache sections, and the memory controller in particular differs a lot between the two parts: the 3A5000 DDR4 controller was a weak point, and the 3A6000 improved it substantially.
Per-instruction latency and throughput are maintained separately in Instruction latency and throughput. Where the sources disagree, the measurement wins, and the diagram should be corrected.