Embedded multimedia card interface prototype verification method, device, equipment and medium

By simulating the delay configuration value and data signal transmission in different environments, comprehensive prototype verification of the embedded multimedia card interface is achieved, solving the problems of low coverage and low development efficiency in the existing technology, and improving development efficiency and verification coverage.

CN119885996APending Publication Date: 2025-04-25SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510124944.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-26
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

The coverage rate of embedded multimedia card interface prototype verification is poor, which makes it difficult to detect functional design defects in the prototype verification stage, and environmental changes-related tests can only be performed after a stream is required, which affects the development progress.

Method used

Through the correspondence between the preset simulation environment and the delay configuration value, the delay configuration value of the target simulation environment is obtained and configured to a data delay module connected to the embedded multimedia card data line to simulate data signal transmission in different environments. Triggers the adjustment operation at the time point of receiving data sampling, sends adjustment operation commands to the embedded multimedia card, and phase delay and sample the data signal through the data delay module and the clock signal adjustment module to verify whether the sampled target data sequence is correct.

Benefits of technology

It improves the coverage of embedded multimedia card interface verification, can discover more functional design defects in the prototype verification stage, shorten the development cycle, improve development efficiency, and avoid test delays after chipping.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119885996A_ABST
    Figure CN119885996A_ABST
Patent Text Reader

Abstract

The invention provides an embedded multimedia card interface prototype verification method, device and equipment and a medium, which are applied to the technical field of embedded multimedia card verification, and comprise the following steps: obtaining a delay configuration value corresponding to a target simulation environment based on a preset corresponding relation, and configuring the delay configuration value to a data delay module; adjusting operation is triggered, an adjusting operation command is sent to the embedded multimedia card, so that the embedded multimedia card responds to the adjusting operation command, and a data signal carrying the target data sequence is transmitted through a data line of the embedded multimedia card; the data delay module performs phase delay on the data signal; performing phase adjustment on a clock signal of the embedded multimedia card based on the current adjustment operation configuration value, and sampling a data signal based on the adjusted clock signal; and checking whether the sampled target data sequence is correct or not so as to realize prototype verification of the embedded multimedia card interface. In this way, the coverage rate of embedded multimedia card interface verification can be improved, and therefore the development efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of embedded multimedia card verification, and in particular to an embedded multimedia card interface prototype verification method, device, equipment and medium. Background Art

[0002] Currently, the coverage of prototype verification for eMMC (embedded MultiMediaCard) interfaces is poor. Some functional design flaws are difficult to detect during the prototype verification phase. Furthermore, tests related to environmental changes must be performed after tape-out. However, if problems are discovered during testing after tape-out, further modifications will affect development progress.

[0003] It can be seen that how to improve the coverage of embedded multimedia card interface verification and improve development efficiency is a problem that those skilled in the art need to solve. Summary of the Invention

[0004] The purpose of the embodiments of the present invention is to provide an embedded multimedia card interface prototype verification method, apparatus, device, and medium, which can improve the coverage of embedded multimedia card interface verification, thereby improving development efficiency. The specific scheme is as follows:

[0005] In a first aspect, the present invention provides an embedded multimedia card interface prototype verification method, comprising:

[0006] Obtain the delay configuration value corresponding to the target simulation environment based on the preset corresponding relationship;

[0007] configuring the delay configuration value to a data delay module connected to a data line of the embedded multimedia card;

[0008] triggering an adjustment operation of a sampling time point of received data, and sending an adjustment operation command to the embedded multimedia card, so that the embedded multimedia card responds to the adjustment operation command and transmits a data signal carrying a target data sequence through a data line of the embedded multimedia card;

[0009] Performing a phase delay on the data signal based on the delay configuration value by the data delay module;

[0010] performing phase adjustment on a clock signal of the embedded multimedia card based on a current adjustment operation configuration value, and sampling the data signal based on the adjusted clock signal;

[0011] Verify whether the sampled target data sequence is correct to achieve prototype verification of the embedded multimedia card interface.

[0012] Optionally, also include:

[0013] Constructing a correspondence between the simulation environment and the delay configuration value to obtain the preset correspondence, wherein different simulation environments correspond to different delay configuration values;

[0014] Storing the preset corresponding relationship in a target table to obtain a simulation environment table;

[0015] Accordingly, the step of obtaining the delay configuration value corresponding to the target simulation environment based on the preset corresponding relationship includes:

[0016] The simulation environment table is read, and a delay configuration value corresponding to the target simulation environment is obtained based on a preset corresponding relationship.

[0017] Optionally, any simulated environment is a combination of one or more environmental parameters including process, voltage, temperature, and humidity.

[0018] Optionally, obtaining a delay configuration value corresponding to the target simulation environment based on a preset correspondence includes:

[0019] The simulation environments are traversed from the preset corresponding relationship, the traversed simulation environments are determined as target simulation environments in turn, and the delay configuration value corresponding to the target simulation environment is obtained.

[0020] Optionally, traversing the simulation environment from the preset correspondence includes:

[0021] The simulation environment is traversed from the preset corresponding relationship in the order of preset environment parameters from large to small or from small to large.

[0022] Optionally, also include:

