diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-10-13 15:40:21 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-10-13 15:41:20 +0200 |
commit | f42218682d2c7caa6caa81cb2ca48f0c3f62bb5b (patch) | |
tree | eed220c7c84c673dec27bca4c2e96d919831f8b7 /techlibs/cmos/cmos_cells.v | |
parent | f13e3873212fb4338ee3dd180cb9b0cd3d134935 (diff) |
Added examples/ top-level directory
Diffstat (limited to 'techlibs/cmos/cmos_cells.v')
-rw-r--r-- | techlibs/cmos/cmos_cells.v | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/techlibs/cmos/cmos_cells.v b/techlibs/cmos/cmos_cells.v deleted file mode 100644 index 27278fac..00000000 --- a/techlibs/cmos/cmos_cells.v +++ /dev/null @@ -1,44 +0,0 @@ - -module BUF(A, Y); -input A; -output Y; -assign Y = A; -endmodule - -module NOT(A, Y); -input A; -output Y; -assign Y = ~A; -endmodule - -module NAND(A, B, Y); -input A, B; -output Y; -assign Y = ~(A & B); -endmodule - -module NOR(A, B, Y); -input A, B; -output Y; -assign Y = ~(A | B); -endmodule - -module DFF(C, D, Q); -input C, D; -output reg Q; -always @(posedge C) - Q <= D; -endmodule - -module DFFSR(C, D, Q, S, R); -input C, D, S, R; -output reg Q; -always @(posedge C, posedge S, posedge R) - if (S) - Q <= 1'b1; - else if (R) - Q <= 1'b0; - else - Q <= D; -endmodule - |