Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHow to pad or extend the most significant bit (bit 23) into bits 24 through 31
Hi, As suggested by forumer kflynn (http://www.alteraforum.com/forum/member.php?u=86819) in this link (http://www.alteraforum.com/forum/showthread.php?t=48398), the below issue can be resolved ...
Altera_Forum
Honored Contributor
11 years agothe msb is the sign bit, so you could check your 24'th bit using a bitmask, if it is set, change the 32'nd bit and vice versa. Then clear the 24'th bit.