data/full_repos/permissive/506636840/agents/apb_agent/apb2reg_adapter.sv
1: b'%Error: data/full_repos/permissive/506636840/agents/apb_agent/apb2reg_adapter.sv:1: Unsupported: classes\nclass apb2reg_adapter extends uvm_reg_adapter;\n^~~~~\n%Error: data/full_repos/permissive/506636840/agents/apb_agent/apb2reg_adapter.sv:1: syntax error, unexpected IDENTIFIER, expecting TYPE-IDENTIFIER\nclass apb2reg_adapter extends uvm_reg_adapter;\n                              ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/apb_agent/apb2reg_adapter.sv:2: Define or directive not defined: \'`uvm_object_utils\'\n `uvm_object_utils(apb2reg_adapter)\n ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/apb_agent/apb2reg_adapter.sv:5: Unsupported: new constructor\n function new(string name = "apb2reg_adapter");\n          ^~~\n%Error: data/full_repos/permissive/506636840/agents/apb_agent/apb2reg_adapter.sv:6: Unsupported: super\n  super.new(name);\n  ^~~~~\n%Error: data/full_repos/permissive/506636840/agents/apb_agent/apb2reg_adapter.sv:6: Unsupported: new with arguments\n  super.new(name);\n        ^~~\n%Error: data/full_repos/permissive/506636840/agents/apb_agent/apb2reg_adapter.sv:6: Unsupported: dotted new\n  super.new(name);\n  ^~~~~\n%Error: data/full_repos/permissive/506636840/agents/apb_agent/apb2reg_adapter.sv:10: syntax error, unexpected IDENTIFIER, expecting \'(\' or \';\'\n function uvm_sequence_item reg2bus(const ref uvm_reg_bus_op rw);\n                            ^~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/apb_agent/apb2reg_adapter.sv:18: syntax error, unexpected IDENTIFIER, expecting \')\'\n function void bus2reg(uvm_sequence_item bus_item, ref uvm_reg_bus_op rw);\n                                         ^~~~~~~~\n%Error: data/full_repos/permissive/506636840/agents/apb_agent/apb2reg_adapter.sv:21: Unsupported or unknown PLI call: $cast\n  if(!$cast(t, bus_item))begin\n      ^~~~~\n%Error: data/full_repos/permissive/506636840/agents/apb_agent/apb2reg_adapter.sv:22: Define or directive not defined: \'`uvm_fatal\'\n   `uvm_fatal("CAST FAILED", "IN the rgm bus2reg")\n   ^~~~~~~~~~\n%Error: Exiting due to 11 error(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
function void bus2reg(uvm_sequence_item bus_item, ref uvm_reg_bus_op rw);

		apb_seq_item t;
		if(!$cast(t, bus_item))begin
			`uvm_fatal("CAST FAILED", "IN the rgm bus2reg")
			return;
		end
		rw.kind = (t.we == 1) ? UVM_WRITE : UVM_READ;
		rw.addr = t.addr;
		rw.data = t.data;
		rw.status = UVM_IS_OK;
	endfunction
function void bus2reg(uvm_sequence_item bus_item, ref uvm_reg_bus_op rw);


		apb_seq_item t;
		if(!$cast(t, bus_item))begin
			`uvm_fatal("CAST FAILED", "IN the rgm bus2reg")
			return;
		end
		rw.kind = (t.we == 1) ? UVM_WRITE : UVM_READ;
		rw.addr = t.addr;
		rw.data = t.data;
		rw.status = UVM_IS_OK;
	endfunction