Forum Discussion
testbench error on altera quartus 12
Hi,I use testbench to do simulation,but facing error "Error (12061): Can't synthesize current design -- Top partition does not contain any logic
"can anyone help me?here is my verilog code and testbench module FA(cin,x,y,sum,cout); input cin,x,y; output sum,cout; assign sum = (x^y^cin); assign cout = (x&y)|(cin&x)|(cin&y); endmodule `timescale 10ns/1ns module testbench(); reg x,y,cin; wire sum,cout; FA fa1(.cin(cin),.x(x),.y(y),.sum(sum),.cout(cout)); initial begin $monitor($time,"cin=%b,x=%b,y=%b,cout=%b,sum=%b",c in,x,y,cout,sum); end initial begin # 0 cin=0;x=0;y=0; # 50 cin=0;x=0;y=1; # 50 cin=0;x=1;y=0; # 50 cin=0;x=1;y=1; # 50 cin=1;x=0;y=0; # 50 cin=1;x=0;y=1; # 50 cin=1;x=1;y=0; # 50 cin=1;x=1;y=1; end endmodule6 Replies
- Altera_Forum
Honored Contributor
To simulate use Model Sim. You can invoke Model Sim from Quartus. Go to Menu:
Assignments->Settings->Simulation. In that Windows Select "Model-Sim Altera" in the box "Tool name". and in the panel "NativeLink Settings" set "Compile Testbench" Compile again and then run the ModelSim with Tools->EDA Simulation Tool->RTL Simulation. - Altera_Forum
Honored Contributor
Hi,I already doing what u mentioned above.but still having the same error.I still have some question
1) can I compile the testbench ? 2) when i try run RTL simulation, a box with error "cannot launch the ModelSim-Altera software because you did not specify the path to the executables of the ModelSim-Altera software - Altera_Forum
Honored Contributor
It's easy. Go to Tools->Options->General->EDA Tools Options:
Set the ModelSim-Altera path to: C:/altera/12.0/modelsim_ase/win32aloem or something like that. See your instalation path. - Altera_Forum
Honored Contributor
Hi,why I cannot find c:/altara/12.0/modelsim_ase? actually I only want display the output waveform and I do not know what is modelsim_ase?
- Altera_Forum
Honored Contributor
Quartus 9.0 has a wonderful and easy simulator. From Quartus 10.1 until 12.0 Altera provides the ModelSim software to simulates designs. It's an external software to Quartus.
If you don't find de ModelSim path probably you didn't install it. Try to do it. You can't simulate designs in 12.0 version of Quartus if you don't have ModelSim. - Altera_Forum
Honored Contributor
ok,mean modelsim won't installed automatic when i install quartus v12 ? thank for your answer.