CS2R

System registers, votes, shuffles and barriers

fixed bit field field the encoding fixes should be

CS2R

6362616059585756555453525150494847464544434241403938373635343332
0101000011001
313029282726252423222120191817161514131211109876543210
srpred.notpredRd

bits 63:48: 0101 0000 1100 1---

Runs execute_CS2R with Form() 0.

Fields

FieldBitsFrom
sr27:20execute_CS2R
pred.not19the decoder
pred18:16the decoder
Rd7:0Dst()

Operation Sail

CS2R: the clock (SR_CLOCKLO 0x50, of the subgroup's scope, else the device's) into a pair, SRZ zero

let sr = UInt(Field(20, 8));
if sr == 255 then {
    R_write(Dst(), 0x00000000);
    if Dst() < 254 then R_write(Dst() + 1, 0x00000000)
} else {
    let clock = ReadClock(if sr == 80 then 3 else 1);
    R_write(Dst(), ClockAt(clock, 0));
    if Dst() < 254 then R_write(Dst() + 1, ClockAt(clock, 1))
}

Made from ScarletNX's Sail at 166ad3910f80. The Sail and the encodings' file are ScarletNX's (GPL-3.0-or-later); its encodings are from Eden's maxwell.inc (GPL-2.0-or-later).