WO2024017337A1 - Circuit et procédé de commande de stockage fifo, puce et dispositif électronique - Google Patents

Circuit et procédé de commande de stockage fifo, puce et dispositif électronique Download PDF

Info

Publication number
WO2024017337A1
WO2024017337A1 PCT/CN2023/108417 CN2023108417W WO2024017337A1 WO 2024017337 A1 WO2024017337 A1 WO 2024017337A1 CN 2023108417 W CN2023108417 W CN 2023108417W WO 2024017337 A1 WO2024017337 A1 WO 2024017337A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
control circuit
read
switching signal
write
Prior art date
Application number
PCT/CN2023/108417
Other languages
English (en)
Chinese (zh)
Inventor
秦晨钟
谢韶波
符土建
李晓
Original Assignee
芯海科技(深圳)股份有限公司
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 芯海科技(深圳)股份有限公司 filed Critical 芯海科技(深圳)股份有限公司
Publication of WO2024017337A1 publication Critical patent/WO2024017337A1/fr

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F5/00Methods or arrangements for data conversion without changing the order or content of the data handled
    • G06F5/06Methods or arrangements for data conversion without changing the order or content of the data handled for changing the speed of data flow, i.e. speed regularising or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C11/00Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor
    • G11C11/21Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements
    • G11C11/34Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements using semiconductor devices
    • G11C11/40Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements using semiconductor devices using transistors
    • G11C11/41Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements using semiconductor devices using transistors forming static cells with positive feedback, i.e. cells not needing refreshing or charge regeneration, e.g. bistable multivibrator or Schmitt trigger
    • G11C11/413Auxiliary circuits, e.g. for addressing, decoding, driving, writing, sensing, timing or power reduction

