Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

converting sfixed to std_logic_vector

Status
Not open for further replies.

214

Junior Member level 2
Joined
Feb 22, 2016
Messages
21
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
247
i want to convert sfixed number (12 down to -8) to std_logic_vector....

what could be the possible command for use ?
 

TrickyDicky

Advanced Member level 5
Joined
Jun 7, 2010
Messages
7,044
Helped
2,067
Reputation
4,151
Reaction score
2,019
Trophy points
1,393
Activity points
38,813
there is a to_slv function:

Code:
signal my_sfixed : sfixed(12 downto -8);
signal my_slv : std_logic_vector(20 downto 0);

my_slv <= to_slv(my_sfixed);
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top