- Implement test cases as stand-alone libraries in the
lib
folder. - Each manufacturing test should have a stand-alone functional test to enable
test execution accross various targets (FPGA, DV, Silicon). All functional
tests use the
*_functest.c
suffix. - Consider using baseline OTP images that reflect the status of the device
before running the manufacturing test, aiming for reproduceability in
silicon targets. See the
provisioning_functest
Bazel target as an example. - Avoid all use of assertions in manufacturing test cases. The test must be able to serialize the test result to the host. This enables the host to aggregate metrics across devices.
The following section describes the EarlGrey manufacturing stages with respect
to the state of OTP. See //hw/ip/otp_ctrl/data/earlgrey_a0_skus/sival_bringup/BUILD
for more details.
The MANUF_EMPTY
represents the initial state of OTP excluding the life cycle
partition.
In the MANUF_INITIALIZED
state the SECRET0 partition is configured to enable
device transitions between test_unlock
and test_locked
states, as well as
to transition out of test_unlock
into either dev
, prod
, or prod_end
state.
In the MANUF_INDIVIDUALIZED
state the HW_CFG0, CREATOR_SW and OWNER_SW OTP
partitions are configured. This state also includes the OTP configuration
performed in the MANUF_INITIALIZED
state.
The MANUF_PERSONALIZED
OTP profile configures the SECRET1 and SECRET2
partitions. This state also includes the OTP configuration performed in the
MANUF_INDIVIDUALIZED
state.
Partition / Manuf | EMPTY |
INITIALIZED |
INDIVIDUALIZED |
PERSONALIZED |
---|---|---|---|---|
HW_CFG0 |
Y | Y | ||
CREATOR_SW_CFG |
Y | Y | ||
OWNER_SW_CFG |
Y | Y | ||
SECRET0 |
Y | Y | Y | |
SECRET1 |
Y | |||
SECRET2 |
Y |
Life Cycle / Manuf | EMPTY |
INITIALIZED |
INDIVIDUALIZED |
PERSONALIZED |
---|---|---|---|---|
RAW |
Y | |||
TEST_UNLOCKED0 |
Y | Y | ||
TEST_UNLOCKED{1-7} |
Y | Y | ||
TEST_LOCKED{0-7} |
Y | |||
DEV |
Y | Y | ||
PROD |
Y | Y | ||
PROD_END |
Y | Y | ||
RMA |
Y | Y |