aboutsummaryrefslogtreecommitdiff
path: root/ethosu
diff options
context:
space:
mode:
authorWilliam Isaksson <william.isaksson@arm.com>2023-08-07 10:32:07 +0000
committerWilliam Isaksson <william.isaksson@arm.com>2023-11-21 10:43:30 +0100
commit6165283b314363677cc1c34388b92c414972273c (patch)
tree938e3d839df5bdff61a0fef0d8070adf21919f78 /ethosu
parent8cb3c360902a3e9fd583e474a4393646362dcf42 (diff)
downloadethos-u-vela-6165283b314363677cc1c34388b92c414972273c.tar.gz
MLBEDSW-7871: Document new error types in API
- Documents Legality requirements of CMD1 payloads - Fixes a miss in the command stream checks. Signed-off-by: William Isaksson <william.isaksson@arm.com> Change-Id: I9b33dedfa66650fa3100f61fd158a385818b4d52
Diffstat (limited to 'ethosu')
-rw-r--r--ethosu/vela/register_command_stream_generator.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ethosu/vela/register_command_stream_generator.py b/ethosu/vela/register_command_stream_generator.py
index 42ae99d5..9d9a1e63 100644
--- a/ethosu/vela/register_command_stream_generator.py
+++ b/ethosu/vela/register_command_stream_generator.py
@@ -531,6 +531,7 @@ def generate_weights(emit: CommandStreamEmitter, weights: List[NpuAddressRange],
emit.cmd1_with_offset(length, weights[core].length)
elif core < arch.ncores:
check_alignment(weights[0].address, 16)
+ check_length(weights[0].length, 16)
emit.cmd1_with_address(addr, weights[0].address)
emit.cmd1_with_offset(length, 0)