aboutsummaryrefslogtreecommitdiff
path: root/GateNand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'GateNand.cpp')
-rw-r--r--GateNand.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/GateNand.cpp b/GateNand.cpp
new file mode 100644
index 0000000..8ecb90f
--- /dev/null
+++ b/GateNand.cpp
@@ -0,0 +1,19 @@
+#include "GateNand.h"
+
+GateNand GateNand::instance(GateNand::type);
+
+// GateNand::GateNand(const char * type) : GateAnd(type) { }
+
+SignalLevel GateNand::level() {
+ SignalLevel lvl = GateAnd::level();
+ if (lvl == LOW) return HIGH;
+ if (lvl == HIGH) return LOW;
+ return UNDEFINED;
+}
+
+// GateNand::GateNand(const GateNand * prototype) : GateAnd() { }
+
+// GateNand * GateNand::clone() const {
+// return new GateNand(this);
+// }
+