[0023] adjusting the adjustment operation configuration value multiple times, and triggering the step of sending an adjustment operation command to the embedded multimedia card after each adjustment of the adjustment operation configuration value;

[0024] Accordingly, the verification of whether the sampled target data sequence is correct to implement prototype verification of the embedded multimedia card interface includes:

[0025] Verifying whether the sampled target data sequence is correct to verify the embedded multimedia card interface during the adjustment operation;

[0026] Determine the adjustment operation configuration value range corresponding to the adjustment operation configuration value when the sampled target data sequence is correct;

[0027] Determining a middle value of the adjustment operation configuration value range as an optimal adjustment operation configuration value;

[0028] Comparing the optimal adjustment operation configuration value with a theoretical value to verify the adjustment operation;

[0029] In the case that the adjustment operation passes the verification, a target type test of the embedded multimedia card interface is triggered.

[0030] Optionally, the target type test includes one or more of a read-write test, a command execution test, an interface compatibility test, a transmission rate test, a concurrent access test, a life test, and an error handling test.

[0031] In a second aspect, the present invention provides an embedded multimedia card interface prototype verification device, comprising:

[0032] A delay configuration value acquisition module is used to obtain the delay configuration value corresponding to the target simulation environment based on a preset corresponding relationship;

[0033] A delay configuration value configuration module, configured to configure the delay configuration value to a data delay module connected to a data line of the embedded multimedia card;

[0034] an adjustment operation triggering module, configured to trigger an adjustment operation of a received data sampling time point, and send an adjustment operation command to the embedded multimedia card, so that the embedded multimedia card responds to the adjustment operation command and transmits a data signal carrying a target data sequence via a data line of the embedded multimedia card; correspondingly, the data delay module is configured to perform a phase delay on the data signal based on the delay configuration value;

[0035] a clock signal adjustment module, configured to perform phase adjustment on a clock signal of the embedded multimedia card based on a current adjustment operation configuration value, and to sample the data signal based on the adjusted clock signal;

[0036] The sampling value verification module is used to verify whether the target data sequence obtained by sampling is correct, so as to realize the prototype verification of the embedded multimedia card interface.

[0037] In a third aspect, the present invention provides an electronic device, comprising:

[0038] memory for storing computer programs;

[0039] The processor is configured to execute the computer program to implement the steps of the aforementioned embedded multimedia card interface prototype verification method.

[0040] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the aforementioned embedded multimedia card interface prototype verification method when executed by a processor.

[0041] In a fifth aspect, the present invention provides a computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the steps of the aforementioned embedded multimedia card interface prototype verification method disclosed above.

[0042] It can be seen from the above scheme that the present invention provides a prototype verification method for an embedded multimedia card interface, including: obtaining a delay configuration value corresponding to a target simulation environment based on a preset corresponding relationship; configuring the delay configuration value to a data delay module connected to a data line of the embedded multimedia card; triggering an adjustment operation of a received data sampling time point, and sending an adjustment operation command to the embedded multimedia card, so that the embedded multimedia card responds to the adjustment operation command and transmits a data signal carrying a target data sequence through the embedded multimedia card data line; performing a phase delay on the data signal through the data delay module and based on the delay configuration value; performing a phase adjustment on a clock signal of the embedded multimedia card based on the current adjustment operation configuration value, and sampling the data signal based on the adjusted clock signal; and verifying whether the sampled target data sequence is correct, so as to achieve prototype verification of the embedded multimedia card interface.

[0043] It can be seen that the beneficial effects of the present invention are: through the correspondence between the preset simulation environment and the delay configuration value, the delay configuration value corresponding to the target simulation environment is obtained, and configured to the data delay module connected to the data line of the embedded multimedia card, so that the data signal of the data line of the embedded multimedia card can be phase delayed by the data delay module to simulate the data signal transmission in the corresponding real environment, and the adjustment operation of the received data sampling time point is triggered, and the adjustment operation command is sent to the embedded multimedia card so that the embedded multimedia card transmits a data signal carrying a specific data sequence, the clock signal of the embedded multimedia card is phase adjusted based on the current adjustment operation configuration value, and the data signal is sampled based on the adjusted clock signal. The data signal is phase delayed by the data delay module, and it is verified whether the target data sequence obtained by sampling is correct, thereby realizing prototype verification of the adjustment operation and the embedded multimedia card interface involved in the adjustment operation, improving the coverage of the embedded multimedia card interface verification, and no need to wait for tape-out before testing, which can improve development efficiency.

[0044] Correspondingly, the embedded multimedia card interface prototype verification device, equipment and medium provided by the present invention also have the above technical effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present invention, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0046] Figure 1 A flow chart of a method for prototyping an embedded multimedia card interface provided by an embodiment of the present invention;

[0047] Figure 2 A schematic diagram of an eMMC interface signal provided by an embodiment of the present invention;

[0048] Figure 3 A schematic diagram of a prototype verification framework for an embedded multimedia card interface provided by an embodiment of the present invention;

[0049] Figure 4 A schematic diagram of a tuning value provided by an embodiment of the present invention;

[0050] Figure 5 A schematic structural diagram of an embedded multimedia card interface prototype verification device provided by an embodiment of the present invention;

