Verilog-AMS on Symphony does not appear to work properly

Hi there, so the above screenshot code does not seem to function as expected. I am trying to index an array of 8 bit values stored in the reg, but when I try to do it with the integer variable it does not work as expected. When I do it by typing the index in as a number manually it works.

Have I done something wrong and how can I make the array index properly with an integer variable?

This Siemens sponsored forum is not for tool related issues. Please refer to your tool documentation or contact your vendor support team for additional assistance.