data/full_repos/permissive/490031933/Assignments/ass6.v
1: b"%Error: data/full_repos/permissive/490031933/Assignments/ass6.v:2: syntax error, unexpected input, expecting ';'\n    input [3:0] A;\n    ^~~~~\n%Error: data/full_repos/permissive/490031933/Assignments/ass6.v:6: syntax error, unexpected always\n         always @(A or B)\n         ^~~~~~\n%Error: Exiting due to 2 error(s)\n"
module Compare(A, B, Y)
    input [3:0] A;
    input [3:0] B;
    output reg[5:0] Y;

         always @(A or B)
          begin
     
            if(A > B)       begin  
    		    Y[3] = 1;
                end
            else            begin
                Y[3] = 0;
                end
            if(A == B)      begin
    			Y[5] = 1;
    	        end
            else            begin
                Y[5] = 0;
                end
    		if(A < B)	    begin
    			Y[2] = 1;
    			end
            else            begin
                Y[2] = 0;
                end
    		if(A != B)	    begin
    			Y[4] = 1;
    			end
            else            begin
                Y[4] = 0;
                end
    		if(A>= B)       begin
    			Y[1] = 1;
    			end
            else            begin
                Y[1] = 0;
                end
    		if(A<= B)	    begin
    			Y[0] = 1;
    			end
            else            begin
                Y[0] = 0;
    	    end
          end
endmodule
module Compare(A, B, Y)
    input [3:0] A;

    input [3:0] B;
    output reg[5:0] Y;

         always @(A or B)
          begin
     
            if(A > B)       begin  
    		    Y[3] = 1;
                end
            else            begin
                Y[3] = 0;
                end
            if(A == B)      begin
    			Y[5] = 1;
    	        end
            else            begin
                Y[5] = 0;
                end
    		if(A < B)	    begin
    			Y[2] = 1;
    			end
            else            begin
                Y[2] = 0;
                end
    		if(A != B)	    begin
    			Y[4] = 1;
    			end
            else            begin
                Y[4] = 0;
                end
    		if(A>= B)       begin
    			Y[1] = 1;
    			end
            else            begin
                Y[1] = 0;
                end
    		if(A<= B)	    begin
    			Y[0] = 1;
    			end
            else            begin
                Y[0] = 0;
    	    end
          end
endmodule