diff --git a/testcases/and_gate.pcf b/testcases/and_gate.pcf new file mode 100644 index 0000000..842a155 --- /dev/null +++ b/testcases/and_gate.pcf @@ -0,0 +1,3 @@ +set_io A 2 +set_io B 3 +set_io Y 14 diff --git a/testcases/and_gate_reg.pcf b/testcases/and_gate_reg.pcf new file mode 100644 index 0000000..c635881 --- /dev/null +++ b/testcases/and_gate_reg.pcf @@ -0,0 +1,4 @@ +set_io A 2 +set_io B 3 +set_io Y 14 +set_io clk 1 diff --git a/testcases/and_gate_reg.v b/testcases/and_gate_reg.v new file mode 100644 index 0000000..4aef88a --- /dev/null +++ b/testcases/and_gate_reg.v @@ -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