Você está na página 1de 2

UFS-Xactor

Your Solution to UFS Compliance Validation


HIGHLIGHTS

Complete solution for UFS core through chip-level verification including UniPro/M-PHY

UFSHCI host and UFS device support

CPort adaptor interfaces to Avery or 3rd party UniPro VIP

Compliance testsuite for host and device

Comprehensive assertions track UFS and MIPI compliance coverage

Functional coverage tracks range of packet traffic, FSMs, and complex operational sequences

Tracker log monitors all levels and improves debug

Supports SystemVerilog UVM/OVM/VMM environments

Proven with multiple IP vendors


INTRODUCTION
The UFS-Xactor supports verification UFSHCI host and UFS device designs. UFS-Xactor models support APIs from the
pseudo UFS Driver and Host Controller Driver levels down to interacting directly at the all UniPro layer. Major features
supported are:
UFS 2.0 Host and Device Models
Host model emulates host driver and controller
Device model emulates simple UFS device including
sparse logical block storage and processes over 20
SCSI commands using SCSI command layer shared
by UAS and SOP/PQI VIPs
Supports UFS DME and CPort Users
Supports command sets: Native UFS and SCSI SPC4, SBC-3, and SAM-5

UFS
Compliance
Teststuite

UFS
Application Test

UniPro
Application Tests

Application Layer (LA)


UFS Driver
Command Set(s)
Cport User(s)

DME User
DME_SAP

M-PHY 3.0 Model


Multiple LANE provisions
LS-MODE and HS_MODE
LS-MODE NRZ and PWM
signalling schemes
Multiple power saving modes

T_SAP

UniPro Layers
Transport (L4)

T_LM_SAP

UniPro 1.6 Model


Emulates UniPro protocol stack layers and M-PHY
Supports all service primitives (SAP) and service data
units (x_SDU)
DME User supports all sequences of control,
configuration, and status primitives
Transport service
Allocates connections between CPorts
Schedules message transfers between CPort Users
Supports CPort signal interface
Supports UniPro Test Feature

UniPro Device
Compliance
Testsuite

N_SAP

N_LM_SAP

Network (L3)

DL_LM_SAP

Data Link (L2)

Device
Management
Entity (DME)

DL_SAP

PA_SAP

PA_LM_SAP

ProducerConsumer
Scoreboard

PHY Adapter (L1.5)


PHY_SAP

M-PHY
Compliance
Testsuite

PHY (L1)

UniPro Switch

UFS Device

UniPro Device

SYSTEMVERILOG ENVIRONMENT
UFS-Xactor supports an object oriented SystemVerilog testbench

Layered environment based on family of SystemVerilog classes and methods

Abstract data model for transfer, packet, and descriptor types

Drivers, event callbacks, and scoreboard options automate status and result checking

Robust error injection enables modifying, adding, or deleting frames

UFS and UniPro transaction trackers (command and packet exchanges)

Throughput calculation for performance analysis

Random scenario generation with constraints stress design operation

Directed tests for focused functional compliance testing including UFS and SCSI commands and UFS and UniPro
power modes

Functional coverage monitoring of scenario cases

Comprehensive protocol checking

VMM/UVM/OVM support

tracking log files


CORE THROUGH CHIP-LEVEL VERIFICATION
The MIPI application designer can easily link the device under test into the test environment including DUT integration of
the user-side logic to an UFS-Xactor protocol layer model enabling full control over the DUT to initiate transactions via
UFSD operations. Device and PHY- only core verification is supported.

PROTOCOL CHECKING
MIPI-Xactor includes comprehensive compliance protocol checking in the models and UFS testsuite. Compliance protocol
violations reporting enable faster debug times and compliance protocol coverage enables design teams to evaluate the
range of functional verification.
UFS2-7.4.1.3#1
UFS2-7.4.1.3#2

D
D

UFS2-7.4.1.4#1
UFS2-7.4.1.4#2

D
D

UFS2-7.4.1.5#1

UFS2-7.4.1.5#2

UFS2-7.4.1.6#1

