diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-09-25 21:00:16 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-09-25 21:00:16 +0300 |
| commit | 6d0e7c5eba49efc171e63ff2631722a5c7f95460 (patch) | |
| tree | 9159d22c6ee1ee2949dcf8455998405b031cb351 /tests/simple_uart/sim.c | |
| parent | fecb86f6093c1e8aed6ab05c29c5af9d0cb93157 (diff) | |
| download | gran-6d0e7c5eba49efc171e63ff2631722a5c7f95460.tar.gz gran-6d0e7c5eba49efc171e63ff2631722a5c7f95460.zip | |
technically speaking deadlock free, but starves
Diffstat (limited to 'tests/simple_uart/sim.c')
| -rw-r--r-- | tests/simple_uart/sim.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/simple_uart/sim.c b/tests/simple_uart/sim.c index 762b591..c0d1f82 100644 --- a/tests/simple_uart/sim.c +++ b/tests/simple_uart/sim.c @@ -31,10 +31,15 @@ int main() simple_bus_add(bus, dmem, 0, size); simple_bus_add(bus, uart, size, 1); - struct component *rv64 = create_simple_riscv64(0, imem, bus); + struct component *rv64 = create_simple_riscv64(8192, 0, imem, bus); + simple_bus_add(bus, rv64, 8192, 4096); struct clock_domain *clk = create_clock_domain(NS(1)); clock_domain_add(clk, rv64); + clock_domain_add(clk, dmem); + clock_domain_add(clk, imem); + clock_domain_add(clk, bus); + clock_domain_add(clk, uart); struct gran_root *root = create_root(); root_add_clock(root, clk); |
