- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using MAX10 FPGA for closed-loop control of the DC-DC Converter with PI implemented in MAX10 using VHDL. I wanted to know how to represent floating-point(decimal for e.g. 1.23, 0.31) values in FPGA using VHDL for the parameters of PI Controller.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Kousik,
You can refer to FP mega function as link below.
Hopefully it helps
https://www.intel.cn/content/dam/altera-www/global/zh_CN/pdfs/literature/ug/ug_altfp_mfug.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I doubt that's a good idea to use actual floating point numbers for your PI controller. Quartus floating point IP (FP mega function) is useful, if your application needs to expose a floating point data interface to communication partners. To represent fractional decimal numbers like 1.23, 0.31, almost every FPGA application uses integer numbers with an implied power of 2 scaling factor. You use VHDL fixed_pkg or own methods with similar functionality.
Frank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you FvM and that make sense, I thought he was looking for any IP that need to use floating function. If that's so, Kousik, you can use VHDL predefined package (use ieee.float_pkg.all), may refer to link below for details
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Kousik,
Let me know if there is any update
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We do not receive any response from you to the previous reply that I have provided, thus I will put this case to close pending. Please post a response in the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you with your follow-up questions.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page