Skip to content

Commit dc0dbdd

Browse files
authored
feat(cells): add nor_cell and xnor_cell
1 parent ac62889 commit dc0dbdd

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/cells.v

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,26 @@ module nand_cell (
5454
assign out = !(a&b);
5555
endmodule
5656

57+
(* keep_hierarchy *)
58+
module nor_cell (
59+
input wire a,
60+
input wire b,
61+
output wire out
62+
);
63+
64+
assign out = !(a | b);
65+
endmodule
66+
67+
(* keep_hierarchy *)
68+
module xnor_cell (
69+
input wire a,
70+
input wire b,
71+
output wire out
72+
);
73+
74+
assign out = !(a ^ b);
75+
endmodule
76+
5777
(* keep_hierarchy *)
5878
module not_cell (
5979
input wire in,

0 commit comments

Comments
 (0)