aboutsummaryrefslogtreecommitdiff
path: root/tests/simple_riscv64
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-09-25 21:00:16 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-09-25 21:00:16 +0300
commit6d0e7c5eba49efc171e63ff2631722a5c7f95460 (patch)
tree9159d22c6ee1ee2949dcf8455998405b031cb351 /tests/simple_riscv64
parentfecb86f6093c1e8aed6ab05c29c5af9d0cb93157 (diff)
downloadgran-6d0e7c5eba49efc171e63ff2631722a5c7f95460.tar.gz
gran-6d0e7c5eba49efc171e63ff2631722a5c7f95460.zip
technically speaking deadlock free, but starves
Diffstat (limited to 'tests/simple_riscv64')
-rw-r--r--tests/simple_riscv64/sim.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/simple_riscv64/sim.c b/tests/simple_riscv64/sim.c
index ae3cad4..f92be96 100644
--- a/tests/simple_riscv64/sim.c
+++ b/tests/simple_riscv64/sim.c
@@ -17,17 +17,19 @@ unsigned int simple_sum_len = 36;
int main()
{
- const size_t size = 100000;
+ const size_t size = 4096;
struct component *imem = create_simple_mem(size);
/* This works for simple memory, but feels kind of hacky */
init_simple_mem(imem, 0, simple_sum_len, simple_sum);
struct component *dmem = create_simple_mem(size);
- struct component *rv64 = create_simple_riscv64(0, imem, dmem);
+ struct component *rv64 = create_simple_riscv64(4096, 0, imem, dmem);
struct clock_domain *clk = create_clock_domain(NS(1));
clock_domain_add(clk, rv64);
+ clock_domain_add(clk, imem);
+ clock_domain_add(clk, dmem);
struct gran_root *root = create_root();
root_add_clock(root, clk);