data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent_config.svh
1: b'%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent_config.svh:1: Unsupported: classes\nclass gpio_agent_config extends uvm_object;\n^~~~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent_config.svh:1: syntax error, unexpected IDENTIFIER, expecting TYPE-IDENTIFIER\nclass gpio_agent_config extends uvm_object;\n                                ^~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent_config.svh:2: Define or directive not defined: \'`uvm_object_utils\'\n    `uvm_object_utils(gpio_agent_config)\n    ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent_config.svh:8: syntax error, unexpected IDENTIFIER\n    uvm_active_passive_enum active = UVM_ACTIVE;\n    ^~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent_config.svh:10: Unsupported: virtual data type\n    virtual gpio_if GPIO;\n    ^~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent_config.svh:13: syntax error, unexpected static, expecting interface or module or program\n    extern static function gpio_agent_config get_config(uvm_component c);\n           ^~~~~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent_config.svh:13: Unsupported: Static in this context\n    extern static function gpio_agent_config get_config(uvm_component c);\n           ^~~~~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent_config.svh:13: syntax error, unexpected IDENTIFIER, expecting \')\'\n    extern static function gpio_agent_config get_config(uvm_component c);\n                                                                      ^\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent_config.svh:14: Unsupported: new constructor\n    extern function new(string name = "gpio_agent_config");\n                    ^~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent_config.svh:15: syntax error, unexpected endclass\nendclass\n^~~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent_config.svh:20: syntax error, unexpected \'#\'\n    if(!uvm_config_db#(gpio_agent_config)::get(c, "", s_my_config_id, t))\n                     ^\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent_config.svh:21: Define or directive not defined: \'`uvm_fatal\'\n        `uvm_fatal("CONFIG LOAD STATIC ERROR", $sformatf("connot get config %s", s_my_config_id));\n        ^~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent_config.svh:26: Unsupported: Hierarchical class references\nfunction gpio_agent_config::new(string name = "gpio_agent_config");\n                          ^~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent_config.svh:26: Unsupported: scoped class reference\nfunction gpio_agent_config::new(string name = "gpio_agent_config");\n                               ^\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent_config.svh:26: Unsupported: scoped new constructor\nfunction gpio_agent_config::new(string name = "gpio_agent_config");\n                            ^~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent_config.svh:27: Unsupported: super\n    super.new(name);\n    ^~~~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent_config.svh:27: Unsupported: new with arguments\n    super.new(name);\n          ^~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent_config.svh:27: Unsupported: dotted new\n    super.new(name);\n    ^~~~~\n%Error: Exiting due to 18 error(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
function gpio_agent_config get_config(uvm_component c);
    extern function new(string name = "gpio_agent_config");
endclass

function gpio_agent_config gpio_agent_config::get_config(uvm_component c);
    gpio_agent_config t;

    if(!uvm_config_db#(gpio_agent_config)::get(c, "", s_my_config_id, t))
        `uvm_fatal("CONFIG LOAD STATIC ERROR", $sformatf("connot get config %s", s_my_config_id));

    return t;
endfunction
function gpio_agent_config get_config(uvm_component c);

    extern function new(string name = "gpio_agent_config");
endclass

function gpio_agent_config gpio_agent_config::get_config(uvm_component c);
    gpio_agent_config t;

    if(!uvm_config_db#(gpio_agent_config)::get(c, "", s_my_config_id, t))
        `uvm_fatal("CONFIG LOAD STATIC ERROR", $sformatf("connot get config %s", s_my_config_id));

    return t;
endfunction