data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/nf_riffa_dma_v1_0_0/hdl/sume/tx_riffa_axi.v
1: b'%Warning-WIDTH: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/nf_riffa_dma_v1_0_0/hdl/sume/tx_riffa_axi.v:70: Logical Operator LOGNOT expects 1 bit on the LHS, but LHS\'s VARREF \'last_tkeep_value\' generates 5 bits.\n                                                                                                                                                        : ... In instance tx_riffa_axi\n  if (!last_tkeep_value) begin\n      ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/nf_riffa_dma_v1_0_0/hdl/sume/tx_riffa_axi.v:264: Operator FUNCREF \'last_tkeep_conv\' expects 5 bits on the Function Argument, but Function Argument\'s SEL generates 4 bits.\n                                                                                                                                                         : ... In instance tx_riffa_axi\n  mt_last_tkeep = last_tkeep_conv(CHNL_RX_DATA[35:32]);\n                  ^~~~~~~~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/498471995/sume/felix/simple_sume_switch/test/ip_repo/std/cores/nf_riffa_dma_v1_0_0/hdl/sume/tx_riffa_axi.v:266: Logical Operator COND expects 1 bit on the Conditional Test, but Conditional Test\'s SEL generates 2 bits.\n                                                                                                                                                         : ... In instance tx_riffa_axi\n  mt_num_words  = (CHNL_RX_LEN[1:0]) ? CHNL_RX_LEN[31:2] + 1\'b1 : CHNL_RX_LEN[31:2];  \n                                     ^\n%Error: Exiting due to 3 warning(s)\n'
function [15:0] last_tkeep_conv; 
  input  [4:0] last_tkeep_value;
  begin : func_last_tstrb
  	integer i;
    last_tkeep_conv = 0;	 
	 if (!last_tkeep_value) begin
	 	last_tkeep_conv = {2{8'hFF}};
	 end	
	 else begin
		for (i=0; i < last_tkeep_value; i = i+1)
				last_tkeep_conv[i] = 1'b1;
	 end			
  end			
endfunction
function [15:0] last_tkeep_conv;
 
  input  [4:0] last_tkeep_value;
  begin : func_last_tstrb
  	integer i;
    last_tkeep_conv = 0;	 
	 if (!last_tkeep_value) begin
	 	last_tkeep_conv = {2{8'hFF}};
	 end	
	 else begin
		for (i=0; i < last_tkeep_value; i = i+1)
				last_tkeep_conv[i] = 1'b1;
	 end			
  end			
endfunction