T
Torsten Bitterlich
Guest
Hi there,
I am experiencing a problem when using Modelsim. The following piece of
code is to be simulated :
variable t1,t2 : time;
variable temp1, temp2 : real;
variable cp : real := (1.0/(500 * 1000000.0));
temp1 := cell_ptr.t1(x+y-1);
temp2 := cell_ptr.t2(x+y-1);
t1 := (temp1 * cp) * 1 sec;
t2 := (cp - (temp2 * cp)) * 1 sec;
The variable temp1 for example has the value 0.10991, temp2 is 0.877552.
Cp is as expected 2e-9. The problem occurs with t1 and t2. These
calculations result in 0. When simulating this code with Aldec Riviera,
the variables are correctly calculated. Is there something to be done in
Modelsim, maybe concerning the time resolution, so this works? Im using
Modelsim XE/Starter 5.6a, the free Xilinx edition. Thanks for any help,
Regards,
Torsten
I am experiencing a problem when using Modelsim. The following piece of
code is to be simulated :
variable t1,t2 : time;
variable temp1, temp2 : real;
variable cp : real := (1.0/(500 * 1000000.0));
temp1 := cell_ptr.t1(x+y-1);
temp2 := cell_ptr.t2(x+y-1);
t1 := (temp1 * cp) * 1 sec;
t2 := (cp - (temp2 * cp)) * 1 sec;
The variable temp1 for example has the value 0.10991, temp2 is 0.877552.
Cp is as expected 2e-9. The problem occurs with t1 and t2. These
calculations result in 0. When simulating this code with Aldec Riviera,
the variables are correctly calculated. Is there something to be done in
Modelsim, maybe concerning the time resolution, so this works? Im using
Modelsim XE/Starter 5.6a, the free Xilinx edition. Thanks for any help,
Regards,
Torsten