Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Truncation of LSB without changing the value of MSB in VHDL

Status
Not open for further replies.

joice sar

Newbie level 4
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top