riscv-isa-0.1.0.0: Haskell representation of the RISC-V instruction set architecture

Safe HaskellSafe
LanguageHaskell2010

RiscV.Internal.Util

Synopsis

Documentation

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