diff --git a/src/main/dig/cmos/nand.dig b/src/main/dig/cmos/nand.dig new file mode 100644 index 000000000..024746480 --- /dev/null +++ b/src/main/dig/cmos/nand.dig @@ -0,0 +1,216 @@ + + + 1 + + + + VDD + + + + + In + + + Label + A + + + + + + Out + + + Label + Y + + + + + + NFET + + + Label + T3 + + + + + + PFET + + + Label + T1 + + + + + + Ground + + + + + Testcase + + + Testdata + + A B Y +0 0 1 +0 1 1 +1 0 1 +1 1 0 + + +# transitions +0 0 1 +0 1 1 +0 0 1 +1 0 1 +0 0 1 +1 1 0 +0 0 1 +0 1 1 +1 0 1 +0 1 1 +1 1 0 +0 1 1 +1 0 1 +1 1 0 +1 0 1 + + + + + + + + In + + + Label + B + + + + + + NFET + + + Label + T4 + + + + + + PFET + + + Label + T2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 0cfc5972f..ab303c039 100644 --- a/src/test/java/de/neemann/digital/integration/TestExamples.java +++ b/src/test/java/de/neemann/digital/integration/TestExamples.java @@ -28,8 +28,8 @@ public class TestExamples extends TestCase { */ public void testDistExamples() throws Exception { File examples = new File(Resources.getRoot().getParentFile().getParentFile(), "/main/dig"); - assertEquals(177, new FileScanner(this::check).scan(examples)); - assertEquals(78, testCasesInFiles); + assertEquals(178, new FileScanner(this::check).scan(examples)); + assertEquals(79, testCasesInFiles); } /**