c.nop

Non-operation

This instruction is defined by:

  • anyOf:

    • C, version >= 0

    • Zca, version >= 0

This instruction is included in the following profiles:

Encoding

svg

Assembly format

c.nop imm

Synopsis

C.NOP expands into addi x0, x0, imm.

Access

M HS U VS VU

Always

Always

Always

Always

Always

Decode Variables

Bits<6> imm = {$encoding[12], $encoding[6:2]};

Execution

  • IDL

if (implemented?(ExtensionName::C) && (CSR[misa].C == 1'b0)) {
  raise(ExceptionCode::IllegalInstruction, mode(), $encoding);
}

Exceptions

This instruction may result in the following synchronous exceptions:

  • IllegalInstruction