From a192c3e7269af3be80c66cb28a7012583bf14a4c Mon Sep 17 00:00:00 2001 From: hneemann Date: Wed, 1 Jan 2020 13:11:01 +0100 Subject: [PATCH] adds 74377, closes #405 --- .../lib/DIL Chips/74xx/flipflops/74377.dig | 1198 +++++++++++++++++ .../digital/integration/TestExamples.java | 4 +- 2 files changed, 1200 insertions(+), 2 deletions(-) create mode 100644 src/main/dig/lib/DIL Chips/74xx/flipflops/74377.dig diff --git a/src/main/dig/lib/DIL Chips/74xx/flipflops/74377.dig b/src/main/dig/lib/DIL Chips/74xx/flipflops/74377.dig new file mode 100644 index 000000000..ccadfc239 --- /dev/null +++ b/src/main/dig/lib/DIL Chips/74xx/flipflops/74377.dig @@ -0,0 +1,1198 @@ + + + 1 + + + shapeType + DIL + + + pinCount + 20 + + + Description + Octal D Flip-Flop with enable + + + lockedMode + true + + + Width + 5 + + + + + In + + + Label + D0 + + + pinNumber + 3 + + + + + + PowerSupply + + + + + In + + + Label + VCC + + + pinNumber + 20 + + + InDefault + + + + + + + In + + + Label + GND + + + pinNumber + 10 + + + + + + Or + + + + + And + + + + + And + + + + + Out + + + Label + Q0 + + + pinNumber + 2 + + + + + + In + + + Label + D1 + + + pinNumber + 4 + + + + + + Or + + + + + And + + + + + And + + + + + Out + + + Label + Q1 + + + pinNumber + 5 + + + + + + In + + + Label + D2 + + + pinNumber + 7 + + + + + + Or + + + + + And + + + + + And + + + + + Out + + + Label + Q2 + + + pinNumber + 6 + + + + + + In + + + Label + D3 + + + pinNumber + 8 + + + + + + Or + + + + + And + + + + + And + + + + + Out + + + Label + Q3 + + + pinNumber + 9 + + + + + + Not + + + + + In + + + Label + ~E + + + pinNumber + 1 + + + InDefault + + + + + + + In + + + Label + D4 + + + pinNumber + 13 + + + + + + Or + + + + + And + + + + + And + + + + + Out + + + Label + Q4 + + + pinNumber + 12 + + + + + + In + + + Label + D5 + + + pinNumber + 14 + + + + + + Or + + + + + And + + + + + And + + + + + Out + + + Label + Q5 + + + pinNumber + 15 + + + + + + In + + + Label + D6 + + + pinNumber + 17 + + + + + + Or + + + + + And + + + + + And + + + + + Out + + + Label + Q6 + + + pinNumber + 16 + + + + + + In + + + Label + D7 + + + pinNumber + 18 + + + + + + Or + + + + + And + + + + + And + + + + + Out + + + Label + Q7 + + + pinNumber + 19 + + + + + + Testcase + + + Testdata + + CLK ~E D0 D1 D2 D3 D4 D5 D6 D7 Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 + + +loop (n,255) + C 0 bits(8,n) bits(8,n) +end loop + + +#clear FF +C 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 + +loop (n,255) + C 1 bits(8,n) 0 0 0 0 0 0 0 0 +end loop + + + + + + + D_FF + + + + + D_FF + + + + + D_FF + + + + + D_FF + + + + + D_FF + + + + + D_FF + + + + + D_FF + + + + + D_FF + + + + + Clock + + + Label + CLK + + + pinNumber + 11 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 569da6b51..ccc228202 100644 --- a/src/test/java/de/neemann/digital/integration/TestExamples.java +++ b/src/test/java/de/neemann/digital/integration/TestExamples.java @@ -32,8 +32,8 @@ public class TestExamples extends TestCase { */ public void testDistExamples() throws Exception { File examples = new File(Resources.getRoot().getParentFile().getParentFile(), "/main/dig"); - assertEquals(289, new FileScanner(this::check).scan(examples)); - assertEquals(191, testCasesInFiles); + assertEquals(290, new FileScanner(this::check).scan(examples)); + assertEquals(192, testCasesInFiles); } /**