data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent.svh
1: b'%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent.svh:1: Unsupported: classes\nclass gpio_agent extends uvm_component;\n^~~~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent.svh:1: syntax error, unexpected IDENTIFIER, expecting TYPE-IDENTIFIER\nclass gpio_agent extends uvm_component;\n                         ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent.svh:3: Define or directive not defined: \'`uvm_component_utils\'\n    `uvm_component_utils(gpio_agent)\n    ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent.svh:15: Unsupported: new constructor\n    extern function new(string name = "gpio_agent", uvm_component parent = null);\n                    ^~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent.svh:15: syntax error, unexpected IDENTIFIER, expecting \')\'\n    extern function new(string name = "gpio_agent", uvm_component parent = null);\n                                                                  ^~~~~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent.svh:16: syntax error, unexpected IDENTIFIER, expecting \')\'\n    extern function void build_phase(uvm_phase phase);\n                                               ^~~~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent.svh:17: syntax error, unexpected IDENTIFIER, expecting \')\'\n    extern function void connect_phase(uvm_phase phase);\n                                                 ^~~~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent.svh:20: Unsupported: Hierarchical class references\nfunction gpio_agent::new(string name = "gpio_agent", uvm_component parent = null);\n                   ^~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent.svh:20: Unsupported: scoped class reference\nfunction gpio_agent::new(string name = "gpio_agent", uvm_component parent = null);\n                        ^\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent.svh:20: Unsupported: scoped new constructor\nfunction gpio_agent::new(string name = "gpio_agent", uvm_component parent = null);\n                     ^~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent.svh:20: syntax error, unexpected IDENTIFIER, expecting \')\'\nfunction gpio_agent::new(string name = "gpio_agent", uvm_component parent = null);\n                                                                   ^~~~~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent.svh:24: Unsupported: Hierarchical class references\nfunction void gpio_agent::build_phase(uvm_phase phase);\n                        ^~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent.svh:24: Unsupported: scoped class reference\nfunction void gpio_agent::build_phase(uvm_phase phase);\n                          ^~~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent.svh:20: Unsupported: Out of class block function declaration\nfunction gpio_agent::new(string name = "gpio_agent", uvm_component parent = null);\n                     ^~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent.svh:24: syntax error, unexpected IDENTIFIER, expecting \')\'\nfunction void gpio_agent::build_phase(uvm_phase phase);\n                                                ^~~~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent.svh:27: Define or directive not defined: \'`uvm_fatal\'\n    `uvm_fatal("CONFIG_LOAD", "Cannot get() configuration gpio_agent_config from uvm_config_db. Have you set() it?")\n    ^~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent.svh:39: Unsupported: Hierarchical class references\nfunction void gpio_agent::connect_phase(uvm_phase phase);\n                        ^~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent.svh:39: Unsupported: scoped class reference\nfunction void gpio_agent::connect_phase(uvm_phase phase);\n                          ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent.svh:24: Unsupported: Out of class block function declaration\nfunction void gpio_agent::build_phase(uvm_phase phase);\n                          ^~~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/gpio_agent/gpio_agent.svh:39: syntax error, unexpected IDENTIFIER, expecting \')\'\nfunction void gpio_agent::connect_phase(uvm_phase phase);\n                                                  ^~~~~\n%Error: Exiting due to 20 error(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
function void gpio_agent::build_phase(uvm_phase phase);

    if (!uvm_config_db #(gpio_agent_config)::get(this, "", "gpio_agent_config", m_cfg) )
    `uvm_fatal("CONFIG_LOAD", "Cannot get() configuration gpio_agent_config from uvm_config_db. Have you set() it?")
    uvm_config_db #(gpio_agent_config)::set(this, "*","gpio_agent_config",m_cfg);


    m_monitor = gpio_monitor::type_id::create("m_monitor", this);

    if(m_cfg.active == UVM_ACTIVE) begin
        m_driver = gpio_driver::type_id::create("m_driver", this);
        m_sequencer = gpio_sequencer::type_id::create("m_sequencer", this);
    end
endfunction
function void gpio_agent::build_phase(uvm_phase phase);


    if (!uvm_config_db #(gpio_agent_config)::get(this, "", "gpio_agent_config", m_cfg) )
    `uvm_fatal("CONFIG_LOAD", "Cannot get() configuration gpio_agent_config from uvm_config_db. Have you set() it?")
    uvm_config_db #(gpio_agent_config)::set(this, "*","gpio_agent_config",m_cfg);


    m_monitor = gpio_monitor::type_id::create("m_monitor", this);

    if(m_cfg.active == UVM_ACTIVE) begin
        m_driver = gpio_driver::type_id::create("m_driver", this);
        m_sequencer = gpio_sequencer::type_id::create("m_sequencer", this);
    end
endfunction