An unofficial, read-only Hacker News reader.

Splitting USB-C: USB 3 and USB 2 on one port (opens external site)

158 points by fcjr 5 days ago | www.frankchiarulli.com | 112 comments on HN

View full thread · View on Hacker News

Comment thread (14)

  1. > Having multiple serial lanes generally doesn't make something a parallel bus.

    What does make it a parallel bus?

    Replies (4)
    1. At a guess… that the meaning of a high/low level on one of the pins is not independent of the high/low level of the other pins?

      I.e. you have 8 wires which together give a single number between 0-256 per clock cycle, rather than 8 independent channels each with its own independent stream of 1’s and 0’s on it

    2. Generally a parallel bus transmits an entire N-bit message at once, as N separate wires, with a single shared clock.

      PCI has 32 address/data wires, and a whole 32 bit message is output at once on the bus and a clock is toggled when the data is valid along with some contextual information.

      PCIe for example has many lanes, each lane has a shift register that turns an N-bit message into N 1-bit messages, which are shifted back in on the other end and turned back into an N-bit message. There's no shared clock, each lane operates essentially independently, and the clock is recovered from the signals on the differential pair. The controller then turns each part of the message each serial lane transmits into one word.

    3. A parallel bus has a single clock and fixed timings between all signals (ideally sampled at the same time, but in practice there's skew compensation nowadays). For multiple serial lanes they each have their own clock, and they're combined together at a higher level.
      Replies (1)
      1. Thanks!
    4. > What does make it a parallel bus?

      The basic difference between a parallel and a serial communication channel is the number of electrical conductors used at the physical layer to convey bits. [1]

      In usb, each differential pair (dp/dm) is driven by a serial interface engine (sie); and even though it is a pair, it is effectively half duplex and serial. Multiple dp/dm pairs does not make it parallel.

      [1] https://en.wikipedia.org/wiki/Parallel_communication

      Replies (1)
      1. So you mean "Quad Serial Peripheral Interface" is parallel bus ?
        Replies (2)
        1. > So you mean "Quad Serial Peripheral Interface" is parallel bus ?

          It's not clear what your question is trying to imply or query. What does SPI got to do with USB?

          https://onlinedocs.microchip.com/oxy/GUID-450989FA-38E4-4D68...

          Replies (1)
          1. I mean how do define which bus is "serial" or "parallel".
            Replies (1)
            1. > I mean how do define which bus is "serial" or "parallel"

              As the wiki article says, look at how is the data (say a byte) carried over the wire; how many data lines are present? in SPI (assume 4 wire) - there is only one line per direction, so data is sent bitwise. In case of QSPI even though there are 4x the lines, each line still sends one bit at a time.

              Parallel interfaces like ULPI have 8 data lines, so they send byte at a time. Others like DDR4 have 64 lines, so 64 bits are sent at once.

              Continue this thread (1 replies) →

        2. Yes. Silly name, but so it goes. PCIe and USB are different because there isn't a shared clock, which in practice means that there are not super strict requirements on the relative timing of signals across each lane (which is the main reason high-speed interconnects have generally moved to a 'multiple serial lanes' approach).