riscv_ctg.constants.
gen_sign_dataset
Function to generate the signed data set
gen_sp_dataset
alternating ones
alternating zeros
sqrt (bit_width<<1)
+/-1 variants of the above
integer defining the size of the input
a list of integers
gen_usign_dataset
Function to generate the unsigned dataset
twos
A function to generate the two’s complement of a number which is of arbitrary width
val (Union[int, str]) – the input which can be either a hexadecimal string or integer
bits (int) – size of the input in terms of bits.