J
Jan
Guest
Hi,
I have real variable r for <-1.0 to 1.0> and I need N bit 2'complent representation.
How could I convert this in VHDL?
How can I muliplicate variables?
r1 := CONSTANT*r doesn't work
I need somethig as
r_fixed_int <= std_logic_vector(to_signed(integer(r1),16));
Thanks
Jan
I have real variable r for <-1.0 to 1.0> and I need N bit 2'complent representation.
How could I convert this in VHDL?
How can I muliplicate variables?
r1 := CONSTANT*r doesn't work
I need somethig as
r_fixed_int <= std_logic_vector(to_signed(integer(r1),16));
Thanks
Jan