B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX...

24
Roy Chestnut Director, Technical Marketing Teledyne LeCroy MIPI M-PHY® Gear4 and its impact on MIPI UniPort SM /UFS

Transcript of B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX...

Page 1: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

Roy ChestnutDirector, Technical MarketingTeledyne LeCroy

MIPI M-PHY® Gear4 and its impact on MIPI UniPortSM/UFS

Page 2: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

©2017MIPIAlliance,Inc.

Agenda• MIPIM-PHY• MIPIUniPro• UFS

2

Teledne LeCroy

Page 3: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

©2017MIPIAlliance,Inc.

MIPIM-PHY– BurstsandGears– Gear4– NewAttributes

• Min_SAVE_Config_Time_Capability

– ADAPT

3

Page 4: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

©2017MIPIAlliance,Inc.

BurstStates• BurstStates

– DatatransmissionoccursinBURSTswithpowersavingstatesbetweenBURSTs.– BURSTscanbetransferredinHS-MODEorLS-MODE– TheMin_SAVE_Config_Time_Capability attributeincludesallimplementationspecific

timingsrequiredtoprepareforthereceptionofthenextBURSTafterconfigurationduringSAVE.

– EachBURSTstartsfromtheSAVEstateforthatoperatingmode,withatransitionfromDIF-NtoDIF-P.

– AfteraperiodofDIF-PcalledPREPARE,asequenceof8b10bencodedsymbols– Afterthelast8b10bSYMBOLoftheBURSTeitheraseriesofb0soraseriesofb1s(TAIL-OF-

BURST)istransmitted.– Aseriesofequalbitsviolate8b10bcodecharacteristics,andindicateswhethertheM-RX

returnstotheSAVEstateofthecurrentoperatingmodeorentersLINE-CFG.– InthecaseofPWMsignaling,thelastbitofthesequenceisinvertedtoindicatetheendof

LINEactivity.

4

TeledyneLeCroy

Page 5: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

©2017MIPIAlliance,Inc.

GearsandRates• HS-GEARs

– AMODULEinHS-BURSTshallonlyoperateatthedefineddatarate,DRHS.– TherearetwoRATEseries,AandB,whereeachstepintheseriesscalesby

afactoroftwo– RATESareusedforLimitingEMIwiththeCellularmodem.– AMODULEthatincludesHS-MODEshallsupportbothRATEsofaGEAR.– AMODULEsupportingHS-MODEshallsupportHS-G1.IfahigherGEARis

supportedalllowerGEARsshallbesupportedaswell.

5

TeledyneLeCroy

Page 6: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

©2017MIPIAlliance,Inc.

BurstandGears

6

TeledyneLeCroy

Page 7: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

©2017MIPIAlliance,Inc.

MIPIM-PHYGear4• DoublingoftheDataRatefromHS-Gear3toHS-Gear4

7

TeledyneLeCroy

Page 8: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

©2017MIPIAlliance,Inc.

Min_SAVE_Config_Time_Capability

8

TeledyneLeCroy

• Min_SAVE_Config_Time_CapabilityattributeincludesallimplementationspecifictimingsrequiredtoprepareforthereceptionofthenextBURSTafterconfigurationduringSAVE.– Prepare– ADAPT– Sync

Page 9: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

©2017MIPIAlliance,Inc.

ADAPT• ADAPT

– TheADAPTsub-stateisintendedfortheRXequalizertraining– IfanM-RXsupportsADAPT,thePREPAREsub-statemaybefollowedbythe

ADAPTsub-stateforHS-G4.– ADAPTsequencestartswithMK0followedbyan8b10bencodedPRBS9

pattern– ADAPTsequenceiscompletedbyoneb0bit.– The8b10bPRBS9ADAPTsequencerepeatsevery650bits.– ADAPTsub-stateendswiththetransmissionofaTAIL-OF-BURST– M-RXandM-TXshallreturntotheSTALLstate.

9

TeledyneLeCroy

Page 10: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

©2017MIPIAlliance,Inc.

ADAPT• Duringinitialdiscovery,thelocalprotocolrequestsandreadscapabilitiesofMODULEsonbothsidesoftheLINK.• IfHS-G4equalizercapabilityisdetectedonbothsides,updatestheremoteM-RXADAPTlengthcapabilityinto

