Forum Discussion
4 Replies
- Altera_Forum
Honored Contributor
Alternatively you can place this commented out line at the top of your SystemVerilog file (if you don't want to declare your whole project to be SystemVerilog):
// synthesis VERILOG_INPUT_VERSION SYSTEMVERILOG_2005 - Altera_Forum
Honored Contributor
Hello,
I would have thought all you would need to do is change the file extension to .sv jt - Altera_Forum
Honored Contributor
Quartus projects treat .v & .sv files the same way: according to Settings -> Analysis & Synthesis Settings -> Verilog HDL Input -> Verilog version. By default it's Verilog-2001. Set to SystemVerilog-2005 to enable use of sv keywords and features.
- Altera_Forum
Honored Contributor
If you set the global option to "SystemVerilog" then all files (*.v or .sv) will be synthesized with SV extensions. If you use .sv in your extension, then Quartus will us SV for those files. In the .qsf there is a different keyword for SV.
set_global_assignment -name SYSTEMVERILOG_FILE ../src/I2C_Master_PSOC/I2C_Master_PSOC_IF.sv set_global_assignment -name VERILOG_FILE ../src/VCCIO_Controller/LTC2620.v Ed