Forum Discussion
Altera_Forum
Honored Contributor
16 years agoYour printf code
> printf( "0%0x\n",weight); prints “weight” which is the address of a char array. It should be always the same value. If you want to print the received characters, try to replace the printf with printf( "0%0x\n",in_char); or printf( "0%0x\n",weight[pointer-1]);