yosys4gal/testcases/and_gate_reg.v

12 lines
131 B
Coq
Raw Normal View History

2024-05-04 21:33:07 +00:00
module and_gate (clk, A, B, Y);
input A, B;
2024-05-04 21:55:22 +00:00
input clk;
output reg Y;
2024-05-04 21:33:07 +00:00
always @(posedge clk) begin
Y <= A && B;
end
endmodule