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 / yin Verilog.- comb_mod
Evaluates to
x % yin Verilog.- div_pow2
Divides
xby 2 to the power ofpow, 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
boolinto a single value by performing an AND operation on them.- reduce_or
Reduces an array of
boolinto a single value by performing an OR operation on them.- reduce_xor
Reduces an array of
boolinto a single value by performing a XOR operation on them.