Re: [casper] Problem with 10 GbE communication in ROACH-2

2024-03-01 Thread Jack Hickish
If I had to guess I would say this is another issue with casperfpga version
incompatibility. Did you try using the casperfpga from that tutorials
repository which at least _should_ have been tested with whatever
bitstreams are in there --
https://github.com/casper-astro/casperfpga/tree/a88f9af0b16e6a12fe51884d29c162e76e7c21a6

On Wed, 28 Feb 2024 at 19:17, Sivakumar Sivasankar 
wrote:

> Hi Jack,
>  Thank you so much for your valuable input. Now the core's
> configurations is done after following one of your below instructions
>  gbe_rx.memmap_compliant=True
>  gbe_rx.memmap =
> casperfpga.tengbe.read_memory_map_definition(casperfpga.tengbe.TENGBE_UNIFIED_MMAP_TXT)
>
>   After adding the above lines it has worked. But now I am facing another
> issue with snap captures. I don't know why it is coming. I have attached
> the ss of the error below. Is this error also coming because of the
> casperfpga version? Could you please give any suggestions regarding this
> issue?
> Thank you so much for your valuable time
>
> Sivasankar.S
>
> On Wed, Feb 28, 2024 at 11:45 PM Jack Hickish 
> wrote:
>
>> I'd suggest start by trying the casperfpga which is included as a git
>> submodule in the tutorials repo --
>> https://github.com/casper-astro/casperfpga/tree/a88f9af0b16e6a12fe51884d29c162e76e7c21a6
>>
>> I'm guessing this is substantially older than the one you are using, and
>> may be python2.7 only.
>>
>> As some wild guesses, you could also try manually setting which memory
>> map to use, by adding, after this line
>> 
>>
>> gbe_rx.memmap_compliant=False
>> gbe_rx.memmap =
>> casperfpga.tengbe.read_memory_map_definition(casperfpga.tengbe.TENGBE_MMAP_LEGACY_TXT)
>>
>> If that fails to work, as another stab in the dark, you could try the
>> opposite:
>>
>> gbe_rx.memmap_compliant=True
>> gbe_rx.memmap =
>> casperfpga.tengbe.read_memory_map_definition(casperfpga.tengbe.TENGBE_UNIFIED_MMAP_TXT)
>>
>> Not sure any of this is likely to result in success, but it's the best
>> guess I have!
>>
>> Cheers
>> Jack
>>
>> On Wed, 28 Feb 2024 at 16:17, Sivakumar Sivasankar <
>> [email protected]> wrote:
>>
>>> Hi Jack,
>>>  Thanks for the reply. I am using the below version of casperfpga.
>>>   casperfpga  0.4.4.dev1336+py38.276ee44
>>>
>>> Do I need to change the casperfpga version?
>>>
>>> Sivasankar.S
>>>
>>> On Wed, Feb 28, 2024 at 9:28 PM Jack Hickish 
>>> wrote:
>>>
 I think this might be a mismatch between the Ethernet memory map
 compiled into the firmware vs expected by casperfpga. What version of
 casperfpga are you using?

 Cheers
 Jack

 On Wed, 28 Feb 2024 at 15:25, Sivakumar Sivasankar <
 [email protected]> wrote:

> Dear Caspers,
> I am a research student at FIU, currently working with
> ROACH-2. I have tried the tutorial-1 design and it worked well. Currently,
> I am trying to work with 10 GbE communication links. But I am getting
> errors when I am trying to run the python scripts which were in the
> tutorial_devel directory. I tried to check the loopback test where I have
> connected 2 SFP+ slots in the same ROACH board. Still I am getting the
> below error.
>
> I didn't change the IP and Mac address which were in the python script
> since I thought it doesn't matter for a loopback test. Do I need to
> explicitly define the IP and Mac address?? I am using the bit file and
> python script which are in the below directory.
>
>
> https://github.com/casper-astro/tutorials_devel/tree/main/roach2/tut_tge
>
> Can anyone please help me to debug this issue?
>
> Thanks in advance
>
> Sivasankar.S
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAOQNGP1VrEVMhZB-UzZ%2BkiD9aUdAFsZd9A0wMwEd%3DefRJbUfLA%40mail.gmail.com
> 
> .
>
 --
 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 view this discussion on the web visit
 https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAG1GKSkUMdg18Qq1v3y5%3DnopAXqa7RuaoLVukbpMrDDYN4iALA%40mail.gmail.com
 

Re: [casper] Problem with 10 GbE communication in ROACH-2

2024-02-28 Thread Jack Hickish
I'd suggest start by trying the casperfpga which is included as a git
submodule in the tutorials repo --
https://github.com/casper-astro/casperfpga/tree/a88f9af0b16e6a12fe51884d29c162e76e7c21a6

I'm guessing this is substantially older than the one you are using, and
may be python2.7 only.

As some wild guesses, you could also try manually setting which memory map
to use, by adding, after this line


gbe_rx.memmap_compliant=False
gbe_rx.memmap =
casperfpga.tengbe.read_memory_map_definition(casperfpga.tengbe.TENGBE_MMAP_LEGACY_TXT)

If that fails to work, as another stab in the dark, you could try the
opposite:

gbe_rx.memmap_compliant=True
gbe_rx.memmap =
casperfpga.tengbe.read_memory_map_definition(casperfpga.tengbe.TENGBE_UNIFIED_MMAP_TXT)

Not sure any of this is likely to result in success, but it's the best
guess I have!

Cheers
Jack

On Wed, 28 Feb 2024 at 16:17, Sivakumar Sivasankar 
wrote:

