SubwordExtract

sm53_memory.sail

function SubwordExtract(word : bits(32), bit_offset : bits(32), width : bits(32), size : int) -> bits(32) =
    if MOD(size, 2) == 1 then Bits32(BitsS(word, bit_offset, width)) else BitsU(word, bit_offset, width)

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 Eden's maxwell.inc (GPL-2.0-or-later).