wannaknow
Junior Member level 2
HI, I have a very simple question but I have no idea what went wrong. Basically I have a 24-bit signed signal from VHDL block fed into Altera Nios II system. I use C code for NIos II system. This is my code:Code:
to read the 24-bit signed signal. I define it as Code:
The problem is it always give me positive value every time read from this line even though I am sure it is negative value from VHDL code. Code:
Any idea what went wrong??? sorry for the simple question... Thank you in advance
Code:
value =IORD_ALTERA_AVALON_PIO_DATA(base);
Code:
alt_32 value=0;
Code:
printf("\n value= %d \n", value);
Last edited by a moderator: