summaryrefslogtreecommitdiffstats
path: root/tpu.h
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-10-04 23:13:37 +0200
committerLouis Burda <quent.burda@gmail.com>2023-10-04 23:13:37 +0200
commit4231d51da9384a00934a82cb9c17815b356a068a (patch)
tree55a3311da5c13949304399b56a26b3d8ec0449f7 /tpu.h
parentc27689dfdcd725246731d4f28a5548ff6818f43b (diff)
downloadtis100-4231d51da9384a00934a82cb9c17815b356a068a.tar.gz
tis100-4231d51da9384a00934a82cb9c17815b356a068a.zip
Fix port alphabet
Diffstat (limited to 'tpu.h')
-rw-r--r--tpu.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tpu.h b/tpu.h
index 2c2fbc7..67f4e87 100644
--- a/tpu.h
+++ b/tpu.h
@@ -9,7 +9,7 @@
#define LABEL_MAP_BUCKETS 64
#define TPU_MAX_INST_CNT 15
#define TPU_MAX_INST_LEN 18
-#define TIS_MAX_IO_PORTS 26
+#define TIS_MAX_IO_PORTS 36
/* enum order is important ! */
@@ -115,8 +115,8 @@ struct tpu_io_port {
struct tis {
struct tpu_map tpu_map;
- struct tpu_io_port *in_ports[26];
- struct tpu_io_port *out_ports[26];
+ struct tpu_io_port *in_ports[TIS_MAX_IO_PORTS];
+ struct tpu_io_port *out_ports[TIS_MAX_IO_PORTS];
};
void label_map_init(struct label_map *map);