Shop OBEX P1 Docs P2 Docs Learn Events
Is there any point in adding 10Base-T to the smart pin? — Parallax Forums

Is there any point in adding 10Base-T to the smart pin?

cgraceycgracey Posts: 14,133
edited 2016-03-02 12:25 in Propeller 2
After USB, this should be simple, but does it matter in 2016?

Maybe wifi is more the expectation, but could that be done via full-speed USB dongles?
«1

Comments

  • TubularTubular Posts: 4,622
    edited 2016-03-02 12:34
    Well it provides a more direct path to 'internet of things' applications. However we should be able to achieve that over USB, it just adds a layer.

    Have you talked to Treehouse about how much room you have left after USB? Weren't things getting tight?

  • cgraceycgracey Posts: 14,133
    Tubular wrote: »
    Well it provides a more direct path to 'internet of things' applications. However we should be able to achieve that over USB, it just adds a layer.

    Have you talked to Treehouse about how much room you have left after USB? Weren't things getting tight?

    I told them to arrange the pad frame so that the die would be 8.5 x 8.5 mm. That will be plenty big.
  • Does treehouse offers Ethernet IP? Or do you just only want to implement some ethernet help instructions?

    There is some analog involved in Ethernet. How will you solve the baseline wander issue?
    Also how will you implement FCS (CRC checksum)? implemented as software instruction or transparently in HW?

    It would be nice to have a custom integrated ethernet transceiver to allow deterministic and high bandwidth data transfer to another device (PC, tablet, raspberry pi, linux router, etc...)

    Unlike USB, Ethernet is completely deterministic when sending/receiving UDP raw frames.
    Ethernet is much more documented, and much more easier to develop SW for it. No driver needed. Almost every OS has a free ethernet driver (Even MSDOS with PKTDRV). And a wonderful and completely free ethernet analyzer called wireshark.

    Also the propeller COG ram is 2K. A perfect match for the max 1500 bytes per frame used by Ethernet.

    But the question arise and is still valid. There are multiple ethernet PHY ICs at around US $1 around ... does it make sense? I think It only will make sense if the functionality is seamlesly integrated into the IC. For someone that doesn't want to mess around with an external 48-LQFP ethernet PHY.
  • No Ethernet! Just get the P2 finished up and out the door!
  • potatoheadpotatohead Posts: 10,254
    edited 2016-03-02 16:21
    If we are doing USB, and it's reasonably fast, that is a huge win Chip!

    No need for Ethernet.
  • Ken GraceyKen Gracey Posts: 7,386
    edited 2016-03-02 16:17
    Yes, we certainly need ethernet and be sure to add a full ESP8266 WiFi system while you're at it.

    Seriously, Chip? I'm about ready to start eating QFNs if this goes on any longer!

    Anybody who thinks this is a good idea will need to start fronting developer funds for NRE and placing scheduled orders for Propeller 2.

    History can repeat itself again. When everything is going along swimmingly, we start to grow out of our pants again by adding things. Then we realize we're fat, go on a diet, and do the whole thing over again.

    The best place for additional features are in future editions of the design.

    Ken Gracey
  • RaymanRayman Posts: 13,906
    I have no idea what extra would be needed for Ethernet...

    It does seem like wireless is more and more in demand than hardwire.
    So, I'd put wifi or blutooth as higher priority than 10base-T.

    But, I also think we should stop piling on (right after USB, that is).
  • cgraceycgracey Posts: 14,133
    Ken Gracey wrote: »
    Yes, we certainly need ethernet and be sure to add a full ESP8266 WiFi system while you're at it.

    Seriously, Chip? I'm about ready to start eating QFNs if this goes on any longer!

    Anybody who thinks this is a good idea will need to start fronting developer funds for NRE and placing scheduled orders for Propeller 2.

    History can repeat itself again. When everything is going along swimmingly, we start to grow out of our pants again by adding things. Then we realize we're fat, go on a diet, and do the whole thing over again.

    The best place for additional features are in future editions of the design.

    Ken Gracey

    All right. Little Brother has spoken. No more dang features!
  • jmgjmg Posts: 15,148
    cgracey wrote: »
    After USB, this should be simple, but does it matter in 2016?

    Maybe wifi is more the expectation, but could that be done via full-speed USB dongles?

    I would rate other things higher, and more P2 relevant.
    Test USB first.

    QuadSpi & dual QuadSpi == nibble / byte sync serial transfers
    Upgrade serial that is there now, to fractional baud ( borrow from USB)
    Fix for full bit length control

    I think all of the above is planned already so are not new features, just fixes/ completion of what is there now
  • Your brother is wise and he cares Chip. Good call.

    It's worth remembering the real deal will have more speed and room to do a lot in software. At any given time, we have a lot more than we think, just like P1 played out.

    If "the ark" is a design goal, USB is a home run. Worth it.
  • TubularTubular Posts: 4,622
    edited 2016-03-02 19:31
    Ken Gracey wrote: »
    ... future editions of the design.

    Ken Gracey

    "editions", plural, does this mean a P4 is on the horizon?
    :smile:
  • Tubular wrote: »
    Ken Gracey wrote: »
    ... future editions of the design.

    Ken Gracey

    "editions", plural, does this mean a P4 is on the horizon?
    :smile:
    That's the one that can execute code from external memory. :-)

  • pjvpjv Posts: 1,903
    Hi All,

    Well, I'm in the other camp. I see an industrial application where I would use the low levels of Ethernet for high speed one-way transport of data interleaved from 256 nodes. All time slots precisely predictable. No such thing as error correction or retransmission. Some low level hardware helpers would make that a lot easier.

    To be clear, for this application I'm not wanting a proper full Ethernet function. Just a buffered Manchester link with CRC. Maybe some other goodies like a data comparator firing the interrupt.

    But perhaps the pins can already do most of what I need.

    Cheers,

    Peter (pjv)
  • ErNaErNa Posts: 1,742
    Ken:Ethernet:No! Yes. Makes no sense to have this before the chip is out! Ethernet needs phy, and as I just experience, all the web things are a nightmare and nothing but KISS. We should not try to compete with those, focusing to IoT the way they do it. For example MQTT-SN is based on low footprint protocols and there is in the end only one gateway to tcp/IP.
    We need the silicon as soon as possible and no new features! More speed, more cogs, more memory. more pins. NOT MORE!
  • jmgjmg Posts: 15,148
    pjv wrote: »
    Hi All,

    Well, I'm in the other camp. I see an industrial application where I would use the low levels of Ethernet for high speed one-way transport of data interleaved from 256 nodes. All time slots precisely predictable. No such thing as error correction or retransmission. Some low level hardware helpers would make that a lot easier.

    To be clear, for this application I'm not wanting a proper full Ethernet function. Just a buffered Manchester link with CRC. Maybe some other goodies like a data comparator firing the interrupt.

    But perhaps the pins can already do most of what I need.
    IIRC the Ethernet PHYs use a 4 bit nibble bus, so QuadSPI streamers should be able to talk to a PHY to some level.
    Would that be enough for your custom variant ?

    What Data Speeds do you need ?
    You can get 'high speed one-way transport of data interleaved from 256 nodes' from some simple serial-ring bus designs too, and P2 should be able to push Serial speeds to many tens of MBaud.




  • pjvpjv Posts: 1,903
    JMG,

    My needs are 100 megabits per second, continuously, no gaps, all day long. Totally predictable. Occasional communication errors are handled by ignoring the offending byte. Speed and reliability are utmost. I have been wanting to do this in a P1, but it needs some helper hardware such as an FPGA. I'm hoping the P2 with its smart pins can do this directly.

    Cheers,

    Peter (pjv)
  • I'm currently looking for a way to use TCP/IP with the Prop. (Maybe Spinneret can already do that?)

    However I'd really like to see the Prop 2 on my desk as soon as possible. I've been looking forward to this chip for years now.
  • tonyp12tonyp12 Posts: 1,950
    edited 2016-03-02 21:54
    It would save a lot pins not having to use a Transceiver, 2pin vs 8pin GPSI interface -to- 16pin MII.
    if smartpins can handle 2bit data at 50MHz, RMII is only 7pins
    And 125Mhz SMII only needs 4pins.
    http://agata.pd.infn.it/LLP_Carrier/New_ATCA_Carrier_web/Appnotes_And_Reference_Designs/Zarlink_Application_Notes/ZLAN_86_AppNote_Jun06.pdf


    But can it be done in two P2 pins, and what about base line wander correction etc.?
    http://www.mouser.com/ProductDetail/Broadcom/BCM5241XA1KMLG/?qs=sGAEpiMZZMuXKgZRMPEonVeL2pirSPImaF1WlrMxhhU=
    1030 x 649 - 136K
  • jmgjmg Posts: 15,148
    pjv wrote: »
    JMG,

    My needs are 100 megabits per second, continuously, no gaps, all day long. Totally predictable. Occasional communication errors are handled by ignoring the offending byte. Speed and reliability are utmost. I have been wanting to do this in a P1, but it needs some helper hardware such as an FPGA. I'm hoping the P2 with its smart pins can do this directly.
    I don't think Ethernet can do "continuously, no gaps".
    So you have 256 nodes, all sending ? No receive at all ?
    How many bytes per node, and what BUS lengths ?

    A ring bus is one way to reduce turn-around times & the address is implicit.
    (and it is inherently duplex)

  • cgraceycgracey Posts: 14,133
    edited 2016-03-02 21:54
    If you just need a differential transceiver between Prop2 chips, you could use the USB mode in the smart pin. No need to perform USB, exactly. Just transceive data.
  • jmgjmg Posts: 15,148
    edited 2016-03-02 21:57
    cgracey wrote: »
    If you just need a differential transceiver between Prop2 chips, you could use the USB mode in the smartpin. No need to perform USB, exactly. Just transceive data.

    Yes, I had thought about using that approach, but that will have a SyncEngine limit of SysCLK/4, right ?
    - means ~40 MHz on projected 160MHz silicon. (Assuming SW can keep up)

    For custom-bus use, you could get quite a bit faster than 12MHz, but would still be short of 100MHz mentioned.

    I think 100MHz needs nibble-transport at 25MHz approach ?
  • [rant]

    Ken said no! No, no, no! When Chip released the last FPGA image, I saw the light at the end of the tunnel! We just needed to test, find any issues, do a minor tweak if necessary. Before we even got half way, we were derailed by USB. And now, even before the USB stuff is available, we are are getting pushed even further off track with yet more change suggestions!

    There will always be one more thing that it would be nice to have. I just want the one thing we should have already had: a finished Propeller 2. As the adage is sometimes stated, "perfect is the enemy of done!"

    (As an aside, I admire @jmg's determination to get QSPI ("nibble-transport") implemented. Frankly, if we were going to get derailed by another new feature, QSPI would have been a much wiser choice than USB. USB, Ethernet, etc. already have a wealth of ICs available for implementing them as an add-on to a microcontroller. With 64 pins, the P2's best bet for supporting those sort of things is to support the I/O interfaces that those chips require: TTL serial, i2c, SPI, QSPI, 1-wire, etc.)

    [/rant]
  • cgraceycgracey Posts: 14,133
    A warning about QSPI and smart pins:

    It may not make any sense to attempt this in smart pins because PINSETX and PINSETY take 18 clocks. PINGETZ takes 9..16 clocks. The nibble data would be faster than you could read and write it from the smart pin.

    The best way to do this is in software, where you can grab a nibble every two clocks using straight-lined ROLNIB instructions for bursts, with the transition output mode of a smart pin generating the clock.
  • jmgjmg Posts: 15,148
    Seairth wrote: »
    (As an aside, I admire @jmg's determination to get QSPI ("nibble-transport") implemented. Frankly, if we were going to get derailed by another new feature, QSPI would have been a much wiser choice than USB. ....
    To expand that a little, IIRC Chip has mentioned a 4 bit wide version of the streamer is possible/planned ? so it is not so much a 'new' feature, as a setting option to the streamer that already exists.
    A FPGA built with that functional would let users experiment with things like Ethernet PHY connections,and of course all those QuadSPI Flash & RAM parts out there already ;)



  • Cluso99Cluso99 Posts: 18,069
    edited 2016-03-02 22:48
    Ken speaks wisely!

    I didn't ask for USB to be so complex. Two simple instructions would have helped significantly.

    IMHO Ethernet is being replaced by WiFi everywhere. I don't have any Ethernet here, only WiFi.
    And WiFi modules are cheap as chips, so no, we don't want it inside P2 !!!

    If there is any more die space, just fill it with more RAM. Personally I would like to see Cog#0 with more LUT space for cog-hubexec. Otherwise extend Hub RAM.

    We need to get on with testing the P2 FPGA code. But it is still changing :(

    BTW At the risk of bullets flying, I would rather see a P2 without smart pins (maybe 1MB Hub would fit???) tomorrow, than P2 with Smart Pins next week.
  • I'm right there. Good rant.

    Besides, a lot more than we think will be possible with software and some external circuits.



  • Cluso99 wrote: »
    BTW At the risk of bullets flying, I would rather see a P2 without smart pins (maybe 1MB Hub would fit???) tomorrow, than P2 with Smart Pins next week.

    No bullets. We can already have a P2 with smart pins tomorrow; it's the one we already have today. :P If one slight tweak was in order, it was to get rid of the state machines (though I'll miss them) and expand the serial configuration (which it seems Chip has already done?). Call it a day and be content.
  • Cluso99Cluso99 Posts: 18,069
    edited 2016-03-03 00:20
    Seairth wrote: »
    Cluso99 wrote: »
    BTW At the risk of bullets flying, I would rather see a P2 without smart pins (maybe 1MB Hub would fit???) tomorrow, than P2 with Smart Pins next week.

    No bullets. We can already have a P2 with smart pins tomorrow; it's the one we already have today. :P If one slight tweak was in order, it was to get rid of the state machines (though I'll miss them) and expand the serial configuration (which it seems Chip has already done?). Call it a day and be content.
    But there has been no testing and it is at least possible that the smart pins could interfere with normal pin usage.
    Basically, Smart Pins has mostly stopped P2 testing for the past few months. Most of us are waiting for a stable FPGA release before jumping in to test.

    If we just had to test the basic cpu and go, it would be quicker than adding the testing that will be required for smart pins. Realistically, there is no way the P2 will go to silicon with Smart Pins without quite thorough testing. Therefore, we could get real silicon much quicker without Smart Pins. BTW remember, nothing in this process with OnSemi has been proven.

    So, if P2 went shortly (after testing the CPU), if the test silicon works, we have chips without Smart Pins. If it fails, we have had time to test out Smart Pins in parallel and they could be added for test silicon #2.
  • To throw my two cents worth into it I really like the idea of smart pins but if that delays the P2 then just gimme the P2 and pin ANDing rather than ORing for sharing the far more common active low signals. For Chip to even ask this question means that maybe he is bored and has time to "play" :)
    If I use P2 in a new product in place of the P1s I (manufacturers) could easily use 10k in the first run, but only if I have silicon.
  • cgraceycgracey Posts: 14,133
    Smart pins are almost done. No need to throw them away to save time. We need them, anyway, to make the chip do fast things.
Sign In or Register to comment.