Closed VincentChen1017 closed 8 months ago
Hello, I ran your example but I did not get any errors using 'fxp-s65/46' or 'fxp-s32/23'
This message AttributeError: 'complex' object has no attribute 'dtype' is confusing, it is like a python complex variable wanted to be changed instead a Fxp or Numpy array. Could you copy/paste the whole error report?
Might you also tell the OS and fxpmath version are you using?
Hello,
when I ran code like this, it's OK.
temp = Fxp(temp, dtype='fxp-s65/23')
but I change n_frac to 46 like:
temp = Fxp(temp, dtype='fxp-s65/46')
It's error report in the following:
AttributeError Traceback (most recent call last)
Hi, I'm trying to use fixed point to simulate the FFT and generate the golden pattern for hardware design.
I set my input signal to be 'fxp-s32/23', and to avoid the possible overflow situation, so I try to large the temp variable's size.
When I set the temp variable to be 'fxp-s65/46', it occur ERROR message like : AttributeError: 'complex' object has no attribute 'dtype'.
But if I test the complex operation with 'fxp-s65/46 using other simple equation, or change the temp variable in my fft to be 'fxp-s65/23' (or reduce the n_frac part lower than 36), then it will work without error.
I'm new to the fxpmath library, I tried hard to solve it but still not work :( Following is my code, is there any wrong operation with the "Fxp" ? Thanks !