> Hi Jack,
>  Thanks for the reply. I am using the below version of casperfpga.
>   casperfpga  0.4.4.dev1336+py38.276ee44
>
> Do I need to change the casperfpga version?
>
> Sivasankar.S
>
> On Wed, Feb 28, 2024 at 9:28 PM Jack Hickish 
> wrote:
>
>> I think this might be a mismatch between the Ethernet memory map compiled
>> into the firmware vs expected by casperfpga. What version of casperfpga are
>> you using?
>>
>> Cheers
>> Jack
>>
>> On Wed, 28 Feb 2024 at 15:25, Sivakumar Sivasankar <
>> [email protected]> wrote:
>>
>>> Dear Caspers,
>>> I am a research student at FIU, currently working with ROACH-2.
>>> I have tried the tutorial-1 design and it worked well. Currently, I am
>>> trying to work with 10 GbE communication links. But I am getting errors
>>> when I am trying to run the python scripts which were in the tutorial_devel
>>> directory. I tried to check the loopback test where I have connected 2 SFP+
>>> slots in the same ROACH board. Still I am getting the below error.
>>>
>>> I didn't change the IP and Mac address which were in the python script
>>> since I thought it doesn't matter for a loopback test. Do I need to
>>> explicitly define the IP and Mac address?? I am using the bit file and
>>> python script which are in the below directory.
>>>
>>> https://github.com/casper-astro/tutorials_devel/tree/main/roach2/tut_tge
>>>
>>> Can anyone please help me to debug this issue?
>>>
>>> Thanks in advance
>>>
>>> Sivasankar.S
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAOQNGP1VrEVMhZB-UzZ%2BkiD9aUdAFsZd9A0wMwEd%3DefRJbUfLA%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAG1GKSkUMdg18Qq1v3y5%3DnopAXqa7RuaoLVukbpMrDDYN4iALA%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAOQNGP0wHfgy95%2BU8g%2BWkEM_m8j5MK7evwJNbb_VKvS8ypxOfQ%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAG1GKSn3fdgct1oy8t%3DD7e3jan4OOQ2fBaUeyzNfWazTbQGmUA%40mail.gmail.com.


Re: [casper] Problem with 10 GbE communication in ROACH-2

2024-02-28 Thread Sivakumar Sivasankar
Hi Jack,
 Thanks for the reply. I am using the below version of casperfpga.
  casperfpga  0.4.4.dev1336+py38.276ee44

Do I need to change the casperfpga version?

Sivasankar.S

On Wed, Feb 28, 2024 at 9:28 PM Jack Hickish  wrote:

> I think this might be a mismatch between the Ethernet memory map compiled
> into the firmware vs expected by casperfpga. What version of casperfpga are
> you using?
>
> Cheers
> Jack
>
> On Wed, 28 Feb 2024 at 15:25, Sivakumar Sivasankar 
> wrote:
>
>> Dear Caspers,
>> I am a research student at FIU, currently working with ROACH-2. I
>> have tried the tutorial-1 design and it worked well. Currently, I am trying
>> to work with 10 GbE communication links. But I am getting errors when I am
>> trying to run the python scripts which were in the tutorial_devel
>> directory. I tried to check the loopback test where I have connected 2 SFP+
>> slots in the same ROACH board. Still I am getting the below error.
>>
>> I didn't change the IP and Mac address which were in the python script
>> since I thought it doesn't matter for a loopback test. Do I need to
>> explicitly define the IP and Mac address?? I am using the bit file and
>> python script which are in the below directory.
>>
>> https://github.com/casper-astro/tutorials_devel/tree/main/roach2/tut_tge
>>
>> Can anyone please help me to debug this issue?
>>
>> Thanks in advance
>>
>> Sivasankar.S
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAOQNGP1VrEVMhZB-UzZ%2BkiD9aUdAFsZd9A0wMwEd%3DefRJbUfLA%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAG1GKSkUMdg18Qq1v3y5%3DnopAXqa7RuaoLVukbpMrDDYN4iALA%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAOQNGP0wHfgy95%2BU8g%2BWkEM_m8j5MK7evwJNbb_VKvS8ypxOfQ%40mail.gmail.com.


Re: [casper] Problem with 10 GbE communication in ROACH-2

2024-02-28 Thread Jack Hickish
I think this might be a mismatch between the Ethernet memory map compiled
into the firmware vs expected by casperfpga. What version of casperfpga are
you using?

Cheers
Jack

On Wed, 28 Feb 2024 at 15:25, Sivakumar Sivasankar 
wrote:

> Dear Caspers,
> I am a research student at FIU, currently working with ROACH-2. I
> have tried the tutorial-1 design and it worked well. Currently, I am trying
> to work with 10 GbE communication links. But I am getting errors when I am
> trying to run the python scripts which were in the tutorial_devel
> directory. I tried to check the loopback test where I have connected 2 SFP+
> slots in the same ROACH board. Still I am getting the below error.
>
> I didn't change the IP and Mac address which were in the python script
> since I thought it doesn't matter for a loopback test. Do I need to
> explicitly define the IP and Mac address?? I am using the bit file and
> python script which are in the below directory.
>
> https://github.com/casper-astro/tutorials_devel/tree/main/roach2/tut_tge
>
> Can anyone please help me to debug this issue?
>
> Thanks in advance
>
> Sivasankar.S
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAOQNGP1VrEVMhZB-UzZ%2BkiD9aUdAFsZd9A0wMwEd%3DefRJbUfLA%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAG1GKSkUMdg18Qq1v3y5%3DnopAXqa7RuaoLVukbpMrDDYN4iALA%40mail.gmail.com.