Jan 9, 2013 #1 J joice sar Newbie level 4 Joined Jan 9, 2013 Messages 5 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,312 Please anyone tell me the vhdl code for truncation of LSB without changing the value of MSB. For example i have to truncate from 0010 0111(39) to 0010(32). Is this possible to use resize function for truncation Last edited: Jan 10, 2013
Please anyone tell me the vhdl code for truncation of LSB without changing the value of MSB. For example i have to truncate from 0010 0111(39) to 0010(32). Is this possible to use resize function for truncation
Jan 9, 2013 #2 T TrickyDicky Advanced Member level 7 Joined Jun 7, 2010 Messages 7,110 Helped 2,081 Reputation 4,181 Reaction score 2,048 Trophy points 1,393 Activity points 39,769 your post is not very clear, because 0010 is 2, not 32. and you are not clear exactly what you're trying to do. You can extract any bits from an array without harming the source: op <= ip(7 downto 4);
your post is not very clear, because 0010 is 2, not 32. and you are not clear exactly what you're trying to do. You can extract any bits from an array without harming the source: op <= ip(7 downto 4);