VHDLStarter
Newbie level 6
I apologize for making another thread so soon, but I could use some help on another topic. From my understanding in order to represent real numbers you have to use floating point or fixed point numbers and most implementations use the IEEE 754 standard. So, my question are as follows:
1. What libraries support a complete implementation of floating point or fixed point numbers. Would these libraries suffice? **broken link removed**
2. I am using the program ModelSim how would I import these libraries and are they compatible?
3. If I knew my number would be a set length (for example 99.999) would I use fixed point or floating point (I'm guessing fixed point).
4. What would be one way to have a number in a text document. Say .1 is written, how would I convert that to a floating point representation do some arithmetic (division, add, subtract, multiply, etc) and then return the result.
For example, say I have .44 in the text document, read it in and I multiply that real number by 2. I get .88, which I then write to a text document as the output.
Any help on this matter is greatly appreciated. I could really use it. Just to be clear the goal of what I am trying to accomplish: I have a real number in a text document, read it in, do some arithmetic, and output it to another text document. If anyone one could answer one of the above question it would be very helpful. Thank you.
1. What libraries support a complete implementation of floating point or fixed point numbers. Would these libraries suffice? **broken link removed**
2. I am using the program ModelSim how would I import these libraries and are they compatible?
3. If I knew my number would be a set length (for example 99.999) would I use fixed point or floating point (I'm guessing fixed point).
4. What would be one way to have a number in a text document. Say .1 is written, how would I convert that to a floating point representation do some arithmetic (division, add, subtract, multiply, etc) and then return the result.
For example, say I have .44 in the text document, read it in and I multiply that real number by 2. I get .88, which I then write to a text document as the output.
Any help on this matter is greatly appreciated. I could really use it. Just to be clear the goal of what I am trying to accomplish: I have a real number in a text document, read it in, do some arithmetic, and output it to another text document. If anyone one could answer one of the above question it would be very helpful. Thank you.