yosys4gal/testcases/and_gate_reg.v

12 lines
131 B
Verilog

module and_gate (clk, A, B, Y);
input A, B;
input clk;
output reg Y;
always @(posedge clk) begin
Y <= A && B;
end
endmodule