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

Code conversion

Altera_Forum
Honored Contributor II
1,884 Views

Currently working in Verilog, and it was requested my program be converted to SystemVerilog. Can anyone help me translate:confused: the two languages?

0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
1,130 Views

Congratulations you are already done. Easiest project you will ever have. Verilog is a proper subset of SystemVerilog, by design, so your verilog code should work as is.

0 Kudos
Altera_Forum
Honored Contributor II
1,130 Views

File->Save As... -> something.sv 

 

Done.
0 Kudos
Altera_Forum
Honored Contributor II
1,130 Views

Verilog no longer exists. Verilog became SystemVerilog in 2005. System Verilog now contains all old verilog syntax plus much more.

0 Kudos
Altera_Forum
Honored Contributor II
1,130 Views

I'm no expert, but there is a deeper answer if you really want , but why risk it if it already works and the benefits feels minuscule, especially with altera and if the point being to be able to compile the design for a newer ic or something..

0 Kudos
Altera_Forum
Honored Contributor II
1,130 Views

So i'm using the Quartus software to program a DE1 SoC Cyclone 5 board, and I tried to just transfer it to SystemVerilog, and had errors after errors of it not understanding the language. Is there something that I'm doing wrong? Is it more than just copy & paste from my Verilog window to my SystemVerilog window?

0 Kudos
Altera_Forum
Honored Contributor II
1,130 Views

what were the errors? did you save with .sv extension?

0 Kudos
Altera_Forum
Honored Contributor II
1,130 Views

A lot of them were syntax errors, just going though them slowly. couple of other issues it the always @ compared to always_ff @. I didn't save it as .sv, with Quartos it has a selection at the beginning to choose Verilog or SystemVerilog. I chose SystemVerilog, and just did a copy paste directly in. Which I would assume would be the same as saving with a .sv extension.

0 Kudos
Reply