Wan,
The simplest operation of the snap block is as follows:
Write 0 to the snap_ctrl file/register
Write 7 to the snap_ctrl file/register to force enable, trigger, and write
enable to be true (look under the snap mask to see how it works)
Read snap_addr and wait for it to be snaplength - 1 (2047 by default).
Usually this is essentially instantaneous, so no need to actually check
unless you want to be sure the snap captured something.
Read the snap_bram file, which should be snaplength 4-byte words (2048x4
bytes).
Glenn

On Tue, May 26, 2009 at 4:47 PM, <[email protected]> wrote:

>  Hi Henry:
>
> Could you please give me some idea about snap block?
>
> Thanks
>
> Wan
>
>  ------------------------------
> *From:* Cheng, Wan (ATNF, Marsfield)
> *Sent:* Tuesday, 26 May 2009 4:44 PM
> *To:* '[email protected]'
> *Subject:* FW: How to use snap?
>
>  Any idea? How can I access the whole block ram of snap from the CPU?
>
> Thanks
>
> Wan
>
>  ------------------------------
> *From:* Cheng, Wan (ATNF, Marsfield)
> *Sent:* Monday, 25 May 2009 5:10 PM
> *To:* '[email protected]'
> *Subject:* How to use snap?
>
>  Hi:
>
> I find the snap_addr of snap block is output only. Is there anyway, I can
> read out all the data from the snap block memory. Is there anyway I can
> specify the read address?
>
> Thanks
>
> Wan
>

Reply via email to