// Exercise G1: the first circuit, one AND gate.
//
// Generic version that matches schematic 1: the output Y, here a_and_b,
// is 1 only while both buttons are pressed.  Synthesizable.

module first_gate
(
    input  logic a,
    input  logic b,

    output logic a_and_b  // Y: 1 when both inputs are 1
);

    assign a_and_b = a & b;

endmodule
