ghostridergr
Member level 1
Hello! i want to read input from a file, and i have written a testbench which is correct for reading positive integer numbers.
But when i read negative numbers it gives me error message so its either problem of my reading input or of my vhdl programme.
What i want is when reading a negative number "tranform" it in the following form: msb is the sign (1 for negatives) and the rest bits is the numbers.
can anyone help me with the readline and read functions? how do they behave when reading negative integers?
Thanks!
But when i read negative numbers it gives me error message so its either problem of my reading input or of my vhdl programme.
What i want is when reading a negative number "tranform" it in the following form: msb is the sign (1 for negatives) and the rest bits is the numbers.
can anyone help me with the readline and read functions? how do they behave when reading negative integers?
Thanks!