Hi Glenn:

Thanks for your quick answer. Now I could read ADC data from Roach through the 
snap_bram. But unfortunately, it seems that the data I read is not right.

I am using the tcpborphserver at port 7147.The command is wordread. Do you have 
some experience with Roach?

Thanks

Wan

________________________________
From: G Jones [mailto:[email protected]]
Sent: Tuesday, 2 June 2009 10:07 AM
To: Cheng, Wan (ATNF, Marsfield)
Cc: [email protected]
Subject: Re: [casper] FW: How to use snap?

Wan,
I think that depends on how your programming language of choice treats the 
file. For example, in C if you just open the file, you can read out one byte at 
a time, or you could read 4 bytes at a time and cast it as a 32 bit integer.
Glenn

On Mon, Jun 1, 2009 at 5:05 PM, <[email protected]> wrote:
HI Glenn:

Thanks for your great help. By the way, what's the offset when I read from 
snap_bram? 1 or 4?

Thanks

Wan

________________________________
From: G Jones [mailto:[email protected]<mailto:[email protected]>]
Sent: Wednesday, 27 May 2009 11:31 AM
To: Cheng, Wan (ATNF, Marsfield)
Cc: [email protected]<mailto:[email protected]>
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, <[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]<mailto:[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]<mailto:[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