Skip to content

Commit 8da1fd0

Browse files
committed
fix cmd id conflict
1 parent b9ccdac commit 8da1fd0

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

lib/cmd_type.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# Total number of commands that are supported/recognized by controller.
1616
# Needs to be updated once more commands are added/supported.
17-
NUM_CMDS = 40
17+
NUM_CMDS = 43
1818

1919
CMD_LAUNCH = 0
2020
CMD_PAUSE = 1
@@ -50,21 +50,21 @@
5050
CMD_LEAF_COUNTER_COMPLETE = 31
5151

5252
# Affine Controller (AC) Configuration Commands (from CPU).
53-
CMD_AC_CONFIG_LOWER = 29 # Configures CCU lower_bound.
54-
CMD_AC_CONFIG_UPPER = 30 # Configures CCU upper_bound.
55-
CMD_AC_CONFIG_STEP = 31 # Configures CCU step.
56-
CMD_AC_CONFIG_CHILD_COUNT = 32 # Configures child_complete_count.
57-
CMD_AC_CONFIG_TARGET = 33 # Configures target (tile_id, ctrl_addr, is_remote, cgra_id).
58-
CMD_AC_CONFIG_PARENT = 34 # Configures parent_ccu_id, is_root, is_relay.
59-
CMD_AC_LAUNCH = 35 # Launches AC (all CCUs enter RUNNING).
53+
CMD_AC_CONFIG_LOWER = 32 # Configures CCU lower_bound.
54+
CMD_AC_CONFIG_UPPER = 33 # Configures CCU upper_bound.
55+
CMD_AC_CONFIG_STEP = 34 # Configures CCU step.
56+
CMD_AC_CONFIG_CHILD_COUNT = 35 # Configures child_complete_count.
57+
CMD_AC_CONFIG_TARGET = 36 # Configures target (tile_id, ctrl_addr, is_remote, cgra_id).
58+
CMD_AC_CONFIG_PARENT = 37 # Configures parent_ccu_id, is_root, is_relay.
59+
CMD_AC_LAUNCH = 38 # Launches AC (all CCUs enter RUNNING).
6060

6161
# Affine Controller Inter-CGRA Sync Commands.
62-
CMD_AC_SYNC_VALUE = 36 # Parent AC → Child AC: sync current value.
63-
CMD_AC_CHILD_COMPLETE = 37 # Child AC → Parent AC: child complete.
64-
CMD_AC_CHILD_RESET = 38 # Parent AC → Child AC: reset child.
62+
CMD_AC_SYNC_VALUE = 39 # Parent AC → Child AC: sync current value.
63+
CMD_AC_CHILD_COMPLETE = 40 # Child AC → Parent AC: child complete.
64+
CMD_AC_CHILD_RESET = 41 # Parent AC → Child AC: reset child.
6565

6666
# Affine Controller Status.
67-
CMD_AC_ALL_COMPLETE = 39 # AC → Controller: all loops complete.
67+
CMD_AC_ALL_COMPLETE = 42 # AC → Controller: all loops complete.
6868

6969
CMD_SYMBOL_DICT = {
7070
CMD_LAUNCH: "(LAUNCH_KERNEL)",

0 commit comments

Comments
 (0)