mirror of
https://github.com/hneemann/Digital.git
synced 2025-10-04 02:12:42 -04:00
better error messages in power supply
This commit is contained in:
parent
990565071a
commit
1b39561f42
@ -6,10 +6,6 @@
|
|||||||
<string>Description</string>
|
<string>Description</string>
|
||||||
<string>12-bit BCD counter</string>
|
<string>12-bit BCD counter</string>
|
||||||
</entry>
|
</entry>
|
||||||
<entry>
|
|
||||||
<string>lockedMode</string>
|
|
||||||
<boolean>true</boolean>
|
|
||||||
</entry>
|
|
||||||
</attributes>
|
</attributes>
|
||||||
<visualElements>
|
<visualElements>
|
||||||
<visualElement>
|
<visualElement>
|
||||||
|
@ -6,10 +6,6 @@
|
|||||||
<string>Description</string>
|
<string>Description</string>
|
||||||
<string>12-bit hex counter</string>
|
<string>12-bit hex counter</string>
|
||||||
</entry>
|
</entry>
|
||||||
<entry>
|
|
||||||
<string>lockedMode</string>
|
|
||||||
<boolean>true</boolean>
|
|
||||||
</entry>
|
|
||||||
</attributes>
|
</attributes>
|
||||||
<visualElements>
|
<visualElements>
|
||||||
<visualElement>
|
<visualElement>
|
||||||
@ -219,11 +215,6 @@ repeat(2<<12) C bits(4,(n+1)>>8) bits(4,(n+1)>>4) bits(4,(n+1)
|
|||||||
<elementAttributes/>
|
<elementAttributes/>
|
||||||
<pos x="0" y="-500"/>
|
<pos x="0" y="-500"/>
|
||||||
</visualElement>
|
</visualElement>
|
||||||
<visualElement>
|
|
||||||
<elementName>VDD</elementName>
|
|
||||||
<elementAttributes/>
|
|
||||||
<pos x="680" y="-500"/>
|
|
||||||
</visualElement>
|
|
||||||
<visualElement>
|
<visualElement>
|
||||||
<elementName>Ground</elementName>
|
<elementName>Ground</elementName>
|
||||||
<elementAttributes/>
|
<elementAttributes/>
|
||||||
@ -239,6 +230,11 @@ repeat(2<<12) C bits(4,(n+1)>>8) bits(4,(n+1)>>4) bits(4,(n+1)
|
|||||||
<elementAttributes/>
|
<elementAttributes/>
|
||||||
<pos x="-160" y="-180"/>
|
<pos x="-160" y="-180"/>
|
||||||
</visualElement>
|
</visualElement>
|
||||||
|
<visualElement>
|
||||||
|
<elementName>VDD</elementName>
|
||||||
|
<elementAttributes/>
|
||||||
|
<pos x="680" y="-500"/>
|
||||||
|
</visualElement>
|
||||||
</visualElements>
|
</visualElements>
|
||||||
<wires>
|
<wires>
|
||||||
<wire>
|
<wire>
|
||||||
@ -561,14 +557,14 @@ repeat(2<<12) C bits(4,(n+1)>>8) bits(4,(n+1)>>4) bits(4,(n+1)
|
|||||||
<p1 x="140" y="-240"/>
|
<p1 x="140" y="-240"/>
|
||||||
<p2 x="140" y="-160"/>
|
<p2 x="140" y="-160"/>
|
||||||
</wire>
|
</wire>
|
||||||
<wire>
|
|
||||||
<p1 x="-160" y="-500"/>
|
|
||||||
<p2 x="-160" y="-480"/>
|
|
||||||
</wire>
|
|
||||||
<wire>
|
<wire>
|
||||||
<p1 x="-160" y="-200"/>
|
<p1 x="-160" y="-200"/>
|
||||||
<p2 x="-160" y="-180"/>
|
<p2 x="-160" y="-180"/>
|
||||||
</wire>
|
</wire>
|
||||||
|
<wire>
|
||||||
|
<p1 x="-160" y="-500"/>
|
||||||
|
<p2 x="-160" y="-480"/>
|
||||||
|
</wire>
|
||||||
<wire>
|
<wire>
|
||||||
<p1 x="-160" y="-480"/>
|
<p1 x="-160" y="-480"/>
|
||||||
<p2 x="-160" y="-400"/>
|
<p2 x="-160" y="-400"/>
|
||||||
|
@ -49,9 +49,9 @@ public class PowerSupply extends Node implements Element {
|
|||||||
@Override
|
@Override
|
||||||
public void readInputs() throws NodeException {
|
public void readInputs() throws NodeException {
|
||||||
if (vcc.getValue() != 1 || vcc.isHighZ())
|
if (vcc.getValue() != 1 || vcc.isHighZ())
|
||||||
throw new NodeException(Lang.get("err_errorInPowerSupply", "VCC"), vcc);
|
throw new NodeException(Lang.get("err_errorInPowerSupply", "VCC"), this, 0, vcc.asList());
|
||||||
if (gnd.getValue() != 0 || gnd.isHighZ())
|
if (gnd.getValue() != 0 || gnd.isHighZ())
|
||||||
throw new NodeException(Lang.get("err_errorInPowerSupply", "GND"), gnd);
|
throw new NodeException(Lang.get("err_errorInPowerSupply", "GND"), this, 1, gnd.asList());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user