Sir kindly kindly write code for me
I am desparate to operate this question now
I have also changed my code
module alu2bit(aluout,result,a,b,select,zero,one,two,three,four,five,six,seven,eight,nine);
output [3:0] aluout; // the result
output [3:0]result;
input [1:0] a,b; // input a and b
input [1:0] select;
reg [3:0] aluout,result;
output zero,one,two,three,four,five,six,seven,eight,nine;
always@(a or b)
begin
case (select)
2'b00:aluout=a+b; // For addition of two bits
2'b01:aluout=a-b; // For addition of two bits
2'b10:aluout=a*b; // For multiplication of two bits
endcase
if (aluout==4'd0) zero<=1'b0; // no LED will glow
else if (aluout==4'd1) one<=1'b1;
else if (aluout==4'd2) two<=1'b1;
else if (aluout==4'd3) three<=1'b1;
else if (aluout==4'd4) four<=1'b1;
else if (aluout==4'd5) five<=1'b1;
else if (aluout==4'd6) six<=1'b1;
else if (aluout==4'd7) seven<=1'b1;
else if (aluout==4'd8) eight<=1'b1;
else result=zero;
end
endmodule
it is also not working