Forum Discussion
ShengN_altera
Super Contributor
2 years agoHi,
Check this link https://www.doulos.com/knowhow/systemverilog/systemverilog-tutorials/systemverilog-classes-tutorial/ and this link https://verificationguide.com/systemverilog/systemverilog-class/, SystemVerilog introduces classes as the foundation of the testbench automation language. That's why classes can be used in simulator but not in compiler tool like Quartus.
Thanks,
Best Regards,
Sheng
- xxerexxaa2 years ago
New Contributor
Thank you!
Dose it mean that I have to change my code if I want to implement the algoritm to the FPGA? If yes, can recursive functions be used in the compiler tools?
- FvM2 years ago
Super Contributor
Hi,
I believe I already gave the answer. See also https://stackoverflow.com/questions/70615674/are-recursive-functions-in-verilog-synthesizable