[0051] Figure 6 A structural diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0052] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of the present invention.

[0053] The terms "including" and "having," as used in the present description and accompanying drawings, and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements and may include steps or elements that are not listed.

[0054] First, the terms involved in the present invention are explained:

[0055] eMMC (embedded MultiMediaCard) is a standard form of embedded memory designed for mobile devices such as mobile phones and tablets, as well as embedded systems. eMMC adheres to a unified protocol interface standard, enabling compatibility between eMMC products from different manufacturers and facilitating system design and integration. Currently, multiple versions of eMMC products are available on the market, including eMMC 4.5 and eMMC 5.0.

[0056] Tuning: In actual applications, the performance and stability of eMMC may be affected by factors such as hardware differences, improper software configuration, or changes in the external environment. Therefore, EMMC tuning is used to optimize the delay between signals to ensure that data is read or written at the correct time.

[0057] SDR (Single Data Rate) stands for Single Data Rate (SDR). Data transfer occurs only on the rising edge of the clock signal. This means that within each clock cycle, data is read or written only on the rising edge of the clock signal. Therefore, SDR has a relatively low data transfer rate, equal to the clock frequency.

[0058] DDR: Double Data Rate. DDR transfers data on both the rising and falling edges of the clock signal, so its data transfer rate is twice the clock frequency. This technology significantly improves memory data transfer efficiency.

[0059] Prototype verification: Prototype verification is a crucial verification method in the chip design and development process. It is mainly implemented based on field programmable gate arrays (FPGAs). In particular, it is a technology used to simulate and verify ASIC (application-specific integrated circuit) functions after front-end RTL (register transfer level) design and RTL simulation.

[0060] PVT (Process, Voltage, and Temperature) are three crucial parameters in semiconductor chip design and timing analysis. Changes in process parameters directly impact the performance of transistors within the chip, thereby affecting the delay of timing paths. Power supply voltage is a key factor influencing chip performance. Generally, higher voltages result in faster transistor speeds and lower latency; conversely, lower voltages increase latency. Temperature also has a significant impact on chip performance. Generally, transistor delay increases with increasing temperature.

[0061] In order to enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0062] Next, an embedded multimedia card interface prototype verification method provided by an embodiment of the present invention is described in detail. Figure 1 A flowchart of an embedded multimedia card interface prototype verification method provided by an embodiment of the present invention includes:

[0063] Step S11: Obtaining a delay configuration value corresponding to the target simulation environment based on a preset corresponding relationship.

[0064] The embodiment of the present invention can construct a correspondence between simulation environments and delay configuration values ​​to obtain the preset correspondence, wherein different simulation environments correspond to different delay configuration values. The delay configuration value of the corresponding simulation environment can be an empirical value.

[0065] In an optional embodiment, the preset correspondence can be stored in a target table to obtain a simulation environment table; accordingly, obtaining the delay configuration value corresponding to the target simulation environment based on the preset correspondence includes: reading the simulation environment table and obtaining the delay configuration value corresponding to the target simulation environment based on the preset correspondence. Using a table format can clearly represent the correspondence between the simulation environment and the delay configuration value, and facilitates search.

[0066] Any simulated environment can be a combination of one or more environmental parameters including process, voltage, temperature, and humidity. That is, it can be a single environmental parameter, such as temperature, or a combination of two or more environmental parameters, such as temperature and humidity. Environmental parameters in embodiments of the present invention include, but are not limited to, process, voltage, temperature, and humidity.

[0067] In an optional embodiment, obtaining the delay configuration value corresponding to the target simulation environment based on a preset correspondence includes: traversing the simulation environment from the preset correspondence, determining the traversed simulation environment as the target simulation environment in turn, and obtaining the delay configuration value corresponding to the target simulation environment.

[0068] In an optional embodiment, traversing the simulated environment from the preset correspondence includes traversing the simulated environment from the preset correspondence in order of preset environmental parameters from largest to smallest or from smallest to largest. For example, the simulated environment may be traversed from the preset correspondence in order of temperature from smallest to largest or from largest to smallest. This allows for more accurate tracking of environmental changes and testing of the embedded multimedia card interface in a dynamic environment.

[0069] Step S12: configuring the delay configuration value to a data delay module connected to a data line of the embedded multimedia card.

[0070] The embodiment of the present invention configures the delay configuration value to the data delay module connected to the embedded multimedia card data line, so that the data signal of the embedded multimedia card data line can be delayed according to the delay configuration value.

[0071] Step S13: triggering an adjustment operation of the received data sampling time point, and sending an adjustment operation command to the embedded multimedia card, so that the embedded multimedia card responds to the adjustment operation command and transmits a data signal carrying a target data sequence through the embedded multimedia card data line.

[0072] The adjustment operation of the data sampling time point can adjust the sampling time of the data signal to ensure that sampling is performed at the optimal data sampling time point.

[0073] Step S14: performing phase delay on the data signal based on the delay configuration value by the data delay module.

[0074] The embodiment of the present invention adjusts the phase of the data signal based on the delay configuration value, resulting in a change in the phase relative to the clock signal of the embedded multimedia card clock line, which causes a change in the setup time and the hold time.

