MLBEDSW-3502: Bug fix addresses >= 32 bit

Bug fix in generation of register command offsets that do not fit in 32 bit.

Signed-off-by: Louis Verhaard <louis.verhaard@arm.com>
Change-Id: Iabb99cf6536c0f77b934691f8744df61f1eab3ed
diff --git a/ethosu/vela/register_command_stream_generator.py b/ethosu/vela/register_command_stream_generator.py
index 733be59..fb705b9 100644
--- a/ethosu/vela/register_command_stream_generator.py
+++ b/ethosu/vela/register_command_stream_generator.py
@@ -176,7 +176,8 @@
         self.offset += CommandStreamEmitter.WORD_SIZE
 
     def cmd1_with_offset(self, cmd: cmd1, offset, param=0x0):
-        offset = int(offset) & 0xFFFFFFFFF
+        offset = int(offset) & 0xFFFFFFFF
+        param = int(param) & 0xFFFF
         command = cmd.value | CmdMode.Payload32.value | (param << 16)
 
         if not self.get_reg_machine(cmd).set_register(cmd, (command, offset)):