aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-05-01 22:18:32 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2023-05-01 22:18:32 +0300
commit79f67d5ca820b663e9e5682aaaad07118fdbfad8 (patch)
treea6f8b61c4ffbd2b5ce973dd7d9f1d6ddb3f58d8c /tests
parentd133cc70b125efc1d6c992cb49ce1bca41cf580e (diff)
downloadgran-79f67d5ca820b663e9e5682aaaad07118fdbfad8.tar.gz
gran-79f67d5ca820b663e9e5682aaaad07118fdbfad8.zip
update license stuff
Diffstat (limited to 'tests')
-rw-r--r--tests/simple_mem/bus.c6
-rw-r--r--tests/simple_mem/many.c9
-rw-r--r--tests/simple_mem/no_bus.c3
-rw-r--r--tests/simple_mem/traffic_gen.c6
-rw-r--r--tests/simple_mem/traffic_gen.h3
5 files changed, 23 insertions, 4 deletions
diff --git a/tests/simple_mem/bus.c b/tests/simple_mem/bus.c
index 67fb53b..9fa7a47 100644
--- a/tests/simple_mem/bus.c
+++ b/tests/simple_mem/bus.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
+/* Copyright 2023 Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
#include <assert.h>
#include <gran/root.h>
@@ -15,7 +18,8 @@ int main()
struct component *simple_bus = create_simple_bus();
simple_bus_add(simple_bus, simple_mem, addr, size);
- struct component *traffic_gen = create_traffic_gen(simple_mem, addr, size);
+ struct component *traffic_gen = create_traffic_gen(simple_mem, addr,
+ size);
struct clock_domain *clk = create_clock_domain(NS(1));
clock_domain_add(clk, traffic_gen);
diff --git a/tests/simple_mem/many.c b/tests/simple_mem/many.c
index 254b49f..f2d246a 100644
--- a/tests/simple_mem/many.c
+++ b/tests/simple_mem/many.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
+/* Copyright 2023 Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
#include <assert.h>
#include <gran/root.h>
@@ -12,8 +15,10 @@ int main()
struct component *simple_mem1 = create_simple_mem(size);
struct component *simple_mem2 = create_simple_mem(size);
- struct component *traffic_gen1 = create_traffic_gen(simple_mem1, 0, size);
- struct component *traffic_gen2 = create_traffic_gen(simple_mem2, 0, size);
+ struct component *traffic_gen1 =
+ create_traffic_gen(simple_mem1, 0, size);
+ struct component *traffic_gen2 =
+ create_traffic_gen(simple_mem2, 0, size);
struct clock_domain *clk = create_clock_domain(NS(1));
clock_domain_add(clk, traffic_gen1);
diff --git a/tests/simple_mem/no_bus.c b/tests/simple_mem/no_bus.c
index 8a5b05b..8c67e1e 100644
--- a/tests/simple_mem/no_bus.c
+++ b/tests/simple_mem/no_bus.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
+/* Copyright 2023 Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
#include <assert.h>
#include <gran/root.h>
diff --git a/tests/simple_mem/traffic_gen.c b/tests/simple_mem/traffic_gen.c
index 4d14d12..2de8f6e 100644
--- a/tests/simple_mem/traffic_gen.c
+++ b/tests/simple_mem/traffic_gen.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
+/* Copyright 2023 Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
#include <stdlib.h>
#include <assert.h>
@@ -44,7 +47,8 @@ void traffic_gen_destroy(struct traffic_gen *tg)
free(tg);
}
-struct component *create_traffic_gen(struct component *stress, uintptr_t start, size_t size)
+struct component *create_traffic_gen(struct component *stress, uintptr_t start,
+ size_t size)
{
struct traffic_gen *new = calloc(1, sizeof(struct traffic_gen));
if (!new)
diff --git a/tests/simple_mem/traffic_gen.h b/tests/simple_mem/traffic_gen.h
index 1975e48..018fcaf 100644
--- a/tests/simple_mem/traffic_gen.h
+++ b/tests/simple_mem/traffic_gen.h
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
+/* Copyright 2023 Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
#ifndef GRAN_TRAFFIC_GEN_H
#define GRAN_TRAFFIC_GEN_H