[0075] Step S15: performing phase adjustment on the clock signal of the embedded multimedia card based on the current adjustment operation configuration value, and sampling the data signal based on the adjusted clock signal.

[0076] Step S16: Verify whether the sampled target data sequence is correct, so as to realize prototype verification of the embedded multimedia card interface.

[0077] The embodiment of the present invention can verify whether the sampled target data sequence is correct by comparing the correct target data sequence with the sampled target data sequence to see if they are consistent. If they are consistent, the target data sequence is correct; otherwise, the target data sequence is incorrect.

[0078] Furthermore, the embodiment of the present invention can also adjust the adjustment operation configuration value multiple times, and after each adjustment of the adjustment operation configuration value, trigger the step of sending an adjustment operation command to the embedded multimedia card; accordingly, the verification of whether the target data sequence obtained by sampling is correct to achieve prototype verification of the embedded multimedia card interface includes: verifying whether the target data sequence obtained by sampling is correct to verify the embedded multimedia card interface during the adjustment operation; determining the adjustment operation configuration value range corresponding to the adjustment operation configuration value when the target data sequence obtained by sampling is correct; determining the middle value of the adjustment operation configuration value range as the optimal adjustment operation configuration value; comparing the optimal adjustment operation configuration value with the theoretical value to achieve verification of the adjustment operation; and triggering a target type test of the embedded multimedia card interface when the adjustment operation passes the verification. Wherein, the middle value can be obtained by dividing the sum of the endpoints of the adjustment operation configuration value range by two.

[0079] In an optional embodiment, if the difference between the optimal adjustment operation configuration value and the theoretical value is less than a preset difference threshold, the adjustment operation can be determined to have passed verification. Alternatively, a curve can be plotted showing the optimal adjustment operation configuration value changing with environmental parameters, such as a curve showing the optimal adjustment operation configuration value changing with increasing temperature. The adjustment operation can be further verified by comparing the curvature or trend of this curve with that of the theoretical value curve. This allows for a more accurate determination of whether the adjustment operation is functioning properly.

[0080] In an optional embodiment, the target type test includes but is not limited to one or more of a read-write test, a command execution test, an interface compatibility test, a transmission rate test, a concurrent access test, a life test, and an error handling test.

[0081] In other words, in addition to verifying adjustment operations, embodiments of the present invention also perform read and write functionality tests and transfer rate tests on the eMMC interface. Read and write tests verify data integrity and accuracy by writing data to the eMMC and then reading it. Command execution ensures that the eMMC can correctly respond to and execute all predefined commands, such as read, write, and erase. Interface compatibility verifies the compatibility of the eMMC interface with the host controller, ensuring the correctness of data transfer and command execution. Transfer rate testing measures the eMMC transfer rate by continuously writing and reading large amounts of data and verifies whether it meets expected performance indicators. Concurrent access testing tests the eMMC's concurrent access capabilities in a multi-tasking environment to evaluate its performance under high load. Lifespan testing evaluates the eMMC's lifespan and durability by simulating long-term read and write operations. Error handling testing verifies the eMMC's error handling and data recovery capabilities in situations such as data errors, command errors, or power failures. This not only verifies the eMMC interface's functionality and performance at the application layer, but also covers low-level verification of the eMMC interface.

[0082] It's important to note that eMMC is an integrated circuit chip storage solution primarily used in embedded systems and mobile devices. It features a compact size, high integration, low power consumption, and reliable storage capabilities. eMMC technology uses NAND flash memory as the storage medium, integrating the flash controller and storage capacity into a design that delivers high-performance, low-power storage solutions. Key features of eMMC technology include: 1) High reliability, utilizing ECC (error correction code) technology for reliable data transmission and storage protection; 2) A standardized interface, utilizing the MMC (MultiMediaCard) interface standard for compatibility with a variety of controller chips; and 3) Excellent performance, with fast read and write speeds and low-latency data access.

[0083] See also Figure 2 As shown, Figure 2This diagram illustrates an eMMC interface signal diagram provided by an embodiment of the present invention. The eMMC interface primarily consists of a clock signal, CLK, a set of CMD (command) signals, and a data line, DATA, supporting bidirectional transmission. The DATA signal is 8 bits wide. STROBE, or Data Strobe, is a data latch signal output from the device (eMMC device). During data transmission, particularly in high-speed data transmission modes (such as HS400), it ensures synchronization of data output from the device. The development of eMMC technology in the high-speed storage field is primarily reflected in two aspects: speed and capacity. Regarding speed, eMMC supports multiple speed modes. In HS200 and HS400 modes, the interface clock frequency reaches up to 200MHz, significantly increasing data rates compared to previous modes. HS200 mode, in eMMC technology, is a high-speed transmission mode, specifically referring to data transmission at SDR (Single Data Rate) with a clock frequency (CLK) of 200MHz. HS400 mode represents the highest data transmission speed in the eMMC protocol. By adopting DDR (double data rate) technology, under the condition of a clock frequency of 200MHz, data can be transmitted simultaneously on the rising and falling edges of the clock, thereby increasing the data transmission rate to the theoretical maximum value.

