Re: [casper] python version for casperfpga

2021-04-14 Thread Adam Isaacson
Hi Jeff and everyone,

While we are hacking Jeff's thread (apologies, but this will be useful
info), please note that our toolflow only supports the following Red Pitaya
devices: STEMlab125-10 (10 bit ADC and DAC) and STEMlab125-14 (14 bit ADC
and DAC). There are another three Red Pitaya boards that we don't support
yet - check out:

1) CASPER Hardware:
https://github.com/casper-astro/casper-hardware#casper-hardware
2) Red Pitaya Hardware comparison:
https://redpitaya.readthedocs.io/en/latest/developerGuide/125-10/vs.html

We encourage anyone who would like to add these boards to the toolflow and
we are happy to support you in the process. I highly recommend attending
the Hardware Porting Workshops that explain how to use the toolflow for
development and target new hardware. The next Hardware Porting Workshop is
likely to be next year, but an email will be sent out with these details
once defined.

Just a reminder of our CASPER conference that is taking place the week of
the 17th May via Zoom and is completely free! If interested please check
out:

https://casper.berkeley.edu/index.php/meetings-workshops/

Sorry for the additional advertising! ;)

Kind regards,

Adam Isaacson
South African Radio Astronomy Observatory (SARAO)
Hardware Manager
Cell: (+27) 825639602
Tel:  (+27) 215067300
email: aisaac...@ska.ac.za



On Wed, Apr 14, 2021 at 8:02 AM Morag Brown  wrote:

> Hi all,
>
> To add to Amish's info, for ease of access, the design files for said
> projects can be found here
> .
>
> Morag
>
> (Sorry Jeffrey!)
>
> On Wed, Apr 14, 2021 at 7:55 AM Amish Patel  wrote:
>
>> Xin chào, Hien,
>>
>> CASPER's Tutorials
>>  have
>> three small projects that use the Red Pitaya with the CASPER toolflow.
>> First, you will need to do some general setup
>> 
>>  for
>> the Red Pitaya, and (if necessary) install casperfpga on a machine you plan
>> on using to interface with it.
>>
>> Please do let us know if this is what you are looking for, and/or if you
>> have any questions once you're working through it.
>>
>> Regards
>>
>> Amish Patel
>> SARAO
>>
>> (Apologies to Jeffrey for hijacking your thread!)
>>
>>
>> On Wed, 14 Apr 2021 at 04:20, Hien Vo Bich  wrote:
>>
>>> Greeting
>>> Can any one point out the link to some small projects that use the Red
>>> Pitya board with the CASPER flow ?
>>> Regards
>>> Hien Vo
>>> Vietnamese German University
>>>
>>> On Tue, Apr 13, 2021 at 9:59 PM Adam Isaacson 
>>> wrote:
>>>
 Hi Jeff,

 The toolflow is normally used with a Python virtual environment setup
 with Python 3. The casperfpga tool (provides comms to the board) uses just
 python 2.7. This is the way we use the toolflow and casperpfga at SARAO
 (South African Radio Astronomy Observatory). We support the SKARAB and Red
 Pitaya. There are Python 3 versions for casperfpga, but we haven't really
 tested these on the SKARAB or Red Pitaya.

 I have been using Ubuntu 16.04LTS, but I know this also works on Ubuntu
 18.04LTS. I still need to test my SKARAB on Ubuntu 18.04LTS, which I will
 do in the next couple of weeks.

 Here is some documentation to install the toolflow on your system and
 explains the virtual environment:


 https://casper-toolflow.readthedocs.io/en/latest/src/Installing-the-Toolflow.html

  Here is some documentation to install casperfpga on your system:


 https://casper-toolflow.readthedocs.io/projects/casperfpga/en/latest/How-to-install-casperfpga.html

 Here are the ska-sa (SARAO) repos which has the latest for SKARAB and
 Red Pitaya:

 1) https://github.com/ska-sa/casperfpga/tree/devel (casperfpga)
 2) https://github.com/ska-sa/mlib_devel/tree/devel (toolflow)

 Here are the casper-astro repos, which the majority of the CASPER
 community uses:

 1) https://github.com/casper-astro/mlib_devel - this actually does
 work with the SKARAB and Red Pitaya too. You still need a Python 3 virtual
 environment if your default python package is 2.7.
 2) https://github.com/casper-astro/casperfpga - this should work with
 SKARAB and Red Pitaya too (Python 2.7)
 3) https://github.com/casper-astro/casperfpga/tree/py3-merge - this
 works with SNAP, but I haven't tested it on SKARAB or the Red Pitaya. It
 may work on the Red Pitaya, but I believe there are still issues with
 SKARAB (Python 3)

 I hope this helps!

 Kind regards,

 Adam Isaacson
 South African Radio Astronomy Observatory (SARAO)
 Hardware Manager
 Cell: (+27) 825639602
 Tel:  (+27) 215067300
 email: aisaac...@ska.ac.za



 On Tue, Apr 13, 2021 at 4:36 PM 'Kobesky, Jeffrey CIV USN NRL (55

RE: [casper] python version for casperfpga

