Forum Discussion

rgodw's avatar
rgodw
Icon for New Contributor rankNew Contributor
6 years ago

How to set the most significant bit in an STD_LOGIC_VECTOR(data_width downto 0) to 1 without changing the other bits

I'm trying to set the first bit in a logic vector to 1 so that the number is signed as a negative