From 4fa64f6d99cb475e74188c0a270844347a48c59c Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Thu, 13 Jun 2024 09:10:41 +0200 Subject: actually print right output values --- NodeOutput.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'NodeOutput.h') 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); } -- cgit v1.2.3