Hi Glenn:

Thanks for your help. The only thing I am surprised is I could read the 
snap_ram out by specifying the offset.

Cheers

Wan

________________________________
From: G Jones [mailto:glenn.calt...@gmail.com]
Sent: Wednesday, 27 May 2009 11:31 AM
To: Cheng, Wan (ATNF, Marsfield)
Cc: casper@lists.berkeley.edu
Subject: Re: [casper] FW: How to use snap?

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, <wan.ch...@csiro.au> 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: 
'casper-boun...@lists.berkeley.edu<mailto:casper-boun...@lists.berkeley.edu>'
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: 
'casper-boun...@lists.berkeley.edu<mailto:casper-boun...@lists.berkeley.edu>'
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