System and method for implementing asynchronous FIFO between blocks in different clock domains

Through signal synchronization and counting signal interaction between data cache modules and readout devices between different clock domains, the clock tree design complexity problem of asynchronous FIFO during data interaction between different clock domains is solved, and each block is realized Independent generation and simplification of clock trees.

CN114756197BActive Publication Date: 2024-11-08CHENGDU DENGLIN TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210277017.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-21
Publication Date
2024-11-08
Estimated Expiration
2042-03-21

AI Technical Summary

Technical Problem

In large-scale chip designs, asynchronous FIFOs interact with data between blocks in different clock domains at the same time, resulting in high complexity in clock trees design, and strong dependence on clock trees for different blocks, making it difficult to generate independently.

Method used

By establishing signal synchronization and counting signal interaction between the data cache module and the writing device in one clock domain and the reading device in another clock domain, data cache and readout operations are performed using the write count signal and the read count signal, and The function of asynchronous FIFO is realized through timing constraints.

Benefits of technology

The design complexity of clock trees for different blocks is reduced, so that clock trees for each block can be generated independently, and the timing constraints of signal interactions across clock domains are reduced, and chip design is simplified.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114756197B_ABST
    Figure CN114756197B_ABST
Patent Text Reader

Abstract

The present invention provides a system and method for realizing asynchronous FIFO between blocks in different clock domains. The system includes a data cache module and a writing device in a first block in a first clock domain, and a reading device in a second block in a second clock domain. The writing device synchronizes the read count signal from the second clock domain to the first clock domain, generates a full indication signal according to the synchronized signal and the current write count signal of the first clock domain, and counts in the first clock domain according to the full indication signal; the data cache module caches the write data according to the generated write count signal; the reading device synchronizes the write count signal from the first clock domain to the second clock domain, generates an empty indication signal according to the synchronized signal and the current read count signal of the second clock domain, and counts in the second clock domain according to the empty indication signal for reading cached data. The present invention reduces the design complexity of the clock tree of the blocks in large chip design.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of chip design, and in particular to a system and method for realizing asynchronous FIFO between blocks in different clock domains. Background Art

[0002] Chip design often involves multiple clocks. In large chip design, the chip is usually divided into multiple partitions (referred to as blocks in this article) to verify the entire design, where different blocks use different clocks and belong to different clock domains. The clock trees of different blocks are usually generated separately. At present, asynchronous FIFO (full name: First In First Out) is usually used between blocks in different clock domains to realize data interaction. A common method is to set the asynchronous FIFO queue in a clock domain, where different clocks are used as read clocks and write clocks. It can be seen that the asynchronous FIFO queue set in a block in a clock domain still needs to use the clock of another clock domain, which leads to a high design complexity of the clock trees of different blocks. Summary of the invention

[0003] In order to overcome the problems existing in the above-mentioned prior art, according to one embodiment of the present invention, a system for realizing asynchronous FIFO between blocks in different clock domains is provided, comprising a data cache module and a writing device arranged in a first block of a first clock domain, and a reading device arranged in a second block of a second clock domain. The writing device is configured to: synchronize a read count signal from the second clock domain to the first clock domain; generate a full indication signal according to the synchronized read count signal and the current write count signal of the first clock domain; and count in the first clock domain to generate a write count signal in response to the full indication signal indicating that the data cache module is not full and the write indication signal indicating that there is write data. The data cache module is configured to cache the write data as cache data to the data cache module according to the generated write count signal. The readout device is configured to: synchronize the write count signal from the first clock domain to the second clock domain; generate an empty indication signal according to the synchronized write count signal and the current read count signal of the second clock domain; count in the second clock domain to generate a read count signal in response to the empty indication signal indicating that the data cache module is not empty and the read indication signal indicating that data is read out from the data cache module; the generated read count signal is used to select and output read data from the cache data. The path of the interactive signal across the first block of the first clock domain and the second block of the second clock domain is established with timing constraints.

[0004] The above system may also include a read data isolation module arranged in a second block in the second clock domain. The readout device of the above system is also configured to obtain a read address from the generated read count signal, and transmit the read address to the data cache module via an interface between the first block in the first clock domain and the second block in the second clock domain. The data cache module of the above system is also configured to select read data from cached data according to the read address, and transmit the read data to the read data isolation module via the interface. The read data isolation module is configured to isolate the read data in the second clock domain to generate output data. Wherein, the path between the readout device and the interface, the path from the interface to the interface via the data cache module, and the path between the interface and the read data isolation module are respectively established with corresponding timing constraints.

[0005] The above system may also include a multiplexing module and a read data isolation module arranged in a second block of the second clock domain. The data cache module of the above system is also configured to transmit the cached data to the multiplexing module via an interface between the first block of the first clock domain and the second block of the second clock domain. The readout device of the above system is also configured to obtain a read address from the generated read count signal and transmit the read address to the multiplexing module. The multiplexing module is configured to select read data from the cached data according to the read address and transmit the read data to the read data isolation module. The read data isolation module is configured to isolate the read data in the second clock domain to generate output data. Wherein, the path between the data cache module and the interface, and the path between the interface and the read data isolation module are respectively established with corresponding timing constraints.

[0006] In the above system, the writing device may include: a read count synchronizer module, which is used to receive the read count signal generated by the reading device via the interface between the first block of the first clock domain and the second block of the second clock domain, and synchronize the read count signal to the first clock domain; a full indication logic module, which is used to generate a full indication signal according to the synchronized read count signal and the current write count signal of the first clock domain; a write counter module, which is used to count in the first clock domain to generate a write count signal in response to the full indication signal indicating that the data cache module is not full and the write indication signal indicating that there is write data. The reading device may include: a write count synchronizer module, which is used to receive the write count signal generated by the writing device via the interface, and synchronize the write count signal to the second clock domain; an empty indication logic module, which is used to generate an empty indication signal according to the synchronized write count signal and the current read count signal of the second clock domain; a read counter module, which is used to count in the second clock domain to generate a read count signal in response to the empty indication signal indicating that the data cache module is not empty and the read indication signal indicating that data is read from the data cache module.

[0007] In the above system, the writing device may further include a write count isolation module for isolating the write count signal generated by the write counter module in the first clock domain, and transmitting the isolated write count signal to the write count synchronizer module via the interface. The reading device may further include a read count isolation module for isolating the read count signal generated by the read counter module in the second clock domain, and transmitting the isolated read count signal to the read count synchronizer module via the interface. The path between the write count isolation module and the interface, the path between the interface and the write count synchronizer module, the path between the read count isolation module and the interface, and the path between the interface and the read count synchronizer module are respectively established with corresponding timing constraints.

