[go: up one dir, main page]

CN106776467B - SPI FLASH control chip for command receiving system - Google Patents

SPI FLASH control chip for command receiving system Download PDF

Info

Publication number
CN106776467B
CN106776467B CN201611156694.3A CN201611156694A CN106776467B CN 106776467 B CN106776467 B CN 106776467B CN 201611156694 A CN201611156694 A CN 201611156694A CN 106776467 B CN106776467 B CN 106776467B
Authority
CN
China
Prior art keywords
module
data
read
interface module
flash
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611156694.3A
Other languages
Chinese (zh)
Other versions
CN106776467A (en
Inventor
陈尔钐
操炜鼎
陈永良
张帆
胡霄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CETC 20 Research Institute
Original Assignee
CETC 20 Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CETC 20 Research Institute filed Critical CETC 20 Research Institute
Priority to CN201611156694.3A priority Critical patent/CN106776467B/en
Publication of CN106776467A publication Critical patent/CN106776467A/en
Application granted granted Critical
Publication of CN106776467B publication Critical patent/CN106776467B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7839Architectures of general purpose stored program computers comprising a single central processing unit with memory
    • G06F15/7842Architectures of general purpose stored program computers comprising a single central processing unit with memory on one IC chip (single chip microcontrollers)
    • G06F15/7846On-chip cache and off-chip main memory
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

本发明提供了一种用于命令接收系统的SPI FLASH控制芯片,状态机模块指示FLASH接口模块对外部SPI FLASH进行读操作;FLASH接口模块接收字数据通过字接收模块传递给双口RAM模块;状态机模块通过数据校验模块校验信号正确或错误,若错误,FLASH接口模块重新对外部SPI FLASH进行读数据操作;若正确,状态机模块指示解码芯片接口模块对双口RAM模块进行数据读取操作。本发明能够满足接收机指令系统的应用需求,灵活性更强,传输稳定,传输信号线少,面积小及应用简单,兼顾了器件内部资源利用、功耗以及批量生产的要求。

Figure 201611156694

The invention provides an SPI FLASH control chip used for a command receiving system. A state machine module instructs a FLASH interface module to read an external SPI FLASH; the FLASH interface module receives word data and transmits it to a dual-port RAM module through the word receiving module; The machine module checks whether the signal is correct or incorrect through the data verification module. If it is wrong, the FLASH interface module re-reads data from the external SPI FLASH; if it is correct, the state machine module instructs the decoding chip interface module to read data from the dual-port RAM module. operate. The invention can meet the application requirements of the receiver command system, has stronger flexibility, stable transmission, less transmission signal lines, small area and simple application, and takes into account the requirements of device internal resource utilization, power consumption and mass production.

Figure 201611156694

Description

SPI FLASH control chip for command receiving system
Technical Field
The invention belongs to the technical field of electronic components, in particular to a digital chip, and particularly relates to an SPI FLASH control chip of a command receiving system.
Background
The conventional command receiving system is composed of a power management module, a decoding chip and a receiver, and the working principle among the three is shown in fig. 1. According to the system, the decoding chip receives serial port data, handshake data information is output through the three SPI data lines, and the receiver determines whether to reply to the response operation of the decoding chip by comparing whether the handshake data information is consistent with the internal setting. The system has the following disadvantages in application:
1. because the receiver is different in manufacturing process and method in the process of batch production, the internal handshake data information of the receiver is different, and the decoding chip cannot communicate with the receiver module if the decoding chip adopts the fixed handshake data information, so that the system does not respond.
2. High-power-consumption components such as an FPGA (field programmable gate array) and a single chip microcomputer are adopted to realize the function of the controller chip, the resource utilization efficiency is low, and the packaging volume is larger than that of a common IC (integrated circuit) chip. The design of components and parts with high resource utilization rate, low power consumption and small volume is the development direction for improving the practicability of military equipment.
3. Foreign devices are adopted and directly applied to the system, so that the use confidentiality is high, and the risk of forbidden transport is faced. Therefore, the independent development of the SPI FLASH control chip of the system has important significance in the localization of components.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides the SPI FLASH control chip for the command receiving system, and according to the advantages of stable data transmission, small area and few signal lines of the SPI FLASH, the configuration of the handshake data inside the decoding chip is realized by controlling the SPI FLASH outside the decoding chip, so that the application requirement of the decoding chip in the command receiving system is realized.
The technical scheme adopted by the invention for solving the technical problems is as follows: an SPIFLASH control chip for a command receiving system comprises a frequency division module, a double-port RAM module, a data verification module, a FLASH interface module, a state machine module and a decoding chip interface module.
The FLASH interface module comprises a shift register, a word receiving module and a read instruction sending module; the decoding chip interface module comprises a read address sending module and a shift register; the frequency division module adopts a decoding chip clock to generate a frequency division clock, and the frequency division clock is provided for the double-port RAM module, the data verification module, the FLASH interface module, the state machine module and the decoding chip interface module; the state machine module sends a read instruction signal to the FLASH interface module, and the read instruction sending module of the FLASH interface module outputs three SPI signals including chip selection, clock and data input and reads an external SPI FLASH; the shift register of the FLASH interface module samples and converts the external SPIFLASH data output signal in serial-parallel mode according to the SPI clock and chip selection signal generated by the read instruction sending module, and the received data is transmitted to the word receiving module; the word receiving module transmits the word data to the double-port RAM module through the word receiving completion and the word data signal to receive and store the word data; after the data is received, the state machine module verifies whether the signal is correct or wrong through the data verification module, if the signal is verified to be wrong, the state machine module indicates the FLASH interface module to close the write enabling signal, resends the SPI FLASH read operation instruction, and performs data reading operation on the external SPIFLASH; if the check is correct, the state machine module opens the read enable signal to indicate the decoding chip interface module to prepare for data reading operation on the dual-port RAM module, the decoding chip interface module controls the dual-port RAM module to output stored word data by providing a read address in cooperation with a read clock and the read enable signal, the read address sending module receives parallel data output by the dual-port RAM module and transmits the parallel data to a shift register of the decoding chip interface module to generate three SPI signals, the requirement of handshake data writing time sequence of the decoding chip is met, and therefore the purpose of internal data configuration is achieved.
The invention has the beneficial effects that:
1) the invention overcomes the defect that the internal handshake data information of the decoding chip can not be modified by adopting the mode of the SPI FLASH and the control chip, can meet the application requirement of a receiver instruction system and has stronger flexibility.
2) The invention adopts the mode of the SPI FLASH and the control chip, wherein the SPI FLASH has the advantages of stable data transmission, less transmission signal lines, small area and simple application, and simultaneously meets the time sequence requirement between the SPI FLASH and the SPI data read-write time sequence of the decoding chip, so that the SPI FLASH can be directly applied to a command receiving system.
3) The invention adopts the mode of SPI FLASH and the controller chip, thereby ensuring the localization rate of the application requirement of the command receiving system on one hand and also considering the requirements of the resource utilization, the power consumption and the batch production in the device on the other hand.
Drawings
FIG. 1 is a schematic diagram of the operation of a command receiving system;
FIG. 2 is a block diagram of an application of the SPI FLASH control chip according to the present invention;
fig. 3 is a schematic block diagram of an SPI FLASH control chip.
Detailed Description
The present invention will be further described with reference to the following drawings and examples, which include, but are not limited to, the following examples.
The SPI FLASH control chip is integrated with a frequency division module, a double-port RAM module, a data verification module, a FLASH interface module, a state machine module and a decoding chip interface module. The frequency division module adopts a decoding chip clock to generate a frequency division clock which is provided for each module in the control chip; the state machine module reads the instruction signal and instructs the FLASH interface module to send a read instruction, and three SPI signals (chip selection, clock and data input) are output to read the external SPI FLASH; after the read instruction is sent, the state machine module writes an enable signal to indicate the dual-port RAM module to open a receiving enable to prepare for receiving word data; after the data is received, the state machine module reads an enable signal to indicate the dual-port RAM module to open a sending enable to prepare for sending word data; the state machine module sends an enable signal to indicate the decoding chip interface module to open data sending enable, three SPI signals (chip selection, clock and data input) are prepared to be output, and handshake data writing operation is carried out on the decoding chip. The FLASH interface module outputs three SPI signals (chip selection, clock and data input) to read an external SPI FLASH, and serial data of the SPI FLASH is converted into parallel word data. The data checking module checks the received word data and judges whether the data is correct or not after all the data are received. The dual-port RAM module stores the received word data according to the write enable and write address signals; and outputting the storage data to the decoding chip interface module according to the read enable and read address signals. The decoding chip interface module performs parallel-serial conversion on the received word data, outputs three SPI data signals (chip selection, clock and data input), and performs handshake data writing operation on the decoding chip.
Above-mentioned SPI FLASH control chip has realized that SPI FLASH data reads, decodes chip data write in, has guaranteed that command receiving system handshake data sets up unanimously with the inside handshake data of decoding chip, has overcome because of manufacturing process error, SPIFLASH and the not unanimous between two handshake information that causes of reasons such as decoding chip time sequence requirement unsatisfied, the unable normal work's of command receiving system not enough.
As shown in fig. 3, the chip according to the embodiment of the present invention includes a frequency division module 1, a dual-port RAM module 2, a FLASH interface module 3, a data check module 4, a state machine module 5, and a decoding chip interface module 6. The frequency division module 1 generates a frequency division clock by adopting a clock input provided by a decoding chip and provides the frequency division clock for each module in the control chip; the dual-port RAM module 2 adopts a dual-port RAM form and is used for storing handshake data; the FLASH interface module 3 comprises a read instruction sending module 7, a word receiving module 8 and a shift register 9, wherein the read instruction sending module 7 is used for receiving a read instruction sending signal of the state machine module 5 and sending a read instruction to the SPI FLASH through three SPI signal lines; the shift register 9 realizes serial-parallel conversion of the SPI data, and converts a received serial data input signal into parallel word data; the receiving module 8 transfers the received word data to the dual-port RAM module for data storage. The data check module 4 checks the received word data, and determines whether the data is correct after all the data are received. The state machine module 5 instructs the FLASH interface module 3 to send a read instruction through a read instruction signal, and outputs three SPI signals (chip select, clock, data input) to perform read operation on an external SPI FLASH; after the read instruction is sent, the state machine module 5 writes an enable signal to indicate the dual-port RAM module 2 to open a receiving enable to prepare for receiving word data; after the data reception is finished, the state machine module 5 reads an enable signal to indicate the dual-port RAM module 2 to open a transmission enable to prepare for transmitting word data; the state machine module 5 instructs the decoding chip interface module 6 to open data transmission enable by sending an enable signal, prepares to output three SPI signals (chip select, clock, data input), and performs handshake data write operation on the decoding chip. The decoding chip interface module 6 comprises a read address sending module 10 and a shift register 11, wherein the read address sending module 10 sends a read address signal to the dual-port RAM module and receives word data; the shift register 11 completes the parallel-serial conversion inside the control chip, and outputs three SPI signal (chip select, clock, data input) write timing sequences meeting the requirements of the decoding chip.
The working principle of the whole chip is as follows: after power-on reset, the state machine module 5 instructs the FLASH interface module 3 to send a read instruction by sending a read instruction signal, and the read instruction sending module 7 outputs three SPI signals (chip select, clock, data input) to perform read operation on an external SPI FLASH; the shift register 9 samples and converts the external SPI FLASH data output signal in serial-parallel mode according to the SPI clock and the chip selection signal generated by the read instruction sending module; the shift register 9 receives and completes the transmission of a word datum to the word receiving module 8; the word receiving module 8 transmits the word data to the double-port RAM module 2 through the word receiving completion and the word data signal to receive and store the word data; after the data reception is completed, the state machine module 5 checks the correct/error signal through the data checking module 4 to instruct the state machine module 5 to perform data storage or data discarding operation. And when the error is checked, the state machine module 5 instructs the FLASH interface module to close the write enable signal, resends the SPI FLASH read operation instruction, and resends the read data operation to the external SPI FLASH. The check is correct, the state machine module 5 opens the read enable signal to indicate the decoding chip interface module 6 to prepare for data reading operation on the dual-port RAM module 2, the decoding chip interface module 6 controls the dual-port RAM module 2 to output stored word data by providing a read address in cooperation with a read clock and the read enable signal, the read address sending module 10 receives parallel data output by the dual-port RAM module 2, and transmits the parallel data to the shift register 11 to generate three SPI signals (chip select, clock and data input), so that the requirement of handshake data writing time sequence of the decoding chip is met, and the purpose of internal data configuration is achieved.
The chip integrates the frequency division module, the double-port RAM module, the data check module, the FLASH interface module, the state machine module and the decoding chip interface module, has simple logic and small occupied area, overcomes the defect that the decoding chip and a receiver cannot communicate because the handshake data information of a command receiving system is uncertain and the SPI FLASH and SPI data writing time sequence difference of the decoding chip are caused, enhances the flexibility of the application of a receiver instruction system, and enables the system device to be produced in batch.