[0084] To ensure proper operation of the eMMC interface in HS200 / HS400 mode, the eMMC protocol introduces a tuning mechanism (i.e., adjusting the timing of received data sampling). Tuning involves reading a known tuning data block from the eMMC. The eMMC host (i.e., the eMMC controller) verifies the received data block for accuracy. If not, this indicates that the setup and hold time between the clock and data on the eMMC interface does not meet the required setup and hold time, leading to data sampling errors. The tuning process adjusts the clock delay to shift the relative phase between the clock and data on the eMMC interface to meet the data setup and hold time requirements and ensure correct data sampling. After tuning completes the timing adjustment, data can be read from the eMMC chip. During chip design, the eMMC interface must support tuning to support the HS200 / HS400 high-speed modes.

[0085] For further information, see Figure 3 As shown, Figure 3A schematic diagram of an embedded multimedia card interface prototype verification framework provided by an embodiment of the present invention. This invention addresses the issue of insufficient coverage of eMMC interface prototype verification technology by adding a module to the prototype verification architecture for configuring and monitoring the tuning process (i.e., adjusting the sampling time of received data). This module can incorporate potential changes in the chip's PVT operating environment into the prototype verification environment to verify the correctness and efficiency of the tuning process handled by the eMMC interface controller and driver software, thereby improving the completeness of the eMMC interface prototype verification. The aforementioned target type test is also performed. The driver software is the control software of the eMMC controller. Adjustments to the tuning configuration values ​​during the tuning process can be performed by the driver software. The DLL module is the module for adjusting the clock phase delay. During the tuning process, the eMMC controller continuously adjusts the delay value based on sampling conditions to confirm that the tuning configuration value (i.e., the tuning configuration value) meets the sampling timing requirements, ensuring that the DATA signal meets the CLK sampling setup and hold time. A trigger is used to sample the data signal. Continuously modifying the tuning configuration value can result in correct sampling for some configuration values ​​but incorrect sampling for others. The correct continuous tuning configuration values ​​are then sampled as a sampling window. Based on the maximum window sequence of tuning configuration values, the middle value in the window sequence is selected as the tuning configuration result. The tuning process is also a key feature that requires verification of the eMMC interface. If the tuning algorithms of the eMMC controller and driver software are not compatible, tuning failures or low efficiency may occur.

[0086] The embodiments of the present invention can verify the relevant characteristics of the tuning algorithms for the eMMC controller and driver software. This verification takes into account the verification requirements for the eMMC interface in high-speed modes (such as HS200 / HS400) and covers the functionality and efficiency verification of the tuning process for the eMMC controller and driver software under different PVT conditions. For example, the sampling point and sampling window vary under different temperature conditions. Under different junction temperatures, the sampling point offset can reach approximately 1900ps. For a 200MHz clock cycle in HS200 mode, this can offset half a clock cycle, significantly affecting the selection of tuning configuration values. The impact is even more severe at the DDR data rates of HS400 mode. By covering the tuning process verification and verifying the eMMC interface controller and driver software under PVT variations, functional design or driver code defects can be promptly identified during the eMMC chip design process. For example, it can verify that the chip's eMMC interface can correctly detect temperature changes and promptly perform new eMMC interface tuning when the ambient temperature changes, and that it can correctly detect the sampling window and select the correct tuning configuration values.

[0087] The present invention introduces an eMMC interface delay configuration module, which can actively introduce delay for the data line according to the PVT simulation coefficient, that is, the delay configuration value, and simulate the eMMC interface delay time under different PVT change environments to verify the tuning function of the eMMC interface controller and the driver software. Figure 3 As shown, the present invention adds a data delay module in the data path of the eMMC interface, and the data delay module can phase-delay the DATA data line input signal according to the configured value. After the DATA data line generates different delays, the relative phase with the eMMC CLK signal changes, resulting in changes in the setup time and hold time. The control unit dynamically configures the data delay module according to the conditions to be simulated. The dynamic here means that during the operation of the verification environment, the delay time configuration of the delay module can be updated according to the required cycle or time interval. For example, the control unit can change the data delay configuration value in an incremental form every 30 seconds, trigger a tuning each time the data delay is changed, and test whether the eMMC interface data operation is correct after the tuning is completed, until the tuning process and the verification of the eMMC interface data operation under all delay values ​​are completed.

[0088] The control unit's delay configuration values ​​are derived from a PVT simulation table (i.e., a simulated environment table). Different PVT environments are simulated based on pre-stored data in the table. To verify eMMC interface tuning under different operating temperatures, the table stores path delay values ​​corresponding to different temperatures, row by row. The control unit then reads the path delay values ​​corresponding to temperature t0 at specified intervals and configures them into the data delay unit. This simulates the current eMMC interface data delay under the operating conditions corresponding to temperature t0, verifying proper eMMC interface tuning and operation at that temperature. The PVT simulation table can store empirical delay values ​​for different process corners, operating voltages, and operating temperatures to verify eMMC interface timing adjustments and operating status under all conditions. See Table 1 for an example of a PVT simulation table.

[0089] Table 1

[0090]

