how to solve the problem in modelsim

B

bestyang

Guest
i use modelsim for windows-32 system
and i want to simulate for a time least 10000000000
but the modelsim has the following error:10000000000 exceeds 32-bit capacity
how can i solve the problem
best regards
bestyang
 
bestyang wrote:
i use modelsim for windows-32 system
and i want to simulate for a time least 10000000000
but the modelsim has the following error:10000000000 exceeds 32-bit capacity
how can i solve the problem
best regards
bestyang
Change your timescale.

-a
 
Try something like this

`timescale 1 ns / 1 ps

module simulation_run_time ;

parameter simulation_run = 1000000000;

initial
begin
#simulation_run
#simulation_run
#simulation_run
#simulation_run
#simulation_run
#simulation_run
#simulation_run
#simulation_run
#simulation_run
#simulation_run

$display ("Simulation time is %t",$time) ;
$finish ;
end



endmodule
 
Try something like this

`timescale 1 ns / 1 ps

module simulation_run_time ;

parameter simulation_run = 1000000000;

initial
begin
#simulation_run
#simulation_run
#simulation_run
#simulation_run
#simulation_run
#simulation_run
#simulation_run
#simulation_run
#simulation_run
#simulation_run

$display ("Simulation time is %t",$time) ;
$finish ;
end



endmodule

Vinayak
 

Welcome to EDABoard.com

Sponsor

Back
Top