Crate lib_rv32_common[][src]

Modules

Macros for bit-wise operations.

RISC-V constants.

Pre-assembled instructions for testing.

General utility functions.

Macros

Returns a bitmask for the n’th bit.

Concatenate the bits of integers.

Extend a bit (useful for sign extension).

Macro to help with bit level access to integers. Example attempts to mimic Verilog syntax.

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.

Like bit_extend, but outputs the result and its size in a tuple.

Like bit_slice, but outputs the result and its size in a tuple.