[0008] In the above system, the writing device may further include a write count decoding module, which is used to decode the write count signal generated by the writing device to generate a write address. For example, when the writing device uses a Gray code counter as the write counter module, the write count decoding module is used to decode the write count signal in the form of Gray code to generate a binary-coded write address; the write address indicates the location where the write data is cached in the data cache module. The reading device may further include a read count decoding module, which is used to decode the read count signal generated by the reading device, and isolate the decoding result in the second clock domain to generate a read address. For example, when the reading device uses a Gray code counter as the read counter module, the read count decoding module is used to decode the read count signal in the form of Gray code to obtain the corresponding binary code; the read address is used to select read data from the cached data.

[0009] According to an embodiment of the present invention, a method for implementing an asynchronous FIFO between blocks in different clock domains is also provided, wherein a data cache module and a write device are set in a first block in a first clock domain and a read device is set in a second block in a second clock domain. The method comprises: the write device synchronizes a read count signal from the second clock domain to the first clock domain; generates a full indication signal according to the synchronized read count signal and the current write count signal of the first clock domain; and in response to the full indication signal indicating that the data cache module is not full and the write indication signal indicating that there is write data, counts in the first clock domain to generate a write count signal. The method further comprises: the data cache module caches the write data as cache data according to the generated write count signal. The method further comprises: the read device synchronizes the write count signal from the first clock domain to the second clock domain; generates an empty indication signal according to the synchronized write count signal and the current read count signal of the second clock domain; and in response to the empty indication signal indicating that the data cache module is not empty and the read indication signal indicating that data is read out from the data cache module, counts in the second clock domain to generate a read count signal; the generated read count signal is used to select and output read data from the cache data. The path of the interactive signal between the first block in the first clock domain and the second block in the second clock domain is established with timing constraints.

[0010] The above method may also include setting a read data isolation module in the second block of the second clock domain. The above method may also include: the read device obtains a read address from the generated read count signal, and transmits the read address to the data cache module via the interface between the first block of the first clock domain and the second block of the second clock domain; the data cache module selects read data from the cached data according to the read address, and transmits the read data to the read data isolation module via the interface; and the read data isolation module isolates the read data in the second clock domain to generate output data. Wherein, the path between the read device and the interface, the path from the interface to the interface via the data cache module, and the path between the interface and the read data isolation module are respectively established with corresponding timing constraints.

[0011] The above method may also include setting a multiplexing module and a read data isolation module in the second block of the second clock domain. The above method may also include: the data cache module transmits the cache data to the multiplexing module via the interface between the first block of the first clock domain and the second block of the second clock domain; the read-out device obtains the read address from the generated read count signal, and transmits the read address to the multiplexing module; the multiplexing module selects the read data from the cache data according to the read address, and transmits the read data to the read data isolation module; and the read data isolation module isolates the read data in the second clock domain to generate output data. Wherein, the path between the data cache module and the interface, and the path between the interface and the read data isolation module are respectively established with corresponding timing constraints.

[0012] The above method may also include: the writing device isolates the generated write count signal in the first clock domain, and transmits the isolated write count signal to the reading device via the interface between the first block of the first clock domain and the second block of the second clock domain to synchronize to the second clock domain; the reading device isolates the generated read count signal in the second clock domain, and transmits the isolated read count signal to the writing device via the interface to synchronize to the first clock domain.

[0013] The embodiments of the present invention can achieve the following beneficial effects: for the first block in the first clock domain, only the clock tree of the first clock domain needs to be designed and the clock of the second clock domain does not need to be involved. Similarly, for the second block in the second clock domain, only the clock tree of the second clock domain needs to be designed and the clock of the first clock domain does not need to be involved. This is beneficial to the separate generation of clock trees for different blocks and reduces the design complexity of clock trees for blocks in large chip design.

[0014] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present invention and, together with the description, serve to explain the principles of the present invention, in which:

[0016] Figure 1A-1B A block diagram of a system for implementing asynchronous FIFO between blocks in different clock domains according to an embodiment of the present invention is schematically shown, wherein Figure 1B The timing constraints in the system are marked;

[0017] Figure 2 Schematically shows a block diagram of a system for implementing asynchronous FIFO between blocks in different clock domains according to another embodiment of the present invention;

[0018] Figure 3A-3B A flow chart of a method for implementing an asynchronous FIFO between blocks in different clock domains according to an embodiment of the present invention is schematically shown;

[0019] Figure 4A-4B The flowchart of a method for implementing asynchronous FIFO between blocks in different clock domains according to another embodiment of the present invention is schematically shown. DETAILED DESCRIPTION

[0020] Example embodiments of the present invention are now described in more detail with reference to the accompanying drawings, and the example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein. It should be understood that the block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. For example, these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices. In addition, the flowcharts shown in the accompanying drawings are only for schematic illustration and do not necessarily include all operations / steps, nor do they necessarily have to be performed in the order described. For example, some operations / steps may be further decomposed, and some operations / steps may be merged or partially merged, so the order of actual execution may change according to actual conditions.

[0021] According to one aspect of the present invention, a system for implementing asynchronous FIFO between blocks in different clock domains is provided.

