Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17267 Discussions

Unable to simulate in modelsim

Altera_Forum
Honored Contributor II
3,990 Views

Hi, 

i'm using quartus tool 11.0 with modelsim version 6.4d designer edition. After synthesis of the design in quartus I open modelsim from the tool itself, after that modelsim complies all the library wich is automatically invoked. But when I try to simulate the file it s showing error as below, so what may be the reason. 

# Error: setupTask: Could not find task '"Greenlight Compile"'.# # Error: # # Error: Unable to run task : Greenlight Flow
0 Kudos
11 Replies
Altera_Forum
Honored Contributor II
2,962 Views

Hi Krithika, 

 

Is Greenlight Compile part of your project?  

 

Are there any successful simulation before?
0 Kudos
Altera_Forum
Honored Contributor II
2,962 Views

Hi, 

NO... it is not a part of the project. This is my first project which I need to simulate and check.. the project is just to blink an led so that i'll be familiar with simulation in modelsim 6.4d
0 Kudos
Altera_Forum
Honored Contributor II
2,962 Views

can you post the code? 

Did you set up the nativelink parameters (ctrl+shift+E -> tab simulation) ?
0 Kudos
Altera_Forum
Honored Contributor II
2,962 Views

Probably sharing some codes, steps of running simulation and screenshots of the your errors would be helpful for further understanding.

0 Kudos
Altera_Forum
Honored Contributor II
2,962 Views

Hello, 

Here is the code. After analysis and synthesis i open modelsim from the quartus tool itself, then all the libraries are complied automatically then i click simulate after that i 

m getting error posted above. 

 

module led_gpio(clk,user_led,gpio); 

input clk; 

output [1:0]user_led; 

output [3:0]gpio; 

 

reg [31:0] count = 0; 

 

always @(posedge clk) 

begin 

count <=count+1; 

end 

 

assign user_led[0]= count[22]; //user led 1 

assign user_led[1]= count[25]; //user led 2 

assign gpio[0] = count[20]; //GPIO9  

assign gpio[1] = count[4]; //GPIO1 

assign gpio[2] = count[30]; //GPIO2 

assign gpio[3] = count[31]; //GPIO10 

 

endmodule 

 

So please suggest if any solutions is there.
0 Kudos
Altera_Forum
Honored Contributor II
2,962 Views

Hi, 

 

Nothing looks wrong with the code. 

 

If the Native link setup is done properly when the Modelsim pops up it should automatically run simulation based on your test bench. 

 

Please check your native link setup again. 

 

Thanks,
0 Kudos
Altera_Forum
Honored Contributor II
2,962 Views

Hello, Everything is fine in setting up native link In modelsim only command works, so when I type vsim and try, it is simulating. But when I click simulation on the tool bar then it is showing me the error.

0 Kudos
Altera_Forum
Honored Contributor II
2,962 Views

Thanks for your inputs.

0 Kudos
Altera_Forum
Honored Contributor II
2,962 Views

Hi Karthik, 

 

This is very strange, if command line works but GUI button doesn't. 

 

Have you tried it with a different design? or it happens only with your design. 

 

Another thing since you are using (modelsim version 6.4d designer edition) perhaps you need to contact Mentor and notify them about this issue, they might be aware of it or have any fix for it. 

 

Thanks, 

Regards,
0 Kudos
Altera_Forum
Honored Contributor II
2,963 Views

Yes, I have used another design with PLL in that also the same issue. Another problem faced is when I'm simulating the pll and when i give reset it just hangs. The simulator doesn't go further

0 Kudos
Altera_Forum
Honored Contributor II
2,963 Views

You can check with mentor for this issue. Looks like some issue with simulator. 

Thanks,
0 Kudos
Reply