From 9550fef3599b89ce8fab7b78e014e1762310691c Mon Sep 17 00:00:00 2001 From: hneemann Date: Sat, 21 Jul 2018 10:46:56 +0200 Subject: [PATCH] added 74688, see #173 --- src/main/dig/lib/74xx/arithmetic/74688.dig | 631 ++++++++++++++++++ .../digital/integration/TestExamples.java | 4 +- 2 files changed, 633 insertions(+), 2 deletions(-) create mode 100644 src/main/dig/lib/74xx/arithmetic/74688.dig diff --git a/src/main/dig/lib/74xx/arithmetic/74688.dig b/src/main/dig/lib/74xx/arithmetic/74688.dig new file mode 100644 index 000000000..ce32dcd4a --- /dev/null +++ b/src/main/dig/lib/74xx/arithmetic/74688.dig @@ -0,0 +1,631 @@ + + + 1 + + + isDIL + true + + + pinCount + 20 + + + Description + 8-bit identity comparator + + + lockedMode + true + + + Width + 5 + + + + + XOr + + + + + XOr + + + + + XOr + + + + + XOr + + + + + XOr + + + + + XOr + + + + + XOr + + + + + XOr + + + + + NAnd + + + inverterConfig + + In_1 + + + + Inputs + 4 + + + + + + In + + + Label + P_0 + + + pinNumber + 2 + + + + + + In + + + Label + Q_0 + + + pinNumber + 3 + + + + + + In + + + Label + P_1 + + + pinNumber + 4 + + + + + + In + + + Label + Q_1 + + + pinNumber + 5 + + + + + + In + + + Label + P_2 + + + pinNumber + 6 + + + + + + In + + + Label + Q_2 + + + pinNumber + 7 + + + + + + In + + + Label + P_3 + + + pinNumber + 8 + + + + + + In + + + Label + Q_3 + + + pinNumber + 9 + + + + + + In + + + Label + P_4 + + + pinNumber + 11 + + + + + + In + + + Label + Q_4 + + + pinNumber + 12 + + + + + + In + + + Label + P_5 + + + pinNumber + 13 + + + + + + In + + + Label + Q_5 + + + pinNumber + 14 + + + + + + In + + + Label + P_6 + + + pinNumber + 15 + + + + + + In + + + Label + Q_6 + + + pinNumber + 16 + + + + + + In + + + Label + P_7 + + + pinNumber + 17 + + + + + + In + + + Label + Q_7 + + + pinNumber + 18 + + + + + + In + + + Label + ~OE + + + pinNumber + 1 + + + + + + Out + + + Label + ~EQ + + + pinNumber + 19 + + + + + + NOr + + + Inputs + 3 + + + + + + NOr + + + Inputs + 3 + + + + + + NOr + + + + + PowerSupply + + + + + In + + + Label + VCC + + + pinNumber + 20 + + + InDefault + + + + + + + In + + + Label + GND + + + pinNumber + 10 + + + + + + Testcase + + + Testdata + + ~OE P_7 P_6 P_5 P_4 P_3 P_2 P_1 P_0 Q_7 Q_6 Q_5 Q_4 Q_3 Q_2 Q_1 Q_0 ~EQ +loop(P,16) +loop(Q,16) +0 bits(8,P) bits(8,Q) (~(P=Q)) +1 bits(8,P) bits(8,Q) (1) +end loop +end loop + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 2c7341255..444e0d0aa 100644 --- a/src/test/java/de/neemann/digital/integration/TestExamples.java +++ b/src/test/java/de/neemann/digital/integration/TestExamples.java @@ -33,8 +33,8 @@ public class TestExamples extends TestCase { public void testDistExamples() throws Exception { File examples = new File(Resources.getRoot().getParentFile().getParentFile(), "/main/dig"); testCasesInFiles = 0; - assertEquals(241, new FileScanner(TestExamples::check).scan(examples)); - assertEquals(164, testCasesInFiles); + assertEquals(242, new FileScanner(TestExamples::check).scan(examples)); + assertEquals(165, testCasesInFiles); } /**