[0022] Figure 1A A block diagram of a system for implementing an asynchronous FIFO between blocks in different clock domains according to an embodiment of the present invention is schematically shown. The system is applied to two clock domains, which are respectively denoted as clock domain 0 and clock domain 1. Clock domain 0 is driven by clock 0 and clock domain 1 is driven by clock 1 which is different from clock 0. Block 0 of a chip (also referred to as block 0 of clock domain 0) is located in clock domain 0 and block 1 of a chip (also referred to as block 1 of clock domain 1) is located in clock domain 1. Signals across block 0 and block 1 are transmitted through an interface between the two blocks (see Figure 1A It should be noted that, although the present embodiment is described using expressions such as clock domain 0-1 and block 0-1, clock domain 0 and clock domain 1 may also be referred to as the first clock domain and the second clock domain, respectively, and blocks 0 and 1 may also be referred to as the first block and the second block, respectively.

[0023] like Figure 1AAs shown, the system for realizing asynchronous FIFO between blocks in different clock domains includes the following modules: data cache module 101, write gray code decoding module 102, write counter module 103, write count isolation module 104, full indication logic module 105, read count synchronizer module 106, read data isolation module 107, read gray code decoding module 108, write count synchronizer module 109, empty indication logic module 110, read count isolation module 111 and read counter module 112. Among them, modules 101-106 are located in block 0 of clock domain 0, and are used to cache external input write data for external input write indication signal; modules 107-112 are located in block 1 of clock domain 1, and are used to obtain read data from block 0 of clock domain 0 for external input read indication signal. The following will be combined with Figure 1A Detailed description of each module in the system:

[0024] Block 0 of clock domain 0

[0025] The data buffer module 101 is arranged in the block 0 of the clock domain 0, and is used to buffer the write data according to the write address, and output the read data to the block 1 of the clock domain 1 according to the read address.

[0026] The data cache module 101 can be composed of registers or RAM, and its depth determines the ability of the asynchronous FIFO to cache data. The specific depth value can be set according to the actual application. The data cache module 101 receives write data from outside the system and the write address from the write Gray code decoding module 102, and caches the write data to the corresponding position in the data cache module 101 according to the write address, so that all cached data is visible to the outside. At the same time, the data cache module 101 receives the read address of the read Gray code decoding module 108 in the block 1 of the clock domain 1 via the interface between block 0 and block 1, selects the read data from the cached data according to the read address, and transmits the read data to the read data isolation module 107 in the block 1 of the clock domain 1 via the interface between block 0 and block 1. Among them, the read address obtains the read data via the combinational logic in the data cache module 101, and the combinational logic does not require the participation of clock 1 of clock domain 1. In addition, the combinatorial logic is constrained as transparent logic in block 0 of clock domain 0. Specifically, timing constraints are established for the path from the read address reaching the combinatorial logic from the interface between blocks, obtaining the read data through the combinatorial logic, and the read data reaching the interface between blocks from the combinatorial logic. Figure 1B , the timing constraint of the path can be set to no more than 40% of the total timing budget, where the total timing budget is, for example, the timing budget from receiving a read indication signal to outputting read data, and the timing constraint includes certain requirements or interventions on clock delay and data delay.

[0027] The write Gray code decoding module 102 is arranged in block 0 of clock domain 0 and is composed of combinational logic. The write Gray code decoding module 102 receives a write count Gray code signal from a write counter 103 , decodes the received write count Gray code signal into a normal binary-coded write address, and transmits the write address to the data cache module 101 .

[0028] The write counter module 103 is set in block 0 of clock domain 0 and is implemented by a Gray code counter. The write counter module 103 receives an externally input write indication signal and a full indication signal from the full indication logic module 105, and counts in clock domain 0 with Gray code when the write indication signal is 1 and the full indication signal is 0 (indicating that there is write data and the data cache module 101 is not full), and outputs a write count Gray code signal generated by the count. Among them, the write count Gray code signal is output to the write Gray code decoding module 102, the write count isolation module 104 and the full indication logic module 105.

[0029] The write count isolation module 104 is arranged in block 0 of clock domain 0, which receives the write count Gray code signal from the write counter module 103, isolates the write count Gray code signal, and transmits the isolated write count Gray code signal to the write count synchronizer module 109 in block 1 of clock domain 1 via the interface between block 0 and block 1, so as to be synchronized by the write count synchronizer module 109. Among them, isolating the write count Gray code signal includes but is not limited to: beating the signal at least once in clock domain 0, that is, delaying / storing the signal in clock domain 0 for at least one cycle (i.e., one cycle of clock 0) to interrupt the timing and eliminate metastable state. In addition, in block 0 of clock domain 0, a timing constraint is established for the path of the isolated write count Gray code signal from the write count isolation module 104 to the interface between block 0 and block 1. The timing constraint for the path can be established with reference to the general interface, see Figure 1B , the timing constraint for this path can be set to no more than 20% of the total timing budget.

[0030] The full indication logic module 105 is set in the block 0 of the clock domain 0, which receives the write count Gray code signal from the write counter module 103 and the synchronized read count Gray code signal from the read count synchronizer module 106, compares the two to generate a full indication signal, and outputs the full indication signal. The full indication signal can be output to the write counter module 103 and the external module; the full indication signal is used to indicate whether the data cache module 101 is not full, wherein the full indication signal is 0, indicating that the data cache module 101 is not full, and the full indication signal is 1, indicating that the data cache module 101 is full.

[0031] The read count synchronizer module 106 is arranged in block 0 of clock domain 0, and receives the isolated read count Gray code signal from the read counter module 112 and isolated by the read count isolation module 111 from block 1 of clock domain 1 via the interface between block 0 and block 1, synchronizes the isolated read count Gray code signal to clock domain 0, and transmits the synchronized read count Gray code signal to the full indication logic module 105, so that the full indication logic module 105 generates a full indication signal. Wherein, synchronizing the isolated read count Gray code signal to clock domain 0 includes but is not limited to: beating the isolated read count Gray code signal at least twice in a row in clock domain 0, that is, delaying / storing the signal in clock domain 0 for at least two cycles (i.e., two cycles of clock 0) to achieve synchronization of the signal in clock domain 0. In addition, in block 0 of clock domain 0, a timing constraint is established for the path of the isolated read count Gray code signal from the interface between block 0 and block 1 to the read count synchronizer module 106, and the timing constraint for the path can be established with reference to a general interface. See. Figure 1B , the timing constraint for this path can be set to no more than 20% of the total timing budget.

[0032] Block 1 of clock domain 1

[0033] The read data isolation module 107 is set in block 1 of clock domain 1, which receives the read data from the data cache module 101 in block 0 of clock domain 0 via the interface between block 0 and block 1, isolates the read data, and outputs the isolated read data, i.e., read-out data. Among them, isolating the read data includes but is not limited to: beating the read data at least once in clock domain 1, that is, delaying / storing the read data in clock domain 1 for at least one cycle (i.e., one cycle of clock 1) to interrupt the timing and eliminate metastable states. In addition, in block 1 of clock domain 1, a timing constraint is established for the path of the read data from the interface between block 0 and block 1 to the read data isolation module 107, and the timing constraint for this path can be established with reference to general inputs. See Figure 1B , the timing constraint for this path can be set to no more than 20% of the total timing budget.

[0034] The read Gray code decoding module 108 is set in block 1 of clock domain 1, which receives the read count Gray code signal from the read counter module 112, decodes the received read count Gray code signal into a normal binary-coded decoding result, isolates the decoding result to obtain a read address, and transmits the read address to the data cache module 101 in block 0 of clock domain 0 via the interface between block 0 and block 1, so that the data cache module 101 selects read data from the cached data. Among them, isolating the decoding result includes but is not limited to: at least beating the decoding result in clock domain 1, that is, delaying / storing the decoding result in clock domain 1 for at least one cycle (i.e., one cycle of clock 1) to interrupt the timing and eliminate metastable states. In addition, in block 1 of clock domain 1, a timing constraint is established for the path of the read address from the read Gray code decoding module 108 to the interface between block 0 and block 1. The timing constraint for this path can be established with reference to the general output. See. Figure 1B , the timing constraint for this path can be set to no more than 20% of the total timing budget.

[0035] The write count synchronizer module 109 is arranged in block 1 of clock domain 1, and receives the signal generated by the write counter module 103 in block 0 of clock domain 0 and isolated by the write count isolation module 104 via the interface between block 0 and block 1, synchronizes the isolated write count Gray code signal to clock domain 1, and transmits the synchronized write count Gray code signal to the empty indication logic module 115, so that the empty indication logic module 110 generates an empty indication signal. Wherein, synchronizing the isolated write count Gray code signal to clock domain 1 includes but is not limited to: beating the isolated write count Gray code signal at least twice in a row in clock domain 1, that is, delaying / storing the signal in clock domain 1 for at least two cycles (i.e., two cycles of clock 1) to achieve synchronization of the signal in clock domain 1. In addition, in block 1 of clock domain 1, a timing constraint is established for the path of the isolated write count Gray code signal from the interface between block 0 and block 1 to the write count synchronizer module 109, and the timing constraint for the path can be established with reference to a general interface. See. Figure 1B , the timing constraint for this path can be set to no more than 20% of the total timing budget.

[0036] The empty indication logic module 110 is set in the block 1 of the clock domain 1, which receives the read count Gray code signal from the read counter module 112 and the synchronized write count Gray code signal from the write count synchronizer module 109, compares the two to generate an empty indication signal, and outputs the empty indication signal. The empty indication signal is output to the read counter module 112 and the external module; the empty indication signal is used to indicate whether the data cache module 101 is empty, wherein the empty indication signal is 0, indicating that the data cache module 101 is not empty, and the empty indication signal is 1, indicating that the data cache module 101 is empty.

[0037] The read count isolation module 111 is arranged in block 1 of clock domain 1, which receives the read count Gray code signal from the read counter module 112, isolates the read count Gray code signal, and transmits the isolated read count Gray code signal to the read count synchronizer module 106 in block 0 of clock domain 0 via the interface between block 0 and block 1, so as to be synchronized by the read count synchronizer module 106. Among them, isolating the read count Gray code signal includes but is not limited to: beating the read count Gray code signal at least once in clock domain 1, that is, delaying / storing the read count Gray code signal in clock domain 1 for at least one cycle (i.e., one cycle of clock 1) to interrupt the timing and eliminate the metastable state. In addition, in block 1 of clock domain 1, a timing constraint is established for the path of the isolated read count Gray code signal from the read count isolation module 111 to the interface between block 0 and block 1. The timing constraint for the path can be established with reference to the general interface. See. Figure 1B , the timing constraint for this path can be set to no more than 20% of the total timing budget.

[0038] The read counter module 112 is set in the block 1 of the clock domain 1 and is composed of a Gray code counter. The read counter module 112 receives the read indication signal input from the outside and the empty indication signal from the empty indication logic module 110, and counts at clock 1 with Gray code when the read indication signal is 1 and the empty indication signal is 0 (indicating that data needs to be read from the data cache module 101 and the data cache module 101 is not empty), and outputs the read count Gray code signal generated by the counting. Among them, the read count Gray code signal is output to the read Gray code decoding module 108, the read count isolation module 111 and the empty indication logic module 110.

[0039] In the above embodiment, the read count Gray code signal from clock domain 1 is synchronized to clock domain 0 by setting a read count synchronizer module 106 in block 0 of clock domain 0, and the write count Gray code signal from clock domain 0 is synchronized to clock domain 1 by setting a write count synchronizer module 109 in clock domain 1, and timing constraints are established for the paths of cross-block interactive signals, so that block 0 of clock domain 0 only uses clock 0 of clock domain 0 without using clock 1 of clock domain 1, and block 1 of clock domain 1 only uses clock 1 of clock domain 1 without using clock 0 of clock domain 0. Therefore, for block 0 of clock domain 0, only the clock tree of clock domain 0 needs to be designed without the participation of clock 1 of clock domain 1. Similarly, for block 1 of clock domain 1, only the clock tree of clock 1 needs to be designed without the participation of clock 0 of clock domain 0. This is beneficial to the separate generation of clock trees of different blocks and reduces the design complexity of clock trees of blocks in large chip design.

[0040] In the above embodiment, the write counter module 103 and the read counter module 112 are shown by taking the Gray code counter as an example, but it should be understood that the write counter module and the read counter module can also use other binary counters, and the write Gray code decoding module 102 can be replaced by other decoding modules or cancel the write Gray code decoding module accordingly, and the read Gray code decoding module 108 can also be replaced by other decoding modules. It should also be understood that the timing constraint values ​​(such as 20%, 40%, etc.) set in the above embodiment are only for illustrative purposes, and the timing constraints on the paths can also be set to other values.

[0041] In the above embodiment, the signal is isolated by hitting the signal for at least one beat. In a preferred embodiment, the signal can be isolated by hitting one beat. In other embodiments, the signal may not be isolated. In the above embodiment, the signal is synchronized by hitting the signal for at least two consecutive beats. In a preferred embodiment, the signal can be isolated by hitting two consecutive beats.

[0042] Figure 2 A block diagram of a system for implementing asynchronous FIFO between blocks in different clock domains according to another embodiment of the present invention is schematically shown. Figure 1A-1B Compared with the system shown in FIG. 1 , a multiplexing module is added to block 1 in clock domain 1 to reduce timing constraints by increasing interactive signals between blocks.

[0043] like Figure 2 As shown, the system includes: a data cache module 201, a write Gray code decoding module 202, a write counter module 203, a write count isolation module 204, a full indication logic module 205, a read count synchronizer module 206, a multiplexing module 207, a read data isolation module 208, a read Gray code decoding module 209, a write count synchronizer module 210, an empty indication logic module 211, a read count isolation module 212 and a read counter module 213. Among them, modules 201-206 are located in block 0 of clock domain 0, and are used to cache external input write data in response to an external input write indication signal, and provide all cached data to block 1 of clock domain 1; modules 207-213 are located in block 1 of clock domain 1, and are used to obtain all cached data, and obtain read data from the cached data in response to an external input read indication signal. The following will be combined with Figure 2 Detailed description of each module in the system:

[0044] Block 0 of clock domain 0

[0045] The data cache module 201 is set in the block 0 of the clock domain 0, which receives the write data from the outside of the system and the write address from the write gray code decoding module 202, caches the write data to the corresponding position in the data cache module 201 according to the write address, and transfers all the cached data (such as Figure 2 As shown, cache data 0~N-1) is transmitted to the multiplexing module 207 in the block 1 of the clock domain 1. In the block 0 of the clock domain 0, a timing constraint is established for the path of the cache data from the data cache module 201 to the interface between the block 0 and the block 1. The timing constraint of the path can be established with reference to the general interface. For example, the timing constraint of the path can be set to no more than 20% of the total timing budget. Figure 1B Compared with the timing constraint of no more than 40% of the total timing budget shown, the timing constraint of no more than 20% here makes the constraints on other locations smaller and provides greater flexibility.

[0046] The write Gray code decoding module 202, the write counter module 203, the write count isolation module 204, the full indication logic module 205 and the read count synchronizer module 206 are respectively combined with the above Figure 1A-1B The modules 102-106 described are similar and will not be described again here.

[0047] Block 1 of clock domain 1

[0048] The multiplexing module 207 is set in the block 1 of the clock domain 1 and is composed of a combinational logic. The multiplexing module 207 receives all cache data (cache data 0, cache data 1, ..., cache data N-1) from the data cache module 201 from the block 0 of the clock domain 0 via the interface between the block 0 and the block 1. The multiplexing module 207 also receives the read address from the read Gray code decoding module 209, selects the read data from the cache data according to the read address, and transmits the read data to the read data isolation module 208.

[0049] The read data isolation module 208 is arranged in the block 1 of the clock domain 1, which receives the read data from the multiplexing module 207, isolates the read data, and outputs the isolated read data, i.e., the read data. Among them, isolating the read data includes but is not limited to: beating the read data at least once in the clock domain 1, that is, delaying / storing the read data in the clock domain 1 for at least one cycle (i.e., one cycle of the clock 1) to interrupt the timing and eliminate the metastable state. In addition, in the block 1 of the clock domain 1, the timing constraints are established for the path of the cache data from the interface between the block 0 and the block 1 to the multiplexing module 207, the read data is obtained via the multiplexing module 207, and the read data reaches the read data isolation module 208 from the multiplexing module 207. The timing constraints for the path can be established with reference to the general input. For example, the timing constraints for the path can be set to no more than 20% of the total timing budget.

[0050] The read Gray code decoding module 209 is set in block 1 of clock domain 1, which receives the read count Gray code signal from the read counter module 213, decodes the received read count Gray code signal into a normal binary-coded decoding result, isolates the decoding result to obtain a read address, and outputs the read address to the multiplexing module 207, so that the multiplexing module 207 selects the read data from all cached data. Among them, isolating the decoding result includes but is not limited to: at least one beat of the decoding result in clock domain 1, that is, the decoding result is delayed / stored in clock domain 1 for at least one cycle (i.e., one cycle of clock 1) to interrupt the timing and eliminate metastable state. Figure 1B Compared with the timing constraints of the path from the read Gray code decoding module to the interface between block 0 and block 1, and from the interface between block 0 and block 1 to the data cache module 101, there is no need to establish timing constraints for the path of the read data from the read Gray code decoding module 209 to the multiplexing module 207.

[0051] The write count synchronizer module 210, the empty indication logic module 211, the read count isolation module 212 and the read counter module 213 are respectively combined with the above Figure 1A-1B The modules 109-112 described are similar and will not be described again here.

[0052] Combined with Figure 1A-1B Compared to the described system, the combined Figure 2 The described system has more interactive signals between block 0 and block 1, but fewer timing constraints, and is suitable for situations where the data cache module depth is small and the bit width of the cached data is small. Specifically, when the data cache module depth is less than 8 and the bit width of the data is less than 5000, it is preferred to use a combination of Figure 2 The system described above can be used to implement asynchronous FIFOs between blocks in different clock domains. Otherwise, it is preferred to use a combination of Figure 1A-1BThe system described is used to implement asynchronous FIFOs between blocks in different clock domains.

[0053] According to another aspect of the present invention, a method for implementing an asynchronous FIFO between blocks in different clock domains is also provided.

[0054] According to one embodiment of the present invention, based on Figure 1A-1B The system shown provides a method for implementing an asynchronous FIFO between blocks in different clock domains, and the method includes a data writing process and a data reading process.

[0055] Figure 3A The data writing process of this method is schematically shown. Figure 1A-1B Describe the steps of the data writing process:

[0056] S3101 . The read count synchronizer module 106 disposed in block 0 of clock domain 0 synchronizes the read count Gray code signal from block 1 of clock domain 1 to clock domain 0 .

[0057] Specifically, the read count synchronizer module 106 receives the isolated read count Gray code signal generated by the read counter module 112 in block 1 of clock domain 1 and isolated by the read count isolation module 111 via the interface between block 0 and block 1, synchronizes the isolated read count Gray code signal to clock domain 0, and transmits the synchronized read count Gray code signal to the full indication logic 105, so that the full indication logic 105 generates a full indication signal.

[0058] Wherein, synchronizing the isolated read count Gray code signal to clock domain 0 includes but is not limited to: beating the isolated read count Gray code signal at least twice in a row in clock domain 0, that is, delaying / storing the signal in clock domain 0 for at least two cycles (i.e., two cycles of clock 0) to achieve synchronization of the signal in clock domain 0. In addition, a timing constraint is established for the path of the isolated read count Gray code signal from the interface between block 0 and block 1 to the read count synchronizer module 106, and the timing constraint of the path can be set to be no more than 20% of the total timing budget.

[0059] S3102 . The full indication logic module 105 arranged in block 0 of clock domain 0 generates a full indication signal according to the synchronized read count Gray code signal and the write count Gray code signal of the current clock domain 0 .

[0060] Specifically, the full indication logic module 105 receives the write count Gray code signal of the current clock domain 0 from the write counter module 103 and the synchronized read count Gray code signal from the read count synchronizer module 106, compares the two to generate a full indication signal, and outputs the full indication signal. The full indication signal is output to the write counter module 103 and the external module; the full indication signal is used to indicate whether the data cache module 101 is not full, the full indication signal is 0, indicating that the data cache module 101 is not full, and the full indication signal is 1, indicating that the data cache module 101 is full.

[0061] S3103. The write counter module 103 arranged in block 0 of clock domain 0 counts in clock domain 0 to generate a write count Gray code signal in response to the full indication signal indicating that the data cache module 101 is not full and the write indication signal indicating that write data exists.

[0062] Specifically, the write counter module 103 receives a write indication signal input from outside the system and a full indication signal from the full indication logic module 105. When the write indication signal indicates that there is write data (the write indication signal is 1) and the full indication signal indicates that the data cache module 101 is not full (the full indication signal is 0), the write counter module 103 counts in the clock domain 0 in the format of Gray code and outputs a write count Gray code signal generated by the count. The generated write count Gray code signal is output to the write Gray code decoding module 102, the write count isolation module 104 and the full indication logic module 105.

[0063] S3104 . The write Gray code decoding module 102 in block 0 of clock domain 0 receives the write count Gray code signal generated by the write counter module 103 , decodes the write count Gray code signal into a normal binary-coded write address, and transmits the write address to the data cache module 101 .

[0064] S3104'. The write count isolation module 104 set in block 0 of clock domain 0 receives the write count Gray code signal generated by the write counter module 103, isolates the write count Gray code signal to generate an isolated write count Gray code signal, and transmits the isolated write count Gray code signal to clock domain 1, i.e., the write count synchronizer module 109 in block 1 of clock domain 1, via the interface between block 0 and block 1, so as to be synchronized by the write count synchronizer module 109.

[0065] The isolation of the write count Gray code signal includes but is not limited to: beating the signal at least once in clock domain 0 to interrupt the timing and eliminate metastable state. In addition, a timing constraint is established for the path of the isolated write count Gray code signal from the write count isolation module 104 to the interface between block 0 and block 1, and the timing constraint of the path can be set to be no greater than 20% of the total timing budget.

[0066] S3105. The data cache module 101 in the block 0 of the clock domain 0 caches the write data as cache data according to the write address. The data cache module 101 receives the write data from outside the system and the write address from the write Gray code decoding module 102, and caches the write data to the corresponding position in the data cache module 101 according to the write address, so that all cached data are visible to the outside.

[0067] Figure 3B The data reading process of the method is schematically shown, and the following will be combined with Figure 1A-1B Describe the steps of the data readout process:

[0068] S3201. The write count synchronizer module 109 arranged in block 1 of clock domain 1 synchronizes the write count Gray code signal from clock domain 0 to clock domain 1.

[0069] Specifically, the write count synchronizer module 109 receives the isolated write count Gray code signal generated by the write counter module 103 in block 0 of clock domain 0 and isolated by the write count isolation module 104 via the interface between block 0 and block 1, synchronizes the isolated write count Gray code signal to clock domain 1, and transmits the synchronized write count Gray code signal to the empty indication logic 110, so that the empty indication logic 110 generates an empty indication signal.

[0070] Wherein, synchronizing the isolated write count Gray code signal to clock domain 1 includes but is not limited to: beating the isolated write count Gray code signal at least twice in a row in clock domain 1 to achieve synchronization of the signal in clock domain 1. In addition, a timing constraint is established for the path of the isolated write count Gray code signal from the interface between block 0 and block 1 to the write count synchronizer module 109, and the timing constraint of the path can be set to be no greater than 20% of the total timing budget.

[0071] S3202 . The empty indication logic module 110 arranged in block 1 of clock domain 1 generates an empty indication signal according to the synchronized write count Gray code signal and the read count Gray code signal of the current clock domain 1 .

[0072] Specifically, the empty indication logic module 110 receives the read count Gray code signal of the current clock domain 1 from the read counter module 112 and the synchronized write count Gray code signal from the write count synchronizer module 109, compares the two to generate an empty indication signal, and outputs the empty indication signal to the read counter module 112 and the external module. The empty indication signal is used to indicate whether the data cache module 101 is empty, and the empty indication signal is 0, indicating that the data cache module 101 is not empty, and the empty indication signal is 1, indicating that the data cache module 101 is empty.

[0073] S3203. The read counter module 112 set in block 1 of clock domain 1 counts in clock domain 1 to generate a read count Gray code signal in response to the empty indication signal indicating that the data cache module 101 is not empty and the read indication signal indicating that data is read out from the data cache module 101.

[0074] Specifically, the read counter module 112 receives a read indication signal input from the outside of the system and an empty indication signal from the empty indication logic module 110. When the read indication signal indicates that data needs to be read from the data cache module 101 (the read indication signal is 1) and the empty indication signal indicates that the data cache module 101 is not empty (the empty indication signal is 0), the read counter module 112 counts in the clock domain 1 with the Gray code, and outputs a read count Gray code signal generated by the counting. The generated read count Gray code signal is output to the read Gray code decoding module 108, the read count isolation module 111 and the empty indication logic module 110.

[0075] S3204. The read Gray code decoding module 108 set in block 1 of clock domain 1 receives the read count Gray code signal generated by the read counter module 112, decodes the read count Gray code signal into a normal binary-coded decoding result, isolates the decoding result to generate a read address, and transmits the read address to the data cache module 101 in block 0 of clock domain 0 via the interface between block 0 and block 1, so that the data cache module 101 selects read data from the cached data.

[0076] The isolation of the decoding result includes but is not limited to: at least one beat of the decoding result in clock domain 1 to interrupt the timing and eliminate metastable state. In addition, a timing constraint is established for the path of the read address from the read Gray code decoding module 108 to the interface between block 0 and block 1, and the timing constraint of the path can be set to be no greater than 20% of the total timing budget.

[0077] S3204'. The read count isolation module 111 set in block 1 of clock domain 1 receives the read count Gray code signal generated by the read counter module 112, isolates the read count Gray code signal to generate an isolated read count Gray code signal, and outputs the isolated read count Gray code signal to clock domain 0, that is, the read count synchronizer module 106 in block 0 of clock domain 0 via the interface between block 0 and block 1, so as to be synchronized by the read count synchronizer module 106.

[0078] The isolation of the read count Gray code signal includes but is not limited to: beating the read count Gray code signal at least once in clock domain 1. In addition, a timing constraint is established for the path of the isolated read count Gray code signal from the read count isolation module 111 to the interface between block 0 and block 1, and the timing constraint of the path can be set to be no greater than 20% of the total timing budget.

[0079] S3205 . The data cache module 101 in block 0 of clock domain 0 selects read data from the cache data according to the read address, and outputs the read data to clock domain 1 .

[0080] Specifically, the data cache module 101 receives the read address of the read Gray code decoding module 108 in the block 1 of the clock domain 1 via the interface between the block 0 and the block 1, selects the read data from the cache data according to the read address, and transmits the read data to the read data isolation module 107 in the block 1 of the clock domain 1 via the interface between the block 0 and the block 1. The read address obtains the read data via the combinatorial logic in the data cache module 101. In addition, the path for the read address to reach the combinatorial logic from the interface between the blocks, obtain the read data via the combinatorial logic, and the read data to reach the interface between the blocks from the combinatorial logic is established with a timing constraint, and the timing constraint of the path can be set to be no more than 40% of the total timing budget.

[0081] S3206. The read data isolation module 107 set in block 1 of clock domain 1 receives the read data from the data cache module 101 in block 0 of clock domain 0 via the interface between block 0 and block 1, isolates the read data, and outputs the isolated data, i.e., the read data.

[0082] The isolation of the read data includes but is not limited to: at least one beat of the read data in clock domain 1. In addition, a timing constraint is established for the path of the read data from the interface between block 0 and block 1 to the read data isolation module 107, and the timing constraint of the path can be set to be no greater than 20% of the total timing budget.

[0083] The above embodiment provides a method for realizing asynchronous FIFO between blocks in different clock domains. For block 0 of clock domain 0, only the clock tree of clock domain 0 needs to be designed and the participation of clock 1 of clock domain 1 is not required. Similarly, for block 1 of clock domain 1, only the clock tree of clock domain 1 needs to be designed and the participation of clock 0 of clock domain 0 is not required. This is beneficial to the separate generation of clock trees of different blocks and reduces the design complexity of clock trees of blocks in large chip design.

[0084] According to another embodiment of the present invention, based on Figure 2 The system shown provides a method for implementing asynchronous FIFO between blocks in different clock domains. Figure 3A-3B Compared with the method shown in the figure, a multiplexing module is added to block 1 of clock domain 1, and the timing constraints are reduced by increasing the interactive signals between blocks.

[0085] Figure 4A The data writing process of this method is schematically shown. Figure 2 Describe the steps of the data writing process:

[0086] S4101. The read count synchronizer module 206 disposed in block 0 of clock domain 0 receives the isolated read count Gray code signal generated by the read counter module 213 in block 1 of clock domain 1 and isolated by the read count isolation module 212 via the interface between block 0 and block 1, synchronizes the isolated read count Gray code signal to clock domain 0, and transmits the synchronized read count Gray code signal to the full indication logic 205. A timing constraint is established for the path of the isolated read count Gray code signal from the interface between block 0 and block 1 to the read count synchronizer module 206, and the timing constraint of the path can be set to be no greater than 20% of the total timing budget.

[0087] S4102. The full indication logic module 205 set in block 0 of clock domain 0 receives the write count Gray code signal of the current clock domain 0 from the write counter module 203 and the synchronized read count Gray code signal from the read count synchronizer module 206, compares the two to generate a full indication signal, and outputs the full indication signal to the write counter module 203 and the external module.

[0088] S4103. The write counter module 203 set in the block 0 of the clock domain 0 receives the write indication signal input from the outside of the system and the full indication signal from the full indication logic module 205. In response to the full indication signal indicating that the data cache module 201 is not full and the write indication signal indicating that there is write data, counting is performed in the format of Gray code in the clock domain 0 to generate a write count Gray code signal. The generated write count Gray code signal is output to the write Gray code decoding module 202, the write count isolation module 204 and the full indication logic module 205.

[0089] S4104 . The write Gray code decoding module 202 in block 0 of clock domain 0 receives the write count Gray code signal generated by the write counter module 203 , decodes the write count Gray code signal into a normal binary-coded write address, and transmits the write address to the data cache module 201 .

[0090] S4104'. The write count isolation module 204 disposed in block 0 of clock domain 0 receives the write count Gray code signal generated by the write counter module 203, isolates the write count Gray code signal to generate an isolated write count Gray code signal, and transmits the isolated write count Gray code signal to the write count synchronizer module 210 in block 1 of clock domain 1 via the interface between block 0 and block 1. A timing constraint is established for the path of the isolated write count Gray code signal from the write count isolation module 204 to the interface between block 0 and block 1, and the timing constraint of the path can be set to be no greater than 20% of the total timing budget.

[0091] S4105 . The data cache module 201 in block 0 of clock domain 0 caches the write data as cache data according to the write address, and transmits the cache data to clock domain 1 .

[0092] Specifically, the data cache module 201 receives the write data from the outside of the system and the write address from the write Gray code decoding module 202, caches the write data to the corresponding position in the data cache module 201 according to the write address, and transmits the cached data to the multiplexing module 207 in the block 1 of the clock domain 1 via the interface between the block 0 and the block 1. The path for the cached data to reach the interface between the block 0 and the block 1 from the data cache module 201 is established with a timing constraint, and the timing constraint of the path can be set to be no more than 20% of the total timing budget.

[0093] Figure 4B The data reading process of the method is schematically shown, and the following will be combined with Figure 2 Describe the steps of the data readout process:

[0094] S4201. The multiplexing module 207 arranged in the block 1 of the clock domain 1 receives and caches the cache data from the data cache module 201 in the block 0 of the clock domain 0 via the interface between the block 0 and the block 1.

[0095] S4202. The write count synchronizer module 210 disposed in block 1 of clock domain 1 receives the isolated write count Gray code signal generated by the write counter module 203 in block 0 of clock domain 0 and isolated by the write count isolation module 204 via the interface between block 0 and block 1, synchronizes the isolated write count Gray code signal to clock domain 1, and transmits the synchronized write count Gray code signal to the empty indication logic 211. A timing constraint is established for the path of the isolated write count Gray code signal from the interface between block 0 and block 1 to the write count synchronizer module 210, and the timing constraint of the path can be set to be no greater than 20% of the total timing budget.

[0096] S4203. The empty indication logic module 211 set in block 1 of clock domain 1 receives the read count Gray code signal of the current clock domain 1 from the read counter module 213 and the synchronized write count Gray code signal from the write count synchronizer module 210, compares the two to generate an empty indication signal, and outputs the empty indication signal to the read counter module 213 and the external module.

[0097] S4204. The read counter module 213 disposed in the block 1 of the clock domain 1 receives the read indication signal inputted from the outside of the system and the empty indication signal from the empty indication logic module 211, and in response to the empty indication signal indicating that the data cache module 201 is not empty and the read indication signal indicating that data is read out from the data cache module 201, counts in the clock domain 1 with the Gray code to generate a read count Gray code signal, and outputs the read count Gray code signal generated by the counting. The generated read count Gray code signal is outputted to the read Gray code decoding module 209, the read count isolation module 212 and the empty indication logic module 211.

[0098] S4205. The read Gray code decoding module 209 set in block 1 of clock domain 1 receives the read count Gray code signal generated by the read counter module 213, decodes the read count Gray code signal, isolates the decoding result to generate a read address, and transmits the read address to the multiplexing module 207 in block 1 of clock domain 1.

[0099] S4205'. The read count isolation module 212 disposed in block 1 of clock domain 1 receives the read count Gray code signal generated by the read counter module 213, isolates the read count Gray code signal to generate an isolated read count Gray code signal, and outputs the isolated read count Gray code signal to the read count synchronizer module 206 in block 0 of clock domain 0 via the interface between block 0 and block 1. A timing constraint is established for the path of the isolated read count Gray code signal from the read count isolation module 212 to the interface between block 0 and block 1, and the timing constraint of the path can be set to be no greater than 20% of the total timing budget.

[0100] S4206 . The multiplexing module 207 arranged in the block 1 of the clock domain 1 receives the read address from the read Gray code decoding module 209 , selects the read data from the cache data according to the read address, and transmits the read data to the read data isolation module 208 .

[0101] S4027. The read data isolation module 208 set in the block 1 of the clock domain 1 receives the read data from the multiplexing module 207, isolates the read data, and outputs the isolated data, i.e., the read data. The path for the cache data to reach the multiplexing module 207 from the interface between the block 0 and the block 1, obtain the read data via the multiplexing module 207, and the read data to reach the read data isolation module 208 from the multiplexing module 207 is established with a timing constraint, and the timing constraint of the path can be set to be no more than 20% of the total timing budget.

[0102] The above combination Figure 4A-4B The method embodiments described are Figure 3A-3BCompared with the described method embodiment, there are more interactive signals between block 0 and block 1, but fewer timing constraints, which is suitable for the case where the data cache module depth is small and the bit width of the data is small.

[0103] It should be noted that, although several modules or units of the device for execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0104] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed by the present invention. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the claims.

