Re: [casper] SNAP Tutorial 3

2023-06-05 Thread Jason Gallicchio
Does anybody have a snap_tut_spec.fpg built with mlib_devel branch m2021a that works with casperfpga branch py38-dev, and passes the rampTest calibration procedure? I'm still having issues. If I use the older branch py38, and the example .fpg file included in tutorials_devel at

Re: [casper] SNAP Tutorial 3

2023-05-15 Thread Jonathon Kocz
> > Wei Liu's code helped because it gave me the idea to call rampTest() > first. Is rampTest() the only "calibration" that Wei Liu's code is > doing? rampTest() calls alignLineClock() and alignFrameClock(). Is this all > that you mean by "calibration"? Not some fine-tuning or balancing of gains >

Re: [casper] SNAP Tutorial 3

2023-05-14 Thread Jason Gallicchio
Thanks. I figured it out enough to move on. The following initialization code works, but if I switch the order of the last two lines (rampTest and selectInput), I basically the bad pattern of near-zero values that I originally emailed about: adc = casperfpga.snapadc.SnapAdc(fpga, num_chans=1,

Re: [casper] SNAP Tutorial 3

2023-05-12 Thread Jonathon Kocz
Jason, I think the data problem is with the ADC calibration. - And I agree, the inconsistent renames were hugely frustrating. Sorry you've hit these errors. The original SNAP calibration routine did not work with python3 and needed to be rewritten entirely. It was left in a broken state for a

Re: [casper] snap tutorial 3

2021-04-09 Thread Jack Hickish
On Fri, 9 Apr 2021 at 17:59, Guillermo Gancio wrote: > Hi Jack, > > Excellent! yes, with that I can read all the data with casperfpfa > 1024*8, and I can see a "proper" spectrum, but other issue appear > (that I didn't notice before) while configuring the synthesizer with > >

Re: [casper] snap tutorial 3

2021-04-09 Thread Guillermo Gancio
Hi Jack, Excellent! yes, with that I can read all the data with casperfpfa 1024*8, and I can see a "proper" spectrum, but other issue appear (that I didn't notice before) while configuring the synthesizer with adc.init(samplingRate=800, numChannel=1) it takes more than 20 secs, and on the

Re: [casper] snap tutorial 3

2021-04-09 Thread Jack Hickish
Hi Guillermo, Interesting. So, if I understood your last few emails, you can read the whole bram fine if you do so one word at a time. But if you read 512 bytes or more things break. The answer is somewhere in bulk_read in spifpga_user.c, I think. But I wonder, if you change MAX_BURST_SIZE

Re: [casper] snap tutorial 3

2021-04-09 Thread Guillermo Gancio
Hi Jack, I have been doing more tests, and I notice the following on the raspberry pi tcpborphserver3 Log When I do Casperfpga -> fpga.read('even',512,0) on the Rpi tcpb3 log I got: data added is 522, needed at least 10 + 513 Now if I do, fpga.read('even',1024*8,0), or any number of bytes

Re: [casper] snap tutorial 3

2021-04-07 Thread Guillermo Gancio
Hi, I'm using the prebuild fpg and a build by me fpg, both with the same result. I did try as you mention to see how much can I read with CasperFpga.read_uint increasing the offset and I can read up to 2048 values before the error appear, I think that's ok, as the u_int read 32 bits, and I have

Re: [casper] snap tutorial 3

2021-04-07 Thread Jack Hickish
On Wed, 7 Apr 2021, 2:57 pm Guillermo Gancio, wrote: > Hi, > > I'm using the tutorials from > https://github.com/casper-astro/tutorials_devel/tree/master/snap/tut_spec > I just clone them and I got the same result, could be an issue with > the katcp installation on the snap-raspberry? > You're

Re: [casper] snap tutorial 3

2021-04-07 Thread Guillermo Gancio
Hi, I'm using the tutorials from https://github.com/casper-astro/tutorials_devel/tree/master/snap/tut_spec I just clone them and I got the same result, could be an issue with the katcp installation on the snap-raspberry? I'm also checking the casperfpga installation... Cheers. El miƩ, 7

Re: [casper] snap tutorial 3

2021-04-07 Thread Jack Hickish
Hi Guillermo, If the values are 64 bits in the model, it is suspicious that the reads are 1024*4 Bytes. I notice that in the latest tutorials_devel the reads are 1024*8 bytes (

Re: [casper] snap tutorial 3

2021-04-07 Thread Guillermo Gancio
Hi Jack, What I understand from the tutorial, and correct me if I'm wrong, is: Size of PFB and FFT, 2^12 i.e Re+Im 4096 channels, that's 2048 frequency channels after obtaining power values from the complex values. Those 2048 channels end up in two registers 'even' and 'odd' of 2^10 i.e. 1024

Re: [casper] snap tutorial 3

2021-04-06 Thread Jack Hickish
Hi Guillermo, How many channels is that tutorial supposed to generate? It looks like the RAM is smaller than expected by the software. Is it possible that each even/odd RAM is supposed to be 512*4 (i.e., 512 words, each 32-bits wide) for 1024 channels total? Cheers Jack On Mon, 5 Apr 2021 at

[casper] snap tutorial 3

2021-04-05 Thread Guillermo Gancio
Hi Casperities (?) I'm going thru the tutorial 3 on a snap board, and I have some issue/error while reading the 'odd' and 'even' register, when reading with -> a_0=struct.unpack('>1024l',fpga.read('even',1024*4,0)) I end up with the error -> Request: ?read odd 0 4096 -> Reply: !read fail but if

Re: [casper] SNAP - Tutorial 3 - KatcpRequestFail at adc.init()

2019-02-19 Thread Jack Hickish
Ace. Glad you got sorted. Jack On Tue, 19 Feb 2019 at 09:43, Brad Kahn wrote: > > *** > *** SOLVED*** > *** > > Hi jack, > > Thanks for all the troubleshooting tips. Upon further investigation, we > noticed that the RPi was displaying under-voltage errors

Re: [casper] SNAP - Tutorial 3 - KatcpRequestFail at adc.init()

2019-02-17 Thread Jack Hickish
Hi Brad, On Fri, 15 Feb 2019 at 10:32, Brad Kahn wrote: > Hi All, > > New to the Casper toolflow and hardware so please bear with us. > We are trying to get up and running with the SNAP board by going through > the tutorials from the 2018 workshop >

[casper] SNAP - Tutorial 3 - KatcpRequestFail at adc.init()

2019-02-15 Thread Brad Kahn
Hi All, New to the Casper toolflow and hardware so please bear with us. We are trying to get up and running with the SNAP board by going through the tutorials from the 2018 workshop . We can compile and run tutorial 1

Re: [casper] SNAP Tutorial 3

2019-01-20 Thread James Smith
Hello David, A little late to the party but I thought I'd throw in 2c from our perspective. The other thing we usually try to do with ADCs (this was an issue on the ROACH1s) is to put in a bit of white noise with whatever test signal we were using (sine wave usually). When you get actual sky,

Re: [casper] SNAP Tutorial 3

2019-01-18 Thread David Marsh
Thank you Dan! Using the adc snapshot, I saw that with no input the adc was toggling between -1 and 0. This was the cause of the spikes in the spectrum. I also looked at the adc samples with a sine wave as the input and everything looked as expected as you described. Thanks, David On Tue, Jan

Re: [casper] SNAP Tutorial 3

2019-01-15 Thread Dan Werthimer
hi david, when you have no signal going into an adc, it will typically chatter between two values, around -1, 0 and +1, and you'll see a lot of RFI and interleave spurs, so the spectrum you sent around doesn't surprise me, but if you put in a sine wave that is much larger than the ADC chatter,

[casper] SNAP Tutorial 3

2019-01-15 Thread David Marsh
Hi all, Sorry if this has already been explained/solved. I programmed Tutorial 3 onto a SNAP board and noticed some unexpected spikes in the spectrum. I have set up the hardware as explained in the python script with a 10 MHz, 8dBm reference going into the SYNTH_OSC SMA (3rd SMA from the left).