Forum Discussion
Altera_Forum
Honored Contributor
15 years agoTeddy,
0x prefix stands for hex number. One hex digit = 4bit !!! You must use 0b00101... to specify a binary number. Moreover, your 'long' data variables are actually 64bit long ! You are getting the correct 32bit prints with %x format. If you want complete 64bit print you should use %lx or %llx If you want ram native 16bit data access, you should define variables as 'short'. Cris