| In various lighting scenes in the field of vehicle light control,the light control board composed of the light control SoC plays a very important role in real-time control of the color,color temperature and brightness of the light.This paper focuses on the design and verification of ambient light control SoC based on the ARM Coretex-M3 processor,designs its basic peripheral modules,and extracts functional verification points for them,formulates module-level and SoC-level verification schemes,and designs corresponding Based on UVM’s coverage model,a module-level and SoC-level verification platform was finally built,and the module-level verification and SoC-level verification of the sub-modules of the ambient light control SoC were completed.Based on the functional requirements of the ambient light control SoC,this article selects the Coretex-M3 processor and selects its existing SoC architecture design,designing it to add DMA based on data transmission requirements,adding a true random number generator TRNG based on system security requirements,and designing In addition to the watchdog watchdog,a real-time clock RTC and an external timer Timer for outputting PWM signals are designed based on the requirements of the light-controlled output,and the UART module completes the requirements for function implementation.Based on the UVM verification method,a test verification strategy for the functions of the ambient light control SoC was developed,verification function points were extracted,and a bus UVC and a module UVC were designed and built to achieve a module-level verification platform,where the bus UVC simulates host behavior at the module level After module verification,the module UVC drives the module at the module level.The main UVC basic structural components such as the UVC excitation generation unit,interaction unit,comparator,environmental components,and coverage collection unit are designed.The system-level standardized verification instruction set and transmission system are designed,and the module-level UVC is reused to build a system-level verification platform for the bottom layer.In this paper,four self-developed APB peripherals use SV to write limited random excitation with UVM methodology to complete module-level verification,and SoC level uses ARM CMSIS framework to write C test cases to reset the ambient light control SoC,data path,and memory The functions of the controller,system-level interrupt response function and DMA function were verified.Design oriented test cases and restricted random test cases,combined with hardware and software co-simulation.This article uses VCS for simulation,regression testing through regression tools,and validates the verification work from the VCS simulation results and coverage reports.104 assertion points are inserted for the APB,AHB,and UART timing protocols involved,and each peripheral module function And the system-level functions have designed a complete function coverage warehouse,which is verified by random seeds.A total of 8133 verification scenarios are generated.This intermediate module-level verification scenario is5740,divided into 982 direct verification scenarios and 4758 random verification scenarios.;2393 system-level verification scenarios,divided into 517 direct verification scenarios and 1876 random verification scenarios,the final return pass rate is 100%.Through the code coverage report,function coverage report and assertion coverage report to write direct test cases to test the uncovered function points,the final code coverage converges to 96.94%,both the function coverage and the assertion coverage reach 100%,Meet the coverage requirements,complete SoC verification. |