Hi Andrea,

Good to hear from you again. I think I can answer some of your questions
and the rest Jason Manley can answer - he is only back on Wednesday though.
Please see my comments in red below.

I think it is great that you are using the SKARAB hardware platform. I also
think that this email should be placed on the CASPER email list, so that
everyone has access to it. This will prevent us having to send the same
emails out for support each time. I think all future correspondence should
be via the email CASPER list, thanks.

Kind regards,

Adam Isaacson
South African Radio Astronomy Observatory (SARAO)
Hardware Manager
Cell: (+27) 825639602
Tel:  (+27) 215067300
email: [email protected]


On Mon, Oct 15, 2018 at 10:44 AM, Melis, Andrea <[email protected]>
wrote:

> Hi Adam,
>
> How are you doing?
>
> We had a chat in China a few weeks ago during the HMC tutorial, I am going
> to get a SKARAB board with 1 ADC, 1 QSFP+ and 2 HMC within this year for
> trying to implement high-performance spectrometers for the Sardinia Radio
> Telescope.
>
> I have got a few questions, can you please help me in this?
>
> 1) I would like to implement a first FFT (512 overlapped channels), send
> the data to a corner-turner implemented in the HMC and read-back one
> channel at time by performing another 512 channels FFT in order to achieve
> a 250k channels spectrometer. I have read this Jason Manley presentation (
> http://www.tauceti.caltech.edu/casper-workshop-2017/slides/15_manley.pdf)
> and slide 18 says that the Corner-Turner (matrix transpose) is available as
> a Higher-level HMC block in DSP library, however I did not found it, can
> you point out me where I can find it?
>

AI: Yes, we definitely have an implementation and it is open source. You
will find all F-engine, X-engine and other higher level functionality in
https://github.com/ska-sa/mkat_fpga. I would suggest you discuss with Jason
Manley on how to run these slx models as they require a setup before you
can use them. He will also direct you how best to use the HMC corner
turning.


> 2) Do you know where I can find the ADC yellow block?
>

AI: Yes, you can find it in github under
https://github.com/ska-sa/mlib_devel/ (devel branch). The ADC model slx
file is available under
mlib_devel/jasper_library/test_models/test_skarab_adc.slx. You will find
the python and matlab test scripts under: mlib_devel/jasper_library/test_mod
els/test_models/scripts/ (adc_test.py for capturing the ADC data and
plot_adc.m for displaying). There is a task to move these functions to
casperfpga.

>
> 3) Are the FPGA designs used for Meerkat available? Perhaps I can re-use
> part of those for our designs, please let me know whether or not they are
> open source and where I find them.
>

AI: You will find all F-engine, X-engine and other higher level
functionality in https://github.com/ska-sa/mkat_fpga. I believe devel
branch. I would suggest you discuss with Jason Manley on how to run these
slx models as they require a setup before you can use them. He will also
direct you how best to use the HMC corner turning.

>
> 4) I met some issues compiling whatever design, I have launched ./startsg
> startsg.local.example for starting Matlab and I opened up the
> skarab_tut_intro design. When I launch the jasper command I get an error:
>

> raise RepresenterError("cannot represent an object", data)
> yaml.representer.RepresenterError: ('cannot represent an object',
> <castro.Castro object at 0x7fbf2cc709d0>)
>
> I have attached the log messagnes in the log1 file. Moreover, if I try to
> launch the last command (python /home/andrea/SKARAB/tutorials_
> devel/vivado/mlib_devel//jasper_library/exec_flow.py -m
> /home/andrea/SKARAB/tutorials_devel/vivado/skarab/tut_intro/skarab_tut_intro.slx
> --middleware --backend --software) from a shell, I get the messages I
> copied in the attached log2 file.
>

AI: In order to start Matlab ./startsg should be fine unless you have many
startsg.local.example files. If you run "jasper_frontend" instead of
"jasper" then you will need to type "source startsg startsg.local.example"
in the command prompt of the terminal before running "python
/home/andrea/SKARAB/tutorials_devel/vivado/mlib_devel//jasper_library/exec_flow.py
-m 
/home/andrea/SKARAB/tutorials_devel/vivado/skarab/tut_intro/skarab_tut_intro.slx
--middleware --backend --software". I don't think this is your problem
though.

Interesting. It seems like you have the fortybe yellow block in your
tutorial, which is correct. It seems to be a python issue. What version of
python have you got installed? It won't work with Python 3. I use 2.7.
Okay, maybe send me your versions of Matlab, Vivado, python and OS? It
should be pointed out that this is all very well documented using
readthedocs as well. Refer to:
https://casper-toolflow.readthedocs.io/en/latest/
<https://casper-toolflow.readthedocs.io/en/latest/>. I remember you were
also able to do these tutorials during the workshop in China, but I assume
you are now setting it up on your own machine? What version of mlib_devel
and tutorials_devel repos are you using? I assume you are using the
"workshop2018" branch for tutorials_devel and that you properly checked out
the mlib_devel git submodule by running "git submodule init", "git
submodule update"? Maybe send me your startsg.local.example file as well
and your slx file, thanks.


>
>
> I thank you in advance Adam!
>
> Regards,
>
> Andrea
>

-- 
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].

Reply via email to