diff options
Diffstat (limited to 'GateNor.cpp')
-rw-r--r-- | GateNor.cpp | 19 |
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); +// } + |