Claims (1)

1.一种用于命令接收系统的SPI FLASH控制芯片,包括分频模块、双口RAM模块、数据校验模块、FLASH接口模块、状态机模块和解码芯片接口模块,其特征在于:所述的FLASH接口模块包括移位寄存器、字接收模块和读指令发送模块;所述的解码芯片接口模块包括读地址发送模块和移位寄存器;所述的分频模块采用解码芯片时钟产生分频时钟,提供给双口RAM模块、数据校验模块、FLASH接口模块、状态机模块和解码芯片接口模块;所述的状态机模块发送读指令信号给FLASH接口模块,FLASH接口模块的读指令发送模块输出三个SPI信号,包括片选、时钟和数据输入,对外部SPIFLASH进行读操作;FLASH接口模块的移位寄存器根据读指令发送模块产生的SPI时钟、片选信号,对外部SPI FLASH数据输出信号进行采样且串并转换,接收完成一个字数据即传递给字接收模块;字接收模块通过字接收完成和字数据信号将字数据传递给双口RAM模块进行字数据的接收存储;数据接收完成后,状态机模块通过数据校验模块校验信号正确或错误,若校验错误,状态机模块指示FLASH接口模块关闭写使能信号,重新发送SPI FLASH读操作指令,对外部SPI FLASH进行读数据操作;若校验正确,状态机模块打开读使能信号,指示解码芯片接口模块准备对双口RAM模块进行数据读取操作,解码芯片接口模块通过提供读地址,配合读时钟以及读使能信号控制双口RAM模块输出存储的字数据,读地址发送模块接收双口RAM模块输出的并行数据,传递给解码芯片接口模块的移位寄存器,产生三个SPI信号,满足解码芯片握手数据写入时序要求,从而实现内部数据配置的目的。1. a kind of SPI FLASH control chip that is used for order receiving system, comprises frequency division module, dual-port RAM module, data verification module, FLASH interface module, state machine module and decoding chip interface module, it is characterized in that: described The FLASH interface module includes a shift register, a word receiving module and a read instruction sending module; the decoding chip interface module includes a read address sending module and a shift register; the frequency dividing module uses the decoding chip clock to generate a frequency dividing clock, providing To the dual-port RAM module, the data verification module, the FLASH interface module, the state machine module and the decoding chip interface module; the state machine module sends a read command signal to the FLASH interface module, and the read command sending module of the FLASH interface module outputs three The SPI signal, including chip select, clock and data input, reads the external SPIFLASH; the shift register of the FLASH interface module samples the external SPI FLASH data output signal according to the SPI clock and chip select signal generated by the read command sending module. Serial-to-parallel conversion, after receiving a word of data, it is passed to the word receiving module; the word receiving module transmits the word data to the dual-port RAM module through the word receiving completion and word data signals to receive and store the word data; after the data reception is completed, the state machine The module checks whether the signal is correct or wrong through the data verification module. If the verification is wrong, the state machine module instructs the FLASH interface module to turn off the write enable signal, and resends the SPI FLASH read operation command to read data to the external SPI FLASH; If the verification is correct, the state machine module turns on the read enable signal, indicating that the decoding chip interface module is ready to read data to the dual-port RAM module. The decoding chip interface module controls the dual-port RAM by providing the read address, with the read clock and the read enable signal. The module outputs the stored word data, and the read address sending module receives the parallel data output by the dual-port RAM module, and transmits it to the shift register of the interface module of the decoding chip to generate three SPI signals to meet the requirements of the decoding chip handshake data writing sequence, so as to realize Purpose of internal data configuration.
CN201611156694.3A 2016-12-15 2016-12-15 SPI FLASH control chip for command receiving system Active CN106776467B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611156694.3A CN106776467B (en) 2016-12-15 2016-12-15 SPI FLASH control chip for command receiving system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611156694.3A CN106776467B (en) 2016-12-15 2016-12-15 SPI FLASH control chip for command receiving system