[0105] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A system for implementing asynchronous FIFOs between blocks in different clock domains, It is characterized in that It includes a data cache module and a writing device arranged in a first block of a first clock domain, and a reading device arranged in a second block of a second clock domain; Wherein, the writing device is configured as follows: Synchronize a read count signal from the second clock domain to the first clock domain; generate a full indication signal according to the synchronized read count signal and a current write count signal of the first clock domain; count in the first clock domain to generate a write count signal in response to the full indication signal indicating that the data cache module is not full and the write indication signal indicating that write data exists; The data cache module is configured as follows: caching the write data as cache data in the data cache module according to the generated write count signal; The readout device is configured to: Synchronize a write count signal from the first clock domain to the second clock domain; generate an empty indication signal according to the synchronized write count signal and the current read count signal of the second clock domain; in response to the empty indication signal indicating that the data cache module is not empty and the read indication signal indicating that data is read out from the data cache module, count in the second clock domain to generate a read count signal; the generated read count signal is used to select and output read data from the cache data; The path of the interactive signal across the first block in the first clock domain and the second block in the second clock domain is established with timing constraints.

2. The system according to claim 1, It is characterized in that Also included is a read data isolation module disposed in the second block of the second clock domain; Wherein, the readout device is further configured to obtain a read address from the generated read count signal, and transmit the read address to the data cache module via an interface between the first block of the first clock domain and the second block of the second clock domain; The data cache module is further configured to select the read data from the cache data according to the read address, and transmit the read data to the read data isolation module via the interface; The read data isolation module is configured to isolate the read data in the second clock domain to generate output data; The path between the readout device and the interface, the path from the interface to the interface via the data cache module, and the path between the interface and the read data isolation module are respectively established with corresponding timing constraints.

