mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-12 14:26:09 -04:00
modifies the shape for the generic init code
This commit is contained in:
parent
a81d3ae9f2
commit
fd55fc65aa
@ -7,6 +7,8 @@ HEAD, planned as v0.26
|
|||||||
provided the translation.
|
provided the translation.
|
||||||
- Fixed a bug in the Demuxer Verilog template that causes problems
|
- Fixed a bug in the Demuxer Verilog template that causes problems
|
||||||
when using multiple demuxers in the same circuit.
|
when using multiple demuxers in the same circuit.
|
||||||
|
- Generic circuits are easier to debug: It is possible now to create
|
||||||
|
a specific, concrete circuit from a generic one.
|
||||||
- Fixed a bug in the value editor, which occurs, if high-z is the
|
- Fixed a bug in the value editor, which occurs, if high-z is the
|
||||||
default value of an input.
|
default value of an input.
|
||||||
- Fixed an issue which avoids to restart a running simulation by just
|
- Fixed an issue which avoids to restart a running simulation by just
|
||||||
|
@ -133,7 +133,7 @@ shiftBits := 3;</string>
|
|||||||
<boolean>false</boolean>
|
<boolean>false</boolean>
|
||||||
</entry>
|
</entry>
|
||||||
</elementAttributes>
|
</elementAttributes>
|
||||||
<pos x="300" y="-20"/>
|
<pos x="360" y="-20"/>
|
||||||
</visualElement>
|
</visualElement>
|
||||||
<visualElement>
|
<visualElement>
|
||||||
<elementName>GenericInitCode</elementName>
|
<elementName>GenericInitCode</elementName>
|
||||||
|
@ -52,8 +52,8 @@ public class GenericInitCodeShape implements Shape {
|
|||||||
if (!graphic.isFlagSet(Graphic.Flag.hideTest)) {
|
if (!graphic.isFlagSet(Graphic.Flag.hideTest)) {
|
||||||
Polygon pol = new Polygon(true)
|
Polygon pol = new Polygon(true)
|
||||||
.add(SIZE2, SIZE2)
|
.add(SIZE2, SIZE2)
|
||||||
.add(SIZE2 + SIZE * 4, SIZE2)
|
.add(SIZE2 + SIZE * 6, SIZE2)
|
||||||
.add(SIZE2 + SIZE * 4, SIZE * 2 + SIZE2)
|
.add(SIZE2 + SIZE * 6, SIZE * 2 + SIZE2)
|
||||||
.add(SIZE2, SIZE * 2 + SIZE2);
|
.add(SIZE2, SIZE * 2 + SIZE2);
|
||||||
Style textStyle = NORMAL;
|
Style textStyle = NORMAL;
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
@ -64,8 +64,8 @@ public class GenericInitCodeShape implements Shape {
|
|||||||
textStyle = DISABLED;
|
textStyle = DISABLED;
|
||||||
}
|
}
|
||||||
|
|
||||||
graphic.drawText(new Vector(SIZE2 + SIZE * 2, SIZE + SIZE2), "init", Orientation.CENTERCENTER, textStyle);
|
graphic.drawText(new Vector(SIZE2 + SIZE * 3, SIZE + SIZE2), "generic", Orientation.CENTERCENTER, textStyle);
|
||||||
graphic.drawText(new Vector(SIZE2 + SIZE * 2, 0), label, Orientation.CENTERBOTTOM, textStyle);
|
graphic.drawText(new Vector(SIZE2 + SIZE * 3, 0), label, Orientation.CENTERBOTTOM, textStyle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user