hi wan,

sync should be zero on every clock except
it should go high for one clock every N cycles,
where N is in henry chen's memo on sync pulses.

for example simulink spectrometer designs and
examples on how to use sync pulse,
see design gallery at:

http://casper.berkeley.edu/design_gallery.php

also, see spectrometer design in video lecture
by siemion and wagner, saturday lecture 2, at
http://casper.berkeley.edu/vid_lectures.php


best wishes,

dan

[email protected] wrote:
Hi Andrew:
Another strange thing is I still get the output no matter I set Sync to "0" or "1". I think Sync could be considered as a sync reset signal. I should not get anything out if I fix the sync to "1". Wan

------------------------------------------------------------------------
*From:* Andrew Martens [mailto:[email protected]]
*Sent:* Wednesday, 5 November 2008 7:56 PM
*To:* Cheng, Wan (ATNF, Marsfield)
*Cc:* [email protected]
*Subject:* Re: [casper] Casper library basic setup

Hi Wan

Also remember that you have a PFB so (from the memo) you should remember to include the number of taps in your calculation.

e.g 2 order-2 reorder blocks, order-9 unscrambler, 4 input, 2048 channels, 2 tap PFB

min sync = 2x(2x9x2048/4) = 9216x2

Good luck
Andrew

2008/11/5 <[email protected]>

    Hi Andrew:
Thanks for your help. According the sync_memo: My example is: 2 order-2 reorder blocks, order-9 unscrambler, 4
    input, 2048 channels.
minimum sync period = 2*9*2048/4 = 9216. And I set the counter to 9215. I guess the sync period is all right. Wan

    ------------------------------------------------------------------------
    *From:* Andrew Martens [mailto:[email protected]
    <mailto:[email protected]>]
    *Sent:* Tuesday, 4 November 2008 6:07 PM
    *To:* Cheng, Wan (ATNF, Marsfield)
    *Cc:* [email protected] <mailto:[email protected]>
    *Subject:* Re: [casper] Casper library basic setup

    Hi Wan

    I had a look at your design and noticed the following;

    * The output of the FFT is complex data. You need to convert this
    into real and imaginary parts if it is to make sense. Use a c_to_ri
    from the Misc section of the library.
    * You need to put "Gateway Out" blocks on all signals from Xilinx
    blocks that go to 'normal' Simulink blocks. This means that all
    inputs to Scope blocks from System Generator blocks need to go
    through a "Gateway Out" block.
    * Please also re-read the memo Henry suggested on the use of syncs
    in the CASPER library. Your sync period is too small relative to the
    size of your FFT and PFB.
    * Also note that the output sync from the FFT will show you where
    your spectrum begins so you may want to look at that with the scope
    you use to look at the FFT data too.

    Hope this helps.

    Cheers
    Andrew


    2008/11/4 <[email protected]>

        Hi all:
I build a very basic module with PFB and FFT. But the output
        looks not right. Anybody has anyidea? What's wrong with it?
        The attached is the mdl file.
Thanks. Wan




Reply via email to