X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.core%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fcore%2Fcomponents%2FDemux.java;h=704fa9bdfa2b2a126e68a7c0c28c7fd9b5795d79;hb=f14ea37d69488dd51518a36413af7176916b8bd7;hp=5da1bf6a981dd7b04cfddbfd848706f730b78236;hpb=07faf07e3acb8b2afdc2bf65a46bc868faaed0f8;p=Mograsim.git diff --git a/net.mograsim.logic.core/src/net/mograsim/logic/core/components/Demux.java b/net.mograsim.logic.core/src/net/mograsim/logic/core/components/Demux.java index 5da1bf6a..704fa9bd 100644 --- a/net.mograsim.logic.core/src/net/mograsim/logic/core/components/Demux.java +++ b/net.mograsim.logic.core/src/net/mograsim/logic/core/components/Demux.java @@ -43,13 +43,13 @@ public class Demux extends BasicComponent } this.select = select; - select.addObserver(this); + select.registerObserver(this); int maxInputs = 1 << select.length(); if (this.outputs.length > maxInputs) throw new IllegalArgumentException("There are more outputs (" + this.outputs.length + ") to the DEMUX than supported by " + select.length() + " select bits (" + maxInputs + ")."); - in.addObserver(this); + in.registerObserver(this); } @Override