data/full_repos/permissive/143278/vhdl_tests/pr2516774b.v
None: at end of input
1: b'%Warning-WIDTH: data/full_repos/permissive/143278/vhdl_tests/pr2516774b.v:29: Operator OR expects 32 bits on the RHS, but RHS\'s CONST \'1\'h1\' generates 1 bits.\n                                                                            : ... In instance test\n    TRUE_RESULT = FALSE_RESULT | 1\'b1;\n                               ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/143278/vhdl_tests/pr2516774b.v:71: Operator FUNCREF \'extend_data\' expects 64 bits on the Function Argument, but Function Argument\'s VARREF \'b\' generates 32 bits.\n                                                                            : ... In instance test\n   diff = extend_data(b, MAX_SIZE, MAX_SIZE+1, 1\'b1) -\n          ^~~~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/143278/vhdl_tests/pr2516774b.v:72: Operator FUNCREF \'extend_data\' expects 64 bits on the Function Argument, but Function Argument\'s VARREF \'a\' generates 32 bits.\n                                                                            : ... In instance test\n          extend_data(a, MAX_SIZE, MAX_SIZE+1, 1\'b1);\n          ^~~~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/143278/vhdl_tests/pr2516774b.v:71: Operator ASSIGN expects 33 bits on the Assign RHS, but Assign RHS\'s SUB generates 64 bits.\n                                                                            : ... In instance test\n   diff = extend_data(b, MAX_SIZE, MAX_SIZE+1, 1\'b1) -\n        ^\n%Warning-WIDTH: data/full_repos/permissive/143278/vhdl_tests/pr2516774b.v:73: Operator FUNCREF \'sign_of\' expects 64 bits on the Function Argument, but Function Argument\'s VARREF \'diff\' generates 33 bits.\n                                                                            : ... In instance test\n   if (sign_of(diff, MAX_SIZE+1)==-1)\n       ^~~~~~~\n%Error: Exiting due to 5 warning(s)\n'
function [2*MAX_SIZE-1:0] extend_data;

  input	[2*MAX_SIZE-1:0]	data;
  input				size;
  input				new_size;
  input				extend;

  reg	[2*MAX_SIZE-1:0]	data;
  integer			size,
				new_size;
  reg				extend;

  for (extend_data = data ; new_size-size>0 ; new_size=new_size-1)
   extend_data[new_size-1] = extend & data[size-1];
 endfunction
function [2*MAX_SIZE-1:0] extend_data;


  input	[2*MAX_SIZE-1:0]	data;
  input				size;
  input				new_size;
  input				extend;

  reg	[2*MAX_SIZE-1:0]	data;
  integer			size,
				new_size;
  reg				extend;

  for (extend_data = data ; new_size-size>0 ; new_size=new_size-1)
   extend_data[new_size-1] = extend & data[size-1];
 endfunction