Project

General

Profile

Actions

Feature #3314

closed

design simple SFP experimentation board with LVDS transceiver

Added by laforge almost 6 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
06/04/2018
Due date:
06/04/2018
% Done:

100%

Spec Reference:

Description

This is basically a follow-up to #3313, but with a LVDS transceiver chip onboard.

So we'll have a single SMA? connector for Rx and Tx, which lead to the LVDS transceiver which then connects to the SFP slot.

The purpose here is to try to have some boards using which we can experiment how easy (or not) it is to use SFP transceivers with custom protocols/signals/systems that are not 8B10B encoded Ethernet, Fiberchannel, OC-* or CPRI.

https://www.digikey.de/product-detail/en/texas-instruments/SN65LVDS180PWRG4Q1/296-23882-1-ND/1966622 might be a part to use. It's fine for "lower speed" use cases up to 400Mbps but won't be able to do any higher speeds - while the SFP modules typically can do at least 1250 Mbit, up to 10GBit. So it's a bit of a waste of potential, but then I don't think we'd be playing with those kind of data rates any time soon...


Files

SFP-xcvr-schema-detail.jpg View SFP-xcvr-schema-detail.jpg 34.3 KB mschramm, 06/07/2018 03:17 PM
SFP-xcvr-xairwires-detail.jpg View SFP-xcvr-xairwires-detail.jpg 65.9 KB mschramm, 06/07/2018 03:17 PM
20180607-tnt-sfp-test.png View 20180607-tnt-sfp-test.png 45.3 KB scope plot of running 10MHz via tnt's breadboard SFP laforge, 06/08/2018 07:56 AM
20180607_230547.jpg View 20180607_230547.jpg 379 KB breadboard SFP receiver by tnt laforge, 06/08/2018 07:58 AM
SFP-xcvr-schema2-detail.jpg View SFP-xcvr-schema2-detail.jpg 26.7 KB mschramm, 06/08/2018 08:50 PM
SFP-xcvr-xairwires2-detail.jpg View SFP-xcvr-xairwires2-detail.jpg 67.1 KB mschramm, 06/08/2018 08:50 PM

Related issues

Follows Misc Hardware Projects - Feature #3313: design simple SFP breakout boardResolvedmschramm06/03/2018

Actions
Precedes Misc Hardware Projects - Support #3523: assemble + test SFP experimentation board with LVDS transceivers onboardResolvedmschramm06/05/201806/05/2018

Actions
Actions #1

Updated by laforge almost 6 years ago

  • Due date set to 06/04/2018
  • Start date changed from 06/03/2018 to 06/04/2018
  • Follows Feature #3313: design simple SFP breakout board added
Actions #2

Updated by tnt almost 6 years ago

Does it have to be a separate board ?

I would think some simple 0R links to switch between external LVDS lines or the ones generated by the TI LVDS converter would be enough and only have one PCB.
This would also potentially allow to easily monitor the LVDS lines externally by mounting 470R resistors instead of the 0R, then connect the SMA to a scope in 50ohm mode (creating sort of a 1:10 probe).

Actions #3

Updated by laforge almost 6 years ago

On Wed, Jun 06, 2018 at 06:41:15AM +0000, tnt [REDMINE] wrote:

Does it have to be a separate board ?

not really, but given the low cost, I think it's the easier way.

I would think some simple 0R links to switch between external LVDS lines or the ones generated by the TI LVDS converter would be enough and only have one PCB.

but then you complicate the layout of the sensitive differential traces,
likely have to introudce stubs/vias, ...

That's why I thought let's keep it simple. But then, it's not set in
stone (erm... FR4) yet.

Actions #4

Updated by mschramm almost 6 years ago

  • Status changed from New to In Progress
Actions #5

Updated by mschramm almost 6 years ago

After creating the footprint for the SN65LVDS180 and placing it close to the SFP, it reveals that this would mean crossed Rx/Tx diff pairs (see images) which is not desirable. Those wires should go straight on top layer into the transceiver. I've committed that xcvr lib anyway, but will continue likely with a pair of SN65LVDS1 and SN65LVDT2.

Actions #6

Updated by tnt almost 6 years ago

Huh ... don't you have TX/RX swapped on the SFP there ?!?

RD pins are the SFP receiver pins i.e. they are outputs.

See https://www.embrionix.com/storage/app/media/resources/HOST%20RT-nonnonMSA.gif for instance.

Actions #7

Updated by mschramm almost 6 years ago

tnt wrote:

Huh ... don't you have TX/RX swapped on the SFP there ?!?

RD pins are the SFP receiver pins i.e. they are outputs.

