Forum Discussion

RobertLiang's avatar
RobertLiang
Icon for Occasional Contributor rankOccasional Contributor
4 years ago
Solved

Using simulation grammar in verilog file

Hello, I use a few simulation grammars, such as $display $time in my Verilog design file. I know these might be unsynthesisable codes, but I have seen many codes use simulation grammar in their d...
  • Nurina's avatar
    4 years ago

    Hi,


    OK so your version of Quartus supports Verilog-1995 and Verilog-2001. The system tasks you're using is that of SystemVerilog-2009. You should try replacing $error() with $display(). Make sure you set Verilog HDL Input to Verilog-2001 in the Compiler Settings.


    More information on Verilog-2001 system tasks can be found here in clause 17: https://ieeexplore.ieee.org/document/954909


    Regards,

    Nurina