3. The system according to claim 1, It is characterized in that Also included is a multiplexing module and a read data isolation module disposed in a second block of the second clock domain; Wherein, the data cache module is further configured to transmit the cached data to the multiplexing module via an interface between the first block of the first clock domain and the second block of the second clock domain; The readout device is further configured to obtain a read address from the generated read count signal and transmit the read address to the multiplexing module; The multiplexing module is configured to select the read data from the cache data according to the read address and transmit the read data to the read data isolation module; The read data isolation module is configured to isolate the read data in the second clock domain to generate output data; Wherein, corresponding timing constraints are respectively established for the path between the data cache module and the interface, and for the path between the interface and the read data isolation module.

4. The system according to any one of claims 1 to 3, It is characterized in that The writing device comprises: a read count synchronizer module, configured to receive a read count signal generated by the readout device via an interface between a first block of the first clock domain and a second block of the second clock domain, and synchronize the read count signal to the first clock domain; A full indication logic module, used for generating the full indication signal according to the synchronized read count signal and the current write count signal of the first clock domain; a write counter module, configured to count in the first clock domain to generate a write count signal in response to the full indication signal indicating that the data cache module is not full and the write indication signal indicating that write data exists; and The reading device comprises: a write count synchronizer module, configured to receive a write count signal generated by the write device via the interface, and synchronize the write count signal to the second clock domain; An empty indication logic module, used for generating the empty indication signal according to the synchronized write count signal and the current read count signal of the second clock domain; The read counter module is used for counting in the second clock domain to generate a read count signal in response to an empty indication signal indicating that the data cache module is not empty and a read indication signal indicating that data is read out from the data cache module.