Definitions

  • the present application relates to the field of data storage technology, and more specifically, to a FIFO storage control circuit, method, chip and electronic device.
  • FIFO First Input First Output
  • FIFO memory is a first-in first-out cache device.
  • FIFO memory is divided into synchronous FIFO and asynchronous FIFO.
  • Synchronous FIFO means that the read operation clock and write operation clock are synchronous clocks;
  • asynchronous FIFO means that the read operation clock and write operation clock are asynchronous clocks.
  • Related technologies cannot meet asynchronous FIFO requirements when using single-port static random access memory to implement full-speed FIFO memory.
  • This application proposes a FIFO storage control circuit, method, chip and electronic device to improve the above problems.
  • embodiments of the present application provide a FIFO storage control circuit, including: a single-port random data memory, a switching control circuit and a switching circuit.
  • the switching control circuit is used to generate a switching signal, the switching signal includes a reading switching signal or a writing switching signal; the switching circuit transmits an instruction corresponding to the switching signal to the single-port randomizer according to the switching signal.
  • data memory to randomize the single port
  • the machine data memory performs preset operations, wherein the instructions include read instructions or write instructions, and the preset operations include read operations or write operations.
  • embodiments of the present application provide a FIFO storage control method, including generating a switching signal according to a received communication instruction; the switching signal includes a read switching signal or a writing switching signal;
  • an instruction corresponding to the switching signal is transmitted to the single-port random access data memory to perform a preset operation on the single-port random access data memory, wherein the instruction includes a read instruction or a write instruction, and the Preset operations include read operations or write operations.
  • embodiments of the present application provide a chip including the above-mentioned FIFO storage control circuit.
  • embodiments of the present application provide an electronic device, including the above-mentioned FIFO storage control circuit or the above-mentioned chip.
  • Figure 1 shows a schematic structural block diagram 1 of a FIFO storage control circuit provided by this application
  • Figure 2 shows a schematic structural block diagram 2 of a FIFO storage control circuit provided by this application
  • Figure 3 shows an implementation block diagram of a read-priority FIFO storage control circuit provided by this application
  • Figure 4 shows an implementation block diagram of a write-priority FIFO storage control circuit provided by this application
  • Figure 5 shows a schematic flow chart 1 of a FIFO storage control method provided by this application
  • Figure 6 shows a schematic flow chart 2 of a FIFO storage control method provided by this application
  • Figure 7 shows a schematic flow chart 3 of a FIFO storage control method provided by this application.
  • Figure 8 shows a schematic flow chart 4 of a FIFO storage control method provided by this application.
  • Figure 9 shows a schematic flow chart 5 of a FIFO storage control method provided by this application.
  • Figure 10 shows a schematic structural diagram of a chip provided by this application.
  • Figure 11 shows a schematic structural diagram of an electronic device provided by this application.
  • 100-FIFO storage control circuit 110-single port random data memory; 120-switching control circuit; 130-switching circuit; 140-data buffer; 141-data write buffer; 142-data read buffer ; 151-data writing interface; 152-data reading interface; 160-data control circuit.
  • At least one refers to one or more; multiple refers to two or more.
  • words such as “first”, “second” and “third” are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying. order.
  • connection in the embodiments of this application can be understood as electrical connection, and the connection between two electrical components can be a direct or indirect connection between two electrical components.
  • a and B may be connected directly, or A and B may be connected indirectly through one or more other electrical components.
  • FIFO memory is First In First Out memory, which is composed of several storage units. After data is written, it remains unchanged.
  • the FIFO function is implemented by automatically modifying the address pointer inside the chip.
  • FIFO is generally used for data transmission between different clock domains, and FIFO can be used as a data buffer between different clock domains.
  • the FIFO memory can pre-write the obtained data into the FIFO buffer, and then read out the data in the order of writing to the FIFO buffer first and then outputting it first.
  • the FIFO memory storage unit uses static random access memory (Static Random-Access Memory, SRAM).
  • Static random access memory is divided into single-port static random access memory, dual-port static random access memory and pseudo-dual-port static random access memory.
  • Single-port static random access memory means that the storage unit of static random access memory contains only one set of access interfaces
  • dual-port static random access memory means that the storage unit of static random access memory contains two sets of access interfaces, which can independently and simultaneously access static random access memory.
  • Random access memory data means that pseudo-dual-port static random access memory contains 2 sets of access interfaces, which can independently access static random access memory data, but cannot access it simultaneously.
  • Synchronous FIFO means that the read operation clock and write operation clock are synchronous clocks; asynchronous FIFO means that the read operation clock and write operation clock are asynchronous clocks.
  • asynchronous memory In current social life, the demand for asynchronous memory is also widespread, such as writing data from time to time in integrated circuits, reading data serially through communication interfaces such as SPI (Serial Peripheral Interface, Serial Peripheral Interface), or communicating with SPI etc.
  • SPI Serial Peripheral Interface
  • the interface serially writes data, the integrated circuit reads data from time to time, or the integrated circuit internally reads data from time to time, writes data from time to time, etc.
  • an asynchronous storage controller is required. Perform operations.
  • dual-port static random access memory is commonly used as the storage unit of FIFO memory.
  • the area of dual-port static random access memory is about twice the area of single-port static random access memory, which is not conducive to reducing the area of integrated circuits in practical applications. Limited practicality.
  • a FIFO storage control circuit which includes: a single-port random data memory, a switching control circuit and a switching circuit.
  • the switching control circuit is used to generate a switching signal, and the switching signal includes reading the switching signal or writing the switching signal; the switching circuit is used to receive the switching signal sent by the switching control circuit, and transmit the instructions corresponding to the switching signal to the single-port random data memory,
  • the single-port random access data memory is configured to perform a preset operation corresponding to the instruction according to the instruction, wherein the instruction includes a read instruction or a write instruction, and the preset operation includes a read operation or a write operation.
  • the switching control circuit By setting the single-port random data memory, the switching control circuit generates a switching signal, and the switching circuit performs preset operations on the single-port random data memory according to the instructions corresponding to the switching signal according to the switching signal sent by the switching control circuit. That is, when the switching control circuit outputs the write switching signal, the single-port random data memory can be written; only when the switching control circuit outputs the read switching signal, the single-port random data memory can be read.
  • Using a single-port random data memory can meet the asynchronous requirements of FIFO memory, effectively reducing the area of FIFO memory and reducing costs.
  • the FIFO storage control circuit is described in detail below. Please refer to Figure 1.
  • An embodiment of the present application provides a FIFO storage control circuit 100.
  • the FIFO storage control circuit 100 includes: a single-port random data memory 110, a switching control circuit 120 and Switching circuit 130.
  • the single-port random data memory 110 can be used to store data;
  • the switching control circuit 120 is used to generate switching signals, which include reading switching signals or writing switching signals;
  • the switching circuit 130 is connected to the switching control circuit 120 and the single-port random data respectively.
  • the memory 110 is used to transmit instructions corresponding to the switching signal to the single-port random access data memory 110 according to the switching signal, so as to perform preset operations on the single-port random access data memory 110, where the instructions include read instructions or write instructions, and the preset operations include Read operation or write operation.
  • the single-port random access data memory 110 means that the storage unit of the random access data memory only includes one set of access interfaces.
  • the single-port random access data memory 110 uses the same set of address lines when performing read or write operations.
  • the read instruction includes but is not limited to read enable information and read address
  • the write instruction includes but is not limited to write enable information and write address
  • the read operation may be to read the single-port random access data memory 110
  • the writing operation may be to write data to the single-port random access data memory 110 .
  • the FIFO storage control circuit also includes a data writing interface 151 and a data reading interface 152.
  • the switching circuit 130 is connected to the data writing interface 151 and the data reading interface 152 respectively, and is used to control data writing according to the switching signal.
  • the switching circuit 130 is configured to receive the read switching signal sent by the switching control circuit 120 and connect the data reading interface 152 to the single-port random access data memory 110 according to the reading switching signal.
  • the output read command executes reading on the single-port random access data memory 110
  • the fetch operation is to read the data stored in the single-port random access data memory 110.
  • the data reading interface 152 is connected to the single-port random access data memory 110, the data writing interface 151 and the single-port random access data memory 110 are in a non-conducting state.
  • the switching signal sent by the switching control circuit is a read switching signal, a read operation is performed on the single-port random access data memory 110. During this process, the write operation on the single-port random access data memory 110 is prohibited.
  • the switching circuit 130 is also used to receive the writing switching signal sent by the switching control circuit 120, and connect the data writing interface 151 to the single-port random data memory 110 according to the writing switching signal, so as to control the data writing according to the data writing.
  • the write command output by the interface 151 performs a write operation on the single-port random access data memory 110 , that is, writes the data to be stored into the single-port random access data memory 110 .
  • the data writing interface 151 is connected to the single-port random access data memory 110, the data reading interface 152 and the single-port random access data memory 110 are in a non-conducting state.
  • the switching signal sent by the switching control circuit is a write-to-write switching signal, a write operation is performed on the single-port random access data memory 110. During this process, the read operation on the single-port random access data memory 110 is prohibited.
  • the switching circuit 130 may include a multiplexer, or switches corresponding to the number of interfaces, etc., which are not limited here.
  • the switching circuit 130 is a multiplexer as an example.
  • the switching signal is a read
  • the multiplexer connects the data reading interface 152 to the single-port random data memory 110;
  • the switching signal is a write switching signal, the multiplexer connects the data writing interface 152 to the single-port random data memory 110.
  • the switching control circuit 120 may include a controller, which may include a first output terminal and a second output terminal, and the first output terminal and the second output terminal are respectively connected to the switching circuit 130; wherein, the first output terminal The output terminal is used to output the read switching signal to the switching circuit 130 , and the second output terminal is used to output the writing switching signal to the switching circuit 130 .
  • switching control circuit 120 may also include more or less components, which are not specifically limited here.
  • the switching signal output by the switching control circuit 120 when the switching signal output by the switching control circuit 120 is high level, it can be characterized as a read switching signal; when the switching signal output by the switching control circuit 120 is low level, it can be characterized as a writing switching signal.
  • switching signal output by the switching control circuit 120 when the switching signal output by the switching control circuit 120 is low level, it can be characterized as a read switching signal; when the switching signal output by the switching control circuit 120 is high level, it can be characterized as a writing switching signal. .
  • the embodiment of the present application receives the read switching signal sent by the switching control circuit 120 through the switching circuit 130, and switches the data reading interface 152 to be connected to the single-port random data memory 110 according to the reading switching signal, so as to output according to the data reading interface 152
  • the read instruction performs a read operation on the single-port random data memory 110; or the switching circuit 130 receives the write switching signal sent by the switching control circuit 120, and switches the data writing interface 151 to the single-port random data memory according to the write switching signal.
  • 110 is connected to perform a write operation on the single-port random access data memory 110 according to the write instruction output by the data write interface 151.
  • the switching control circuit 120 generates a switching signal, and then the switching circuit 130 responds to the switching signal to finally read or write data to the single-port random data memory 110, so that the FIFO storage control circuit 100 achieves asynchronous operation through a single-port random data memory.
  • the effect is to effectively reduce the area of FIFO memory and reduce the cost.
  • the FIFO storage control circuit 100 is also used to determine a preset operation according to the received communication instruction, so that the switching control circuit 120 generates a switching signal according to the preset operation.
  • prediction can be made through the communication instructions issued when the communication interface performs corresponding operations on the FIFO storage control circuit 100. For example, if the communication interface wants to perform a read operation on the FIFO storage control circuit 100, a read instruction will be issued. , through the read command, it can be predicted that the preset operation is a read operation. If the communication interface wants to perform a write operation on the FIFO storage control circuit 100, a write command will be issued. Through the write command, it can be predicted that the preset operation is writing operation, in this way, after predicting the preset operation, the switching control circuit 120 can determine the switching signal according to the preset operation. If the preset operation is a read operation, the corresponding switching signal is a read switching signal; if the preset operation is a write operation, the corresponding switching signal is a write switching signal.
  • the communication interface can be SPI (Serial Peripheral Interface, serial peripheral interface), I2C (Inter-Integrated Circuit, two-wire serial bus), or UART (Universal Asynchronous Receiver/Transmitter, Universal Asynchronous Receiver/Receiver) transmitter), there is no restriction here.
  • SPI Serial Peripheral Interface, serial peripheral interface
  • I2C Inter-Integrated Circuit, two-wire serial bus
  • UART Universal Asynchronous Receiver/Transmitter, Universal Asynchronous Receiver/Receiver
  • the FIFO storage control circuit 100 is also used to synchronize the switching signal to the corresponding clock domain; wherein, the clock domain includes Read operation clock domain or write operation clock domain.
  • the corresponding clock domain refers to the clock domain opposite to the current switching signal. For example, if the switching signal is a read switching signal, the clock domain opposite to the switching signal is the writing operation clock domain; if the switching signal is a writing switching signal, the clock domain opposite to the switching signal is the reading operation clock domain.
  • the switching signal corresponding to the preset operation needs to be synchronized to the clock domain opposite to the switching signal, because the current operation of the FIFO storage control circuit 100 is generally the same as the preset operation.
  • the clock connected is the clock opposite to the instruction corresponding to the preset operation, and the instruction corresponding to the preset operation is executed. Since the single-port random access data memory 110 has only one set of interfaces, in order to avoid passing through The sudden switching of the instructions transmitted to the single-port random data memory 110 by this set of interfaces will affect data reading or data writing.
  • the switching signal can be synchronized to
  • the FIFO stores the clock domain corresponding to the current operation of the control circuit 100, that is, the clock domain opposite to the switching signal, and reserves reaction time for the switching of instructions.
  • the FIFO storage control circuit 100 is used to synchronize the read switching signal to the write operation clock domain.
  • the switching signal is a read switching signal
  • the instruction corresponding to the read switching signal is a read instruction
  • the preset operation is a read operation
  • the current operation of the FIFO storage control circuit 100 is generally a write operation.
  • the switching signal can be synchronized to the write operation clock domain first, so that the write operation clock domain stops the write operation.
  • the switching circuit 130 then transmits the read command to the single-port random access data memory 110. This can avoid the impact of sudden switching of instructions on the single-port random access data memory 110 on the reading or writing of data.
  • the FIFO storage control circuit 100 is also used to synchronize the write switching signal to the read operation clock domain.
  • the switching signal is a write switching signal
  • the instruction corresponding to the write switching signal is a write instruction
  • the preset operation is a write operation
  • the current operation of the FIFO storage control circuit 100 is generally a read operation.
  • the switching signal can be synchronized to the read operation clock domain first, so that the read operation clock domain stops the read operation, and then the switching circuit 130 transmits the write command to the single-port randomizer.
  • the data memory 110 can avoid the sudden switching of instructions executed on the single-port random access data memory 110, which may affect the reading or writing of data.
  • the FIFO storage control circuit 100 also includes a data control circuit 160 and at least one data buffer 140.
  • the data control circuit 160 is connected to the switching control circuit 120 and the data buffer 140 respectively, and is connected to the single-port random data memory 110.
  • the data control circuit 160 is used to receive a request signal, and when the request signal is inconsistent with the switching signal, perform an operation corresponding to the request signal on the data buffer 140 according to the request signal; wherein the request signal includes a data read request or data Write request.
  • the data control circuit 160 is also connected to the switching circuit 130, and the data buffer 140 is also connected to the single-port random access data memory 110.
  • a request signal inconsistent with the switching signal may be received.
  • the preset operation is being performed on the single-port random access data memory 110 at this time, so the The switching signal corresponding to the preset operation is inconsistent with the request signal, so the corresponding operation cannot be performed on the single-port random data memory 110 according to the request signal.
  • a data control circuit 160 and at least one data cache are set in the FIFO storage control circuit 100
  • the processor 140 is configured to receive the request signal and perform operations corresponding to the request signal on the data buffer 140 .
  • the request signal is a data write request and the switching signal is a read switching signal
  • the data control circuit 160 writes the data to be written according to the data writing request. in the data buffer 140. Since the switching signal is a read switching signal, accordingly, a read operation is performed on the single-port random data memory 110, which is inconsistent with the request signal for a data write request. Therefore, the single-port random data memory 110 cannot execute a data write request. If the corresponding operation is performed, the operation corresponding to the data write request can be performed on the data buffer 140 , that is, the data to be written is first written into the data buffer 140 .
  • the request signal is a data read request and the switching signal is a write switching signal
  • the data control circuit 160 reads from the data buffer 140 according to the data read request. Get data. Since the switching signal is a write switching signal, accordingly, the single-port random access data memory 110 performs a write operation, which is inconsistent with the request signal for a data read request, and the single-port random access data memory 110 cannot perform the operation corresponding to the data read request. operation, you can pass the data
  • the buffer 140 is used to perform operations corresponding to the data read request, that is, data is first read from the data buffer 140 .
  • the data buffer 140 is equivalent to a register. When performing a read or write operation on the single-port random access data memory 110, another operation will be blocked. This problem can be solved through the data buffer.
  • the data buffer 140 may include a data write buffer 141, may include a data read buffer 142, and may further include a data write buffer 141 and a data read buffer 142.
  • the data control circuit 160 When the switching circuit 130 performs a read operation on the single-port random access data memory 110 according to the read command output by the data read interface, the data control circuit 160 writes the data to be written into the data write buffer 141 according to the write request.
  • the data write buffer 141 can be used first. The data to be written in the single-port random access data memory 110 is buffered into the data write buffer 141 according to the write request. After the read operation is completed on the single-port random access data memory 110 , the data in the data write buffer 141 is transferred to the single-port random access data memory 110 .
  • the data control circuit 160 reads data from the data read buffer 142 according to the data read request.
  • the request cannot be executed on the single-port random data memory 110.
  • You can read the data through The fetch buffer 141 will first read data from the data read buffer 141 according to the read request. In order to prevent the data read buffer 141 from being empty, some data can be transferred from the single port random access data memory 110 to the data read buffer 141 before performing a write operation on the single port random access data memory 110 .
  • the data control circuit 160 or the data buffer 140 can be controlled through an enable signal.
  • the enable signal types include read enable and write enable.
  • the enable information when the enable information is high level, it can be characterized as read enable, and the data read interface 152 (or an external device connected to the data read interface 152) can read data from the data read buffer 142. Read the stored data; when the enable information is low level, it can be characterized as write enable information, and the data write interface 151 (or an external device connected to the data write interface 151) can write data into the buffer 141 Write the data to be stored.
  • the data read interface 152 (or an external device connected to the data read interface 152) can read the data buffer 142 from the data read interface 152. Read the stored data; when the enable information is high level, it is characterized as write enable information, and the data write interface 151 (or an external device connected to the data write interface 151) writes to the data write buffer 141 Enter the data to be stored.
  • the data control circuit 160 is also connected to the single-port random access data memory 110 .
  • the switching circuit 130 executes the single-port random data memory 110 according to the instruction corresponding to the switching signal.
  • the data control circuit 160 is also used to write the data stored in the data buffer 140 into the single-port random data memory 110, or to write the data in the single-port random data memory 110 into the data buffer 140.
  • the default operation is a read operation.
  • the data control circuit 160 writes the data in the data buffer 140 to the single-port random data memory. 110.
  • the preset operation is a write operation
  • the data control circuit 160 controls the data buffer 140 to read the single-port random access data memory 110 after the switching circuit 130 completes the write operation on the single-port random access data memory 110 .
  • the switching control circuit is also used to switch the current switching signal after performing the preset operation on the single-port random data memory 110; and to control the single-port random data memory 110 to execute and switch according to the switched signal.
  • the signal corresponds to the preset operation. After performing the preset operation corresponding to the switching signal on the single-port random access data memory 110, as mentioned above, after performing the operation corresponding to the request signal on the data buffer 140 according to the request signal, the actual corresponding object of the request signal is the single-port random access signal.
  • the data memory 110 and the data buffer 140 play a transitional role when the operation corresponding to the request signal cannot be performed on the single-port random data memory 110.
  • the data buffer performs corresponding processing, so that the switching control signal 120 can switch the current switching signal to be consistent with the request signal, so that the single-port random data memory 110 can execute the switching information according to the switched signal.
  • the preset operation at this time corresponds to the request signal. For example, if the request signal is a write request, the corresponding preset operation is a write operation; if the request signal is a read request, the corresponding preset operation is a read operation.
  • the switching control circuit 120 switches the reading switching signal to a writing switching signal to perform a writing operation on the single-port random access data memory 110, thereby changing the data buffer
  • the data in 140 is written into the single-port random access data memory 110.
  • the read switching signal can be switched to the write switching signal through the switching control circuit 120, And synchronize the write switching signal to the write operation clock domain for subsequent write operations.
  • the data control circuit 160 includes a first inverter 161 , a second inverter 162 and a first logic gate 163 .
  • the first input end of the first logic gate 163 is connected to the switching control circuit 120
  • the output terminal and the second input terminal are connected to the output terminal of the first inverter 161, and the output terminal is respectively connected to the input terminal of the second inverter 162 and the input terminal of the data write register 141; the second inverter
  • the output terminal of 162 is connected to the WEN (write enable terminal) of the single-port random access data memory 110 .
  • the switching control circuit 120 switches the original read switching signal to output the write switching signal.
  • the switching circuit 130 switches the single-port random access data memory 110 according to the write switching signal.
  • the connected interface is switched, the CLK (clock port) is switched from the read clock to the write clock, and the ADR (address port) is switched from the read pointer to the write pointer.
  • Switch CEN (enable port) from read enable to read cache enable.
  • the write switching signal as a high level as an example, if the data in the data write buffer 141 is not empty at this time, the data can be read from the data write buffer 141, and there is currently no data written into the data.
  • the write register 141 that is, the write enable is low level
  • the write enable output is high level after passing through the first inverter 161, and is input to the second input terminal of the first logic gate 163,
  • the write switching information (high level) is input to the first input terminal of the first logic gate 163.
  • the output is high level, that is, the read cache enable is high level, resulting in a read data cache operation.
  • the CEN port of the single-port random data memory 110 is low level, and corresponding operations can be performed on the single-port random data memory 110; the high level output by the first logic gate 163 After passing through the second inverter 162, the output is low level, so that the WEN port that is finally input to the single-port random data memory 110 is low level, and a write operation can be performed on the single-port random data memory 110, and the data will be written into the buffer.
  • the data read in 141 is written into the address of the single-port random data memory 110 pointed to by the pointer of the single-port random data memory 110 through the DIN (data input port).
  • the switching control circuit 120 switches the writing switching signal to a reading switching signal to perform a reading operation on the single-port random access data memory 110 to control the data cache.
  • the processor 140 reads the data in the single-port random access data memory 110.
  • the write switching signal can be switched to the read switching signal through the switching control circuit 120, And synchronize the read switching signal to the read operation clock domain for subsequent read operations.
  • the data control circuit 160 includes a third inverter 164 , a fourth inverter 165 , a fifth inverter 167 and a second logic gate 166 , a first input of the second logic gate 166
  • the terminal is connected to the output terminal of the third inverter 164, the second input terminal is connected to the output terminal of the fourth inverter 165, and the output terminal is connected to the input terminal of the data read register 142;
  • the input terminal is connected to the output terminal of the switching control circuit 120 , and the output terminal of the fifth inverter 162 is connected to the WEN (write enable terminal) of the single-port random access data memory 110 .
  • the switching control circuit 120 switches the original write switching signal to output the read switching signal.
  • the switching circuit 130 switches the single-port random access data memory 110 according to the read switching signal. Switch the connected interface, switch the CLK (clock port) from the write clock to the read clock, switch the ADR (address port) from the write pointer to the read pointer, and switch the CEN (enable port) from the write enable Switch to write cache enable.
  • the read switching signal as a low level as an example, if the data read buffer 142 is not full, data can still be written to the data read buffer 142, and no data is currently read from the data read buffer 142.
  • the read enable is low level
  • the read enable output is high level after passing through the third inverter 164, and is input to the first input terminal of the second logic gate 166 to read the switching information ( low level) after passing through the second inverter 165, the output is high level, and is input to the second input terminal of the second logic gate 166, then the output of the second logic gate 166 is high level, that is, the write cache is enabled.
  • a write data cache operation is generated, and data can be written to the data read buffer 141.
  • the CEN port of the single-port random data memory 110 is low level, and the corresponding operation can be performed on the single-port random data memory 110;
  • the WEN port of the five-port inverter 167 input to the single-port random data memory 110 is at a high level, and the read operation can be performed on the single-port random data memory 110.
  • the data is read from the single-port random data memory 110 through DOUT (output data port) and Write to the data read buffer 142. In this way, the data of the single-port random access data memory 110 can be written into the data read buffer 142.
  • the data can be read from the cache memory 142.
  • the data is read from the data read buffer 142.
  • the following takes the communication interface as SPI, the write switching signal as high level, and the read switching signal as low level as an example to respectively conduct the pre-judgment of the read operation and the pre-judgment in this application.
  • the write operation is described below.
  • the SPI When the SPI performs a read operation on the FIFO storage control circuit 100, it can be predicted through the communication command that a read operation is to be performed, and the switching control circuit 120 selects to read the switching signal ( low level), and synchronizes the read switching signal to the write operation clock domain to prohibit the write operation, and then the switching circuit 130 switches the data reading interface 152 to the single-port random data memory when receiving the read switching signal. 110 connections.
  • the CLK (clock port) of the single-port random data memory 110 is switched to the read clock
  • the ADR address port
  • the CEN enable port
  • a read operation is performed on the single-port random access data memory 110, that is, the data stored in the single-port random access data memory 110 is read. During this process, the write operation on the single-port random access data memory 110 is prohibited. If there is a data write request during this process, the corresponding write enable of the data write buffer 141 is high, and the data to be written in the single-port random access data memory 110 can be cached into the data write buffer 141 .
  • the switching control circuit 120 When the read operation ends, the switching control circuit 120 re-enables the writing operation and synchronizes the writing switching signal to the writing operation clock domain. After receiving the writing switching signal sent by the switching control circuit 120, the switching circuit 130 The CLK (clock port) of the single-port random data memory 110 switches from the read clock to the write clock, the ADR (address port) switches from the read pointer to the write pointer, and the CEN (enable port) switches from the read enable Enable read caching. If the data write buffer 141 is not empty (the data write buffer 141 has data), and there is currently no write data cache operation (the write enable is low level), a read data cache operation is generated, and the data is read. Write the data cached in the buffer 141.
  • the CEN port of the single-port random data memory 110 is low level, indicating that the single-port random data memory 110 can be read or written.
  • the write switching signal is high level, the write enable is low level, and the data control
  • the circuit 160 is connected to the WEN port of the single-port random access data memory 110, and supplies the WEN port to the WEN port.
  • the port outputs a low level the write operation can be performed on the single-port random data memory 110, and the data read from the data write buffer 141 is written to the pointer of the single-port random data memory 110 through the DIN (data input port). The address pointed to by the single-port random access data memory 110.
  • the SPI When the SPI performs a write operation on the FIFO storage control circuit 100, it can be predicted through the communication command that a write operation is to be performed, and the switch control circuit 120 selects the write switch signal (high) according to the write operation. level), and synchronizes the write switching signal to the read operation clock domain to prohibit the read operation, and then the switching circuit 130 switches the data writing interface 152 to the single-port random data memory 110 when receiving the writing switching signal. connect.
  • the CLK (clock port) of the single-port random data memory 110 is switched to the write clock
  • the ADR address port
  • the CEN enable port
  • a write operation is performed on the single-port random access data memory 110, that is, data is written into the single-port random access data memory 110. During this process, the read operation on the single-port random access data memory 110 is prohibited. If there is a data reading request during this process, the corresponding read and write enable of the data reading buffer 142 is high, and the data can be read from the data reading buffer 142 .
  • the switching control circuit 120 When the write operation ends, the switching control circuit 120 re-enables the read operation and synchronizes the read switching signal to the read operation clock domain. After receiving the read switching signal sent by the switching control circuit 120, the switching circuit 130 The CLK (clock port) of the single-port random data memory 110 switches from the write clock to the read clock, the ADR (address port) switches from the write pointer to the read pointer, and the CEN (enable port) switches from write enable Enable write caching. If the data read buffer 141 is not full and there is currently no data read operation from the data read buffer 142 (the read enable is low level), a write data cache operation occurs, and the data read buffer 142 can be read. Write data in 141.
  • the CEN port of the single-port random data memory 110 is at a low level, indicating that the single-port random data memory 110 can be read or written.
  • the data control circuit 160 is connected to the WEN port of the single-port random data memory 110 and outputs a high level to the WEN port. level, the single-port random access data memory 110 can perform a read operation, read data from the single-port random access data memory 110 through DOUT (output data port) and write it into the data read buffer 142.
  • the switching circuit 130 can switch the connection between the data writing interface 151 and the single-port random data memory 110 in advance; when the writing clock stops, it means that the writing operation will not be performed temporarily, and the switching circuit 130 can switch in advance.
  • the circuit 130 can switch the data reading interface 151 to connect to the single-port random data memory 110 in advance; when both the reading and writing clocks are stopped, it means that the reading and writing operations will not be performed temporarily, the data reading interface 152 or the data writing interface 151 can maintain the specified state or restore the initial state.
  • This designated state means that the data reading interface 152 or the data writing interface 151 remains connected to the single-port random access data memory 110 at the end of the last work.
  • the above-mentioned application embodiment reads and writes data from time to time to the FIFO storage control circuit 100 through the communication interface, predicts the read operation or write operation, generates a switching signal in the switching control circuit 120, and the switching circuit 130 performs switching control according to the switching control circuit 120.
  • the read switching signal sent by the circuit 120 switches the data read interface 152 to be connected to the single-port random access data memory 110, so as to read according to the read signal output by the data read interface 152.
  • the instruction is to perform a read operation on the single-port random access data memory 110, or the switching circuit 130 switches the data writing interface 151 to be connected to the single-port random access data memory 110 according to the write switching signal sent by the switching control circuit 120, so that the data writing interface 151
  • the output write command performs a write operation on the single-port random data memory 110, in which the read operation clock and the write operation clock are independent. Only when the switching control circuit 120 outputs a write switching signal can the single-port random data memory 110 be written. A write operation is performed; only when the switching control circuit 120 outputs a read switching signal, the read operation can be performed on the single-port random access data memory 110 .
  • the above-mentioned FIFO storage control circuit 100 uses a single-chip single-port random data memory 110 as the storage unit, which meets the asynchronous requirements of the FIFO storage control device, effectively reduces the area of the FIFO memory, and reduces the cost.
  • FIG. 5 is a schematic flowchart of a FIFO storage control method provided by yet another embodiment of the present application.
  • the FIFO storage control method can be applied to the above-mentioned FIFO storage control circuit 100, and the method can include the following steps:
  • Step S210 Generate a switching signal according to the received communication command.
  • the switching signal includes a read switching signal or a writing switching signal.
  • Step S220 Transmit the instruction corresponding to the switching signal to the single-port random access data memory 110 according to the switching signal to perform a preset operation on the single-port random access data memory 110, where the instruction includes a read instruction or a write instruction, and the preset operation includes a read operation. or write operation.
  • step S220 the method also includes:
  • Step S230 Control the connection status of the data writing interface and the data reading interface to the single-port random access data memory 110 according to the switching signal.
  • step S230 please refer to the detailed description of the foregoing embodiments, and will not be described again here.
  • Step 210 Generate a switching signal according to the received communication command.
  • the switching signal includes a reading switching signal or a writing switching signal.
  • Step S240 Connect the data reading interface 152 to the single-port random access data memory 110 according to the read switching signal, so as to perform a read operation on the single-port random access data memory 110 according to the read command output by the data reading interface 152.
  • step S240 please refer to the detailed description of the foregoing embodiments, and will not be described again here.
  • This method may also include the following steps:
  • Step 210 Generate a switching signal according to the received communication command.
  • the switching signal includes a reading switching signal or a writing switching signal.
  • Step S250 Connect the data writing interface 151 to the single-port random data storage according to the writing switching signal.
  • the memory 110 is configured to perform a write operation on the single-port random access data memory 110 according to the write command output by the data write interface 151 .
  • step S250 please refer to the detailed description of the foregoing embodiments, and will not be described again here.
  • step S220 the method also includes:
  • Step S260 Synchronize the switching signal to the corresponding clock domain; where the clock domain includes a read operation clock domain or a write operation clock domain.
  • step S260 please refer to the detailed description of the foregoing embodiments, and will not be described again here.
  • FIG. 10 is a schematic structural diagram of a chip provided by this application. As shown in FIG. 10 , the chip 20 includes a FIFO storage control circuit 100 .
  • FIG. 11 is a schematic structural diagram of an electronic device provided by this application. As shown in FIG. 10 , the electronic device 30 includes a FIFO storage control circuit 100 or a chip 20 .
  • the electronic device 30 may be, but is not limited to, a weight scale, a body fat scale, a nutritional scale, an infrared electronic thermometer, a pulse oximeter, a body composition analyzer, a mobile power supply, a wireless charger, a fast charger, a vehicle mounted Chargers, adapters, monitors, USB (Universal Serial Bus, Universal Serial Bus) docking stations, stylus pens, true wireless headphones, car central control units, cars, smart wearable devices, mobile terminals, smart home devices.
  • Smart wearable devices include but are not limited to smart watches, smart bracelets, and cervical massagers.
  • Mobile terminals include but are not limited to smartphones, laptops, tablets, and POS (point of sales terminal) machines.
  • Smart home devices include but are not limited to smart sockets, smart rice cookers, smart sweepers, and smart lights.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Computer Hardware Design (AREA)
  • Communication Control (AREA)
  • Static Random-Access Memory (AREA)

