In recent years,with the continuous enhancement of the integration and complexity of chips,the traditional RTL-level design method has gradually become unable to cope with large-scale gate-level design tasks.Therefore,designers urgently need a more efficient design method.This article implements an SPI module that supports various modes based on the BSV(Bluespec System Verilog)language.Compared with traditional design languages,BSV re-lies on rich built-in modules and a higher level of abstraction,which makes the design more focused on behav-ioral-level descriptions and shortens the integration and verification time of the module.After simulation verification,the design module completed by BSV can well implement the corresponding logical functions.