From 4c390f7418ecbafbd5934757b79c7b636660e4c6 Mon Sep 17 00:00:00 2001 From: guiweber Date: Fri, 26 May 2017 14:16:30 -0400 Subject: [PATCH] Adds 74164 --- .../dig/74xx/lib/shift register/74164.dig | 710 ++++++++++++++++++ .../digital/integration/TestExamples.java | 2 +- 2 files changed, 711 insertions(+), 1 deletion(-) create mode 100644 src/main/dig/74xx/lib/shift register/74164.dig diff --git a/src/main/dig/74xx/lib/shift register/74164.dig b/src/main/dig/74xx/lib/shift register/74164.dig new file mode 100644 index 000000000..c37305986 --- /dev/null +++ b/src/main/dig/74xx/lib/shift register/74164.dig @@ -0,0 +1,710 @@ + + + 1 + + + isDIL + true + + + pinCount + 14 + + + Description + 8-bit parallel-out serial shift register, asynchronous clear + + + lockedMode + true + + + + + D_FF_AS + + + + + D_FF_AS + + + + + D_FF_AS + + + + + In + + + Label + CP + + + pinNumber + 8 + + + + + + D_FF_AS + + + + + D_FF_AS + + + + + D_FF_AS + + + + + And + + + + + In + + + Label + DSA + + + pinNumber + 1 + + + + + + In + + + Label + DSB + + + pinNumber + 2 + + + + + + In + + + Label + ~MR + + + pinNumber + 9 + + + + + + Out + + + rotation + + + + Label + Q0 + + + pinNumber + 3 + + + + + + Out + + + rotation + + + + Label + Q1 + + + pinNumber + 4 + + + + + + Out + + + rotation + + + + Label + Q2 + + + pinNumber + 5 + + + + + + Out + + + rotation + + + + Label + Q3 + + + pinNumber + 6 + + + + + + Out + + + rotation + + + + Label + Q4 + + + pinNumber + 10 + + + + + + Not + + + + + D_FF_AS + + + + + D_FF_AS + + + + + Out + + + rotation + + + + Label + Q5 + + + pinNumber + 11 + + + + + + Out + + + rotation + + + + Label + Q6 + + + pinNumber + 12 + + + + + + Out + + + rotation + + + + Label + Q7 + + + pinNumber + 13 + + + + + + Const + + + Value + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 1c4d0c1c6..cdff8a6eb 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(174, new FileScanner(this::check).scan(examples)); + assertEquals(175, new FileScanner(this::check).scan(examples)); assertEquals(78, testCasesInFiles); }