Hi Mark
The package you're looking for is called casperfpga.
https://github.com/ska-sa/casperfpga Many people were only using corr for the
FPGA interaction, so we split this out into separate packages, casperfgpa and
corr2. Development on the old corr package has stopped. casperfpga is
compatible with ROACH2 and SKARAB, using different classes because the
protocols differ:
myroach2 = casperfpga.KatcpFpga("hostname_or_ip_address")
or,
myskarab = casperfpga.SkarabFpga('hostname_or_ip_address')
After that, interacting with the two should be the same, but is a bit different
from corr...
Firstly, you should consider using the new .fpg files, rather than the .bof
files. There's a lot more metadata in the fpg files that casperfpga supports,
including a nifty feature of bit-wise addressing of registers and automatic
unpacking of snapshot blocks.
to program: myskarab.upload_to_ram_and_program('myfile.fpg')
to read registers:
In [6]: f.registers.status_barrel.read()
Out[6]:
{'data': {'dv_cnt': 0, 'eof_cnt': 0, 'hdrfix_cnt': 0},
'timestamp': 1497249196.65738}
or, to read a snapshot block:
f.snapshots.snap_cd0_ss.read()
You can also pass a number of parameters to control them:
f.snapshots.snap_cd0_ss.read(man_trig=True, man_valid=True, read_nowait=True)
If you just want a quick 'n dirty printout of all the values in there to your
ipython session, consider f.snapshots.snap_acc.print_snap() instead of read().
If you don't like the object-oriented approach though, the old read and write
functions are still there in casperfpga, so you can use it in much the same way
as the old corr.
Not everything is fully implemented for SKARAB yet. Shared BRAM writing is not
currently working, and you can only use the 1G or first 40G port for
controlling the board (in fact, atm, I think you *have* to have one 40G port in
the design for it to work properly, since this pulls-in the microblaze etc).
It's a work in progress!
Happy to chat in telecon to discuss details.
Jason
On 09 Jun 2017, at 22:18, Peryer, Mark A. <[email protected]> wrote:
> Hello,
>
> I am currently trying to find a way to load the .bof file generated from
> JASPER onto a SKARAB. Does a library such as corr, that is used for the
> ROACH2, exist for the SKARAB, or is there some other method that needs to be
> used?
>
> Thanks,
>
> Mark
>
> --
> You received this message because you are subscribed to the Google Groups
> "[email protected]" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
--
You received this message because you are subscribed to the Google Groups
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].