Abstract

La présente demande divulgue un circuit et un procédé de commande de stockage FIFO, une puce et un dispositif électronique. Le circuit comprend : une mémoire vive à port unique, un circuit de commande de commutation et un circuit de commutation, un signal de commutation étant généré au moyen du circuit de commande de commutation, et le signal de commutation comprenant un signal de commutation de lecture ou un signal de commutation d'écriture ; selon le signal de commutation, le circuit de commutation transmet à la mémoire de données aléatoires à port unique une instruction correspondant au signal de commutation de façon à exécuter une opération prédéfinie sur la mémoire de données aléatoires à port unique selon l'instruction, l'instruction comprenant une instruction de lecture ou une instruction d'écriture, et l'opération prédéfinie comprenant une opération de lecture ou une opération d'écriture.
PCT/CN2023/108417 2022-07-22 2023-07-20 Circuit et procédé de commande de stockage fifo, puce et dispositif électronique WO2024017337A1 (fr)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202210871438.1 2022-07-22
CN202210871438 2022-07-22
CN202310836566.7A CN117435158A (zh) 2022-07-22 2023-07-07 一种fifo存储控制电路、方法、芯片及电子设备
CN202310836566.7 2023-07-07

Publications (1)

Publication Number Publication Date
WO2024017337A1 true WO2024017337A1 (fr) 2024-01-25

