diff options
author | William Isaksson <william.isaksson@arm.com> | 2023-06-19 15:31:46 +0000 |
---|---|---|
committer | Fredrik Svedberg <fredrik.svedberg@arm.com> | 2023-07-31 14:09:38 +0000 |
commit | a4f8411f870defaba52175717b40afdd41ae0d40 (patch) | |
tree | ff4e9b53395405f7091d2aef856f2bc2863befef /ethosu/vela/errors.py | |
parent | 2f9b6874a227d8fa056c2e2fd01e8c80824ee0bc (diff) | |
download | ethos-u-vela-a4f8411f870defaba52175717b40afdd41ae0d40.tar.gz |
MLBEDSW-7718: Add cmd1 payload legality checks
- checks that cmd1 payloads are legal in
register_command_stream_generator,
- adds unit tests
Change-Id: I2bc23147f60fe090c71703f08d9cbaa279fac86e
Signed-off-by: William Isaksson <william.isaksson@arm.com>
Diffstat (limited to 'ethosu/vela/errors.py')
-rw-r--r-- | ethosu/vela/errors.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/ethosu/vela/errors.py b/ethosu/vela/errors.py index bf3bb4d3..22fc17c6 100644 --- a/ethosu/vela/errors.py +++ b/ethosu/vela/errors.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright 2020-2021 Arm Limited and/or its affiliates <open-source-office@arm.com> +# SPDX-FileCopyrightText: Copyright 2020-2021, 2023 Arm Limited and/or its affiliates <open-source-office@arm.com> # # SPDX-License-Identifier: Apache-2.0 # @@ -75,3 +75,17 @@ class AllocationError(VelaError): def __init__(self, msg): super().__init__(f"Allocation failed: {msg}") + + +class ByteAlignmentError(VelaError): + """Raised when value is unaligned""" + + def __init__(self, msg): + super().__init__(f"Unaligned Value: {msg}") + + +class ByteSizeError(VelaError): + """Raised when size has illegal value""" + + def __init__(self, msg): + super().__init__(f"Illegal Size: {msg}") |