You are right... sorry for the noise!

Changed this, then Rx and Tx pairs are not crossed anymore but the diff pairs swap P and N. Just tried it with SN65LVDT2 / SN65LVDS1, and no twisting takes place. A 'discrete' solution (separate Rx/Tx ICs) would also give the advantage of easier placing them close to the SMA and hence reducing the single-ended path length.

Actions #8

Updated by laforge almost 6 years ago

Attaching two pictures of experiments dony by tnt yesterday

Actions #9

Updated by mschramm almost 6 years ago

Committed libs for SN65LVDS1 and SN65LVDT2 (single port LVDS tx /rx) and will continue to design with them.

Actions #10

Updated by mschramm almost 6 years ago

  • % Done changed from 20 to 50

committed a first proposal for an SFP experimenter PCBA.

remarks:

  • the width of the differential signal traces and the two single-ended towards the SMA will change until production. The 'edge-coupled coplanar waveguide w/ GND' calculation will change it:
  • to achieve reasonable width values but stay with a 2-layer PCB, we might want to take a different FR4 thickness, e.g. 1mm or 0.8mm. Drawback on this is: different types of SMA edge conn are needed for those thin PCBs
  • the decoup caps on the driver/receiver might change to 0402 and probably move closer to the respective IC's supply pins
  • the selected pinout for driver and receiver in compatible with other manufacturer's types (PI90LVB01 / PI90LV02 , FIN1001/2 ...) I think
  • X3 and X5 won't be placed here ('residue' for/from #3313)
  • some receivers already integrate the 100R termination while others don't. An R footprint in front of IC3's inputs should be added which can stay unpopulated depending on the receiver type.
  • I don't insist on the LDO (TLV1117; loss would be about 1/2W) ;)
Actions #11

Updated by laforge over 5 years ago

13:25 < tnt> Any "real" design using the SFP would be 4 layer, so I guess it's an argument
             to make the experimentation board as close to what a final product would use.

so let's go four-layer. mschramm: please change layer stack-up, add gnd/vcc planes, and adjust trace widths for "usual" four-layer stacking.

Actions #12

Updated by tnt over 5 years ago

A couple of comments :

  • Add pin headers for power input/output as well (both before and after the regulator in case tapping the 3.3v can be useful to power something 'else').
  • Add leds for TX fault and LOS (with transistor to drive them, not directly from the signal of course)
  • Make sure a ground pin is available next to the broken out 'TX_DISABLE' pin. It's internally pulled up and so having a GND next to it would allow to easily use a jumper to force it low and force enable TX.
  • Having a couple of GND points to tie scope ground would be neat as well :p
Actions #13

Updated by laforge over 5 years ago

Actions #14

Updated by mschramm over 5 years ago

  • Status changed from In Progress to Feedback
  • % Done changed from 50 to 80

PCB also revised:

  • 4 layer stack
  • LDO is now a MCP1825
  • input protection w/ Schottky series diode and TVS

Suggestions by tnt from #3314#note-12 pending, trying to integrate them today.

Actions #15

Updated by mschramm over 5 years ago

  • % Done changed from 80 to 90

just added LOS and TX_FAULT LEDs and more supply pin header as well as a GND pin beside TX_DISABLE - as asked by tnt .

Actions #16

Updated by laforge over 5 years ago

  • Status changed from Feedback to Resolved
  • % Done changed from 90 to 100

Thanks. I extended the default clearance from 0.15mm (was looking quite small in getbv) to 0.25mm, re-ran the DRC and now ordered 10 boards from Seeed.

Actions #17

Updated by laforge over 5 years ago

  • Precedes Support #3523: assemble + test SFP experimentation board with LVDS transceivers onboard added
Actions #18

Updated by tnt over 5 years ago

As a side note for future projects: Reverse polarity protection with a PMOS is better than diodes, it avoids the voltage drop.

Source to power supply
Drain to circuit
Gate connected to gnd through a pull down resistor.

If power supply is connected backwards, Gate is above the source and the PMOS channel is OFF (and the body diode is reverse biased), so no current will flow.
In normal operation, the channel will be on and so the PMOS will have a low Rds_on and drop very little voltage/power.

Actions #19

Updated by tnt over 5 years ago

For the version with LVDS transceiver I find myself often wanting to connect pin headers to the in/out ... so I'm wondering if adding some right next (or even over) the SMA pads would be a good idea. I mean the idea here is to have 'slowish' single ended data, so SMA is a bit overkill in most situation.

Actions #20

Updated by mschramm over 5 years ago

tnt wrote:

