data/full_repos/permissive/175132042/behavioral/wb_common/wb_common.v
 line:1: before: "localparam"
1: b'%Error: data/full_repos/permissive/175132042/behavioral/wb_common/wb_common.v:1: Cannot find include file: wb_common_params.v\n`include "wb_common_params.v" \n         ^~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/175132042/behavioral/wb_common,data/full_repos/permissive/175132042/wb_common_params.v\n             data/full_repos/permissive/175132042/behavioral/wb_common,data/full_repos/permissive/175132042/wb_common_params.v.v\n             data/full_repos/permissive/175132042/behavioral/wb_common,data/full_repos/permissive/175132042/wb_common_params.v.sv\n             wb_common_params.v\n             wb_common_params.v.v\n             wb_common_params.v.sv\n             obj_dir/wb_common_params.v\n             obj_dir/wb_common_params.v.v\n             obj_dir/wb_common_params.v.sv\n%Error: Exiting due to 1 error(s)\n'
function [31:0] wb_next_adr;
   input [31:0] adr_i;
   input [2:0] 	cti_i;
   input [2:0] 	bte_i;
   input integer dw;

   reg [31:0] 	 adr;
   integer 	 shift;
   begin
      shift = $clog2(dw/8);
      adr = adr_i >> shift;
      if (cti_i == CTI_INC_BURST)
	case (bte_i)
	  BTE_LINEAR   : adr = adr + 1;
	  BTE_WRAP_4   : adr = {adr[31:2], adr[1:0]+2'd1};
	  BTE_WRAP_8   : adr = {adr[31:3], adr[2:0]+3'd1};
	  BTE_WRAP_16  : adr = {adr[31:4], adr[3:0]+4'd1};
	endcase
      wb_next_adr = adr << shift;
   end
endfunction
function [31:0] wb_next_adr;

   input [31:0] adr_i;
   input [2:0] 	cti_i;
   input [2:0] 	bte_i;
   input integer dw;

   reg [31:0] 	 adr;
   integer 	 shift;
   begin
      shift = $clog2(dw/8);
      adr = adr_i >> shift;
      if (cti_i == CTI_INC_BURST)
	case (bte_i)
	  BTE_LINEAR   : adr = adr + 1;
	  BTE_WRAP_4   : adr = {adr[31:2], adr[1:0]+2'd1};
	  BTE_WRAP_8   : adr = {adr[31:3], adr[2:0]+3'd1};
	  BTE_WRAP_16  : adr = {adr[31:4], adr[3:0]+4'd1};
	endcase
      wb_next_adr = adr << shift;
   end
endfunction