| With the rapid development of DSP technology, digital signal processor chip is widely applied in the field of electronic communications. So, the question of how to make the data efficiently as well as speedily transmitted between the DSP chip and external storage device has become a primary concern.X-D SP is a high performa nce multi-c ore DSP.It adopts VLIW arc hitecture and SMID technology, s upports fixed-point and floating-point operations. SPI is a ke y periphera l of DSP, a nd it is importa nt to the a pplication of X-D SP. After a thorough research on SPI interface s pecification, this paper has des igned a SPI Flash controller whic h has various functions. Here summarize the main content in this paper:1. According to ne twork interface spec ification of X–DSP, interface module has been des igne d. This interface achieved ha nds haking be tween the netw ork bus and controller, made flash process write/read request form the bus correctly.2. After through configuration bus of X-DSP send the read/write request and visit address, configuration module has bee n des ign. This module achie ved decoding correctly on the read/write request and vis it address, made the SPI flas h controller registers configurate correctly.3. According to seria l trans miss ion be tween X-D SP and flas h, control module has bee n des igne d. This module achie ved status, timing and send data transce iver control. In this module, the function of the Flash operation has optimized. A methord of underlying hardware to check the status of operation mechanism is presented which it has implemented sustainable operation for many times with flash. This method has simplified read and write operations infinitely, and improved the speed of write operation greatly.4. We have finished the simulation and functionally verification of SPI Flash controller sufficiently. In the block-level verification process, test module has verified the controller functions validity and feasibility. The system- level verification simulates full chip test environment, according to the write request from configure bus send into the register of SPI Flash controller, achieved the read/write access into the flash correctly.Finally, this paper has analyzed functional coverage and code coverage with the IMC software during the module level and sys tem level verification process. The results show that the SPI flash controller function properly, and coverage has achieved requirements. |