Publications (2)

Publication Number Publication Date
CN106776467A CN106776467A (en) 2017-05-31
CN106776467B true CN106776467B (en) 2020-04-28

Family

ID=58888357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611156694.3A Active CN106776467B (en) 2016-12-15 2016-12-15 SPI FLASH control chip for command receiving system

Country Status (1)

Country Link
CN (1) CN106776467B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111274755B (en) * 2020-01-16 2024-02-06 合肥磐芯电子有限公司 Multi-functional MCU interface circuit
CN111506529B (en) * 2020-06-30 2020-10-16 深圳市芯天下技术有限公司 High-speed SPI instruction response circuit applied to FLASH
CN112579486B (en) * 2020-12-14 2023-02-21 上海创远仪器技术股份有限公司 System for realizing cross-clock-domain communication based on dual-port RAM
CN112542187B (en) * 2020-12-31 2021-08-31 芯天下技术股份有限公司 Circuit for reading ID and chip state at high speed and flash memory

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7088132B1 (en) * 2004-03-25 2006-08-08 Lattice Semiconductor Corporation Configuring FPGAs and the like using one or more serial memory devices
CN102231143A (en) * 2011-07-04 2011-11-02 浙江大学 Safe and reusable single program initiation (SPI) peripheral interface circuit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7088132B1 (en) * 2004-03-25 2006-08-08 Lattice Semiconductor Corporation Configuring FPGAs and the like using one or more serial memory devices
CN102231143A (en) * 2011-07-04 2011-11-02 浙江大学 Safe and reusable single program initiation (SPI) peripheral interface circuit

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于FPGA 的通用SPI 总线IP 核设计与实现;柳炳琦;《核电子学与探测技术》;20140331;第34卷(第3期);第331-335页 *
基于Xilinx FPGA的SPI Flash控制器设计与验证;关珊珊,等;《电子器件》;20120430;第35卷(第2期);第216-220页 *

