this post was submitted on 28 Aug 2024
30 points (96.9% liked)

RISC-V

876 readers
1 users here now

RISC-V (pronounced "risk-five") is a license-free, modular, extensible instruction set architecture (ISA).

riscv.org

Youtube | Twitter

Matrix space

Other RISC-V communities on Lemmy

founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] drspod@lemmy.ml 2 points 2 months ago (2 children)

Slightly OT, but for these instructions that do pick range of bits, add, insert into range, does x86 have dedicated silicon in the ALU to implement this process or is it implemented in microcode? If it's the latter then how can it be faster than the equivalent unrolled instructions on a RISC ISA?

This is more of a general question about how microcode can be faster than using separate instructions, which is something I have never quite understood. Any CPU engineers that can enlighten me?

[–] Goun@lemmy.ml 2 points 2 months ago

Not an expert, but what I understand is that x86 has microops, and each instruction is decomposed into microops by the microcode. These microops can then be executed many at the same time by the multiple "ALUs" (not strictly speaking ALUs).

Maybe someone else can correct me or expand a bit.

[–] dzaima@discuss.tchncs.de 2 points 2 months ago* (last edited 2 months ago)

There appears to be dedicated silicon for e.g. ADD AH, BL, see uops.info showing it having 1 uop across multiple microarchitectures (e.g. 1*p0156 being notation that it takes one uop on any port between 0/1/5/6, i.e. theoretical throughput of 4 instrs/cycle; I think the displayed 0.4 is just an artifact of it only testing 3 different destination registers despite there being a dependency on it). The newer Alder Lake actually has less throughput, but still takes only one uop.