[0091] The control unit reads the delay values ​​under different operating temperature values ​​in sequence and configures them to the delay module. After each delay value is configured, the eMMC interface driver software can obtain the change in the current operating temperature value, trigger the tuning operation, and obtain a new tuning value (i.e., the optimal adjustment operation configuration value). The present invention uses analog values ​​to simulate different operating temperatures of the chip, and the tuning process within the entire operating temperature range can be scanned at the stable operating temperature of the FPGA. After completing the tuning in this order, the tuning values ​​generated by the verification results under different operating temperature conditions can form the following tuning value curve, see Figure 4 As shown, Figure 4 A schematic diagram of a tuning value provided by an embodiment of the present invention is provided. Figure 4 The curve is plotted as a straight line, but the actual change is not necessarily linear. After completing the eMMC interface verification in this order, you can compare the tuning value curve with empirical or theoretical values ​​to verify the correctness of the eMMC interface and tuning algorithm at different operating temperatures. The tuning values ​​do not necessarily have to match exactly; the trend or curvature of the tuning value curve can also be used as a reference for comparison.

[0092] The above takes the working temperature as an example to illustrate the basic process of the verification method of the present invention. Correspondingly, the PVT simulation table can pre-store delay values ​​according to process parameters, operating voltage, etc. independently or in combination of multiple conditions, and combine to form a variety of verification delay sequences to fully verify the tuning function of the eMMC interface under different working conditions. It should be noted that the present invention provides a method for simulating different delay data of the chip eMMC interface under different working conditions for prototype verification of the eMMC interface, thereby improving the verification coverage rate, and can build and provide a comprehensive and efficient software development and testing environment in advance for software driver development of the eMMC interface before the complex and time-consuming production stage of chip tape-out. This environment simulates the behavioral characteristics of the eMMC interface in actual hardware, allowing software developers to write, debug, optimize and evaluate the performance of the tuning code of the eMMC driver in virtual or near-real scenarios, thereby greatly shortening the software development cycle.

[0093] The present invention introduces a PVT simulation table mechanism that pre-stores different operating conditions. By leveraging the configurability of the control unit and delay module, the chip's eMMC interface can simulate the interface delay under different eMMC operating conditions in a prototype verification environment, thereby fully verifying the eMMC interface function and software-driven tuning algorithm. This eliminates the need to wait for chip return for verification and the need to frequently change the chip's operating temperature, voltage, or process (actually changing these environments often requires more complex work).

[0094] In the eMMC interface prototype verification architecture, the present invention adds a configurable delay module to the eMMC data line path, so that the tuning data block input during the eMMC interface tuning process undergoes a controlled delay before entering the eMMC for sampling. At the same time, a PVT simulation table mechanism is introduced into the eMMC interface prototype verification architecture method, using pre-stored data delay values ​​to simulate the delay of the eMMC interface chip in different environments, providing a near-real environment for eMMC interface verification and software driver development. The tuning process of the SD card interface is also applicable to the present invention.

[0095] It can be seen that the embodiment of the present invention obtains the delay configuration value corresponding to the target simulation environment through the correspondence between the preset simulation environment and the delay configuration value, and configures it to the data delay module connected to the data line of the embedded multimedia card, so that the data signal of the data line of the embedded multimedia card can be phase delayed by the data delay module to simulate the data signal transmission in the corresponding real environment, and triggers the adjustment operation of the received data sampling time point, sends an adjustment operation command to the embedded multimedia card, so that the embedded multimedia card transmits a data signal carrying a specific data sequence, and phase adjusts the clock signal of the embedded multimedia card based on the current adjustment operation configuration value. The data signal is sampled based on the adjusted clock signal, and the data signal is phase delayed by the data delay module. It is verified whether the target data sequence obtained by sampling is correct, thereby realizing prototype verification of the adjustment operation and the embedded multimedia card interface involved in the adjustment operation, improving the coverage of the embedded multimedia card interface verification, and eliminating the need to wait for tape-out before testing, which can improve development efficiency.

[0096] Figure 5 This is a schematic diagram of the structure of an embedded multimedia card interface prototype verification device provided by an embodiment of the present invention. The embedded multimedia card interface prototype verification device may include:

[0097] The delay configuration value acquisition module 51 is used to obtain the delay configuration value corresponding to the target simulation environment based on the preset corresponding relationship;

[0098] a delay configuration value configuration module 52, configured to configure the delay configuration value to a data delay module connected to a data line of the embedded multimedia card;

[0099] The adjustment operation triggering module 53 is used to trigger the adjustment operation of the received data sampling time point, and send an adjustment operation command to the embedded multimedia card so that the embedded multimedia card responds to the adjustment operation command and transmits a data signal carrying the target data sequence through the embedded multimedia card data line; accordingly,

[0100] a data delay module 54, configured to perform a phase delay on the data signal based on the delay configuration value;

[0101] a clock signal adjustment module 55 for performing phase adjustment on the clock signal of the embedded multimedia card based on the current adjustment operation configuration value, and sampling the data signal based on the adjusted clock signal;

[0102] The sampling value verification module 56 is used to verify whether the target data sequence obtained by sampling is correct, so as to realize the prototype verification of the embedded multimedia card interface.

[0103] The device further comprises:

