W
Willem Oosthuizen
Guest
Hi,
It have coded a block that pops out a value Q of type std_logic_vector(n
downto 0). This value is a function of N, also of type std_logic_vector(m
downto 0) The type of function the block calculates is something like Q =
INT(k x SIN(w x N)+y)
In my test vectors I would like be able to write something like
assert (conv_real(Q) - ( k x SIN(w x conv_real(N))+y ) < 3.0)
report "Failure. Bad result"
severity failure;
My Question: Is there functions like conv_real, and SIN ? How do i do it?
Thanks
Willem
It have coded a block that pops out a value Q of type std_logic_vector(n
downto 0). This value is a function of N, also of type std_logic_vector(m
downto 0) The type of function the block calculates is something like Q =
INT(k x SIN(w x N)+y)
In my test vectors I would like be able to write something like
assert (conv_real(Q) - ( k x SIN(w x conv_real(N))+y ) < 3.0)
report "Failure. Bad result"
severity failure;
My Question: Is there functions like conv_real, and SIN ? How do i do it?
Thanks
Willem