itslocalM-TXADAPTlengthconfiguration.

– TX_HS_ADAPT_Length >=RX_HS_ADAPT_INITIAL_Capability

• ThelocalprotocolshallupdatethefollowingsettingforaRefreshADAPT:

– TX_HS_ADAPT_Length >=RX_HS_ADAPT_REFRESH_Capability

• WhenaHS-G4BURSTisinitiatedandADAPThasbeenconfiguredtheM-TXtransitionsfromPREPAREtotheADAPTsub-stateinsteadofSYNC.

• TheM-TXtransitionsfromDIF-PtotransmittingtheADAPTsequence.• BothM-TXandM-RXremainintheADAPTsub-statefortheequalizertrainingforadurationofTADAPT• TheM-RXsignalsexitfromtheADAPTsub-statebyflippingtheADAPT_Control fieldofRX_ADAPT_Control from

ADAPTtoSYNCandreturningtoSTALL.

10

TeledyneLeCroy

Page 11: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

©2017MIPIAlliance,Inc.

MIPIUniPro 1.80• NewLinkStartupSequence• PACPChanges• BurstandDeskew• QualityofService• NewPrimitives• DeprecatedFunctions

11

TeledyneLeCroy

Page 12: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

©2017MIPIAlliance,Inc.

ChangestoLinkStartup• TerminatingaLinkStartup• AUniPro LinkStartupSequenceshallbeabortedwithoutreportingPA_LM_LINKSTARTUP.cnf_L(FAILURE)to

theDMEbyeitherofthefollowingconditions:– LocalApplicationsettingPowerModetoHibernate_Mode orOff_Mode– LocalAssertionofUniPro ColdResetorUniPro WarmReset

• ErrorProcessingduringLinkStartup• DuringLinkStartup,thePAlayercanonlyadvancetheLinkStartupPhase

– evenwhenreceivingerrorsontheincomingLink.• ThePAReceivershouldadvancefromPhase0,Phase1orPhase3uponreceiptofthecorrectTRGSymbols• ThePAReceivershouldignoreerrorsreceivedduringPhase0throughPhase4.• APA_LM_LINKSTARTUP.cnf_L(FAILURE)shouldonlybegeneratedfromatimeout.• HIBERN8immediatelyafterPA_LM_LINKSTARTUP.cnf_L(FAILURE),toprepareforanewLinkStartup1792

attemptfromthelocalDMEorthepeerDevice.

12

TeledyneLeCroy

Page 13: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

©2017MIPIAlliance,Inc.

PACPChanges• Gear4

– PACP_PWR-REQ/CNF• Addedvalueof4intheTX/RXGear field

• Adapt– PACP_PWR-REQ/CNF

• ThisfieldindicatesthepresenceofADAPTandtypeofADAPTrange(FineorCourse)selectedforthecurrentPowerModeChange

• PACP_CAP_ind– MaxHS

• ThisfieldshallbeignoredbythePAreceiverifPACP_CAP_EXT2_indisreceived.• Instead,theMaxHS fieldofPACP_CAP_EXT2_indshallbeused.• IfTX_HSGEAR_Capability isreturnedwithvalue4orabove,thePAtransmittershallsetthisfieldwithvalue2b’11• Inallothercases,thePAtransmittershallsetthisfieldwiththevalueretrievedfromTX_HSGEAR_Capability[1:0].

13

TeledyneLeCroy

Page 14: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

©2017MIPIAlliance,Inc.

PACPChanges• PACP_CAP_EXT2_ind

– ThePACP_CAP_EXT2_indframeisnew– ItsupportsallnewcapabilitiesintroducedinM-PHYspecificationrevision4.0onwards.– Itisusedinphase5ofLinkStartupSequencebeforethePACP_CAP_EXT1_indtonotifythepeerPALayerofthe

localM-TX,M-RX,andPALayercapabilities– LegacyDevicespriortoUniPro version1.8notbeingabletorecognizePACP_CAP_EXT2_indshall– discardthereceptionofthosePACPframesandproceedtoPACP_CAP_EXT1_indorPACP_CAP_ind– Theframe’sfieldsareasfollows

• MaxHS:MaximumHSgear,orzeroifHSmodeisunavailable– ThisfieldoverridesthefieldwiththesamenamethatisfoundinPACP_CAP_ind frame.