5. The system according to claim 4, It is characterized in that The writing device also includes: a write count isolation module, configured to isolate the write count signal generated by the write counter module in the first clock domain, and transmit the isolated write count signal to the write count synchronizer module via the interface; The reading device also includes: a read count isolation module, configured to isolate the read count signal generated by the read counter module in the second clock domain, and transmit the isolated read count signal to the read count synchronizer module via the interface; Among them, corresponding timing constraints are established for the path between the write count isolation module and the interface, the path between the interface and the write count synchronizer module, the path between the read count isolation module and the interface, and the path between the interface and the read count synchronizer module, respectively.

6. The system according to any one of claims 1 to 3, It is characterized in that The writing device also includes: A write count decoding module, used for decoding the write count signal generated by the write device to generate a write address; the write address indicates the location where the write data is cached in the data cache module; The reading device also includes: A read count decoding module is used to decode the read count signal generated by the readout device and isolate the decoding result in the second clock domain to generate a read address; the read address is used to select read data from the cache data.

7. A method for implementing asynchronous FIFOs between blocks in different clock domains, It is characterized in that A data cache module and a writing device are arranged in a first block in a first clock domain, and a reading device is arranged in a second block in a second clock domain, the method comprising: The writing device synchronizes the read count signal from the second clock domain to the first clock domain, generates a full indication signal according to the synchronized read count signal and the current write count signal of the first clock domain, and counts in the first clock domain to generate a write count signal in response to the full indication signal indicating that the data cache module is not full and the write indication signal indicating that write data exists; The data cache module caches the write data as cache data according to the generated write count signal; The readout device synchronizes the write count signal from the first clock domain to the second clock domain, generates an empty indication signal according to the synchronized write count signal and the current read count signal of the second clock domain, and counts in the second clock domain to generate a read count signal in response to the empty indication signal indicating that the data cache module is not empty and the read indication signal indicating that data is read from the data cache module; the generated read count signal is used to select and output read data from the cache data; The path of the interactive signal across the first block in the first clock domain and the second block in the second clock domain is established with timing constraints.