Also Published As

Publication number Publication date
CN106776467A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106776467B (en) SPI FLASH control chip for command receiving system
US11294660B2 (en) Apparatus and method for configuring or updating programmable logic device
US8464020B2 (en) Non-volatile storage device, host device, storage system, data communication method and program
CN108228513B (en) Intelligent serial port communication device based on FPGA framework
JP4896450B2 (en) Storage device
US12423257B2 (en) Bridge device and data storage system
US20120221766A1 (en) Flash memory apparatus with serial interface and reset method thereof
US20180342302A1 (en) Memory device and method for operating the same
CN104733007B (en) Semiconductor device and semiconductor system including semiconductor device
CN108920299B (en) storage medium
US7685343B2 (en) Data access method for serial bus
US12321297B2 (en) Bridge device and method for transferring command and data between a host device and a data storage device
CN103970708A (en) Communication method and system between FPGA and universal processor
CN203251321U (en) A CAN bus and 1553B bus communication conversion device
US11659305B2 (en) Systems and methods for communication on a series connection
KR102523270B1 (en) eFuse OTP memory supporting I2C communication and operating method thereof
CN107643989B (en) Dual-optical-fiber loop redundancy structure communication board card based on PCI bus protocol
JP3559272B2 (en) Communication device using three-stage communication buffer
US9377957B2 (en) Method and apparatus for latency reduction
US20120124272A1 (en) Flash memory apparatus
US20150074298A1 (en) Command processing device and data storage device
KR20160112439A (en) Semiconductor Memory Apparatus and Operation Method Thereof
CN112041830A (en) Communication interface and package structure
CN103744807A (en) Memory card access control system based on programmable logic device
US20080082704A1 (en) Data processing apparatus for data transmission and reception and data transfer method for data transfer system including the data processing apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant