From fecb86f6093c1e8aed6ab05c29c5af9d0cb93157 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 24 Sep 2024 16:51:51 +0300 Subject: initial work towards message passing interface + As they are currently implemented, grid *may* get stuck if two nodes try to send to eachother at the same time, I should probably add in some kind of input buffer as well --- tests/simple_grid/sim.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/simple_grid') diff --git a/tests/simple_grid/sim.c b/tests/simple_grid/sim.c index e0c485b..f11be21 100644 --- a/tests/simple_grid/sim.c +++ b/tests/simple_grid/sim.c @@ -67,7 +67,8 @@ static stat build_grid(struct clock_domain *clk, uint8_t x, uint8_t y) struct component *router = create_node_router(0, 0, i, j); node_router_add(router, dmem, 4096, 4096); - struct component *rv64 = create_simple_riscv64(0, imem, router); + uint64_t rcv = grid_addr(0, 0, i, j, 16384); + struct component *rv64 = create_simple_riscv64(rcv, 0, imem, router); simple_riscv64_set_reg(rv64, 10, i); /* a0 */ simple_riscv64_set_reg(rv64, 11, j); /* a1 */ -- cgit v1.3