aboutsummaryrefslogtreecommitdiff
path: root/GateNor.cpp
diff options
context:
space:
mode:
authorUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2024-06-12 20:06:48 +0200
committerUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2024-06-12 20:06:48 +0200
commitf1de485461b4cbb5dda4705323b416abec39b574 (patch)
treed8754423e16e87b299fdd747f7490d3e1f756474 /GateNor.cpp
parent50d3fb09278d57b5a35e15074cc025a62476c5a7 (diff)
parent26a7c785113e4e8343685b33d8ac4aa2023380f3 (diff)
Merge remote-tracking branch 'origin/node'
Diffstat (limited to 'GateNor.cpp')
-rw-r--r--GateNor.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/GateNor.cpp b/GateNor.cpp
new file mode 100644
index 0000000..cb70236
--- /dev/null
+++ b/GateNor.cpp
@@ -0,0 +1,19 @@
+#include "GateNor.h"
+
+GateNor GateNor::instance(GateNor::type);
+
+// GateNor::GateNor(const char * type) : Node(type) { }
+
+SignalLevel GateNor::level() {
+ SignalLevel lvl = GateOr::level();
+ if (lvl == LOW) return HIGH;
+ if (lvl == HIGH) return LOW;
+ return UNDEFINED;
+}
+
+// GateNor::GateNor(const GateNor * prototype) : Node() { }
+
+// GateNor * GateNor::clone() const {
+// return new GateNor(this);
+// }
+