Author Topic: Risc-V + USB 3.0 + gigabit  (Read 5403 times)

0 Members and 1 Guest are viewing this topic.

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11269
  • Country: us
    • Personal site
Re: Risc-V + USB 3.0 + gigabit
« Reply #25 on: July 25, 2020, 10:59:00 pm »
Having had to edit some FX2 8051 firmware very recently, I can tell you that it pretty much just works with SDCC. Also, the slow CPU doesn't matter much for the FX2's intended purpose since it's the DMA engine that does the real work.
Yes, that is if you only want a dumb FIFO. I also need some additional logic. And that 8051 is SLOW.
Alex
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9021
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Risc-V + USB 3.0 + gigabit
« Reply #26 on: July 25, 2020, 11:20:50 pm »
Yes, that is if you only want a dumb FIFO. I also need some additional logic. And that 8051 is SLOW.
Have you considered a low cost FPGA like ICE40 for that logic?
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11269
  • Country: us
    • Personal site
Re: Risc-V + USB 3.0 + gigabit
« Reply #27 on: July 25, 2020, 11:24:41 pm »
Have you considered a low cost FPGA like ICE40 for that logic?
Yes, that's what I settled on. But that adds costs and complexity. So having an integrated chip that is accessible and easy to use would be nice. I see that thing being popular if they decide to release it widely.
Alex
 

Offline EverydayMuffin

  • Regular Contributor
  • *
  • Posts: 66
  • Country: ie
Re: Risc-V + USB 3.0 + gigabit
« Reply #28 on: July 25, 2020, 11:26:48 pm »
Have you considered a low cost FPGA like ICE40 for that logic?

Does ICE40 have a high-speed SERDES capable of USB 3.1 Gen 1 or Gen 2?
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11269
  • Country: us
    • Personal site
Re: Risc-V + USB 3.0 + gigabit
« Reply #29 on: July 25, 2020, 11:29:19 pm »
Does ICE40 have a high-speed SERDES capable of USB 3.1 Gen 1 or Gen 2?
Not even close. But you would use any MCU for USB and FPGA for the capture logic. It is workable, but not ideal, since there is still a question of streaming the data into the MCU.
Alex
 

Offline EverydayMuffin

  • Regular Contributor
  • *
  • Posts: 66
  • Country: ie
Re: Risc-V + USB 3.0 + gigabit
« Reply #30 on: July 25, 2020, 11:55:21 pm »
Not even close. But you would use any MCU for USB and FPGA for the capture logic. It is workable, but not ideal, since there is still a question of streaming the data into the MCU.
So if you want to do USB 3.1 Gen1 (5Gbps) your options are:

• MCU/FPGA (no SERDES)  + Cypress FX3
Or
• FPGA (with 5G SERDES) + USB 3.1 Gen1 IP

And if you want to do USB 3.1 Gen2 (10Gbps) your only option is:

• FPGA (with 10G SERDES) + USB 3.1 Gen2 IP

Please correct me if I'm wrong on this.
 

Offline Bassman59

  • Super Contributor
  • ***
  • Posts: 2501
  • Country: us
  • Yes, I do this for a living
Re: Risc-V + USB 3.0 + gigabit
« Reply #31 on: July 25, 2020, 11:57:07 pm »
Option for what? For small USB FS devices I'm pretty set on SAM D11. I'm done programming 8051 core or any other weird proprietary stuff. Screw that.

But USB FS is far too slow for a lot of things. USB HS is the key here.