2021-04-14 Thread 'Kobesky, Jeffrey CIV USN NRL (5555) Washington DC (USA)' via casper@lists.berkeley.edu
All good info, please keep hijacking ☺

I do want to add to the original post.  I figured out the original error I got 
was because I used single underscores (casperfpga._version_) instead of double 
underscores (casperfpga.__version__) in ipython.  It’s always the mundane 
details that get me.  But now at least I do understand the Python virtual 
environment which I’ve never used before but seems like a good idea.

Also, Adam, my operating system is Pop OS! 18.04 - which was derived from 
Ubuntu 18.04 - so I’ll report back on the SKARAB/Red Pitaya under that 
operating system.

Thanks again – jeff.

Jeffrey Kobesky
Electronics Engineer
Naval Research Laboratory
O: (202) 404-7109
M: (443) 243-1554

From: Adam Isaacson 
Sent: Wednesday, April 14, 2021 4:23 AM
To: Casper Lists 
Subject: Re: [casper] python version for casperfpga

Hi Jeff and everyone,

While we are hacking Jeff's thread (apologies, but this will be useful info), 
please note that our toolflow only supports the following Red Pitaya devices: 
STEMlab125-10 (10 bit ADC and DAC) and STEMlab125-14 (14 bit ADC and DAC). 
There are another three Red Pitaya boards that we don't support yet - check out:

1) CASPER Hardware: 
https://github.com/casper-astro/casper-hardware#casper-hardware
2) Red Pitaya Hardware comparison: 
https://redpitaya.readthedocs.io/en/latest/developerGuide/125-10/vs.html

We encourage anyone who would like to add these boards to the toolflow and we 
are happy to support you in the process. I highly recommend attending the 
Hardware Porting Workshops that explain how to use the toolflow for development 
and target new hardware. The next Hardware Porting Workshop is likely to be 
next year, but an email will be sent out with these details once defined.

Just a reminder of our CASPER conference that is taking place the week of the 
17th May via Zoom and is completely free! If interested please check out:

https://casper.berkeley.edu/index.php/meetings-workshops/

Sorry for the additional advertising! ;)

Kind regards,

Adam Isaacson
South African Radio Astronomy Observatory (SARAO)
Hardware Manager
Cell: (+27) 825639602
Tel:  (+27) 215067300
email: aisaac...@ska.ac.za






On Wed, Apr 14, 2021 at 8:02 AM Morag Brown 
mailto:mbr...@ska.ac.za>> wrote:
Hi all,

To add to Amish's info, for ease of access, the design files for said projects 
can be found 
here.

Morag

(Sorry Jeffrey!)

On Wed, Apr 14, 2021 at 7:55 AM Amish Patel 
mailto:apa...@ska.ac.za>> wrote:
Xin chào, Hien,

CASPER's 
Tutorials 
have three small projects that use the Red Pitaya with the CASPER toolflow. 
First, you will need to do some general 
setup
 for the Red Pitaya, and (if necessary) install casperfpga on a machine you 
plan on using to interface with it.

Please do let us know if this is what you are looking for, and/or if you have 
any questions once you're working through it.

Regards

Amish Patel
SARAO

(Apologies to Jeffrey for hijacking your thread!)


On Wed, 14 Apr 2021 at 04:20, Hien Vo Bich 
mailto:hien...@vgu.edu.vn>> wrote:
Greeting
Can any one point out the link to some small projects that use the Red Pitya 
board with the CASPER flow ?
Regards
Hien Vo
Vietnamese German University

On Tue, Apr 13, 2021 at 9:59 PM Adam Isaacson 
mailto:aisaac...@ska.ac.za>> wrote:
Hi Jeff,

The toolflow is normally used with a Python virtual environment setup with 
Python 3. The casperfpga tool (provides comms to the board) uses just python 
2.7. This is the way we use the toolflow and casperpfga at SARAO (South African 
Radio Astronomy Observatory). We support the SKARAB and Red Pitaya. There are 
Python 3 versions for casperfpga, but we haven't really tested these on the 
SKARAB or Red Pitaya.

I have been using Ubuntu 16.04LTS, but I know this also works on Ubuntu 
18.04LTS. I still need to test my SKARAB on Ubuntu 18.04LTS, which I will do in 
the next couple of weeks.

Here is some documentation to install the toolflow on your system and explains 
the virtual environment:

https://casper-toolflow.readthedocs.io/en/latest/src/Installing-the-Toolflow.html

 Here is some documentation to install casperfpga on your system:

https://casper-toolflow.readthedocs.io/projects/casperfpga/en/latest/How-to-install-casperfpga.html

Here are the ska-sa (SARAO) repos which has the latest for SKARAB and Red 
Pitaya:

1) https://github.com/ska-sa/casperfpga/tree/devel (casperfpga)
2) https://github.com/ska-sa/mlib_devel/tree/devel (toolflow)

Here are the casper-astro repos, which the majority of the CASPER community 
uses:

1) https://github.com/casper-astro/mlib_devel - this actually does work with 
the SKARAB and Red Pitaya too. You still need a Python 3 virtual environment if 
your default pyt