Globals are not currently supported in HDL Coder. Use persistent variables instead.
Also see this example on how to
>> mlhdlc_demo_setup('comms_data_packet')
% Key design pattern covered in this example:
- Design illustrates the us of binary operands, such as bitxor
- Shows how to properly segment persistent variables for register an BRAM access
- Illustrates the use of fi math
- Shows how to properly format and store ROM data, e.g., padData
- Loading external data in the test bench