data/full_repos/permissive/20401628/hsvconv.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b'%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:51: Operator ASSIGN expects 4 bits on the Assign RHS, but Assign RHS\'s VARREF \'RED\' generates 3 bits.\n                                                                : ... In instance rgb2hsv\n  4\'b1x0: maxsel = RED;\n                 ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:52: Operator ASSIGN expects 4 bits on the Assign RHS, but Assign RHS\'s VARREF \'BLUE\' generates 3 bits.\n                                                                : ... In instance rgb2hsv\n  4\'bx01: maxsel = BLUE;\n                 ^\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:53: Operator ASSIGN expects 4 bits on the Assign RHS, but Assign RHS\'s VARREF \'GREEN\' generates 3 bits.\n                                                                : ... In instance rgb2hsv\n  4\'b01x: maxsel = GREEN;\n                 ^\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:54: Operator ASSIGN expects 4 bits on the Assign RHS, but Assign RHS\'s VARREF \'WHITE\' generates 3 bits.\n                                                                : ... In instance rgb2hsv\n  default: maxsel = WHITE;\n                  ^\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:63: Operator ASSIGN expects 4 bits on the Assign RHS, but Assign RHS\'s VARREF \'RED\' generates 3 bits.\n                                                                : ... In instance rgb2hsv\n  4\'b0x1: minsel = RED;\n                 ^\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:64: Operator ASSIGN expects 4 bits on the Assign RHS, but Assign RHS\'s VARREF \'BLUE\' generates 3 bits.\n                                                                : ... In instance rgb2hsv\n  4\'bx10: minsel = BLUE;\n                 ^\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:65: Operator ASSIGN expects 4 bits on the Assign RHS, but Assign RHS\'s VARREF \'GREEN\' generates 3 bits.\n                                                                : ... In instance rgb2hsv\n  4\'b10x: minsel = GREEN;\n                 ^\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:66: Operator ASSIGN expects 4 bits on the Assign RHS, but Assign RHS\'s VARREF \'WHITE\' generates 3 bits.\n                                                                : ... In instance rgb2hsv\n  default: minsel = WHITE;\n                  ^\n%Error: data/full_repos/permissive/20401628/hsvconv.v:75: Cannot find file containing module: \'divider\'\ndivider div0 (\n^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/20401628,data/full_repos/permissive/20401628/divider\n             data/full_repos/permissive/20401628,data/full_repos/permissive/20401628/divider.v\n             data/full_repos/permissive/20401628,data/full_repos/permissive/20401628/divider.sv\n             divider\n             divider.v\n             divider.sv\n             obj_dir/divider\n             obj_dir/divider.v\n             obj_dir/divider.sv\n%Error: data/full_repos/permissive/20401628/hsvconv.v:84: Cannot find file containing module: \'multi\'\nmulti ml0(\n^~~~~\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:123: Operator FUNCREF \'maxsel\' expects 4 bits on the Function Argument, but Function Argument\'s VARREF \'colorcomp\' generates 3 bits.\n                                                                 : ... In instance rgb2hsv\n   case (maxsel(colorcomp))\n         ^~~~~~\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:123: Operator CASE expects 4 bits on the Case Item, but Case Item\'s VARREF \'RED\' generates 3 bits.\n                                                                 : ... In instance rgb2hsv\n   case (maxsel(colorcomp))\n   ^~~~\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:123: Operator CASE expects 4 bits on the Case Item, but Case Item\'s VARREF \'BLUE\' generates 3 bits.\n                                                                 : ... In instance rgb2hsv\n   case (maxsel(colorcomp))\n   ^~~~\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:123: Operator CASE expects 4 bits on the Case Item, but Case Item\'s VARREF \'GREEN\' generates 3 bits.\n                                                                 : ... In instance rgb2hsv\n   case (maxsel(colorcomp))\n   ^~~~\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:123: Operator CASE expects 4 bits on the Case Item, but Case Item\'s VARREF \'WHITE\' generates 3 bits.\n                                                                 : ... In instance rgb2hsv\n   case (maxsel(colorcomp))\n   ^~~~\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:130: Operator FUNCREF \'minsel\' expects 4 bits on the Function Argument, but Function Argument\'s VARREF \'colorcomp\' generates 3 bits.\n                                                                 : ... In instance rgb2hsv\n   case (minsel(colorcomp))\n         ^~~~~~\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:133: Operator SUB expects 11 bits on the LHS, but LHS\'s VARREF \'bbuf\' generates 5 bits.\n                                                                 : ... In instance rgb2hsv\n     numer <= (bbuf - gbuf) << 5;\n                    ^\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:133: Operator SUB expects 11 bits on the RHS, but RHS\'s VARREF \'gbuf\' generates 5 bits.\n                                                                 : ... In instance rgb2hsv\n     numer <= (bbuf - gbuf) << 5;\n                    ^\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:140: Operator SUB expects 11 bits on the LHS, but LHS\'s VARREF \'gbuf\' generates 5 bits.\n                                                                 : ... In instance rgb2hsv\n     numer <= (gbuf - rbuf) << 5;\n                    ^\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:140: Operator SUB expects 11 bits on the RHS, but RHS\'s VARREF \'rbuf\' generates 5 bits.\n                                                                 : ... In instance rgb2hsv\n     numer <= (gbuf - rbuf) << 5;\n                    ^\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:147: Operator SUB expects 11 bits on the LHS, but LHS\'s VARREF \'rbuf\' generates 5 bits.\n                                                                 : ... In instance rgb2hsv\n     numer <= (rbuf - bbuf) << 5;\n                    ^\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:147: Operator SUB expects 11 bits on the RHS, but RHS\'s VARREF \'bbuf\' generates 5 bits.\n                                                                 : ... In instance rgb2hsv\n     numer <= (rbuf - bbuf) << 5;\n                    ^\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:130: Operator CASE expects 4 bits on the Case Item, but Case Item\'s VARREF \'RED\' generates 3 bits.\n                                                                 : ... In instance rgb2hsv\n   case (minsel(colorcomp))\n   ^~~~\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:130: Operator CASE expects 4 bits on the Case Item, but Case Item\'s VARREF \'BLUE\' generates 3 bits.\n                                                                 : ... In instance rgb2hsv\n   case (minsel(colorcomp))\n   ^~~~\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:130: Operator CASE expects 4 bits on the Case Item, but Case Item\'s VARREF \'GREEN\' generates 3 bits.\n                                                                 : ... In instance rgb2hsv\n   case (minsel(colorcomp))\n   ^~~~\n%Warning-WIDTH: data/full_repos/permissive/20401628/hsvconv.v:130: Operator CASE expects 4 bits on the Case Item, but Case Item\'s VARREF \'WHITE\' generates 3 bits.\n                                                                 : ... In instance rgb2hsv\n   case (minsel(colorcomp))\n   ^~~~\n%Error: Exiting due to 2 error(s), 24 warning(s)\n'
function [3:0] maxsel;
	input [3:0] colorcomp;
begin
	casex (colorcomp)
		4'b1x0: maxsel = RED;
		4'bx01: maxsel = BLUE;
		4'b01x: maxsel = GREEN;
		default: maxsel = WHITE;
	endcase
end
endfunction
function [3:0] maxsel;

	input [3:0] colorcomp;
begin
	casex (colorcomp)
		4'b1x0: maxsel = RED;
		4'bx01: maxsel = BLUE;
		4'b01x: maxsel = GREEN;
		default: maxsel = WHITE;
	endcase
end
endfunction