diff --git a/distribution/ReleaseNotes.txt b/distribution/ReleaseNotes.txt
index f34c78dac..9ba2a99e4 100644
--- a/distribution/ReleaseNotes.txt
+++ b/distribution/ReleaseNotes.txt
@@ -22,6 +22,7 @@ head, planned as v0.23
74xx circuit example.
- Fixed an issue in the "RAM, Chip select" component which was not fully
asynchronous.
+- Fixed swapped IC numbers 7447 and 7448.
v0.22, released on 01. Apr 2019
- Improved the RAM/ROM data loader. Now binary files and Intel HEX files are
diff --git a/src/main/dig/74xx/counter.dig b/src/main/dig/74xx/counter.dig
index d23a55530..8ccdb564d 100644
--- a/src/main/dig/74xx/counter.dig
+++ b/src/main/dig/74xx/counter.dig
@@ -8,11 +8,6 @@
-
- 7447.dig
-
-
-
Seven-Seg
@@ -23,11 +18,6 @@
-
- 7447.dig
-
-
-
Seven-Seg
@@ -38,11 +28,6 @@
-
- 7447.dig
-
-
-
Seven-Seg
@@ -201,6 +186,21 @@
+
+ 7448.dig
+
+
+
+
+ 7448.dig
+
+
+
+
+ 7448.dig
+
+
+
@@ -980,4 +980,5 @@
+
\ No newline at end of file
diff --git a/src/main/dig/lib/DIL Chips/74xx/display/7447.dig b/src/main/dig/lib/DIL Chips/74xx/display/7447.dig
index af4d5a0cf..f5e92d1c0 100644
--- a/src/main/dig/lib/DIL Chips/74xx/display/7447.dig
+++ b/src/main/dig/lib/DIL Chips/74xx/display/7447.dig
@@ -8,7 +8,7 @@
Description
- BCD to 7-segment decoder, active high
+ BCD to 7-segment decoder, active low
lockedMode
@@ -23,10 +23,6 @@
In
-
- Description
- Bit 0
-
Label
A
@@ -36,15 +32,11 @@
7
-
+
In
-
- Description
- Bit 1
-
Label
B
@@ -54,15 +46,11 @@
1
-
+
In
-
- Description
- Bit 2
-
Label
C
@@ -72,15 +60,11 @@
2
-
+
In
-
- Description
- Bit 3
-
Label
D
@@ -90,12 +74,113 @@
6
-
+
+
+
+ Tunnel
+
+
+ rotation
+
+
+
+ NetName
+ a
+
+
+
+
+
+ Tunnel
+
+
+ rotation
+
+
+
+ NetName
+ b
+
+
+
+
+
+ Tunnel
+
+
+ rotation
+
+
+
+ NetName
+ c
+
+
+
+
+
+ Tunnel
+
+
+ rotation
+
+
+
+ NetName
+ d
+
+
+
+
+
+ Tunnel
+
+
+ NetName
+ a
+
+
+
+
+
+ Tunnel
+
+
+ NetName
+ b
+
+
+
+
+
+ Tunnel
+
+
+ NetName
+ c
+
+
+
+
+
+ Tunnel
+
+
+ NetName
+ d
+
+
+
NAnd
-
-
+
+
+ Inputs
+ 3
+
+
+
Out
@@ -113,7 +198,7 @@
4
-
+
In
@@ -131,32 +216,32 @@
5
-
+
Not
-
+
Or
-
+
Or
-
+
Or
-
+
Or
-
+
NOr
@@ -166,19 +251,19 @@
4
-
+
And
-
+
Out
Label
- a
+ ~a
pinNumber
@@ -189,17 +274,7 @@
1
-
-
-
- Or
-
-
- Inputs
- 5
-
-
-
+
And
@@ -246,7 +321,7 @@
Label
- b
+ ~b
pinNumber
@@ -257,17 +332,7 @@
1
-
-
-
- Or
-
-
- Inputs
- 5
-
-
-
+
And
@@ -299,7 +364,7 @@
Label
- c
+ ~c
pinNumber
@@ -310,17 +375,7 @@
1
-
-
-
- Or
-
-
- Inputs
- 4
-
-
-
+
And
@@ -342,7 +397,7 @@
Label
- d
+ ~d
pinNumber
@@ -353,17 +408,7 @@
1
-
-
-
- Or
-
-
- Inputs
- 5
-
-
-
+
And
@@ -395,7 +440,7 @@
Label
- e
+ ~e
pinNumber
@@ -406,17 +451,7 @@
1
-
-
-
- Or
-
-
- Inputs
- 3
-
-
-
+
And
@@ -433,7 +468,7 @@
Label
- f
+ ~f
pinNumber
@@ -444,17 +479,7 @@
1
-
-
-
- Or
-
-
- Inputs
- 5
-
-
-
+
And
@@ -481,7 +506,7 @@
Label
- g
+ ~g
pinNumber
@@ -492,17 +517,7 @@
1
-
-
-
- Or
-
-
- Inputs
- 5
-
-
-
+
And
@@ -571,10 +586,6 @@
Description
lamp test
-
- rotation
-
-
Label
~LT
@@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
+
+
+
+
+
-
-
-
-
@@ -711,6 +821,14 @@
+
+
+
+
+
+
+
+
@@ -723,10 +841,6 @@
-
-
-
-
@@ -740,8 +854,12 @@
-
-
+
+
+
+
+
+
@@ -767,6 +885,10 @@
+
+
+
+
@@ -776,25 +898,17 @@
-
-
+
+
-
-
-
-
-
-
+
+
-
-
-
-
@@ -811,10 +925,6 @@
-
-
-
-
@@ -827,6 +937,10 @@
+
+
+
+
@@ -859,6 +973,10 @@
+
+
+
+
@@ -872,8 +990,12 @@
-
-
+
+
+
+
+
+
@@ -895,10 +1017,6 @@
-
-
-
-
@@ -908,8 +1026,8 @@
-
-
+
+
@@ -948,17 +1066,21 @@
-
-
+
+
-
-
+
+
+
+
+
+
@@ -971,10 +1093,6 @@
-
-
-
-
@@ -983,10 +1101,6 @@
-
-
-
-
@@ -1003,42 +1117,42 @@
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
-
-
+
+
+
+
+
+
-
-
-
-
@@ -1052,8 +1166,8 @@
-
-
+
+
@@ -1088,16 +1202,20 @@
-
-
+
+
-
-
+
+
-
-
+
+
+
+
+
+
@@ -1125,7 +1243,7 @@
-
+
@@ -1139,10 +1257,6 @@
-
-
-
-
@@ -1168,33 +1282,29 @@
-
-
+
+
-
-
+
+
-
-
+
+
-
-
-
-
@@ -1215,6 +1325,10 @@
+
+
+
+
@@ -1236,24 +1350,40 @@
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1261,10 +1391,6 @@
-
-
-
-
@@ -1275,14 +1401,6 @@
-
-
-
-
-
-
-
-
@@ -1392,8 +1510,16 @@
-
-
+
+
+
+
+
+
+
+
+
+
@@ -1403,6 +1529,10 @@
+
+
+
+
@@ -1413,10 +1543,6 @@
-
-
-
-
@@ -1424,15 +1550,11 @@
-
-
+
+
-
-
-
-
-
+
@@ -1504,8 +1626,8 @@
-
-
+
+
@@ -1535,6 +1657,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1564,41 +1718,21 @@
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
@@ -1613,7 +1747,7 @@
-
+
@@ -1704,12 +1838,13 @@
-
-
+
+
-
-
+
+
+
\ No newline at end of file
diff --git a/src/main/dig/lib/DIL Chips/74xx/display/7448.dig b/src/main/dig/lib/DIL Chips/74xx/display/7448.dig
index c9477e2e5..a84d3ae75 100644
--- a/src/main/dig/lib/DIL Chips/74xx/display/7448.dig
+++ b/src/main/dig/lib/DIL Chips/74xx/display/7448.dig
@@ -8,7 +8,7 @@
Description
- BCD to 7-segment decoder, active low
+ BCD to 7-segment decoder, active high
lockedMode
@@ -23,6 +23,10 @@
In
+
+ Description
+ Bit 0
+
Label
A
@@ -32,11 +36,15 @@
7
-
+
In
+
+ Description
+ Bit 1
+
Label
B
@@ -46,11 +54,15 @@
1
-
+
In
+
+ Description
+ Bit 2
+
Label
C
@@ -60,11 +72,15 @@
2
-
+
In
+
+ Description
+ Bit 3
+
Label
D
@@ -74,108 +90,17 @@
6
-
-
-
- Tunnel
-
-
- rotation
-
-
-
- NetName
- a
-
-
-
-
-
- Tunnel
-
-
- rotation
-
-
-
- NetName
- b
-
-
-
-
-
- Tunnel
-
-
- rotation
-
-
-
- NetName
- c
-
-
-
-
-
- Tunnel
-
-
- rotation
-
-
-
- NetName
- d
-
-
-
-
-
- Tunnel
-
-
- NetName
- a
-
-
-
-
-
- Tunnel
-
-
- NetName
- b
-
-
-
-
-
- Tunnel
-
-
- NetName
- c
-
-
-
-
-
- Tunnel
-
-
- NetName
- d
-
-
-
+
NAnd
-
-
+
+
+ Inputs
+ 3
+
+
+
Out
@@ -193,7 +118,7 @@
4
-
+
In
@@ -211,32 +136,32 @@
5
-
+
Not
-
+
Or
-
+
Or
-
+
Or
-
+
Or
-
+
NOr
@@ -246,19 +171,19 @@
4
-
+
And
-
+
Out
Label
- ~a
+ a
pinNumber
@@ -269,7 +194,17 @@
1
-
+
+
+
+ Or
+
+
+ Inputs
+ 5
+
+
+
And
@@ -316,7 +251,7 @@
Label
- ~b
+ b
pinNumber
@@ -327,7 +262,17 @@
1
-
+
+
+
+ Or
+
+
+ Inputs
+ 5
+
+
+
And
@@ -359,7 +304,7 @@
Label
- ~c
+ c
pinNumber
@@ -370,7 +315,17 @@
1
-
+
+
+
+ Or
+
+
+ Inputs
+ 4
+
+
+
And
@@ -392,7 +347,7 @@
Label
- ~d
+ d
pinNumber
@@ -403,7 +358,17 @@
1
-
+
+
+
+ Or
+
+
+ Inputs
+ 5
+
+
+
And
@@ -435,7 +400,7 @@
Label
- ~e
+ e
pinNumber
@@ -446,7 +411,17 @@
1
-
+
+
+
+ Or
+
+
+ Inputs
+ 3
+
+
+
And
@@ -463,7 +438,7 @@
Label
- ~f
+ f
pinNumber
@@ -474,7 +449,17 @@
1
-
+
+
+
+ Or
+
+
+ Inputs
+ 5
+
+
+
And
@@ -501,7 +486,7 @@
Label
- ~g
+ g
pinNumber
@@ -512,7 +497,17 @@
1
-
+
+
+
+ Or
+
+
+ Inputs
+ 5
+
+
+
And
@@ -581,10 +576,6 @@
Description
lamp test
-
- rotation
-
-
Label
~LT
@@ -594,92 +585,17 @@
3
-
+
Not
-
-
- rotation
-
-
-
-
-
-
- NOr
-
-
- Inputs
- 5
-
-
-
-
-
- NOr
-
-
- Inputs
- 5
-
-
-
-
-
- NOr
-
-
- Inputs
- 5
-
-
-
-
-
- NOr
-
-
- Inputs
- 5
-
-
-
-
-
- NOr
-
-
- Inputs
- 5
-
-
-
-
-
- NOr
-
-
- Inputs
- 4
-
-
-
-
-
- NOr
-
-
- Inputs
- 3
-
-
-
+
+
PowerSupply
-
+
In
@@ -697,7 +613,7 @@
-
+
In
@@ -711,17 +627,51 @@
8
-
+
+
+
+ Testcase
+
+
+ Testdata
+
+ ~LT ~R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-
-
+
+
-
-
+
+
-
-
-
-
@@ -1059,6 +1017,10 @@
+
+
+
+
@@ -1067,6 +1029,10 @@
+
+
+
+
@@ -1083,42 +1049,42 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
@@ -1132,8 +1098,8 @@
-
-
+
+
@@ -1168,20 +1134,16 @@
-
-
+
+
-
-
+
+
-
-
-
-
-
-
+
+
@@ -1208,8 +1170,8 @@
-
-
+
+
@@ -1223,6 +1185,10 @@
+
+
+
+
@@ -1248,29 +1214,33 @@
-
-
+
+
-
-
+
+
-
-
+
+
+
+
+
+
@@ -1291,10 +1261,6 @@
-
-
-
-
@@ -1316,28 +1282,24 @@
-
-
+
+
-
-
+
+
-
-
+
+
-
-
-
-
-
-
+
+
@@ -1345,6 +1307,10 @@
+
+
+
+
@@ -1355,6 +1321,14 @@
+
+
+
+
+
+
+
+
@@ -1464,16 +1438,8 @@
-
-
-
-
-
-
-
-
-
-
+
+
@@ -1483,10 +1449,6 @@
-
-
-
-
@@ -1497,6 +1459,10 @@
+
+
+
+
@@ -1504,15 +1470,15 @@
-
-
+
+
-
-
+
+
-
+
@@ -1584,8 +1550,24 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1615,22 +1597,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1660,17 +1626,25 @@
-
-
+
+
-
-
+
+
+
+
+
+
+
+
+
+
@@ -1685,7 +1659,7 @@
-
+
@@ -1727,22 +1701,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1792,12 +1750,13 @@
-
-
+
+
-
-
+
+
+
\ No newline at end of file
diff --git a/src/test/java/de/neemann/digital/integration/TestExamples.java b/src/test/java/de/neemann/digital/integration/TestExamples.java
index 61aa376a0..8c0207ed6 100644
--- a/src/test/java/de/neemann/digital/integration/TestExamples.java
+++ b/src/test/java/de/neemann/digital/integration/TestExamples.java
@@ -33,7 +33,7 @@ public class TestExamples extends TestCase {
public void testDistExamples() throws Exception {
File examples = new File(Resources.getRoot().getParentFile().getParentFile(), "/main/dig");
assertEquals(269, new FileScanner(this::check).scan(examples));
- assertEquals(184, testCasesInFiles);
+ assertEquals(186, testCasesInFiles);
}
/**