rtlpy.utils.val2int
- rtlpy.utils.val2int(val: Any) int
Converts a value to an integer. If the value is a string then it converts it from 0x/x format or SystemVerilog formats to integers. Otherwise the function just returns int(val)
- Parameters:
val (Any) – The value to convert to the int
- Returns:
The integer from the value
- Return type:
int