8. The method according to claim 7, It is characterized in that A read data isolation module is provided in the second block of the second clock domain, and the method further comprises: The readout device obtains a read address from the generated read count signal, and transmits the read address to the data cache module via an interface between a first block in the first clock domain and a second block in the second clock domain; The data cache module selects the read data from the cache data according to the read address, and transmits the read data to the read data isolation module via the interface; The read data isolation module isolates the read data in the second clock domain to generate output data; The path between the readout device and the interface, the path from the interface to the interface via the data cache module, and the path between the interface and the read data isolation module are respectively established with corresponding timing constraints.

9. The method according to claim 7, It is characterized in that A multiplexing module and a read data isolation module are arranged in the second block of the second clock domain, and the method further comprises: The data cache module transmits the cache data to the multiplexing module via an interface between a first block in the first clock domain and a second block in the second clock domain; The readout device obtains a read address from the generated read count signal and transmits the read address to the multiplexing module; The multiplexing module selects the read data from the cache data according to the read address, and transmits the read data to the read data isolation module; The read data isolation module isolates the read data in the second clock domain to generate output data; Wherein, corresponding timing constraints are respectively established for the path between the data cache module and the interface, and for the path between the interface and the read data isolation module.

10. The method according to any one of claims 7 to 9, It is characterized in that Also includes: The writing device isolates the generated write count signal in the first clock domain, and transmits the isolated write count signal to the reading device via an interface between a first block in the first clock domain and a second block in the second clock domain to synchronize with the second clock domain; The readout device isolates the generated read count signal in the second clock domain, and transmits the isolated read count signal to the write device via the interface to be synchronized to the first clock domain.