aboutsummaryrefslogtreecommitdiff
path: root/NodeOutput.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-13 09:10:41 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-13 09:10:41 +0200
commit4fa64f6d99cb475e74188c0a270844347a48c59c (patch)
tree8ce048cb16ff39e44760c566fdaa0f58cf331f22 /NodeOutput.h
parent3e5b602cb7bfb625ac7f7094f9d33409271073fb (diff)
actually print right output values
Diffstat (limited to 'NodeOutput.h')
-rw-r--r--NodeOutput.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/NodeOutput.h b/NodeOutput.h
index cd25055..d2319f1 100644
--- a/NodeOutput.h
+++ b/NodeOutput.h
@@ -4,16 +4,20 @@
class NodeOutput : public Node {
public:
+ NodeOutput();
NodeOutput(const NodeOutput * prototype);
~NodeOutput() = default;
virtual void sim();
- SignalLevel level() { return UNDEFINED; };
+ virtual SignalLevel level();
virtual NodeOutput * clone() const;
+ virtual void setOutput(Net *);
private:
+ virtual void init();
NodeOutput(const char * type);
constexpr static const char * type = "probe";
static NodeOutput instance;
+ SignalLevel input;
public:
virtual void accept(NodeVisitor & visitor) { visitor.visit(*this); }