Plop3

sm86.sail

PLOP3 and UPLOP3: two truth tables of the predicates at 87, 77 and 68 (the last a uniform one with bit 67), into the predicates at 81 (the table at 64-66 and 72-76) and 84 (at 16-23). All of UPLOP3's predicates are uniform (NAK)

function Plop3(u : int) -> unit = {
    let x = PredRead(UInt(Field(87, 3)), UInt(Field(90, 1)), u);
    let y = PredRead(UInt(Field(77, 3)), UInt(Field(80, 1)), u);
    let z = PredRead(UInt(Field(68, 3)), UInt(Field(71, 1)), if u == 1 | Field(67, 1) == 0b1 then 1 else 0);
    let lut0 = Field(72, 5) @ Field(64, 3);
    let lut1 = Field(16, 8);
    let p = UInt(Field(81, 3));
    let q = UInt(Field(84, 3));
    if p < PT then PredWrite(p, Lut3Bool(lut0, x, y, z), u);
    if q < PT then PredWrite(q, Lut3Bool(lut1, x, y, z), u)
}

Used by


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.