Re: [myhdl-list] Floating point
Brought to you by:
jandecaluwe
From: Günter D. <dan...@we...> - 2009-02-10 06:47:32
|
Sami Al Dalahmah wrote: > Dear all, > I'm trying to pass a floating point array to intbv() but normally couldn't, > is there any suggestions on how to do it elegantly or should I write a > function for quantization? Hi Sami, An intbv() is a data type related to the int data type in Python. So to assign a whole floating point array might not work that well. Could you explain more in detail what you are trying to do? What would make sense is to convert a floating point array to an intbv array. In that case you would need to scale and round/trunc the floating point values and then convert them to intbv. Cheers, Guenter |