::std::

Module ops

Functions

abs_trunc

Computes the absolute value of a signed integer, truncated to fit the output type bounds.

bin_to_gray

Encodes the input number into Gray code.

comb_div

Evaluates to x / y in Verilog.

comb_mod

Evaluates to x % y in Verilog.

div_pow2

Divides x by 2 to the power of pow, rounding towards positive infinity.

gray_to_bin

Decodes a Gray-code number back into binary.

interleave

Interleaves the bits of two numbers.

max

Calculates the maximum value of two integers.

min

Calculates the minimum value of two integers.

order

Sorts two integers in ascending order.

reduce_and

Reduces an array of bool into a single value by performing an AND operation on them.

reduce_or

Reduces an array of bool into a single value by performing an OR operation on them.

reduce_xor

Reduces an array of bool into a single value by performing a XOR operation on them.