cv32e40p icon indicating copy to clipboard operation
cv32e40p copied to clipboard

Immediate scalar replication mode example

Open a7med7asan15 opened this issue 2 years ago • 0 comments

Hi OpenHw Team, In Immediate scalar replication mode section. It is described here:

Immediate scalar replication mode (.sci), vector-scalar operation. Operand 1 is treated as vector, while operand 2 is treated as a scalar and comes from an immediate. The immediate is either sign- or zero-extended, depending on the operation. If not specified, the immediate is sign-extended. e.g. cv.add.sci.h x3,x2,0xDA performs: x3[31:16] = x2[31:16] + 0xFFDA x3[15: 0] = x2[15: 0] + 0xFFDA

The immediate is only 6 bits wide, Shouldn't the maximum value for the immediate to be 0x3F (0011 1111) ? Why the example mentioned 0xDA (1101 1010) ?

Also in the decoding tables, Sometimes the immediate is Imm6[5:0]s or Imm6[5:0], What is the difference between both? With and without the letter s

Thanks

a7med7asan15 avatar Jun 07 '22 14:06 a7med7asan15