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.

convert 2d array to 1d in vhdl

Status
Not open for further replies.

harian

Junior Member level 1
Joined
Jan 13, 2015
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
137
i am thinking,wheather it is possible in vhdl to convert 2D array in 1D array.
and secondly ,,how one can convert fixed point real number in floating point real number.. is it possible with ieee.numeric_std.all and ieee_std_logic_unsigned.all
thanks
 

sharath666

Advanced Member level 2
Joined
Apr 4, 2011
Messages
552
Helped
126
Reputation
252
Reaction score
124
Trophy points
1,323
Location
India
Activity points
3,830
Define a 2D array and a 1D array. Use a for loop and assign the elements of the 2D array to the 1D array.
 

TrickyDicky

Advanced Member level 5
Joined
Jun 7, 2010
Messages
7,065
Helped
2,077
Reputation
4,171
Reaction score
2,030
Trophy points
1,393
Activity points
39,118
i am thinking,wheather it is possible in vhdl to convert 2D array in 1D array.
and secondly ,,how one can convert fixed point real number in floating point real number.. is it possible with ieee.numeric_std.all and ieee_std_logic_unsigned.all
thanks

You can easily do it in a loop - probably in some handy conversion function.

As for fixed point - there is no definition for fixed point real number. You can use the unsigned type to represent fixed point. As for floating point, there is no standard conversion from fixed point - you will need to use a vendor IP core for this.
 

K-J

Advanced Member level 2
Joined
Jan 26, 2012
Messages
658
Helped
308
Reputation
620
Reaction score
301
Trophy points
1,343
Activity points
7,053
how one can convert fixed point real number in floating point real number.. is it possible with ieee.numeric_std.all and ieee_std_logic_unsigned.all
thanks
Not directly with ieee.numeric_std.all or ieee_std_logic_unsigned. Use ieee.fixed_pkg for all of your fixed point work. If you use numeric_std.all or std_logic_unsigned, you'll just be re-creating all of the work that is already done for you in fixed_pkg.

Kevin Jennings
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top