- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI all
I have a matlab code which am to convert to vhdl. 1. How to deal with complex numbers in vhdl. I have heard that math_complex package cannot be synthesized. I have a input excel file which has complex numbers. how am i supposed to retrieve it into real and imaginary parts? 2. Can i convert complex data into a binary data? I want to give the input in binary so i can get rid of this problems Please help Thank YouLink Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Complex number is still a number, so separate real and imaginary parts and use them as simple numbers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i was asking the same..how to seperate imaginary from real..In c we could have done that by saving the imaginary part when it encounters i(imaginary ) of a complex no. as such..how do we do that here?
Please excuse me if am wrong- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just do the same thing as in C. Have one signal for the real part and another one for the imaginary part.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
wow complex number are great!

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page