Forum Discussion
Altera_Forum
Honored Contributor
10 years agoMultiple ways,
alt_32 n; // read the 24 bit signed signal n = read_port; // if the sign bit is set extend it to bit 31 if (n & 0x08000000) n |= 0xf0000000; Is the pio module your custom vhdl code or is it a qsys library module?