Family

ID=89557204

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/108417 WO2024017337A1 (fr) 2022-07-22 2023-07-20 Circuit et procédé de commande de stockage fifo, puce et dispositif électronique

Country Status (2)

Country Link
CN (1) CN117435158A (fr)
WO (1) WO2024017337A1 (fr)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777894A (zh) * 2012-10-25 2014-05-07 深圳市中兴微电子技术有限公司 解决存储器读写冲突的方法及装置
CN207718357U (zh) * 2017-11-27 2018-08-10 航天信息股份有限公司 一种fifo存储器
CN111124961A (zh) * 2019-12-30 2020-05-08 武汉先同科技有限公司 一种连续读写模式下的单口ram转伪双口ram的实现方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777894A (zh) * 2012-10-25 2014-05-07 深圳市中兴微电子技术有限公司 解决存储器读写冲突的方法及装置
CN207718357U (zh) * 2017-11-27 2018-08-10 航天信息股份有限公司 一种fifo存储器
CN111124961A (zh) * 2019-12-30 2020-05-08 武汉先同科技有限公司 一种连续读写模式下的单口ram转伪双口ram的实现方法

Also Published As

Publication number Publication date
CN117435158A (zh) 2024-01-23

Similar Documents

Publication Publication Date Title
KR101442791B1 (ko) 통신 포트에 대한 가변 클록 게이팅 히스테리시스를 채용하는 장치 및 방법들
CN101329663A (zh) 一种实现管脚分时复用的装置及方法
US8433835B2 (en) Information processing system and control method thereof
CN112380157A (zh) 一种带fifo缓存和校验功能的iic总线的通信装置
CN101162448A (zh) 一种usb高速数据隧道的硬件传输方法
CN114490460A (zh) 一种用于asic的flash控制器及其控制方法
EP2207101A1 (fr) Procédé et dispositif pour une interface parallèle
JP4350808B2 (ja) バースト・ダイレクトメモリアクセスを備えた表示制御装置を有するデータ処理システム、および同システムにおいて命令を周期的に供給する方法
US9015272B2 (en) Microcomputer
KR100476895B1 (ko) 가변 가능한 데이터 전송 모드를 갖는 인터페이스 장치 및그것의 동작 방법
EP1478994B1 (fr) Transfert de donnees entre des bus a horloge differente
WO2024017337A1 (fr) Circuit et procédé de commande de stockage fifo, puce et dispositif électronique
US6584536B1 (en) Bus transaction accelerator for multi-clock systems
CN110827891B (zh) 信号转换单元、存储器以及应用于存储器的驱动方法
US20030217218A1 (en) Interface for devices having different data bus widths and data transfer method using the interface
CN114996184B (zh) 兼容实现spi或i2c从机的接口模块及数据传输方法
CN113590520B (zh) Spi系统自动写入数据的控制方法及spi系统
EP3819778A1 (fr) Système de bus et procédé de fonctionnement d'un système de bus
JP5528939B2 (ja) マイクロコンピュータ
JP2001167047A (ja) ブリッジ装置
WO2023240532A1 (fr) Îlot basse puissance destiné à une interface d'affichage
CN114880270B (zh) Spi设备及其数据传输方法
CN117312210B (zh) 一种通用扩展risc-v处理器性能的方法
AU670507B2 (en) Method and system for providing data hold time by synchronous random access memory during write operations
JP2001051748A (ja) 情報処理装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23842399

Country of ref document: EP

Kind code of ref document: A1