diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-01-29 12:15:38 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-01-29 12:15:38 +0100 |
commit | cbe77bf84465ea0c4120e865189b07329b862468 (patch) | |
tree | 17728929b55a1ea72fb62b40b7d22a3989ab6de7 /manual/PRESENTATION_Intro/mycells.v | |
parent | aceab5fc08ccba493b81cced8f24406ae76ac7bc (diff) |
presentation progress
Diffstat (limited to 'manual/PRESENTATION_Intro/mycells.v')
-rw-r--r-- | manual/PRESENTATION_Intro/mycells.v | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/manual/PRESENTATION_Intro/mycells.v b/manual/PRESENTATION_Intro/mycells.v new file mode 100644 index 00000000..802f5871 --- /dev/null +++ b/manual/PRESENTATION_Intro/mycells.v @@ -0,0 +1,23 @@ + +module NOT(A, Y); +input A; +output Y = ~A; +endmodule + +module NAND(A, B, Y); +input A, B; +output Y = ~(A & B); +endmodule + +module NOR(A, B, Y); +input A, B; +output Y = ~(A | B); +endmodule + +module DFF(C, D, Q); +input C, D; +output reg Q; +always @(posedge C) + Q <= D; +endmodule + |