diff options
Diffstat (limited to 'ethosu/vela/register_command_stream_generator.py')
-rw-r--r-- | ethosu/vela/register_command_stream_generator.py | 4 |
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() |