4 ms·
It's a classical example of how much definition matters. Though, if we define superscalar to mean the instructions can run independenly (i.e. not in lockstep),
by hvidgaard 10y ago
It's a classical example of how much definition matters. Though, if we define superscalar to mean the instructions can run independenly (i.e. not in lockstep), then I agree that a single SIMD unit is not superscalar. But a design with 2 SIMD units that operate on 2 different data steams independently would be be a superscalar design.
- gpderetta 10y agoI'm no expert, but I think my definition is what historically has been considered superscalar. Yes, the design you described is definitely superscalar, but the fact that the two streams are simd is incidental.
- hvidgaard 10y agoI cannot call myself an expert, but I do have some experience in the domain. The classic example of ILP in a superscalar design is: a = b + c d = e + f g = a + d Where calculation of a and d is executed in parallel. Wikipedia is not entirely clear either, but the entire page gives the impression that it should send instructions to multiple execution units in parallel, in which SIMD would be a single execution unit.
- minipci1321 10y ago> Where calculation of a and d is executed in parallel. Why then not to try to reason from the assembler/machine code standpoint? The parallel calculation above could be done in different ways: a) the compiler would emit two "scalar" ADD instructions following one another (allocate registers so independent execution is possible). b) the compiler would coalesce both additions b+c and e+f into one vector operation (let's assume data layout makes such optimization useful), and emitted only one "vector" (SIMD) instruction. In the case a) the two scalar instructions would be fetched "sequentially" by the prefetch unit, but executed in parallel, in two separate instances of the adder ==> "super-scalar". In the other case, the vector operation would not be paired with another instruction which is part of the computation above you mentioned. EDIT: corrected typo in operands of the coalesced additions.