diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-08-09 17:35:26 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-08-09 17:35:26 +0300 |
| commit | 489beadf61d05f40dd4ac40e4e5290502f7ad078 (patch) | |
| tree | 58241d94c3376aae6b081c6fe16288aa0f4d8593 /src/ideal_noc.c | |
| parent | 1853f5d6594bc371e4d8e631c24acd011a620915 (diff) | |
| download | gran-489beadf61d05f40dd4ac40e4e5290502f7ad078.tar.gz gran-489beadf61d05f40dd4ac40e4e5290502f7ad078.zip | |
format
Diffstat (limited to 'src/ideal_noc.c')
| -rw-r--r-- | src/ideal_noc.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/ideal_noc.c b/src/ideal_noc.c index d2816d6..57afba3 100644 --- a/src/ideal_noc.c +++ b/src/ideal_noc.c @@ -1,10 +1,5 @@ #include <gran/ideal_noc.h> -struct reg { - struct packet pkt; - bool busy; -}; - struct noc { struct component component; uint32_t elems; @@ -17,7 +12,8 @@ struct noc { struct component **lower; /* countedby[elems] */ }; -static stat ideal_noc_receive(struct noc *n, struct component *from, struct packet pkt) +static stat ideal_noc_receive(struct noc *n, struct component *from, + struct packet pkt) { (void)from; /* unused */ uint32_t elem; @@ -86,7 +82,8 @@ static void ideal_noc_destroy(struct noc *n) free(n); } -stat ideal_noc_connect(struct component *node, struct component *component, uint32_t elem) +stat ideal_noc_connect(struct component *node, struct component *component, + uint32_t elem) { struct noc *n = (struct noc *)node; assert(elem < n->elems); @@ -114,7 +111,8 @@ struct component *create_ideal_noc(uint32_t elems, size_t latency) return NULL; } - n->lower = (struct component **)calloc(elems, sizeof(struct component *)); + n->lower = (struct component **)calloc(elems, + sizeof(struct component *)); if (!n->lower) { free(n->out); free(n->in); |
