csrrci
No synopsis available.
This instruction is defined by:
-
Zicsr, version >= Zicsr@2.0.0
This instruction is included in the following profiles:
Decode Variables
Bits<12> csr = $encoding[31:20];
Bits<5> uimm = $encoding[19:15];
Bits<5> xd = $encoding[11:7];
Execution
-
IDL
Boolean will_write = uimm != 0;
check_csr(csr, will_write, $encoding);
XReg initial_csr_value = CSR[csr].sw_read();
if (uimm != 0) {
XReg mask = uimm;
CSR[csr].sw_write(initial_csr_value & ~mask);
}
X[xd] = initial_csr_value;