03-19-2009 08:17 AM
I use a ROM block, with initial value vector sin(pi(0:1799)/1800). The block works, but the output is equal for several consecutive positions, The output have only four significative values. For example if the sin in 0.000568974 the output in 0.0005690, if sin is 0.2546871 output is 0.2547.
Can I to configure the block output with a output with a fixed number of decimals?
I'm sorry for my english.
03-19-2009 10:11 AM
The ROMs store bits.
It is up to you to decide what those bits represent. You can certainly store fixed-point representations of fractional numbers in the ROM but you need to manage the binary point yourself.
08-03-2009 12:12 PM
I don't know your application, but can I point you at the coregen ,
Not least of which, it only stores the first quadrant of the sin, all the other three quadrants are generated by reflection and inversion.
there is also the cordic and DDS functions that might be of use.