steveicarus / iverilog

Icarus Verilog
https://steveicarus.github.io/iverilog/
GNU General Public License v2.0
2.85k stars 528 forks source link

Parameterized class not supported #291

Open apseng03 opened 4 years ago

apseng03 commented 4 years ago

Hi, I am having trouble running a simple parameterized class code in Icarus. It does not seem to be supported. Please check. Please see below for the code and commands.

Command : iverilog -g2012 uvm_param_sclass.sv

Thanks Ani

Error : uvm_param_sclass.sv:4: syntax error I give up.

Code: class uvm_object; endclass

class uvm_pool #(type KEY=int, T=int) extends uvm_object; endclass

martinwhitaker commented 4 years ago

Correct, parameterized classes are not currently supported.