-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TTL 7447, LT, BI, RBI inputs for display decoder, compatible with jav…
…a 1.5+
- Loading branch information
Showing
18 changed files
with
381 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
eclipse.preferences.version=1 | ||
encoding//Logisim-Fork/com/cburch/logisim/std/plexers/DisplayDecoder.java=UTF-8 | ||
encoding//Logisim-Fork/doc/pt/html/libs/io/digitaloscilloscope.html=UTF-8 | ||
encoding//Logisim-Fork/doc/ru/html/libs/index.html=UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
419 changes: 237 additions & 182 deletions
419
Logisim-Fork/com/cburch/logisim/std/plexers/DisplayDecoder.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ | |
/Ttl7402.class | ||
/Ttl7400.class | ||
/Drawgates.class | ||
/Ttl7447.class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.cburch.logisim.std.ttl; | ||
|
||
import java.awt.Graphics; | ||
|
||
import com.cburch.logisim.instance.InstancePainter; | ||
import com.cburch.logisim.instance.InstanceState; | ||
import com.cburch.logisim.std.plexers.DisplayDecoder; | ||
import com.cburch.logisim.util.GraphicsUtil; | ||
|
||
public class Ttl7447 extends AbstractTtlGate { | ||
|
||
public Ttl7447() { | ||
super("7447"); | ||
} | ||
|
||
@Override | ||
public void paintInternal(InstancePainter painter, int x, int y, int height, boolean up) { | ||
String Ttl7447portnames[] = { "B", "C", "LT", "BI", "RBI", "D", "A", "f", "g", "a", "b", "c", "d", "e" }; | ||
Graphics g = painter.getGraphics(); | ||
g.drawRect(x + 10, y + AbstractTtlGate.pinheight + 10, super.pinnumber * 10 - 20, | ||
height - 2 * AbstractTtlGate.pinheight - 20); | ||
for (int i = 0; i < 2; i++) { | ||
for (int j = 0; j < 7; j++) { | ||
GraphicsUtil.drawCenteredText(g, Ttl7447portnames[j + (i * 7)], x + 10 + j * 20 + i * 20, | ||
y + height - AbstractTtlGate.pinheight - 8 - i * (height - 2 * AbstractTtlGate.pinheight - 12)); | ||
} | ||
} | ||
|
||
} | ||
|
||
@Override | ||
public void ttlpropagate(InstanceState state) { | ||
DisplayDecoder.ComputeDisplayDecoderOutputs(state, DisplayDecoder.getdecval(state, false, 0, 6, 0, 1, 5), 9, 10, | ||
11, 12, 13, 7, 8, 2, 3, 4); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.