data/full_repos/permissive/13503229/vip/axi/axi_master_bfm.sv
 line:11: before: "DATA_WIDTH"
1: b'%Warning-MULTITOP: data/full_repos/permissive/13503229/vip/axi/axi_master_bfm.sv:15: Multiple top level modules\n                                                                                   : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                                   : ... Top module \'axi_master_bfm\'\nmodule axi_master_bfm #(\n       ^~~~~~~~~~~~~~\n                                                                                   : ... Top module \'axi4_if\'\n  axi4_if.master   master\n  ^~~~~~~\n%Error: data/full_repos/permissive/13503229/vip/axi/axi_master_bfm.sv:15: Unsupported: Interfaced port on top level module\n  axi4_if.master   master\n                   ^~~~~~\n%Error: data/full_repos/permissive/13503229/vip/axi/axi_master_bfm.sv:15: Cannot find file containing interface: \'axi4_if\'\n  axi4_if.master   master\n  ^~~~~~~\n%Error: Internal Error: data/full_repos/permissive/13503229/vip/axi/axi_master_bfm.sv:15: ../V3LinkDot.cpp:2055: Unlinked interface\n  axi4_if.master   master\n  ^~~~~~~\n'
module axi_master_bfm #(
		parameter int	DATA_WIDTH=64) 
		(
		input					clk,
		input					resetn,
		axi4_if.master			master
		);
	bit[(DATA_WIDTH-1):0]		data_buf[16];
	
	initial begin
		repeat (20) 
		$display("sizeof(aw.data): %0d", $size(master.AWADDR));
	end
	
	task axi_master_bfm_set_wdata(int data_idx, longint unsigned data);
		data_buf[data_idx] = data;
	endtask
	export "DPI-C" task axi_master_bfm_set_wdata;

	task axi_master_bfm_write(
		longint unsigned 	addr,
		int					burst_sz,
		int					burst_len);
	endtask
	export "DPI-C" task axi_master_bfm_write;
	
	task axi_master_bfm_read(
		longint unsigned	addr,
		int					burst_sz,
		int					burst_len);
		
	endtask
	export "DPI-C" task axi_master_bfm_read;

endmodule
module axi_master_bfm #(
		parameter int	DATA_WIDTH=64) 
		(
		input					clk,
		input					resetn,
		axi4_if.master			master
		);

	bit[(DATA_WIDTH-1):0]		data_buf[16];
	
	initial begin
		repeat (20) 
		$display("sizeof(aw.data): %0d", $size(master.AWADDR));
	end
	
	task axi_master_bfm_set_wdata(int data_idx, longint unsigned data);
		data_buf[data_idx] = data;
	endtask
	export "DPI-C" task axi_master_bfm_set_wdata;

	task axi_master_bfm_write(
		longint unsigned 	addr,
		int					burst_sz,
		int					burst_len);
	endtask
	export "DPI-C" task axi_master_bfm_write;
	
	task axi_master_bfm_read(
		longint unsigned	addr,
		int					burst_sz,
		int					burst_len);
		
	endtask
	export "DPI-C" task axi_master_bfm_read;

endmodule