[0104] A correspondence building module, configured to build a correspondence between the simulation environment and the delay configuration value, and obtain the preset correspondence, wherein different simulation environments correspond to different delay configuration values;

[0105] A simulation environment table generating module is used to store the preset corresponding relationship into a target table to obtain a simulation environment table;

[0106] Correspondingly, the delay configuration value acquisition module 51 is configured to read the simulation environment table and acquire the delay configuration value corresponding to the target simulation environment based on a preset corresponding relationship.

[0107] Wherein, any simulated environment is a combination of one or more environmental parameters including process, voltage, temperature, and humidity.

[0108] In an optional implementation, the delay configuration value acquisition module 51 may be configured to traverse simulation environments from the preset corresponding relationship, sequentially determine the traversed simulation environments as target simulation environments, and acquire the delay configuration value corresponding to the target simulation environment.

[0109] In an optional implementation, the delay configuration value acquisition module 51 may be configured to traverse the simulation environment from the preset corresponding relationship in the order of preset environmental parameters from large to small or from small to large.

[0110] The device is further configured to: adjust the adjustment operation configuration value multiple times, and after each adjustment of the adjustment operation configuration value, trigger the step of sending an adjustment operation command to the embedded multimedia card;

[0111] Accordingly, the sampling value checking module 56 can be used to:

[0112] Verifying whether the sampled target data sequence is correct to verify the embedded multimedia card interface during the adjustment operation;

[0113] Determine the adjustment operation configuration value range corresponding to the adjustment operation configuration value when the sampled target data sequence is correct;

[0114] Determining a middle value of the adjustment operation configuration value range as an optimal adjustment operation configuration value;

[0115] Comparing the optimal adjustment operation configuration value with a theoretical value to verify the adjustment operation;

[0116] In the case that the adjustment operation passes the verification, a target type test of the embedded multimedia card interface is triggered.

[0117] The target type test includes one or more of a read-write test, a command execution test, an interface compatibility test, a transmission rate test, a concurrent access test, a life test, and an error handling test.

[0118] It can be seen that the embodiment of the present invention obtains the delay configuration value corresponding to the target simulation environment through the correspondence between the preset simulation environment and the delay configuration value, and configures it to the data delay module connected to the data line of the embedded multimedia card, so that the data signal of the data line of the embedded multimedia card can be phase delayed by the data delay module to simulate the data signal transmission in the corresponding real environment, and triggers the adjustment operation of the received data sampling time point, sends an adjustment operation command to the embedded multimedia card, so that the embedded multimedia card transmits a data signal carrying a specific data sequence, and phase adjusts the clock signal of the embedded multimedia card based on the current adjustment operation configuration value. The data signal is sampled based on the adjusted clock signal, and the data signal is phase delayed by the data delay module. It is verified whether the target data sequence obtained by sampling is correct, thereby realizing prototype verification of the adjustment operation and the embedded multimedia card interface involved in the adjustment operation, improving the coverage of the embedded multimedia card interface verification, and eliminating the need to wait for tape-out before testing, which can improve development efficiency.

[0119] Figure 5 The description of the features in the corresponding embodiment can be found in Figure 1 The relevant descriptions of the corresponding embodiments will not be repeated here one by one.

[0120] Figure 6 A structural diagram of an electronic device provided by an embodiment of the present invention, such as Figure 6 As shown, the electronic device includes: a memory 60 for storing computer programs;

[0121] The processor 61 is configured to implement the steps of the embedded multimedia card interface prototype verification method according to the above embodiment when executing a computer program.

[0122] The processor 61 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 61 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 61 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 61 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing content required to be displayed on the display screen. In some embodiments, the processor 61 may also include an artificial intelligence (AI) processor for handling computational operations related to machine learning.

[0123] The memory 60 may include one or more computer-readable storage media, which may be non-transitory. The memory 60 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 60 is at least used to store the following computer program 601, wherein, after the computer program is loaded and executed by the processor 61, it can implement the relevant steps of the embedded multimedia card interface prototype verification method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 60 may also include an operating system 602 and data 603, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 602 may include Windows, Unix, Linux, etc. The data 603 may include but is not limited to delay configuration values, etc.

[0124] In some embodiments, the electronic device may further include a display screen 62 , an input / output interface 63 , a communication interface 64 , a power supply 65 , and a communication bus 66 .

[0125] Those skilled in the art will understand that Figure 6 The structure shown in the figure does not constitute a limitation of the electronic device, and may include more or fewer components than shown in the figure.

[0126] It is understandable that if the embedded multimedia card interface prototype verification method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the current technology, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the various embodiments of the present invention. The aforementioned storage medium includes: USB flash drives, mobile hard drives, read-only memories (ROM), random access memories (RAM), electrically erasable programmable ROMs, registers, hard drives, removable disks, CD-ROMs, magnetic disks, or optical disks, and other media that can store program code.

[0127] Based on this, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the above-mentioned embedded multimedia card interface prototype verification method are implemented.

[0128] A computer program product provided by an embodiment of the present invention is introduced below. The computer program product described below can be referenced with other embodiments described herein.

[0129] A computer program product includes a computer program / instruction, which implements the steps of the above disclosed embedded multimedia card interface prototype verification method when executed by a processor.

