aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/register_command_stream_generator.py
diff options
context:
space:
mode:
authorWilliam Isaksson <william.isaksson@arm.com>2024-02-10 15:54:44 +0100
committertim.hall <tim.hall@arm.com>2024-04-02 16:12:23 +0000
commite4d2f218fbdba4aa58380e9dfc42688330a70512 (patch)
tree01d29fbd35fdb81c7bd9b965d1f9673b9be74865 /ethosu/vela/register_command_stream_generator.py
parentf697eac94d8d391fbe6fafac9c5b460ffae4cef6 (diff)
downloadethos-u-vela-e4d2f218fbdba4aa58380e9dfc42688330a70512.tar.gz
MLBEDSW-8672: Add ext_key tracking
- Add ext_key tracking. - Fix debug db cmd offsets being off by 4. Change-Id: Ib109a15a0a2c44d08021c3b1bc3bcc067240ac5c Signed-off-by: William Isaksson <william.isaksson@arm.com>
Diffstat (limited to 'ethosu/vela/register_command_stream_generator.py')
-rw-r--r--ethosu/vela/register_command_stream_generator.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ethosu/vela/register_command_stream_generator.py b/ethosu/vela/register_command_stream_generator.py
index e208e8d0..01654697 100644
--- a/ethosu/vela/register_command_stream_generator.py
+++ b/ethosu/vela/register_command_stream_generator.py
@@ -1095,7 +1095,9 @@ def generate_command_stream(
# Generate the actual NPU_OP command
generate_operation_code(emit, npu_op)
if add_to_debug_db is not None:
- add_to_debug_db(npu_op, emit.offset)
+ if not isinstance(npu_op, NpuDmaOperation):
+ # Subtraction by 4 is to account for that offsets are pre-incremented.
+ add_to_debug_db(npu_op, emit.offset - 4)
# Fill in final part of command stream:
emit.cmd_do_operation(cmd0.NPU_OP_STOP, param=0xFFFF)
res = emit.to_list()