Crate lib_rv32_common

Source

Modules§

bits
Macros for bit-wise operations.
constants
RISC-V constants.
instructions
Pre-assembled instructions for testing.
util
General utility functions.

Macros§

bit
Returns a bitmask for the n’th bit.
bit_concat
Concatenate the bits of integers.
bit_extend
Extend a bit (useful for sign extension).
bit_slice
Macro to help with bit level access to integers. Example attempts to mimic Verilog syntax.
parse_int
Parse an integer from a string slice. If it leads with 0x or 0X, it will be parsed as base 16, otherwise it will be parsed as base 10.
sized_bit_extend
Like bit_extend, but outputs the result and its size in a tuple.
sized_bit_slice
Like bit_slice, but outputs the result and its size in a tuple.