RISC-V Multiplication - SLL & SLLI

Описание к видео RISC-V Multiplication - SLL & SLLI

In this video, I briefly introduce how to multiply with RISC-V. Multiplication in RISC-V using registers and the two instructions; shift left logical (SLL) and shift left logical immediate (SLLI). In addition, two small examples of multiplying in RISC-V and how multiplication is different from division in RISC-V.

SIDE NOTE: I forgot to go into detail about how SLL and SLLI are different. With SLL your amount of multiplication is determined by a register,

ex: SLL t1, t1, t0

Whereas SLLI you are using an immediate value to determine the number of positions to shift your bits (multiply),

ex: SLLI t1, t1, 1

Комментарии

Информация по комментариям в разработке