diff --git a/src/main/dig/lib/DIL Chips/74xx/plexers/74137.dig b/src/main/dig/lib/DIL Chips/74xx/plexers/74137.dig new file mode 100644 index 000000000..daf52f880 --- /dev/null +++ b/src/main/dig/lib/DIL Chips/74xx/plexers/74137.dig @@ -0,0 +1,485 @@ + + + 2 + + + shapeType + DIL + + + Description + 3-to-8 line decoder/demultiplexer, address latch, inverting outputs + + + romContent + + + + + + lockedMode + true + + + Width + 5 + + + + + Demultiplexer + + + Selector Bits + 3 + + + Default + 1 + + + + + + Splitter + + + Input Splitting + 1,1,1 + + + Output Splitting + 3 + + + + + + In + + + Label + S0 + + + pinNumber + 1 + + + + + + In + + + Label + S1 + + + pinNumber + 2 + + + + + + In + + + Label + S2 + + + pinNumber + 3 + + + + + + In + + + Label + ~E1 + + + pinNumber + 6 + + + + + + In + + + Label + E2 + + + pinNumber + 5 + + + + + + In + + + Label + ~LE + + + pinNumber + 4 + + + + + + Out + + + Label + ~Y0 + + + pinNumber + 15 + + + + + + Out + + + Label + ~Y1 + + + pinNumber + 14 + + + + + + Out + + + Label + ~Y2 + + + pinNumber + 13 + + + + + + Out + + + Label + ~Y3 + + + pinNumber + 12 + + + + + + Out + + + Label + ~Y4 + + + pinNumber + 11 + + + + + + Out + + + Label + ~Y5 + + + pinNumber + 10 + + + + + + Out + + + Label + ~Y6 + + + pinNumber + 9 + + + + + + Out + + + Label + ~Y7 + + + pinNumber + 7 + + + + + + PowerSupply + + + + + In + + + Label + VCC + + + pinNumber + 16 + + + InDefault + + + + + + + In + + + Label + GND + + + pinNumber + 8 + + + + + + Testcase + + + Testdata + + ~LE ~E1 E2 S0 S1 S2 ~Y0 ~Y1 ~Y2 ~Y3 ~Y4 ~Y5 ~Y6 ~Y7 + X X 1 X X X 1 1 1 1 1 1 1 1 + X 0 X X X X 1 1 1 1 1 1 1 1 + 0 1 0 0 0 0 0 1 1 1 1 1 1 1 + + C 1 0 0 0 0 0 1 1 1 1 1 1 1 + C 1 0 1 0 0 1 0 1 1 1 1 1 1 + C 1 0 0 1 0 1 1 0 1 1 1 1 1 + C 1 0 1 1 0 1 1 1 0 1 1 1 1 + C 1 0 0 0 1 1 1 1 1 0 1 1 1 + C 1 0 1 0 1 1 1 1 1 1 0 1 1 + C 1 0 0 1 1 1 1 1 1 1 1 0 1 + C 1 0 1 1 1 1 1 1 1 1 1 1 0 + + + + + + + And + + + wideShape + true + + + inverterConfig + + In_2 + + + + + + + D_FF + + + Bits + 3 + + + inverterConfig + + C + + + + + + + Not + + + + + Delay + + + Bits + 3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/dig/lib/DIL Chips/74xx/plexers/74237.dig b/src/main/dig/lib/DIL Chips/74xx/plexers/74237.dig new file mode 100644 index 000000000..52aaadc16 --- /dev/null +++ b/src/main/dig/lib/DIL Chips/74xx/plexers/74237.dig @@ -0,0 +1,458 @@ + + + 2 + + + shapeType + DIL + + + Description + 3-to-8 line decoder/demultiplexer, address latch, active high outputs + + + romContent + + + + + + lockedMode + true + + + Width + 5 + + + + + Demultiplexer + + + Selector Bits + 3 + + + + + + Splitter + + + Input Splitting + 1,1,1 + + + Output Splitting + 3 + + + + + + In + + + Label + S0 + + + pinNumber + 1 + + + + + + In + + + Label + S1 + + + pinNumber + 2 + + + + + + In + + + Label + S2 + + + pinNumber + 3 + + + + + + In + + + Label + ~E1 + + + pinNumber + 6 + + + + + + In + + + Label + E2 + + + pinNumber + 5 + + + + + + In + + + Label + ~LE + + + pinNumber + 4 + + + + + + Out + + + Label + Y0 + + + pinNumber + 15 + + + + + + Out + + + Label + Y1 + + + pinNumber + 14 + + + + + + Out + + + Label + Y2 + + + pinNumber + 13 + + + + + + Out + + + Label + Y3 + + + pinNumber + 12 + + + + + + Out + + + Label + Y4 + + + pinNumber + 11 + + + + + + Out + + + Label + Y5 + + + pinNumber + 10 + + + + + + Out + + + Label + Y6 + + + pinNumber + 9 + + + + + + Out + + + Label + Y7 + + + pinNumber + 7 + + + + + + PowerSupply + + + + + In + + + Label + VCC + + + pinNumber + 16 + + + InDefault + + + + + + + In + + + Label + GND + + + pinNumber + 8 + + + + + + Testcase + + + Testdata + + ~LE ~E1 E2 S0 S1 S2 Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7 + X X 1 X X X 0 0 0 0 0 0 0 0 + X 0 X X X X 0 0 0 0 0 0 0 0 + 0 1 0 0 0 0 1 0 0 0 0 0 0 0 + + C 1 0 0 0 0 1 0 0 0 0 0 0 0 + C 1 0 1 0 0 0 1 0 0 0 0 0 0 + C 1 0 0 1 0 0 0 1 0 0 0 0 0 + C 1 0 1 1 0 0 0 0 1 0 0 0 0 + C 1 0 0 0 1 0 0 0 0 1 0 0 0 + C 1 0 1 0 1 0 0 0 0 0 1 0 0 + C 1 0 0 1 1 0 0 0 0 0 0 1 0 + C 1 0 1 1 1 0 0 0 0 0 0 0 1 + + + + + + + And + + + wideShape + true + + + inverterConfig + + In_2 + + + + + + + D_FF + + + Bits + 3 + + + inverterConfig + + C + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 22ea17e0e..bd60755d5 100644 --- a/src/test/java/de/neemann/digital/integration/TestExamples.java +++ b/src/test/java/de/neemann/digital/integration/TestExamples.java @@ -40,8 +40,8 @@ public class TestExamples extends TestCase { */ public void testDistExamples() throws Exception { File examples = new File(Resources.getRoot().getParentFile().getParentFile(), "/main/dig"); - assertEquals(330, new FileScanner(this::check).scan(examples)); - assertEquals(522, testCasesInFiles); + assertEquals(332, new FileScanner(this::check).scan(examples)); + assertEquals(524, testCasesInFiles); } /**