How To Verify MIPI Protocols
How To Verify MIPI Protocols
At the recent MIPI DevCon, Cadence's Ofir Michaeli gave two presentations
on verification. The first was Effective Vertification of Stacked and Layered Protocols. Then he
was back later in the day to cover Using MIPI Conformance Test Suites for Pre-Siicon
Verification. I believe that for this second presentation, he was standing in for Moshik Rubin.
The above diagram shows how the MIPI specifications fit together. At the top are the various
interfaces out to the world, such as the almost universal CSI-2 camera interface. One feature
most interfaces have in common is that they are layered, with application-level protocols, then a
transport-level protocol, down to the M-PHY physical layer.
I'm not going to go into all these protocols in detail, but the above diagram gives a high-level
view of UFS. This stands for Universal Flash Storage and does what you would expect: it
provides a low-power flash interface for use in mobile systems such as smartphones and tablets.
This shows the hierarchy of the protocols from the UFS command set layer all the way down to
UniPro and MPHY at the bottom.
So what is the best strategy for verifying something like this? The first recommendation is not to
start from scratch. Get some verification IP (VIP) as a starting point. VIP helps by:
You need to invest in tools. Since Cadence sells tools, you'd expect us to say that, but there is a
lot of evidence that the amount invested in tools for verification is out of step with the amount of
time spent on it. Instead of investing in time and headcount, invest in tools so you don't need so
much of either. Debug tools, VIP, coverage analysis toolsthese can all make a huge difference
in the effectiveness of any verification team.
Once you have designed your interface and tested it, you need to worry about compliance:
A MIPI Conformance Test Suite (CTS) is a list of tests that complement the specification and
enable measurement of conformance. It is used for interoparability testing at an official lab post-
silicon. It covers all specifications in the main flows. However, it is not a comprehensive
verification plan. Of course post-silicon compliance testing is too late to discover problems, pre-
silicon is where we need to identify (and correct) problems.
Don't expect the CTS to do everything for you. CTS are aimed at post-silicon inter-operability
testing, not pre-silicon verification. However, CTS can be leveraged for pre-silicon by using each
CTS scenario for the four steps in the loop above.
Earlier this week, Cadence announced ten new VIP solutions. Two MIPI interfaces:
The other nine interfaces are not MIPI standards, but other standards, although some, like UFS
and USB Type-C are of importance in mobile: