Truncation of LSB without changing the value of MSB in VHDL

Status
Not open for further replies.

joice sar

Newbie level 4
Joined
Jan 9, 2013
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
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:

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);
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…