The relationship between instruction pipelines and instruction loops

I understand the basic principle of pipelining instructions .

I also understand that some instructions may take longer ( loops per instruction ).

But I do not get the connection between both.

All piping diagrams, which, as I see it, seem to be โ€œperfectโ€ instructions, they all have the same length (number of cycles).

4-stage conveyor

But what if the first instruction executes 5 cycles and the second takes 3 cycles? Does the processor support two cycles?

Will this stall be called bubble ? Or is it different from the dangers and dependencies of the data?

Also, does the length of the instruction in bytes matter?

+6
2

, 2 , . MIPS - , , .

MIPS 5- : IF -> ID -> EX -> MEM -> WB. (https://en.wikipedia.org/wiki/Classic_RISC_pipeline). , , , (, , , ). , SW ( ), BNEZ ( ) ADD ( ). . , SW , WB, BNEZ ID ( ), ADD MEM.

, , . , (.. WB SW). , .

, EX , MUL DIV. . , ( MIPS16 ARM Thumb), (ARM Thumb2 16- 32- ). x86 Thumb2 , , .

ISA , , , . (/ / ).

+3

, .

, uops, -, uops .


uop, uops. uop, (, 1024) uops. , , , , .


, uops, .
OoO, CPU , (, 256 ). .
, .


.
, .


X86/X64 . AMD, Intel , , , . , ( ) uop-, . , , .


14 , 4, , , .

., , AMD Zen: https://www.extremetech.com/computing/234354-a-state-of-zen-amd-unveils-new-architectural-details-on-its-latest-cpu-core

, , , .

. uops .


, , . Tomasulo , .

+2

All Articles