From 9c9ca9a1f191f24b5fcf6a403f4bdf554f9e8494 Mon Sep 17 00:00:00 2001 From: Dennis Sperzel Date: Mon, 29 Jan 2024 16:34:27 +0100 Subject: [PATCH] addition full adder base case 0+0=0 --- src/addition.c | 6 ++++++ src/addition.h | 6 ++++++ test/test_addition.c | 20 ++++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 src/addition.c create mode 100644 src/addition.h create mode 100644 test/test_addition.c diff --git a/src/addition.c b/src/addition.c new file mode 100644 index 0000000..9cdc24d --- /dev/null +++ b/src/addition.c @@ -0,0 +1,6 @@ +#include "addition.h" +#include + +void volladdierer (int* s, int* nc, int a, int b, int c) { + s[0] = 0; +} \ No newline at end of file diff --git a/src/addition.h b/src/addition.h new file mode 100644 index 0000000..0f01e7e --- /dev/null +++ b/src/addition.h @@ -0,0 +1,6 @@ +#ifndef ADDITION_H +#define ADDITION_H + +void volladdierer (int* s, int* nc, int a, int b, int c); + +#endif // ADDITION_H diff --git a/test/test_addition.c b/test/test_addition.c new file mode 100644 index 0000000..1d9823c --- /dev/null +++ b/test/test_addition.c @@ -0,0 +1,20 @@ +#ifdef TEST + +#include "unity.h" + +#include "addition.h" + +void setUp(void) +{ +} + +void tearDown(void) +{ +} + +void test_addition_NeedToImplement(void) +{ + TEST_IGNORE_MESSAGE("Need to Implement addition"); +} + +#endif // TEST