OpenCores
URL https://opencores.org/ocsvn/dblclockfft/dblclockfft/trunk

Subversion Repositories dblclockfft

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /dblclockfft
    from Rev 19 to Rev 20
    Reverse comparison

Rev 19 → Rev 20

/trunk/sw/fftgen.cpp
1044,8 → 1044,8
long long ic, is, vl;
 
c = cos(W); s = sin(W);
ic = (long long)((double)((1ll<<(cbits-2)) * c + 0.5));
is = (long long)((double)((1ll<<(cbits-2)) * s + 0.5));
ic = (long long)round((1ll<<(cbits-2)) * c);
is = (long long)round((1ll<<(cbits-2)) * s);
vl = (ic & (~(-1ll << (cbits))));
vl <<= (cbits);
vl |= (is & (~(-1ll << (cbits))));
/trunk/sw/Makefile
66,7 → 66,7
#
.PHONY: fft
fft: fftgen
./fftgen -f 2048 -n 16 -x 3
./fftgen -f 2048 -n 16
cd $(CORED)/; verilator -cc fftmain.v
cd $(OBJDR); make -f Vfftmain.mk
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.