aboutsummaryrefslogtreecommitdiff
path: root/tests/simple_ideal_noc
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-08-09 17:35:26 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2025-08-09 17:35:26 +0300
commit489beadf61d05f40dd4ac40e4e5290502f7ad078 (patch)
tree58241d94c3376aae6b081c6fe16288aa0f4d8593 /tests/simple_ideal_noc
parent1853f5d6594bc371e4d8e631c24acd011a620915 (diff)
downloadgran-489beadf61d05f40dd4ac40e4e5290502f7ad078.tar.gz
gran-489beadf61d05f40dd4ac40e4e5290502f7ad078.zip
format
Diffstat (limited to 'tests/simple_ideal_noc')
-rw-r--r--tests/simple_ideal_noc/sim.c8
-rw-r--r--tests/simple_ideal_noc/test.c2
2 files changed, 6 insertions, 4 deletions
diff --git a/tests/simple_ideal_noc/sim.c b/tests/simple_ideal_noc/sim.c
index 4aba71d..eb8f475 100644
--- a/tests/simple_ideal_noc/sim.c
+++ b/tests/simple_ideal_noc/sim.c
@@ -24,11 +24,13 @@ static stat build_ideal_noc(struct clock_domain *clk, uint32_t x)
struct component *imem = create_simple_mem(4096);
init_simple_mem(imem, 0,
- build_tests_simple_ideal_noc_test_bin_len,
- build_tests_simple_ideal_noc_test_bin);
+ build_tests_simple_ideal_noc_test_bin_len,
+ build_tests_simple_ideal_noc_test_bin);
uint64_t rcv = ideal_noc_addr(i, 0);
- struct component *rv64 = create_simple_riscv64(rcv, 0, imem, noc);
+ struct component *rv64 = create_simple_riscv64(rcv, 0,
+ imem, noc);
+
simple_riscv64_set_reg(rv64, 10, i); /* a0 */
simple_riscv64_set_reg(rv64, 11, x); /* a1 */
diff --git a/tests/simple_ideal_noc/test.c b/tests/simple_ideal_noc/test.c
index 2e4a22c..aaf86c7 100644
--- a/tests/simple_ideal_noc/test.c
+++ b/tests/simple_ideal_noc/test.c
@@ -45,7 +45,7 @@ do_work:
*control = x + 1;
if (x == X - 1)
- asm("ebreak");
+ asm ("ebreak");
/* otherwise just loop */
while (1) {}