Forum Discussion
Altera_Forum
Honored Contributor
11 years agoUnable to simulate in modelsim
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 Flow11 Replies
- Altera_Forum
Honored Contributor
Hi Krithika,
Is Greenlight Compile part of your project? Are there any successful simulation before? - Altera_Forum
Honored Contributor
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 - Altera_Forum
Honored Contributor
can you post the code?
Did you set up the nativelink parameters (ctrl+shift+E -> tab simulation) ? - Altera_Forum
Honored Contributor
Probably sharing some codes, steps of running simulation and screenshots of the your errors would be helpful for further understanding.
- Altera_Forum
Honored Contributor
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. - Altera_Forum
Honored Contributor
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, - Altera_Forum
Honored Contributor
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.
- Altera_Forum
Honored Contributor
Thanks for your inputs.
- Altera_Forum
Honored Contributor
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, - Altera_Forum
Honored Contributor
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