Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17252 Discussions

How to simulate in SystemVerilog with Altera-Modelsim

Altera_Forum
Honored Contributor II
4,363 Views

Does the free version of Altera-Modelsim support system-verilog verification? 

 

I tried but as I changed the Simulation File Format to systemverilog, 

I can not launch Altera-Modelsim in Quartus and only got an error message like shown in the attachment... 

 

Please help, thanks! 

 

PS. My design file is pure legacy verilog with Altera IP but my testbench is written in systemverilog and I used systemverilog feature like class, randomizaiton and assertion in the testbench. 

 

If Altera-Modelsim cannot, what other products would do this job?
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
3,215 Views

Did you try starting Modelsim directly? 

 

The Modelsim-Altera-Edition will allow you to process SystemVerilog, but it will not allow you to mix languages (VHDL + Verilog), so you have to generate things like SOPC system components in Verilog. 

 

The full version of Modelsim and Mentor Graphics Questa supports mixed language design, SystemVerilog assertions, etc. 

 

Cheers, 

Dave
0 Kudos
Altera_Forum
Honored Contributor II
3,215 Views

Thanks. 

Will Modelsim support class feature and randomization feature that used in systemverilog testbench?
0 Kudos
Altera_Forum
Honored Contributor II
3,215 Views

 

--- Quote Start ---  

 

Will Modelsim support class feature and randomization feature that used in systemverilog testbench? 

--- Quote End ---  

 

 

Post a testbench that includes these features, and I will test them in the full edition of Modelsim. 

 

Cheers, 

Dave
0 Kudos
Altera_Forum
Honored Contributor II
3,215 Views

Thank you. I've figured it out.  

 

Modelsim SE 6.5 supports sv features including class, assertion and randomization.
0 Kudos
Altera_Forum
Honored Contributor II
3,215 Views

 

--- Quote Start ---  

Thank you. I've figured it out.  

 

Modelsim SE 6.5 supports sv features including class, assertion and randomization. 

--- Quote End ---  

 

 

Great! 

 

Do you have any good references, suggestions on using these language features? 

 

I've been using VHDL up until now, but the Altera verification suite uses SystemVerilog - but very poorly from what I have seen - they do not use classes, interfaces, etc. I think the limitation in their suite is likely due to the limitations in Modelsim Altera-Edition. 

 

I purchased the two books; 

 

"SystemVerilog for Design" 2nd Ed, Sutherland etc. 

 

"SystemVerilog for Verification", 2nd Ed, Spear. 

 

The latter discusses the features you are interested in. 

 

I didn't look at UVM, OVM, VMM, and all the other TLAs (three-letter-acronyms) for test classes. Which one are you looking at - if any? 

 

Cheers, 

Dave
0 Kudos
Reply