Pre-Active power mode can be entered from Pre-Sleep, Sleep, Pre-PowerDown, or PowerDown.
While in Pre-Active power mode: a) START STOP UNIT command and REQUEST SENSE command are the only SCSI commands that the device
may successfully complete; other commands may be terminated with CHECK CONDITION status, with the sense key set to NOT READY, with the
additional sense code set to LOGICAL UNIT IS IN PROCESS OF BECOMING READY. See 7.4.1.9 for further details. b) a REQUEST SENSE command
shall terminated with GOOD status and provide pollable sense data with the sense key set to NO SENSE, and the additional sense code set to
LOGICAL UNIT TRANSITIONING TO ANOTHER POWER CONDITION.
The UFS-Sleep power mode is entered from Pre-Sleep power mode.
While in UFS-Sleep power mode: a) START STOP UNIT command and REQUEST SENSE command are the only SCSI commands that the device may
successfully complete; other commands may be terminated with CHECK CONDITION status, with the sense key set to ILLEGAL REQUEST. See
7.4.1.9 for further details. b) a REQUEST SENSE command shall be terminated with GOOD status and provide pollable sense data with the sense
key set to NOT READY and the additional sense code set to LOGICAL UNIT NOT READY, INITIALIZING COMMAND REQUIRED.
The device will automatically advance to Sleep power mode once any outstanding operations and management activities have been completed.
The device will transition from Pre-Sleep power mode to Pre-Active power mode if START STOP UNIT command with POWER CONDITION = 1h.
While in Pre-Sleep power mode: a) START STOP UNIT command and REQUEST SENSE command are the only SCSI commands that the device may
successfully complete; other commands may be terminated with CHECK CONDITION status, with the sense key set to ILLEGAL REQUEST. See
7.4.1.9 for further details. b) a REQUEST SENSE command shall be terminated with GOOD status and provide pollable sense data with the sense
key set to NOT READY and the additional sense code set to LOGICAL UNIT TRANSITIONING TO ANOTHER POWER CONDITION. c) SCSI Task
management functions shall operate normally.
UFS-PowerDown Power Mode is automatically entered from the Pre-PowerDown power mode, at the completion of the power mode transition.

COMPLIANCE TEST SUITE


The test environment includes functional compliance test suites for

simple UniPro device

UFS device

UniPro/UFS host
Random and directed test cases are supported. Random testing supports generating random UniPro/UFS transfer types
and TRANSPORT/NETWORK/LINK/PHY layer behaviors including error injection.
.Spec section:
UFS 2.0 7.4

==> @5634001
packet_header= AUFS_COMMAND
|H|D|T|opcode
|ATT|rsvd0|W|R| |LUN
|task_tag
|
|0|0|0|01_______|0__|0____|1|0|0|00_____________|12_____________|
|rsvd1 |command|rsvd2
|
|0______|0______|000000_________________________________________|
|ehs_length
|rsvd3
|data_length
|
|00_____________|00_____________|0000___________________________|
|expected_data_length
|
|00001000_______________________________________________________|
|CDB0
|
|0a000000_______________________________________________________|
|CDB1
|
|01000000_______________________________________________________|
|CDB2
|
|00000000_______________________________________________________|
|CDB3
|
|00000000_______________________________________________________|
kind = ASCSI_SBC_WRITE_6

.Procedure:
AUFS_POWER2_TEST_1:
1. Test power mode change: Active -> Presleep -> Preactive -> Active
2. send START_STOP_UNIT command, power condition = 2, immed = 1
3. wait bCurrentPowerMode attribute to presleep
4. send START_STOP_UNIT command, power condition = 1, immed = 1
5. wait bCurrentPowerMode attribute to active AUFS_POWER2_TEST_2:
1. Test power mode change: Active -> Prepowerdown -> Preactive -> Active
2. send START_STOP_UNIT command, power condition = 3, immed = 1
3. wait bCurrentPowerMode attribute to prepowerdown
4. send START_STOP_UNIT command, power condition = 1, immed = 1
5. wait bCurrentPowerMode attribute to active
AUFS_POWER_TEST_ALL:
run randomized ordering of above 2 test items
.Result:
AUFS_POWER_TEST_1~2:
1. target should response SCSI good status

Compliance Test Procedure

CORPORATE
LOCATIONS

US
1565 Main Street #207
Tewksbury, MA 01876
Tel: 978 851 3627
Fax: 866 457 1388

SALES

US
858-774-3141
408-703-4211
sales@avery-design.com

UFS Stage Tracker shows UPIU

3375 Scott Blvd #434


Santa Clara, CA
Tel: 408-702-4211

Europe
BlackForest EDA
+49-2132-137485

UK/Nordic
Aremberg Solutions
+44 (0)7780 668 741
sales@arembergsolutions.com

www.avery-design.com
Trademarks/Copyright 2012 Avery Design Systems, Inc. All Rights Reserved

TAIWAN
76, 1st Section, Chung-Hsiao E. Rd., suite 1203
Taipei, Taiwan, ROC
Tel +886-2-23278766

Japan
Vtech
+81-45-470-8310
TokyoNanoFarm
81-90-4748-1652

Korea
ELM Systems
+82 070-7893-5338

Você também pode gostar