diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-09-24 16:51:51 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-09-24 18:47:13 +0300 |
| commit | fecb86f6093c1e8aed6ab05c29c5af9d0cb93157 (patch) | |
| tree | 10171c839d77167fc98fbae0b315d2c87aa13fa5 /tests/simple_grid/sim.c | |
| parent | b1d67364b4b4832b8efed112f7b0ead1a0b3cd3b (diff) | |
| download | gran-fecb86f6093c1e8aed6ab05c29c5af9d0cb93157.tar.gz gran-fecb86f6093c1e8aed6ab05c29c5af9d0cb93157.zip | |
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
Diffstat (limited to 'tests/simple_grid/sim.c')
| -rw-r--r-- | tests/simple_grid/sim.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |
