34. Procedural Constructs

Question.2

If the inputs are a = 1, b = 1, and c = 0, what is the resulting logic value of y?

module combinational(input a, input b, input c, output reg y);
    always @(*) begin
        y = a & b;
        y = y | c;
    end
endmodule

 

Need Help? Refer to the Quick Guide below

Select Answer