Hi, Charles,

The first thing to do after updating mlib_devel is to run 
"update_casper_blocks(bdroot)" at the Matlab prompt with your model open (so 
that "bdroot" returns your model name).  That replaces all of the casper blocks 
with new version from the new mlib_devel.  This usually works OK, but if the 
mlib_devel versions are too different then it might not.

Another type of problem that can happen is sometimes the latency through CASPER 
blocks changes between different mlib_devel versions.  This is rare, but it has 
happened.  If parts of your design expect other parts to have a certain latency 
and then those other parts end up with a different latency, then all kind of 
things can go wrong.

If you suspect that the FFT is broken, the best thing to do would be to compile 
a small test model that has just the FFT and some gateway in/out blocks.  Feed 
in a sync pulse and a known input and then see if you get the expected output.  
For FFT testing, I like to feed in all zeros except for a single sample where I 
feed in 0.5 amplitude impulse.  The output of the FFT should be a nice smooth 
complex sinusoid whose frequency depends on how far the input impulse is from 
the sync.  Putting it two samples after the sync should produce a half cycle 
(for real input FFTs) of a sinusoid.  Putting the impulse N samples after the 
sync should produce (N-1)/2 cycles of a complex sinusoid on the (real input) 
FFT output.  For complex input FFTs, putting the impulse N samples after the 
sync pulse should produce (N-1) cycles of a complex sinusoid.

Which version of mlib_devel are you using now?

Hope this helps,
Dave

On Nov 12, 2014, at 12:29 AM, Charles Copley wrote:

> Hi all,
> 
> I've recently (after a long CASPER hiatus) tried to recompile a design from 
> 2012 using the latest mlib_devel (from casper-astro git repo), Xilinx 14.7 
> and Matlab 2012b.
> 
> I find I get very strange results from the PFB/ wideband real FFT.  I would 
> describe this vaguely as a lot of zeros, with a very large value every 4 
> channels (FFT size=9). An identical design compiled in 2012 works fine.
> 
> For a sanity check, I have compiled the tut3 wideband spectrometer (using 
> KAT-ADC rather than iADC) and find similar issues (although here the pattern 
> is different likely due to the larger FFT size=12?).  A bof file from some 
> time ago (also using a KAT-ADC - thanks Jack!) works fine using an identical 
> initialization script.
> 
> Pretty scruffy power spectrum plots of the old (working) tut3 compile with a 
> tone injected (using valon synth 2 at 100MHz) are here : http://goo.gl/moqmcs 
> while the new (non-working) compile produces a power spectrum shown here : 
> http://goo.gl/4m24p5
> 
> I have replaced the PFB/FFTs using the latest versions (with appropriate 
> instantiation), and have updated all the register yellow blocks.
> 
> Anyone have any suggestions as to what else could be wrong?
> 
> Many thanks!!
> 
> 
>  
> Charles Copley
> 
> Cell: +27 (0) 84 430 1160
>  ---------------------------------------------------------------------------
>  


Reply via email to