As a side note for future projects: Reverse polarity protection with a PMOS is better than diodes, it avoids the voltage drop.

Yes.. how do you know that I have this on my agenda for several projects in the upcoming year?!
Already selected the good ol' IRLML6402 (and IRLML2244 as an alternative) for this job. It is a good idea to incorporate it in this project too.

Source to power supply
Drain to circuit
Gate connected to gnd through a pull down resistor.

Sorry to correct you, but: exchange drain and source, and it's gonna work! ;)

Only problem remaining ist VGSmax, (mentioned P-FETs: +-12V). To protect from higher reversed polarities, a Zener (5,1..10V) between gate/PD resistor and source will do the job.

Actions #21

Updated by tnt over 5 years ago

Damnit, I googled it quickly to make sure I didn't have D/S reversed and manged to pick the one site that got it wrong :p ( https://www.electronicdesign.com/power/reverse-polarity-protection-automotive-design )

Actions #22

Updated by ralph over 5 years ago

Hi, this is my first post here. I am making a system to send stereo audio over fiber using SFP modules. I came across your project here and had a few questions.

Has this system been tested in hardware and proven to work?

I was wondering if the levels from and to the SFP are correct using the driver and receiver you have chosen?

I think you guys have done a great job of documenting and illustrating your project! Thank you for putting it upmfor others to see. If you ever need any help, I have experience with FPGAs and Verilog programming plus board,level hardware design and love,to collaborate.

Actions #23

Updated by tnt over 5 years ago

Yes the board with the lvds driver / receiver works fine (minus the missing resistor that's documented in the issue and possibly already fixed in the git).

Actions #24

Updated by ralph over 5 years ago

ralph wrote:

Hi, this is my first post here. I am making a system to send stereo audio over fiber using SFP modules. I came across your project here and had a few questions.

Has this system been tested in hardware and proven to work?

I was wondering if the levels from and to the SFP are correct using the driver and receiver you have chosen?

I think you guys have done a great job of documenting and illustrating your project! Thank you for putting it up for others to see. If you ever need any help, I have experience with FPGAs and Verilog programming plus board level hardware design and love to collaborate.

Actions #25

Updated by ralph over 5 years ago

Thanks for the quick info. I shall build one myself to test and will get back to you.

Actions #26

Updated by mschramm over 5 years ago

Hi ralph - welcome to the osmocom community!

The 'active' version (called 'SFP experimenter') has been deeply tested by tnt. Before we designed and tested it (see #3523 and #3524, also wiki page Sfp-experimenter ).

Another version w/o transceivers (called 'SFP breakout', see #3313) was also made, but did not went through intense testing yet; however, first tests as for its active twin have been made and proved this working too.

ralph wrote:

Thanks for the quick info. I shall build one myself to test and will get back to you.

It's not too much revelation to say that sysmocom thinks of running a small production batch for both PCBAs within this month. So you might want to wait until beginning of Feb'19... ;)

tnt wrote:

Yes the board with the lvds driver / receiver works fine (minus the missing resistor that's documented in the issue and possibly already fixed in the git).

It has been added, but not publicly committed yet. - Actually I integrated both a PD on RD_N and a possible PU on RD_P, as discussed. On the reverse polarity protection via p-FET: it has not been decided yet.

Actions #27

Updated by ralph over 5 years ago

Hi all, is there a pdf or jpg or tiff of the schematic and pcb layers? I do not have Eagle, my design software is Pcad from Altium. Thanks.

Actions #28

Updated by laforge over 5 years ago

Hi ralph,

On Wed, Jan 02, 2019 at 05:48:06PM +0000, ralph [REDMINE] wrote:

Hi all, is there a pdf or jpg or tiff of the schematic and pcb layers? I do not have Eagle, my design software is Pcad from Altium. Thanks.

I'd like to ask mschramm to add PDF renderings and gerber output files to the git repository. Thanks!

Actions #29

Updated by laforge over 5 years ago

On Tue, Jan 01, 2019 at 05:35:16PM +0000, ralph [REDMINE] wrote:

Thanks for the quick info. I shall build one myself to test and will get back to you.

If you need a PCB, I think I still may have some here. Could send it by letter/mail,
if you're interested.

Actions #30

Updated by mschramm over 5 years ago

laforge wrote:

I'd like to ask mschramm to add PDF renderings and gerber output files to the git repository. Thanks!

Gerbers for v1 have already been uploaded by you. Schematics for the upcoming version have just been pushed to the repo, and Eagle sch and brd as well as new Gerber follow.
Schematics have also been added as attachments in the SFP section of "Misc Hardware Projects" wiki pages.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)