riscv-isa-0.1.0.0: Haskell representation of the RISC-V instruction set architecture
RiscV.Internal.Util
Synopsis
bitMaskFromTo :: Int -> Int -> Word32 Source #
bitsFromTo :: Int -> Int -> Word32 -> Word32 Source #
Bits not in the range are set to 0
extractBits :: Int -> Int -> Word32 -> Word32 Source #
Zeroes bits outside the range and right-shifts the range to align it at bit 0