From 3bee07388665bc8b13aeb2a7efe6eef2f209da8d Mon Sep 17 00:00:00 2001 From: hneemann Date: Thu, 19 Nov 2020 20:48:19 +0100 Subject: [PATCH] allows to use probe values as test case outputs; closes #562 --- distribution/ReleaseNotes.txt | 1 + src/main/java/de/neemann/digital/core/io/Probe.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/ReleaseNotes.txt b/distribution/ReleaseNotes.txt index 55f23c6b2..aa977da50 100644 --- a/distribution/ReleaseNotes.txt +++ b/distribution/ReleaseNotes.txt @@ -8,6 +8,7 @@ HEAD, planned as v0.26 - Added a "Not Connected" component to output a constant high-z value. - If a high-z value is connected to a logic gate input, the read value is undefined. +- It is now possible to use a probe as output in a test case. - Fixed a bug in the Demuxer Verilog template that causes problems when using multiple demuxers in the same circuit. - Generic circuits are easier to debug: It is possible now to create diff --git a/src/main/java/de/neemann/digital/core/io/Probe.java b/src/main/java/de/neemann/digital/core/io/Probe.java index 444eae3c8..9465f9682 100644 --- a/src/main/java/de/neemann/digital/core/io/Probe.java +++ b/src/main/java/de/neemann/digital/core/io/Probe.java @@ -56,7 +56,7 @@ public class Probe implements Element { @Override public void registerNodes(Model model) { - model.addSignal(new Signal(label, value).setShowInGraph(showInGraph).setFormat(format)); + model.addOutput(new Signal(label, value).setShowInGraph(showInGraph).setFormat(format)); model.registerGlobalValue(label, value); }