• RxHsG4SyncLength:M-PHYtiminginformation• RxHsG4PrepareLength:M-PHYtiminginformation• RxHsAdaptInitial:M-PHYtiminginformation• RxHsAdaptRefresh:M-PHYtiminginformation

– Unsupportedornon-existingM-PHYcapabilityattributesarereportedwitheverybitsetto'1'.

14

TeledyneLeCroy

Page 15: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

©2017MIPIAlliance,Inc.

PowerModeChanges• WithMIPIUniPro Version1.8Only• LocalPALayersendsaPACP_PWR_req frame• WhentheremotePALayerreceivesavalidPACP_PWR_req frame• TheremotePALayershallsendthePACP_PWR_cnf frame.• ThelocalPALayerreceivesavalidPACP_PWR_cnf frame• ItcheckstheStatusfield.

– IftheStatusfieldcontainsPWR_OK,PAPowerModeUserData ispassedtothelocalDME.• ThelocalPHYLayerwil beconfiguredwiththerequestedparameters.• ThelocalPALayershallclosetheburstontheoutboundLink.• TheremotePALayershallclosetheburstontheotherLinkwhendetectingtheendofburstonits

inboundLink.

15

TeledyneLeCroy

Page 16: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

©2017MIPIAlliance,Inc.

PowerModeChangewithAdapt

16

TeledyneLeCroy

Local PA Remote PA

PA_LM_SET.req (PA_PWRMode, x)

PA_LM_SET.cnf_L (SUCCESS)

PACP_PWR_req

Idle Idle

WaitCnf

Configure MODULEsPACP_PWR_cnf

WaitEoB

Burst TX

Burst TX

Check cnf

Configure MODULEs

PACP_REQUEST_TIMER

PACP_REQUEST_TIMER

WaitEoB

PA_DL_RESUME.indPA_DL_RESUME.ind

Idle Idle

PA_LM_PWR_MODE_CHANGED.ind (PWR_LOCAL)

Check Capability

Check Capability

End TX Burst

End TX Burst

Remote DMELocal DME

PACP_REQUEST_TIMER

PACP_REQUEST_TIMER

PA_DL_PAUSE

PA_DL_PAUSE

PA_LM_PWR_MODE.ind

PA_LM_PWR_MODE.rsp_L

PA_LM_PWR_MODE.ind

PA_LM_PWR_MODE.rsp_L

PA_LM_PWR_MODE_CHANGED.ind(PWR_REMOTE)

TX Adapt

Req Adapt TX

PACP_REQUEST_TIMER

PACP_REQUEST_TIMER PACP_REQUEST_TIMER

PACP_REQUEST_TIMER

WaitforAdaptCompleteIndfromM-TX&M-RX

WaitforAdaptCompleteIndfromM-TX&M-RX

Req Adapt TX

TX Adapt

Page 17: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

©2017MIPIAlliance,Inc.

BurstStartandDeskew PatternBurstStartandDeskew Pattern• AnM-PHYburstshallbeginbytransmittingadeskew pattern<MK0,MK1>,• MK0functionsasanStartofBurstHEAD-OF-BURSTmarker.• Thedeskew patternisalsousedwhenresynchronizingLanes• Thedeskew patternshallbetransmittedsimultaneouslyonallactiveLanes.• Thedeskew patternmaybetransmittedatanypointintimeforthepurposeofpotentialerrorrecovery

• DummyBurst• AdummyburstisanM-PHYburstthatissentoninactiveM-PHYLanesinaMulti-LanescenarioduringLink

configuration.• AdummyburstistosynchronizetheM-PHYLaneattributesacrossboth,inactiveandactivatedLanes• AdummyburstdoesnotcarryanypayloadandisnotusedinLanedistribution• AdummyburstisissuedonlyonLaneswithalogicalLanenumbergreaterthan0.• Thedummyburstshallbeginbytransmittingaspecialpattern<MK0,FLR>,whichdistinguishesthedummy

burstfromanormalburst.Duringthedummyburst,thePALayershallsendonlyFILLERs.

17

TeledyneLeCroy

Page 18: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

©2017MIPIAlliance,Inc.

NewPrimitives– PA_INIT.ind

• InformstheDLLayerthattherewasaPA_INITrequestedbythePeerPALayer.TheDLLayershouldnotifytheDME

