UISETP

The uniform datapath

fixed bit field field the encoding fixes should be

Encoding

12712612512412312212112011911811711611511411311211111010910810710610510410310210110099989796
reusewaitrd_barwr_baryieldstall
9594939291908988878685848382818079787776757473727170696867666564
PredAt(87)PredAt(87)[86:84][83:81]opset_op[73][72]PredAt(68)PredAt(68)
6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
URapred.notpredform010001100

bits 15:0: ---- 0010 1000 1100
bits 15:0: ---- 0100 1000 1100
bits 15:0: ---- 1000 1000 1100

Forms

Form (bits 11:9)bc
1 (001)URb at 32URc at 64
2 (010)URb at 64immediate at 32
4 (100)immediate at 32URc at 64

Runs execute_ISETP.

Fields

FieldBitsFrom
reuse125:122the decoder
wait121:116the decoder
rd_bar115:113the decoder
wr_bar112:110the decoder
yield109the decoder
stall108:105the decoder
PredAt(87)90PredAt(87)
PredAt(87)89:87PredAt(87)
[86:84]86:84execute_ISETP
[83:81]83:81execute_ISETP
op78:76execute_ISETP
set_op75:74execute_ISETP
[73]73execute_ISETP
[72]72execute_ISETP
PredAt(68)71PredAt(68)
PredAt(68)70:68PredAt(68)
URa29:24the decoder
pred.not15the decoder
pred14:12the decoder
form11:9the decoder

Operation Sail

ISETP and UISETP: a and b compared (76-78, signed with 73), combined (74) with the predicate at 87 into the one at 81, and its negation into the one at 84. No negation: bit 72, a's negation in the decoder's fields, is .EX (NAK's OpISetP, whose sources take no modifiers). .EX: equal high words take the low words' comparison, the predicate at 68

let op = Field(76, 3);
var cmp : bool = IntCompare(op, Field(73, 1) == 0b1, SrcBits(A), SrcBits(B));
if Field(72, 1) == 0b1 then {
    let low = PredAt(68);
    let equal = SrcBits(A) == SrcBits(B);
    if op != 0b000 & op != 0b111 then { cmp = (if equal then low else cmp) }
};
let acc = PredAt(87);
let set_op = Field(74, 2);
PredWrite(UInt(Field(81, 3)), Combine(set_op, cmp, acc), Uniform());
PredWrite(UInt(Field(84, 3)), Combine(set_op, not_bool(cmp), acc), Uniform())

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 Mesa's NAK (sm70_encode.rs, MIT) and CuAssembler's sm_86 records.