[0130] The above describes in detail the embedded multimedia card interface prototype verification method, apparatus, device, and medium provided by the embodiments of the present invention. The various embodiments are described in a progressive manner throughout this specification, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between the various embodiments can be referenced for reference. The apparatus disclosed in the embodiments corresponds to the method disclosed in the embodiments, so the description is relatively simple. For relevant details, refer to the method description.

[0131] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.

[0132] The above is a detailed introduction to the method, device, equipment and medium for prototyping an embedded multimedia card interface provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only intended to help understand the method and core ideas of the present invention. It should be pointed out that, for those skilled in the art, several improvements and modifications can be made to the present invention without departing from the principles of the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A method for prototyping an embedded multimedia card interface, characterized in that: include: Obtaining a delay configuration value corresponding to the target simulation environment based on a preset corresponding relationship; configuring the delay configuration value to a data delay module connected to a data line of the embedded multimedia card; triggering an adjustment operation of a sampling time point of received data, and sending an adjustment operation command to an embedded multimedia card, so that the embedded multimedia card responds to the adjustment operation command and transmits a data signal carrying a target data sequence through a data line of the embedded multimedia card; Performing phase delay on the data signal by the data delay module and based on the delay configuration value; Performing phase adjustment on a clock signal of the embedded multimedia card based on a current adjustment operation configuration value, and sampling the data signal based on the adjusted clock signal; Verify whether the sampled target data sequence is correct to achieve prototype verification of the embedded multimedia card interface.

2. The embedded multimedia card interface prototype verification method according to claim 1, characterized in that: Also includes: Constructing a correspondence between a simulation environment and a delay configuration value to obtain the preset correspondence, wherein different simulation environments correspond to different delay configuration values; Storing the preset corresponding relationship in a target table to obtain a simulation environment table; Correspondingly, the step of obtaining the delay configuration value corresponding to the target simulation environment based on the preset corresponding relationship includes: The simulation environment table is read, and the delay configuration value corresponding to the target simulation environment is obtained based on a preset corresponding relationship.

3. The embedded multimedia card interface prototype verification method according to claim 2, characterized in that: Any simulated environment is a combination of one or more environmental parameters including process, voltage, temperature and humidity.

4. The embedded multimedia card interface prototype verification method according to claim 3, characterized in that: Obtain the delay configuration value corresponding to the target simulation environment based on the preset corresponding relationship, including: The simulation environments are traversed from the preset corresponding relationship, the traversed simulation environments are determined as target simulation environments in turn, and the delay configuration value corresponding to the target simulation environment is obtained.

5. The method for prototyping an embedded multimedia card interface according to claim 4, characterized in that: The traversing the simulation environment from the preset corresponding relationship includes: The simulation environment is traversed from the preset corresponding relationship in the order of preset environment parameters from large to small or from small to large.

6. The method for prototyping an embedded multimedia card interface according to any one of claims 1 to 5, characterized in that: Also includes: Adjusting the adjustment operation configuration value multiple times, and after each adjustment of the adjustment operation configuration value, triggering the step of sending an adjustment operation command to the embedded multimedia card; Accordingly, the verification of whether the sampled target data sequence is correct to implement prototype verification of the embedded multimedia card interface includes: Verifying whether the sampled target data sequence is correct to verify the embedded multimedia card interface during the adjustment operation; Determine the adjustment operation configuration value range corresponding to the adjustment operation configuration value when the sampled target data sequence is correct; Determining a middle value of the adjustment operation configuration value range as an optimal adjustment operation configuration value; Comparing the optimal adjustment operation configuration value with a theoretical value to verify the adjustment operation; In case the adjustment operation passes the verification, a target type test on the embedded multimedia card interface is triggered.

7. The method for prototyping an embedded multimedia card interface according to claim 6, characterized in that: The target type test includes one or more of a read-write test, a command execution test, an interface compatibility test, a transmission rate test, a concurrent access test, a life test, and an error handling test.

8. An embedded multimedia card interface prototype verification device, characterized in that: include: A delay configuration value acquisition module is used to obtain a delay configuration value corresponding to a target simulation environment based on a preset corresponding relationship; A delay configuration value configuration module, used to configure the delay configuration value to a data delay module connected to a data line of the embedded multimedia card; an adjustment operation triggering module, used for triggering an adjustment operation of a received data sampling time point, and sending an adjustment operation command to an embedded multimedia card, so that the embedded multimedia card responds to the adjustment operation command and transmits a data signal carrying a target data sequence through a data line of the embedded multimedia card; correspondingly, the data delay module is used for performing a phase delay on the data signal based on the delay configuration value; A clock signal adjustment module, used to perform phase adjustment on the clock signal of the embedded multimedia card based on the current adjustment operation configuration value, and to sample the data signal based on the adjusted clock signal; The sampling value verification module is used to verify whether the target data sequence obtained by sampling is correct, so as to realize the prototype verification of the embedded multimedia card interface.

9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program to implement the steps of the embedded multimedia card interface prototype verification method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the embedded multimedia card interface prototype verification method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Method for improving IO anti-noise capability of eMMC memory

    CN121963825A