data/full_repos/permissive/20951802/ElevatorSimulator.v
 line:103: before: "reg"
1: b'%Warning-WIDTH: data/full_repos/permissive/20951802/ElevatorSimulator.v:33: Operator ASSIGN expects 9 bits on the Assign RHS, but Assign RHS\'s CONST \'8\'h1\' generates 8 bits.\n                                                                          : ... In instance ElevatorSimulator\n  ready_queue[0] = 8\'d1;  \n                 ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/20951802/ElevatorSimulator.v:34: Operator ASSIGN expects 9 bits on the Assign RHS, but Assign RHS\'s CONST \'8\'h1\' generates 8 bits.\n                                                                          : ... In instance ElevatorSimulator\n  ready_queue[1] = 8\'d1;  \n                 ^\n%Warning-WIDTH: data/full_repos/permissive/20951802/ElevatorSimulator.v:83: Operator EQ expects 30 bits on the LHS, but LHS\'s VARREF \'motor_count\' generates 1 bits.\n                                                                          : ... In instance ElevatorSimulator\n   else if(motor_count == 30\'d720000)\n                       ^~\n%Warning-WIDTH: data/full_repos/permissive/20951802/ElevatorSimulator.v:75: Operator EQ expects 30 bits on the LHS, but LHS\'s VARREF \'motor_count\' generates 1 bits.\n                                                                          : ... In instance ElevatorSimulator\n   else if(motor_count == 30\'d480000)\n                       ^~\n%Warning-WIDTH: data/full_repos/permissive/20951802/ElevatorSimulator.v:67: Operator EQ expects 30 bits on the LHS, but LHS\'s VARREF \'motor_count\' generates 1 bits.\n                                                                          : ... In instance ElevatorSimulator\n   else if(motor_count == 30\'d240000)\n                       ^~\n%Warning-WIDTH: data/full_repos/permissive/20951802/ElevatorSimulator.v:59: Operator EQ expects 30 bits on the LHS, but LHS\'s VARREF \'motor_count\' generates 1 bits.\n                                                                          : ... In instance ElevatorSimulator\n   if(motor_count == 30\'d960000)\n                  ^~\n%Error: data/full_repos/permissive/20951802/ElevatorSimulator.v:103: Illegal bit or array select; type does not have a bit range, or bad dimension: data type is \'logic\'\n                                                                   : ... In instance ElevatorSimulator\n  reg min = minimum((destination-current[0]),(destination-current[1]));\n                                        ^\n%Error: data/full_repos/permissive/20951802/ElevatorSimulator.v:103: Illegal bit or array select; type does not have a bit range, or bad dimension: data type is \'logic\'\n                                                                   : ... In instance ElevatorSimulator\n  reg min = minimum((destination-current[0]),(destination-current[1]));\n                                                                 ^\n%Warning-SELRANGE: data/full_repos/permissive/20951802/ElevatorSimulator.v:103: Selection index out of range: 1:1 outside 0:0\n                                                                              : ... In instance ElevatorSimulator\n  reg min = minimum((destination-current[0]),(destination-current[1]));\n                                                                 ^\n%Warning-WIDTH: data/full_repos/permissive/20951802/ElevatorSimulator.v:116: Operator LT expects 32 or 4 bits on the LHS, but LHS\'s VARREF \'i\' generates 1 bits.\n                                                                           : ... In instance ElevatorSimulator\n  for(i = 0; i < 10; i = i+1)\n               ^\n%Warning-WIDTH: data/full_repos/permissive/20951802/ElevatorSimulator.v:118: Bit extraction of array[2:0] requires 2 bit index, not 1 bits.\n                                                                           : ... In instance ElevatorSimulator\n   if(ready_queue[elevator][i] == 1)\n                 ^\n%Warning-WIDTH: data/full_repos/permissive/20951802/ElevatorSimulator.v:118: Bit extraction of var[8:0] requires 4 bit index, not 1 bits.\n                                                                           : ... In instance ElevatorSimulator\n   if(ready_queue[elevator][i] == 1)\n                           ^\n%Error: Exiting due to 2 error(s), 10 warning(s)\n'
function get_ready_status;
		input elevator;
	begin
		reg ready_count = 0, i;
		for(i = 0; i < 10; i = i+1)
		begin
			if(ready_queue[elevator][i] == 1)
			begin
				ready_count = ready_count + 1;
			end
		end
	end
	endfunction
function get_ready_status;

		input elevator;
	begin
		reg ready_count = 0, i;
		for(i = 0; i < 10; i = i+1)
		begin
			if(ready_queue[elevator][i] == 1)
			begin
				ready_count = ready_count + 1;
			end
		end
	end
	endfunction