diff --git a/src/main/dig/74xx/counter.dig b/src/main/dig/74xx/counter.dig
index 5a9822d91..761740e85 100644
--- a/src/main/dig/74xx/counter.dig
+++ b/src/main/dig/74xx/counter.dig
@@ -96,12 +96,12 @@
-
+
VDD
-
+
Clock
@@ -110,21 +110,17 @@
runRealTime
true
-
- rotation
-
-
Frequency
10
-
+
VDD
-
+
74162.dig
@@ -134,17 +130,17 @@
-
+
VDD
-
+
VDD
-
+
74162.dig
@@ -154,17 +150,17 @@
-
+
VDD
-
+
VDD
-
+
@@ -192,6 +188,14 @@
+
+
+
+
+
+
+
+
@@ -205,12 +209,8 @@
-
-
-
-
-
-
+
+
@@ -224,18 +224,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
@@ -248,86 +236,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -364,6 +272,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -381,16 +301,88 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
@@ -405,12 +397,12 @@
-
+
-
-
+
+
@@ -425,16 +417,12 @@
-
+
-
-
-
-
-
-
+
+
@@ -457,36 +445,40 @@
-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
+
+
+
+
@@ -497,8 +489,8 @@
-
-
+
+
@@ -509,15 +501,15 @@
-
-
+
+
-
-
+
+
-
+
@@ -529,12 +521,12 @@
-
-
+
+
-
-
+
+
@@ -548,6 +540,10 @@
+
+
+
+
@@ -557,29 +553,25 @@
-
-
-
-
-
-
+
+
-
+
-
-
-
-
+
+
+
+
@@ -593,12 +585,12 @@
-
+
-
-
+
+
@@ -608,10 +600,6 @@
-
-
-
-
@@ -629,36 +617,36 @@
-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
@@ -673,12 +661,12 @@
-
+
-
-
+
+
@@ -689,12 +677,12 @@
-
+
-
-
+
+
@@ -717,16 +705,16 @@
-
-
+
+
-
+
-
-
+
+
@@ -737,28 +725,28 @@
-
-
+
+
-
-
+
+
-
-
+
+
-
+
-
-
+
+
@@ -777,12 +765,12 @@
-
+
-
-
+
+
@@ -793,24 +781,24 @@
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
\ No newline at end of file
diff --git a/src/main/dig/74xx/lib/7448.dig b/src/main/dig/74xx/lib/7448.dig
new file mode 100644
index 000000000..b22b2963b
--- /dev/null
+++ b/src/main/dig/74xx/lib/7448.dig
@@ -0,0 +1,1730 @@
+
+
+ 1
+
+
+ isDIL
+ true
+
+
+ Description
+ BCD to 7-segment decoder
+
+
+
+
+ In
+
+
+ Label
+ A
+
+
+ pinNumber
+ 7
+
+
+
+
+
+ In
+
+
+ Label
+ B
+
+
+ pinNumber
+ 1
+
+
+
+
+
+ In
+
+
+ Label
+ C
+
+
+ pinNumber
+ 2
+
+
+
+
+
+ In
+
+
+ Label
+ D
+
+
+ pinNumber
+ 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
+
+
+
+
+ Out
+
+
+ Label
+ ~RBO
+
+
+ pinNumber
+ 4
+
+
+
+
+
+ In
+
+
+ Label
+ ~RBI
+
+
+ pinNumber
+ 5
+
+
+
+
+
+ Not
+
+
+
+
+ Or
+
+
+
+
+ Or
+
+
+
+
+ Or
+
+
+
+
+ Or
+
+
+
+
+ NOr
+
+
+ Inputs
+ 4
+
+
+
+
+
+ And
+
+
+
+
+ Out
+
+
+ Label
+ a
+
+
+ pinNumber
+ 13
+
+
+ Inputs
+ 1
+
+
+
+
+
+ And
+
+
+ Inputs
+ 3
+
+
+
+
+
+ And
+
+
+ Inputs
+ 3
+
+
+
+
+
+ And
+
+
+ Inputs
+ 3
+
+
+
+
+
+ And
+
+
+ Inputs
+ 3
+
+
+
+
+
+ Out
+
+
+ Label
+ b
+
+
+ pinNumber
+ 12
+
+
+ Inputs
+ 1
+
+
+
+
+
+ And
+
+
+
+
+ And
+
+
+ Inputs
+ 3
+
+
+
+
+
+ And
+
+
+
+
+ And
+
+
+
+
+ Out
+
+
+ Label
+ c
+
+
+ pinNumber
+ 11
+
+
+ Inputs
+ 1
+
+
+
+
+
+ And
+
+
+
+
+ And
+
+
+
+
+ And
+
+
+
+
+ Out
+
+
+ Label
+ d
+
+
+ pinNumber
+ 10
+
+
+ Inputs
+ 1
+
+
+
+
+
+ And
+
+
+
+
+ And
+
+
+
+
+ And
+
+
+ Inputs
+ 3
+
+
+
+
+
+ And
+
+
+
+
+ Out
+
+
+ Label
+ e
+
+
+ pinNumber
+ 9
+
+
+ Inputs
+ 1
+
+
+
+
+
+ And
+
+
+
+
+ And
+
+
+
+
+ Out
+
+
+ Label
+ f
+
+
+ pinNumber
+ 15
+
+
+ Inputs
+ 1
+
+
+
+
+
+ And
+
+
+
+
+ And
+
+
+
+
+ And
+
+
+
+
+ And
+
+
+
+
+ Out
+
+
+ Label
+ g
+
+
+ pinNumber
+ 14
+
+
+ Inputs
+ 1
+
+
+
+
+
+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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ 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 e77ba2408..e6d2e60cd 100644
--- a/src/test/java/de/neemann/digital/integration/TestExamples.java
+++ b/src/test/java/de/neemann/digital/integration/TestExamples.java
@@ -28,7 +28,7 @@ public class TestExamples extends TestCase {
*/
public void testDistExamples() throws Exception {
File examples = new File(Resources.getRoot().getParentFile().getParentFile(), "/main/dig");
- assertEquals(128, new FileScanner(this::check).scan(examples));
+ assertEquals(129, new FileScanner(this::check).scan(examples));
assertEquals(73, testCasesInFiles);
}