added and_gate_reg

This commit is contained in:
saji 2024-05-04 16:33:07 -05:00
parent 7b27f0f112
commit 2d6f0123cd
3 changed files with 17 additions and 0 deletions

3
testcases/and_gate.pcf Normal file
View file

@ -0,0 +1,3 @@
set_io A 2
set_io B 3
set_io Y 14

View file

@ -0,0 +1,4 @@
set_io A 2
set_io B 3
set_io Y 14
set_io clk 1

10
testcases/and_gate_reg.v Normal file
View file

@ -0,0 +1,10 @@
module and_gate (clk, A, B, Y);
input A, B;
output Y;
always @(posedge clk) begin
Y <= A && B;
end
endmodule