Before:
module incomplete_mux(
input clk,
input a,b,c,d,
input [1:0] sel,
output reg op
);
always @(posedge clk)
begin
case (sel)
2'b00 : op <= a;
2'b01 : op <= b;
2'b10 : op <= c;
default: ;
endcase
end
endmodule
After:
module incomplete_mux(
input clk,
input a,b,c,d,
input [1:0] sel,
output reg op
);
always @(posedge clk)
begin
case (sel)
2'b00 : op <= a;
2'b01 : op <= b;
2'b10 : op <= c;
2'b11 : op <= a; // ADDED
default: ;
endcase
end
endmodule