You would think that more devices supported USB HS, but ... no. SAM3U, SAME70, LPC55S28/69, TM4C1294 (with external PHY), I think that's about it. The FTDI parts glued to a micro or FPGA could be interesting, but you can't set your own descriptors (you can't use it as a specific device class, you have to use the FTDI custom vendor class).
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9021
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Risc-V + USB 3.0 + gigabit
« Reply #32 on: July 26, 2020, 12:15:49 am »
You would think that more devices supported USB HS, but ... no. SAM3U, SAME70, LPC55S28/69, TM4C1294 (with external PHY), I think that's about it. The FTDI parts glued to a micro or FPGA could be interesting, but you can't set your own descriptors (you can't use it as a specific device class, you have to use the FTDI custom vendor class).
There's also PIC32 but I don't have experience with ones that have USB 2.0 yet.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline Bassman59

  • Super Contributor
  • ***
  • Posts: 2501
  • Country: us
  • Yes, I do this for a living
Re: Risc-V + USB 3.0 + gigabit
« Reply #33 on: July 26, 2020, 12:27:31 am »
You would think that more devices supported USB HS, but ... no. SAM3U, SAME70, LPC55S28/69, TM4C1294 (with external PHY), I think that's about it. The FTDI parts glued to a micro or FPGA could be interesting, but you can't set your own descriptors (you can't use it as a specific device class, you have to use the FTDI custom vendor class).
There's also PIC32 but I don't have experience with ones that have USB 2.0 yet.

That's another bone I have to pick with vendors. They have all of these selection matrices you can sort through to pick the processor that you want. And when they say USB, they rarely indicate HS vs FS. So unless they call out HS specifically, I assume it's FS only.
 

Offline chickenHeadKnob

  • Super Contributor
  • ***
  • Posts: 1056
  • Country: ca
Re: Risc-V + USB 3.0 + gigabit
« Reply #34 on: July 26, 2020, 04:57:19 am »
Option for what? For small USB FS devices I'm pretty set on SAM D11. I'm done programming 8051 core or any other weird proprietary stuff. Screw that.

But USB FS is far too slow for a lot of things. USB HS is the key here.

You would think that more devices supported USB HS, but ... no. SAM3U, SAME70, LPC55S28/69, TM4C1294 (with external PHY), I think that's about it. The FTDI parts glued to a micro or FPGA could be interesting, but you can't set your own descriptors (you can't use it as a specific device class, you have to use the FTDI custom vendor class).

Stm32h7xx with external phy if we are talking about USB 2.0 480 Mbit, otherwise I've lost the trail in this conversation.
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11269
  • Country: us
    • Personal site
Re: Risc-V + USB 3.0 + gigabit
« Reply #35 on: July 26, 2020, 05:07:44 am »
External PHYs are not ideal. They take up minimum 12 pins. And just general board space and having to source and populate one more component.
Alex
 

Offline dmendesfTopic starter

  • Frequent Contributor
  • **
  • Posts: 320
  • Country: br
Re: Risc-V + USB 3.0 + gigabit
« Reply #36 on: July 26, 2020, 12:03:38 pm »

There's also FT601 / FT602

Not even close. But you would use any MCU for USB and FPGA for the capture logic. It is workable, but not ideal, since there is still a question of streaming the data into the MCU.
So if you want to do USB 3.1 Gen1 (5Gbps) your options are:

• MCU/FPGA (no SERDES)  + Cypress FX3
Or
• FPGA (with 5G SERDES) + USB 3.1 Gen1 IP

And if you want to do USB 3.1 Gen2 (10Gbps) your only option is:

• FPGA (with 10G SERDES) + USB 3.1 Gen2 IP

Please correct me if I'm wrong on this.
 

Offline asmi

  • Super Contributor
  • ***
  • Posts: 2733
  • Country: ca
Re: Risc-V + USB 3.0 + gigabit
« Reply #37 on: July 26, 2020, 02:44:57 pm »
External PHYs are not ideal. They take up minimum 12 pins. And just general board space and having to source and populate one more component.
STM32F733 series has on-chip OTG HS phy.
 
The following users thanked this post: SiliconWizard

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14490
  • Country: fr
Re: Risc-V + USB 3.0 + gigabit
« Reply #38 on: July 26, 2020, 03:24:58 pm »
Option for what? For small USB FS devices I'm pretty set on SAM D11. I'm done programming 8051 core or any other weird proprietary stuff. Screw that.

But USB FS is far too slow for a lot of things. USB HS is the key here.

You would think that more devices supported USB HS, but ... no. SAM3U, SAME70, LPC55S28/69, TM4C1294 (with external PHY), I think that's about it. The FTDI parts glued to a micro or FPGA could be interesting, but you can't set your own descriptors (you can't use it as a specific device class, you have to use the FTDI custom vendor class).

You have a range of them in the STM32 line too. Most will require an external PHY though, very few integrate one in the F7 line (see post above.)

As to FTDI parts, indeed you can't provide your own descriptors (just configure a few elements such as VID/PID, max current, etc.) They are fine if what you need is just stream data in bulk mode, and that still covers a lot of needs. They also have an HID device, but I've never used it. Speaking of FTDI, they also have MCUs with embedded USB HS controllers (FT9xx line).
 

Offline ali_asadzadeh

  • Super Contributor
  • ***
  • Posts: 1907
  • Country: ca
Re: Risc-V + USB 3.0 + gigabit
« Reply #39 on: January 16, 2021, 11:02:18 am »
It seems the chips can be found on Taobao, @ around 25RMB, also they have released the chip datasheet, has anybody has done anything with this puppy?
ASiDesigner, Stands for Application specific intelligent devices
I'm a Digital Expert from 8-bits to 64-bits
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11269
  • Country: us
    • Personal site
Re: Risc-V + USB 3.0 + gigabit
« Reply #40 on: January 16, 2021, 07:38:45 pm »
By "datasheet" you mean that 120 page document in Chinese? That is not nearly enough to make a good use of the device. Also, Taobao is not the best place place.

I'll wait until there is better documentation, or at least a better place to buy them.
Alex
 

Offline ali_asadzadeh

  • Super Contributor
  • ***
  • Posts: 1907
  • Country: ca
Re: Risc-V + USB 3.0 + gigabit
« Reply #41 on: January 17, 2021, 07:29:08 am »
I think maybe if we request them from lcsc they would stuck them, for the datasheet, I do not think something bigger comes out with in 1-2 year, since Chinese parts always have low pages datasheets.
ASiDesigner, Stands for Application specific intelligent devices
I'm a Digital Expert from 8-bits to 64-bits
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11269
  • Country: us
    • Personal site
Re: Risc-V + USB 3.0 + gigabit
« Reply #42 on: January 17, 2021, 07:32:49 am »
That's just too many issues to resolve for unclear benefit. The small datasheet makes the part unusable, there is just too much guessing. Does not even matter that it is in Chinese, there is information missing.

I would be up for designing a board and poking at it a bit, but having to order from taobao does it for me. I'm not ordering from a site I can't understand.
Alex
 

Offline SuperFungus

  • Contributor
  • Posts: 33
Re: Risc-V + USB 3.0 + gigabit
« Reply #43 on: January 17, 2021, 12:29:04 pm »
I'm also pretty interested in this wch part.

Just to add to the list of USB HS micros, there is also the LPC4330 which has some io and dma features which makes it pretty compelling even vs things like the fx2
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf