MIPI DevCon 2016: Effective Verification of Stacked and Layered Protocols
-
Upload
mipi-alliance -
Category
Mobile
-
view
78 -
download
1
Transcript of MIPI DevCon 2016: Effective Verification of Stacked and Layered Protocols
Effective verification of stacked and layered protocols
Ofir Michaeli MIPI VIP R&D Team Leader Cadence Design Systems, Inc.
Overview
MIPI M-PHY overview • MIPI M-PHY is a mature Protocol. Current version is M-
PHY 4.0 and the WG is working on version 4.1.
MIPI UniPro overview
MIPI UniPro overview • UniPro is a mature Protocol. Current version is UniPro 1.61
(bound to MPHY 3.1) and the WG is working on version 1.8. • Vast infrastructure support –
• Application notes with Q&As. • CTS (Conformance Test Suite). • IOT (Interoperability) events. • IPs, VIPs, Test equipment and protocol analyzers.
• Key Features – • Low footprint on power and area. • Bi-directional. • Application agnostic. • Easy to use! • Guaranteed and in-order delivery of payload.
UFS overview • UFS stands for Universal Flash Storage. • UFS is high performance storage interface designed for
use in computing and mobile systems requiring low power consumption (smart phones, tablets, etc.)
VIPcore
Pre-Silicon Verification
UserfeedstheDUT’sspecificConfigura:onthroughPureViewGUI
Confi
gura)on
File
SOMA/U
VMClass
BFM
Monitor
PureSpec UI
DUT
TestSuite
Native Coverage e/SV
NL Tests
TL Tests
DME Tests
PA Tests
DLL Tests
DUTspecificinfois
created
VIPconfiguredperSOMA,
readytotestDUT
vPlan,CoverageandTestSuitearefiltered
perSOMAparameters
• Interfaces – Verifying connection to Upstream/Downstream Layers: • RMMI – Physical Layer (M-PHY) • CPort interface – Application Layer (UFS/ CSI3) • UniPro DME interface.
• Backward compatibility – Verifying compatibility with designs implementing older versions of the specification.
• Verifying new features or features that changed between version.
• Unclear/ Vague Spec. description (for example Deep SAVE state).
• Running with different configurations or with different set of supported features.
Verification Challenges
Capability Exchange • New PACP introduced:
• How does a device behave if no PACP_CAP_EXT1_ind is received or silently discarded.
• TX_LCC_Enable and LINE-CFG behavior at the end of burst.
Interfaces • RMMI (Reference M-PHY MODULE Interface) –
• Optional. Described in M-PHY Annex • UniPro SAPs (Service Access Points) VS. M-PHY Signaling
Interface
• CPort interface – • Informative. Described in UniPro Annex.
• DME interface – SAPs only.
How can a VIP help? • Checks protocol compliance as per protocol specification. • Provides full coverage model. • Generates and drives test sequences. • VIP interface is flexible –
• No constraints to vendor capabilities. • Can be configured with different feature support/ capability settings.
• Developed independently from DUT.
• Make vs. Buy: • man years of development. • reused across many designs.
TestSequences
StateMachines
ProtocolChecks
CoverageModel
Verifica)onPlan
Con
figur
atio
n Deb
ug
Methodology-Independent I/F
Mul:-LanguageTestbenchI/F
Core
VIP
DUT
So how do we verify effectively?
Test Plan
Verification Plan
Test And
Debug
Coverage Analysis Verification
Environment
Verification should start as early as possible!
13
Verification Plan • Mapping each line in the specification to a verification
item. • Mapping each item in the plan to a coverage item in the
model.
Understand what you want to test and how to
test it!
15
• How much is enough? How much is too much? • PA Hibernate description – 3 pages, 32 Test scenarios,
Thousands of Test cases.
Test Plan
Choose verification languages and
methodologies wisely!
17
Verify all interfaces!
18
UniPro VIP
Data Link (L2)
PHY Adapter (L1.5)
PHY (L1)
Partial UniPro DUT connected to DLL+PA only UniPro VIP using RMMI
Dev
ice
Man
agem
ent E
ntity
(D
ME
)
UniPro DUT MP
MP
MP
RMMI
UniPro VIP
UFS MM
Transport (L4)
Network (L3)
Data Link (L2)
PHY Adapter (L1.5)
PHY (L1)
UniPro DUT connected to UFS Device VIP using RMMI and UniPro Application VIP using CPort
Dev
ice
Man
agem
ent E
ntity
(D
ME
) UniPro DUT
MP
MP
MP
MP
MP
MP
MP
MP
RMMI
UniPro Application
CPort
UniPro VIP
UFS MM
Transport (L4)
Network (L3)
Data Link (L2)
PHY Adapter (L1.5)
PHY (L1)
UFS Host DUT connected to UFS Device VIP using RMMI
Dev
ice
Man
agem
ent E
ntity
(D
ME
)
UFS Host DUT (fullstack) MP
MP
MP
MP
MP
MP
MP
MP
RMMI
UFS MM
Transport (L4)
Network (L3)
Data Link (L2)
PHY Adapter (L1.5)
PHY (L1)
UFS Host DUT connected to UFS Device VIP using Serial interface
Dev
ice
Man
agem
ent E
ntity
(D
ME
)
UFS Host DUT (fullstack)
UniPro VIP
DPDN
MP
MP
MP
MP
MP
MP
MP
MP
M-PHY DPDN VIP
M-PHY DUT connected to M-PHY VIP using RMMI and Serial interface
MPHY DUT
RMMI
DPDN
M-PHY RMMI VIP
Use a PASSIVE agent!
24
Verification Environment
Verifica:ontestbench
Ac:veMasterVIP
Agent
PassiveSlaveVIP
Agent
Slave
DUT
Protocol Lines
Protocolcheckingandcoveragecollec:onconfigura:onofpassiveagentmustmatchDUTconfigura:on
Genera:onofprotocoltraffic
Invest in tools!
26
Test and Debug
Test and Debug
Always make sure you’re covered!
29
Coverage analysis
Effective verification of stacked and layered protocols
Ofir Michaeli MIPI VIP R&D Team Leader Cadence Design Systems, Inc.