– PA_LM_RX_SYMBOL_CNT.ind• PALayergeneratesthisprimitiveeverytimeitreceives1024SymbolsbetweentheHeadof

BurstandtheEndofBurst– PA_LM_TX_SYMBOL_CNT.ind

• PALayergeneratesthisprimitiveeverytimeittransmits1024symbolsbetweenbetween HoBandEoB

– M-LANE-AdaptStart– M-LANE-AdaptComplete– M-LANE-MRXSaveState– M-LANE-AdaptComplete

18

TeledyneLeCroy

Page 19: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

©2017MIPIAlliance,Inc.

MIPIUniPro DeprecatedFunctionsin1.80• T-MPI: T-MPIavoidsexcessivepin-countsbyutilizinghigh-speedSERDES

technologiesfoundinmodernFPGAs.• LCC:LINEControlCommand(LCC)• BasicOpticalMediaConvertersaresupportedasoptional• AdvancedOpticalMediaConvertersarenotsupportedasoptions.

– UniPro doesnotmandatetheimplementationoftheM-PHYstateLINE-CFG,nordoesUniPro makeuseoftheLINE-CFGstate,shoulditbepartoftheM-PHYimplementation.

• UniPro specificationVersion1.80givesupbackwardcompatibilitytoUniPro Versionsv1.41.00andearlier. SpecificallyduetodeprecationofLCC

19

TeledyneLeCroy

Page 20: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

©2017MIPIAlliance,Inc.

UFS• GeneralFeatures

– Targetperformance– HighspeedGEARs

• SupportforGEAR1ismandatory• SupportforGEAR2ismandatory• SupportforGEAR3isoptional• SupportforGEAR4ismandatory

20

TeledyneLeCroy

Page 21: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

©2017MIPIAlliance,Inc.

UFSDataRatesandClockconsiderations

21

TeledyneLeCroy

Page 22: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

©2017MIPIAlliance,Inc.

UFSHSBurst• UFSHSBurst

– AUFSdeviceshallsupporttheHS-GEAR1,HS-GEAR2andtheHS-GEAR4.– SupportforHS-GEAR3isoptional.

• ThisviolatestheM-PHYspecwhichstatesthatalllowergearsmustbesupported.– SUBLINKSinaLINKmaycommunicatewithdifferentHS-GEARorPWM-GEAR.

• HSPrepareLengthControl– TheTX_HS_PREPARE_LENGTHM-PHYconfigurationattributedefinesthetimetomovefromSTALLtoHS-BURST.

Atreset,M-TXsetsTX_HS_PREPARE_LENGTH=15.• HSSyncLengthControl

– TheTX_HS_SYNC_LENGTHM-PHYconfigurationattributedefinesthenumberofsynchronizationsymbolsbeforeaHSBurst.

– IntheUFSinterfacethesynchronizationsequenceshallbegeneratedbytheM-TX.– Supportforprotocolcontrolledsynchronizationisoptional.– M-TXstartsatresetwithTX_HS_SYNC_LENGTH=15,inCOARSEtype.

22

TeledyneLeCroy

Page 23: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX

©2017MIPIAlliance,Inc.

• PWMBurst• AUFSdeviceshallsupportthePWM-G1(default,mandatedby[M-PHY]),PWM-G2,PWM-G3

andPWM-G4GEARS.• ThePWM-G5,PWM-G6andPWM-G7areoptional.

– EvenifthephysicallayersupportsPWM-G0,thisgearcannotbeusedbecauseitisnotsupportedbyUniPro• ThePWM-G1istheactivegearbydefaultafterpoweruporreset.• SUBLINKSinaLINKmaycommunicatewithdifferentPWM-GEARorHS-GEAR.

• LSPrepareLengthControl• TheTX_LS_PREPARE_LENGTHM-PHYconfigurationattributedefinesthetimetomovefrom

SLEEPtoPWM-BURST.• Atreset,M-TXsetsTX_LS_PREPARE_LENGTH=10.

23

TeledyneLeCroy

Page 24: B T2 11-15 Teledyne LeCroy M-PHY Gear4 and its impact on UniPort … · 2018-01-17 · • The M-TX transitions from DIF-P to transmitting the ADAPT sequence. • Both M-TX and M-RX