CN115035929A - A circuit, method and electronic device for efficiently realizing pseudo DDR signal crossing clock domain - Google Patents
A circuit, method and electronic device for efficiently realizing pseudo DDR signal crossing clock domain Download PDFInfo
- Publication number
- CN115035929A CN115035929A CN202210731207.0A CN202210731207A CN115035929A CN 115035929 A CN115035929 A CN 115035929A CN 202210731207 A CN202210731207 A CN 202210731207A CN 115035929 A CN115035929 A CN 115035929A
- Authority
- CN
- China
- Prior art keywords
- clock domain
- write
- control signal
- module
- frequency
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C11/00—Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor
- G11C11/21—Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements
- G11C11/34—Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements using semiconductor devices
- G11C11/40—Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements using semiconductor devices using transistors
- G11C11/401—Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements using semiconductor devices using transistors forming cells needing refreshing or charge regeneration, i.e. dynamic cells
- G11C11/4063—Auxiliary circuits, e.g. for addressing, decoding, driving, writing, sensing or timing
- G11C11/407—Auxiliary circuits, e.g. for addressing, decoding, driving, writing, sensing or timing for memory cells of the field-effect type
- G11C11/4076—Timing circuits
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C7/00—Arrangements for writing information into, or reading information out from, a digital store
- G11C7/22—Read-write [R-W] timing or clocking circuits; Read-write [R-W] control signal generators or management
Landscapes
- Engineering & Computer Science (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Computer Hardware Design (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
本发明公开一种高效实现伪DDR信号跨时钟域的电路、方法和电子设备,涉及电路设计技术领域,电路包括:芯片端高频时钟域模块、设置在芯片端高频时钟域模块上的多个跨时钟域模块,以及和多个跨时钟域模块连接的主机端低频时钟域模块;每个跨时钟模块包括低频向高频传输子模块和高频向低频传输子模块,低频向高频传输子模块的一端和芯片端高频时钟域模块连接,另一端和主机端低频时钟域模块连接,高频向低频传输子模块的一端和芯片端高频时钟域模块连接,另一端和主机端低频时钟域模块连接;可以同时处理单周期与多周期信号之间的同步跨时钟域传播等高时序要求的场景,避免了亚稳态的多域传播,提高了电路的稳定性与可靠性。
The invention discloses a circuit, method and electronic device for efficiently realizing pseudo DDR signal crossing clock domain, and relates to the technical field of circuit design. A cross-clock domain module, and a host-side low-frequency clock domain module connected to multiple cross-clock domain modules; each cross-clock module includes a low-frequency to high-frequency transmission sub-module and a high-frequency to low-frequency transmission sub-module, and low-frequency to high-frequency transmission sub-modules One end of the sub-module is connected to the chip-side high-frequency clock domain module, the other end is connected to the host-side low-frequency clock domain module, one end of the high-frequency to low-frequency transmission sub-module is connected to the chip-side high-frequency clock domain module, and the other end is connected to the host-side low frequency clock domain module The clock domain module is connected; it can simultaneously handle scenarios with high timing requirements such as synchronous cross-clock domain propagation between single-cycle and multi-cycle signals, avoiding multi-domain propagation of metastable states, and improving the stability and reliability of the circuit.
Description
技术领域technical field
本发明涉及电路设计技术领域,尤其涉及一种高效实现伪DDR信号跨时钟域的电路、方法和电子设备。The present invention relates to the technical field of circuit design, and in particular, to a circuit, method and electronic device for efficiently realizing a pseudo DDR signal crossing a clock domain.
背景技术Background technique
简单数字集成电路是在单一的时钟驱动下的同步逻辑电路。该电路中的触发器在统一的时钟控制下翻转,其时序约束较为简单、时钟系统设计较为容易。然而,单一的时钟约束早已不再适合现阶段飞速增长的集成电路规模。在功能复杂的大规模数字电路设计过程中通常存在多个时钟域。如何解决信号跨时钟域(Clock Domain Crossing,CDC)传播,实现信号的输出驱动与输入采样,减少或避免亚稳态的产生已经成为决定数字集成电路设计成败的关键问题。Simple digital integrated circuits are synchronous logic circuits driven by a single clock. The flip-flops in this circuit are reversed under the control of a unified clock, the timing constraints are relatively simple, and the clock system design is relatively easy. However, a single clock constraint is no longer suitable for the rapidly growing integrated circuit scale at this stage. Multiple clock domains usually exist in the design of large-scale digital circuits with complex functions. How to solve the propagation of signals across clock domains (Clock Domain Crossing, CDC), realize the output driving and input sampling of signals, and reduce or avoid the generation of metastability has become a key issue that determines the success or failure of digital integrated circuit design.
现阶段最常用的解决跨时钟域的方式是使用同步器采样异步输入信号,使产生的输出信号满足同步系统对建立时间(setup time)和保持时间(hold time)的要求,从而抑制亚稳态对电路的不利影响。常用的同步方法有两种:两级触发器法和锁定法。The most common way to solve the problem of crossing the clock domain at this stage is to use a synchronizer to sample the asynchronous input signal, so that the generated output signal meets the requirements of the synchronous system for setup time and hold time, thereby suppressing metastability adverse effects on the circuit. There are two commonly used synchronization methods: two-level flip-flop method and locking method.
两级触发器法的本质是降低亚稳态的出现概率,通过两级触发器级联,当来自前一个时钟域的信号到达下一个时钟域的第一个触发器时,很可能出现不满足建立/保持时间的情况,导致该级输出长时间处于亚稳态。如果第二级的状态持续不到一个周期,则可以通过增加一级触发器来消除该亚稳态,使第二级触发器的输出端满足同步信号的要求,但只要增加1级D触发器会增加输入信号的1级延时。这种方法通常用于对时序要求不高的电路同步,适合于从慢时钟到快时钟的少量信号同步,而无法实现对时序要求较高的,快慢时钟域之间存在大量信号的双向同步。The essence of the two-stage flip-flop method is to reduce the probability of occurrence of metastable states. By cascading two-stage flip-flops, when the signal from the previous clock domain reaches the first flip-flop of the next clock domain, it is likely to appear unsatisfactory. The setup/hold time condition causes the output of this stage to be metastable for a long time. If the state of the second stage lasts for less than one cycle, the metastable state can be eliminated by adding a first-stage flip-flop, so that the output of the second-stage flip-flop meets the requirements of the synchronization signal, but as long as one stage of D flip-flop is added Will increase the 1-order delay of the input signal. This method is usually used for circuit synchronization with low timing requirements. It is suitable for the synchronization of a small number of signals from slow clocks to fast clocks, but cannot achieve bidirectional synchronization of a large number of signals between fast and slow clock domains with high timing requirements.
锁定法主要解决两级出发器同步过程中,当信号从快时钟向慢时钟过渡时,如果信号变化太快,慢时钟可能无法及时采样快时钟的问题。锁定法同步器作为对两级触发器法的补充,仍然无法满足快慢时钟域之间大量控制信号与数据信号同步跨域传播的高时序要求,导致出现亚稳态的多域传播,降低了系统的稳定性与可靠性。The locking method mainly solves the problem that the slow clock may not be able to sample the fast clock in time if the signal changes too fast when the signal transitions from the fast clock to the slow clock during the synchronization of the two-stage transmitter. As a supplement to the two-stage flip-flop method, the lock-in synchronizer still cannot meet the high timing requirements of synchronous cross-domain propagation of a large number of control signals and data signals between fast and slow clock domains, resulting in metastable multi-domain propagation and reducing the system. stability and reliability.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于提供一种高效实现伪DDR信号跨时钟域的电路、方法和电子设备,解决现有解决跨时钟域的方式无法满足快慢时钟域之间大量控制信号与数据信号同步跨域传播的高时序要求,导致出现亚稳态的多域传播,降低了系统的稳定性与可靠性的问题The purpose of the present invention is to provide a circuit, method and electronic device for efficiently realizing the cross-clock domain of a pseudo DDR signal, so as to solve the problem that the existing method for solving the cross-clock domain cannot satisfy the synchronous cross-domain propagation of a large number of control signals and data signals between fast and slow clock domains The high timing requirements of the system lead to the occurrence of metastable multi-domain propagation, which reduces the stability and reliability of the system.
第一方面,本发明提供一种高效实现伪DDR信号跨时钟域的电路,所述电路包括:In a first aspect, the present invention provides a circuit for efficiently implementing pseudo-DDR signals across clock domains, the circuit comprising:
芯片端高频时钟域模块、设置在所述芯片端高频时钟域模块上的多个跨时钟域模块,以及和多个所述跨时钟域模块连接的主机端低频时钟域模块;a chip-side high-frequency clock domain module, a plurality of cross-clock domain modules disposed on the chip-side high-frequency clock domain module, and a host-side low-frequency clock domain module connected to the plurality of the cross-clock domain modules;
每个所述跨时钟域模块包括低频向高频传输子模块和高频向低频传输子模块,所述低频向高频传输子模块的一端和所述芯片端高频时钟域模块连接,另一端和所述主机端低频时钟域模块连接,所述高频向低频传输子模块的一端和所述芯片端高频时钟域模块连接,另一端和所述主机端低频时钟域模块连接;Each of the cross-clock domain modules includes a low-frequency to high-frequency transmission sub-module and a high-frequency to low-frequency transmission sub-module. One end of the low-frequency to high-frequency transmission sub-module is connected to the chip-side high-frequency clock domain module, and the other end is connected to the chip-side high-frequency clock domain module. is connected to the host-side low-frequency clock domain module, one end of the high-frequency to low-frequency transmission sub-module is connected to the chip-side high-frequency clock domain module, and the other end is connected to the host-side low-frequency clock domain module;
所述低频向高频传输子模块用于,在接收到所述主机端低频时钟域模块发出写操作指令对应的写控制信号和写数据信号的情况下,将所述写控制信号和所述写数据信号分别从低频时钟域调整到高频时钟域,并对调整后的所述写控制信号和所述写数据信号进行同步对齐处理,将同步对齐处理后的所述写控制信号和所述写数据信号发送至所述芯片端高频时钟域模块;The low frequency to high frequency transmission sub-module is used for, in the case of receiving the write control signal and the write data signal corresponding to the write operation command issued by the low frequency clock domain module of the host side, to transfer the write control signal and the write data signal. The data signals are respectively adjusted from the low frequency clock domain to the high frequency clock domain, and the adjusted write control signal and the write data signal are synchronously aligned, and the synchronously aligned write control signal and the write sending data signals to the chip-side high-frequency clock domain module;
所述高频向低频传输子模块用于,在接收到所述主机端低频时钟域模块发出读操作指令对应的读数据信号的情况下,基于所述读数据信号完成对应数据的读取。The high frequency to low frequency transmission sub-module is configured to, in the case of receiving a read data signal corresponding to a read operation command issued by the host-side low frequency clock domain module, complete reading of corresponding data based on the read data signal.
采用上述技术方案的情况下,本发明实施例提供的高效实现伪DDR信号跨时钟域的电路,所述低频向高频传输子模块用于,在接收到所述主机端低频时钟域模块发出写操作指令对应的写控制信号和写数据信号的情况下,将所述写控制信号和所述写数据信号分别从低频时钟域调整到高频时钟域,并对调整后的所述写控制信号和所述写数据信号进行同步对齐处理,将同步对齐处理后的所述写控制信号和所述写数据信号发送至所述芯片端高频时钟域模块;所述高频向低频传输子模块用于,在接收到所述主机端低频时钟域模块发出读操作指令对应的读数据信号的情况下,基于所述读数据信号完成对应数据的读取,可以同时处理单周期与多周期信号之间的同步跨时钟域传播等高时序要求的场景,其应用场景广泛,可以应用于大量信号从低频域向高频域或相反反向的双向跨时钟域传播,避免了亚稳态的多域传播,提高了电路的稳定性与可靠性。In the case of adopting the above technical solution, the embodiment of the present invention provides a circuit for efficiently implementing pseudo-DDR signals across the clock domain. In the case of the write control signal and the write data signal corresponding to the operation command, adjust the write control signal and the write data signal from the low frequency clock domain to the high frequency clock domain, respectively, and adjust the adjusted write control signal and the write data signal. The write data signal is synchronously aligned, and the synchronously aligned write control signal and the write data signal are sent to the chip-side high-frequency clock domain module; the high-frequency to low-frequency transmission sub-module is used for , in the case of receiving the read data signal corresponding to the read operation command issued by the host-side low-frequency clock domain module, the reading of the corresponding data is completed based on the read data signal, and the data between single-cycle and multi-cycle signals can be processed at the same time. Scenarios with high timing requirements, such as synchronous cross-clock domain propagation, have a wide range of application scenarios and can be applied to bidirectional cross-clock domain propagation of a large number of signals from low-frequency domain to high-frequency domain or the opposite direction, avoiding metastable multi-domain propagation. The stability and reliability of the circuit are improved.
在一种可能的实现方式中,所述低频向高频传输子模块包括异步先入先出控制信号传输单元和数据信号传输单元,所述异步先入先出控制信号传输单元的一端和所述芯片端高频时钟域模块连接,另一端和所述主机端低频时钟域模块连接,所述数据信号传输单元的一端和所述芯片端高频时钟域模块连接,另一端和所述主机端低频时钟域模块连接;In a possible implementation manner, the low frequency to high frequency transmission sub-module includes an asynchronous FIFO control signal transmission unit and a data signal transmission unit, one end of the asynchronous FIFO control signal transmission unit and the chip end The high-frequency clock domain module is connected, the other end is connected to the host-side low-frequency clock domain module, one end of the data signal transmission unit is connected to the chip-side high-frequency clock domain module, and the other end is connected to the host-side low-frequency clock domain module connection;
所述低频向高频传输子模块用于,在接收到所述主机端低频时钟域模块发出写操作指令对应的写控制信号和写数据信号的情况下,将所述写控制信号和所述写数据信号分别从低频时钟域调整到高频时钟域,并对调整后的所述写控制信号和所述写数据信号进行同步对齐处理,将同步对齐处理后的所述写控制信号和所述写数据信号发送至所述芯片端高频时钟域模块,包括:The low frequency to high frequency transmission sub-module is used for, in the case of receiving the write control signal and the write data signal corresponding to the write operation command issued by the low frequency clock domain module of the host side, to transfer the write control signal and the write data signal. The data signals are respectively adjusted from the low frequency clock domain to the high frequency clock domain, and the adjusted write control signal and the write data signal are synchronously aligned, and the synchronously aligned write control signal and the write The data signal is sent to the chip-side high-frequency clock domain module, including:
所述异步先入先出控制信号传输单元用于,在接收到所述主机端低频时钟域模块发出所述写操作指令对应的写控制信号的情况下,将所述写控制信号从低频时钟域调整到高频时钟域;The asynchronous FIFO control signal transmission unit is configured to adjust the write control signal from the low frequency clock domain in the case of receiving the write control signal corresponding to the write operation command issued by the host-side low frequency clock domain module to the high frequency clock domain;
所述数据信号传输单元用于,在接收到所述主机端低频时钟域模块发出所述写操作指令对应的写数据信号的情况下,将所述写数据信号从低频时钟域调整到高频时钟域;The data signal transmission unit is configured to adjust the write data signal from the low frequency clock domain to the high frequency clock in the case of receiving the write data signal corresponding to the write operation command issued by the host-side low frequency clock domain module area;
所述异步先入先出控制信号传输单元和所述数据信号传输单元,还用于对调整后的所述写控制信号和所述写数据信号进行同步对齐处理,将同步对齐处理后的所述写控制信号和所述写数据信号发送至所述芯片端高频时钟域模块。The asynchronous FIFO control signal transmission unit and the data signal transmission unit are further configured to perform synchronous alignment processing on the adjusted write control signal and the write data signal, and align the synchronously aligned write The control signal and the write data signal are sent to the chip-side high-frequency clock domain module.
在一种可能的实现方式中,所述电路还包括多个存储器模块,所述存储器模块设置在所述芯片端高频时钟域模块上,多个所述存储器模块分别和每个所述跨时钟域模块一一对应连接。In a possible implementation manner, the circuit further includes a plurality of memory modules, the memory modules are arranged on the chip-side high-frequency clock domain module, and the plurality of the memory modules respectively correspond to each of the cross-clocks Domain modules are connected one by one.
在一种可能的实现方式中,所述异步先入先出控制信号传输单元用于,在接收到所述主机端低频时钟域模块发出所述写操作指令对应的写控制信号的情况下,将所述写控制信号从低频时钟域调整到高频时钟域,包括:In a possible implementation manner, the asynchronous FIFO control signal transmission unit is configured to, in the case of receiving a write control signal corresponding to the write operation command sent by the host-side low-frequency clock domain module, transmit the The write control signal is adjusted from the low frequency clock domain to the high frequency clock domain, including:
所述异步先入先出控制信号传输单元用于,在接收到所述主机端低频时钟域模块发出的所述写操作指令对应的所述写控制信号的情况下,根据预先设置的第一传输深度值,在检测到所述异步先入先出控制信号传输单元处于预设正常状态的情况下,将所述写控制信号写入所述异步先入先出控制信号传输单元;The asynchronous FIFO control signal transmission unit is configured to, in the case of receiving the write control signal corresponding to the write operation command sent by the host-side low-frequency clock domain module, according to a preset first transmission depth value, when it is detected that the asynchronous FIFO control signal transmission unit is in a preset normal state, write the write control signal into the asynchronous FIFO control signal transmission unit;
所述预设正常状态指的是所述异步先入先出控制信号传输单元处于非满并且不处于非读非写状态。The preset normal state refers to that the asynchronous FIFO control signal transmission unit is not full and not in a non-reading and non-writing state.
在一种可能的实现方式中,所述数据信号传输单元用于,在接收到所述主机端低频时钟域模块发出所述写操作指令对应的写数据信号的情况下,将所述写数据信号从低频时钟域调整到高频时钟域,包括:In a possible implementation manner, the data signal transmission unit is configured to, when receiving a write data signal corresponding to the write operation instruction issued by the host-side low-frequency clock domain module, transmit the write data signal Adjustment from the low frequency clock domain to the high frequency clock domain, including:
所述数据信号传输单元用于,在接收到所述主机端低频时钟域模块发出的所述写数据信号的情况下,根据预先设置的第二传输深度值,确定每次传输对应的写数据传输信号,将所述写数据传输信号存储在对应的所述存储器模块中,直至传输次数达到所述第二传输深度值,将所有的所述写数据传输信号按照存储写入的顺序从所述数据传输单元依次读出。The data signal transmission unit is configured to, in the case of receiving the write data signal sent by the host-side low-frequency clock domain module, determine the write data transmission corresponding to each transmission according to a preset second transmission depth value signal, store the write data transmission signal in the corresponding memory module until the number of times of transmission reaches the second transmission depth value, and store all the write data transmission signals from the data in the order of storage and writing The transfer units are sequentially read out.
第二方面,本发明还提供一种高效实现伪DDR信号跨时钟域的方法,应用于第一方面任一所述的高效实现伪DDR信号跨时钟域的电路,所述方法包括:In a second aspect, the present invention also provides a method for efficiently implementing a pseudo DDR signal crossing a clock domain, which is applied to any of the circuits for efficiently implementing a pseudo DDR signal crossing a clock domain in the first aspect, and the method includes:
低频向高频传输子模块在接收到主机端低频时钟域模块发出写操作指令对应的写控制信号和写数据信号的情况下,将所述写控制信号和所述写数据信号分别从低频时钟域调整到高频时钟域,并对调整后的所述写控制信号和所述写数据信号进行同步对齐处理,将同步对齐处理后的所述写控制信号和所述写数据信号发送至芯片端高频时钟域模块;When the low-frequency to high-frequency transmission sub-module receives the write control signal and the write data signal corresponding to the write operation command issued by the host-side low-frequency clock domain module, the write control signal and the write data signal are respectively transferred from the low-frequency clock domain to the write control signal and the write data signal. Adjust to the high-frequency clock domain, perform synchronous alignment processing on the adjusted write control signal and the write data signal, and send the synchronously aligned write control signal and the write data signal to the chip-side high frequency clock domain module;
所述高频向低频传输子模块在接收到所述主机端低频时钟域模块发出读操作指令对应的读数据信号的情况下,基于所述读数据信号完成对应数据的读取。The high frequency to low frequency transmission sub-module completes reading of the corresponding data based on the read data signal in the case of receiving the read data signal corresponding to the read operation command issued by the host-side low frequency clock domain module.
在一种可能的实现方式中,所述低频向高频传输子模块包括异步先入先出控制信号传输单元和数据信号传输单元,所述低频向高频传输子模块在接收到所述主机端低频时钟域模块发出写操作指令对应的写控制信号和写数据信号的情况下,将所述写控制信号和所述写数据信号分别从低频时钟域调整到高频时钟域,并对调整后的所述写控制信号和所述写数据信号进行同步对齐处理,将同步对齐处理后的所述写控制信号和所述写数据信号发送至所述芯片端高频时钟域模块,包括:In a possible implementation manner, the low-frequency to high-frequency transmission sub-module includes an asynchronous FIFO control signal transmission unit and a data signal transmission unit, and the low-frequency to high-frequency transmission sub-module receives the host-side low frequency When the clock domain module sends the write control signal and the write data signal corresponding to the write operation command, the write control signal and the write data signal are respectively adjusted from the low-frequency clock domain to the high-frequency clock domain, and all the adjusted signals are adjusted. The write control signal and the write data signal are synchronously aligned, and the synchronously aligned write control signal and the write data signal are sent to the chip-side high-frequency clock domain module, including:
所述异步先入先出控制信号传输单元在接收到所述主机端低频时钟域模块发出所述写操作指令对应的写控制信号的情况下,将所述写控制信号从低频时钟域调整到高频时钟域;The asynchronous FIFO control signal transmission unit adjusts the write control signal from the low frequency clock domain to the high frequency when receiving the write control signal corresponding to the write operation command issued by the host-side low frequency clock domain module clock domain;
所述数据信号传输单元在接收到所述主机端低频时钟域模块发出所述写操作指令对应的写数据信号的情况下,将所述写数据信号从低频时钟域调整到高频时钟域;The data signal transmission unit adjusts the write data signal from the low frequency clock domain to the high frequency clock domain when receiving the write data signal corresponding to the write operation instruction issued by the host-side low frequency clock domain module;
所述异步先入先出控制信号传输单元和所述数据信号传输单元对调整后的所述写控制信号和所述写数据信号进行同步对齐处理,将同步对齐处理后的所述写控制信号和所述写数据信号发送至所述芯片端高频时钟域模块。The asynchronous first-in-first-out control signal transmission unit and the data signal transmission unit perform synchronous alignment processing on the adjusted write control signal and the write data signal, and synchronously align the write control signal and all the write data signals. The write data signal is sent to the chip-side high-frequency clock domain module.
在一种可能的实现方式中,所述异步先入先出控制信号传输单元在接收到所述主机端低频时钟域模块发出所述写操作指令对应的写控制信号的情况下,将所述写控制信号从低频时钟域调整到高频时钟域,包括:In a possible implementation manner, the asynchronous FIFO control signal transmission unit sends the write control signal to the The signal is adjusted from the low frequency clock domain to the high frequency clock domain, including:
所述异步先入先出控制信号传输单元在接收到所述主机端低频时钟域模块发出的所述写操作指令对应的所述写控制信号的情况下,根据预先设置的第一传输深度值,在检测到所述异步先入先出控制信号传输单元处于预设正常状态的情况下,将所述写控制信号写入所述异步先入先出控制信号传输单元;In the case that the asynchronous FIFO control signal transmission unit receives the write control signal corresponding to the write operation instruction sent by the host-side low-frequency clock domain module, according to the preset first transmission depth value, When detecting that the asynchronous FIFO control signal transmission unit is in a preset normal state, write the write control signal into the asynchronous FIFO control signal transmission unit;
所述预设正常状态指的是所述异步先入先出控制信号传输单元处于非满并且不处于非读非写状态。The preset normal state refers to that the asynchronous FIFO control signal transmission unit is not full and not in a non-reading and non-writing state.
在一种可能的实现方式中,所述数据信号传输单元在接收到所述主机端低频时钟域模块发出所述写操作指令对应的写数据信号的情况下,将所述写数据信号从低频时钟域调整到高频时钟域,包括:In a possible implementation manner, the data signal transmission unit transmits the write data signal from the low-frequency clock to the write data signal corresponding to the write operation instruction issued by the host-side low-frequency clock domain module. domain adjusted to the high frequency clock domain, including:
所述数据信号传输单元在接收到所述主机端低频时钟域模块发出的所述写数据信号的情况下,根据预先设置的第二传输深度值,确定每次传输对应的写数据传输信号,将所述写数据传输信号存储在对应的所述存储器模块中,直至传输次数达到所述第二传输深度值,将所有的所述写数据传输信号按照存储写入的顺序从所述数据传输单元依次读出。In the case of receiving the write data signal sent by the low-frequency clock domain module of the host side, the data signal transmission unit determines the corresponding write data transmission signal for each transmission according to the preset second transmission depth value, The write data transmission signal is stored in the corresponding memory module until the number of times of transmission reaches the second transmission depth value, and all the write data transmission signals are stored and written in sequence from the data transmission unit. read out.
第二方面提供的高效实现伪DDR信号跨时钟域的方法的有益效果与第一方面或第一方面任一可能的实现方式描述的高效实现伪DDR信号跨时钟域的电路的有益效果相同,此处不做赘述。The beneficial effect of the method for efficiently implementing the pseudo DDR signal crossing the clock domain provided by the second aspect is the same as the beneficial effect of the circuit for efficiently implementing the pseudo DDR signal crossing the clock domain described in the first aspect or any possible implementation manner of the first aspect. No further elaboration here.
第三方面,本发明还提供一种电子设备,包括:一个或多个处理器;和其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述装置执行第二方面任一可能的实现方式描述的高效实现伪DDR信号跨时钟域的方法。In a third aspect, the present invention also provides an electronic device comprising: one or more processors; and one or more machine-readable media having instructions stored thereon, when executed by the one or more processors , so that the apparatus executes the method for efficiently implementing the pseudo DDR signal crossing the clock domain described in any possible implementation manner of the second aspect.
第三方面提供的电子设备的有益效果与第二方面或第二方面任一可能的实现方式描述的高效实现伪DDR信号跨时钟域的方法的有益效果相同,此处不做赘述。The beneficial effects of the electronic device provided in the third aspect are the same as those of the method for efficiently implementing the pseudo DDR signal crossing the clock domain described in the second aspect or any possible implementation manner of the second aspect, and will not be repeated here.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本发明的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described herein are used to provide further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached image:
图1示出了本申请实施例提供的一种高效实现伪DDR信号跨时钟域的电路的结构示意图;FIG. 1 shows a schematic structural diagram of a circuit for efficiently implementing a pseudo DDR signal across clock domains provided by an embodiment of the present application;
图2示出了本申请实施例提供的一种写操作信号的操作时序图;FIG. 2 shows an operation timing diagram of a write operation signal provided by an embodiment of the present application;
图3示出了本申请实施例提供的一种读操作信号的操作时序图;FIG. 3 shows an operation timing diagram of a read operation signal provided by an embodiment of the present application;
图4示出了本申请实施例提供的一种主机端低频时钟域模块向芯片端高频时钟域模块跨时钟域前后波形示意图;4 shows a schematic diagram of waveforms before and after a host-side low-frequency clock domain module to a chip-side high-frequency clock domain module crosses the clock domain according to an embodiment of the present application;
图5示出了本申请实施例提供的一种芯片端高频时钟域模块向主机端低频时钟域模块跨时钟域前后的波形示意图;5 shows a schematic diagram of waveforms before and after a chip-side high-frequency clock domain module to a host-side low-frequency clock domain module crosses a clock domain according to an embodiment of the present application;
图6示出了本申请实施例提供的一种高效实现伪DDR信号跨时钟域的方法的流程示意图;FIG. 6 shows a schematic flowchart of a method for efficiently implementing a pseudo DDR signal crossing a clock domain provided by an embodiment of the present application;
图7为本发明实施例提供的一种电子设备的硬件结构示意图;7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention;
图8为本发明实施例提供的芯片的结构示意图。FIG. 8 is a schematic structural diagram of a chip provided by an embodiment of the present invention.
具体实施方式Detailed ways
为了便于清楚描述本发明实施例的技术方案,在本发明的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一阈值和第二阈值仅仅是为了区分不同的阈值,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. For example, the first threshold and the second threshold are only used to distinguish different thresholds, and the sequence of the first threshold is not limited. Those skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like are not necessarily different.
需要说明的是,本发明中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the present invention, words such as "exemplary" or "for example" are used to represent examples, illustrations or illustrations. Any embodiment or design described herein as "exemplary" or "such as" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.
本发明中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,a和b的结合,a和c的结合,b和c的结合,或a、b和c的结合,其中a,b,c可以是单个,也可以是多个。In the present invention, "at least one" means one or more, and "plurality" means two or more. "And/or", which describes the association relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, which can indicate: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A, B can be singular or plural. The character "/" generally indicates that the associated objects are an "or" relationship. "At least one item(s) below" or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (a) of a, b or c may represent: a, b, c, a combination of a and b, a combination of a and c, a combination of b and c, or a combination of a, b and c Combination, where a, b, c can be single or multiple.
双倍数据速率(DDR)同步动态随机存取存储器(SDRAM)是一种常见的存储器类型,用作大多数现代处理器的RAM。为了与实际的应用需求相匹配,伪DDR信号将标准DDR的双沿传输特性单沿化,并且根据应用场景简化了非必要的DDR规定,如将Burst长度固定、取消非常用DDR信号等等。然而,考虑到伪DDR仍然存在双向跨域传播信号,并且存在特定的读/写(Read/Write)命令与之传输的数据之间的同步跨域传播问题。因此,能够高效解决上述关键的跨时钟域传播问题,在实现系统基本功能的基础上避免亚稳态在不同时钟域之间的传播、减少系统电平紊乱,以达到提高系统稳定性和可靠性的发明,在未来功能日益复杂的超大规模集成电路时代具有广泛的应用前景。Double Data Rate (DDR) Synchronous Dynamic Random Access Memory (SDRAM) is a common type of memory used as RAM in most modern processors. In order to match the actual application requirements, the pseudo DDR signal simplifies the double-edge transmission characteristics of the standard DDR and simplifies the unnecessary DDR regulations according to the application scenario, such as fixing the burst length, canceling the uncommon DDR signal and so on. However, considering that pseudo DDR still has bidirectional cross-domain propagation signals, and there is a synchronous cross-domain propagation problem between specific read/write (Read/Write) commands and the data transmitted therewith. Therefore, the above-mentioned key cross-clock domain propagation problems can be efficiently solved, and the propagation of metastable states between different clock domains can be avoided on the basis of realizing the basic functions of the system, and the system level disturbance can be reduced, so as to improve the system stability and reliability. The invention has a wide range of application prospects in the era of VLSI with increasingly complex functions in the future.
图1示出了本申请实施例提供的一种高效实现伪DDR信号跨时钟域的电路的结构示意图,如图1所示,该高效实现伪DDR信号跨时钟域的电路包括:FIG. 1 shows a schematic structural diagram of a circuit for efficiently implementing a pseudo DDR signal crossing a clock domain provided by an embodiment of the present application. As shown in FIG. 1 , the circuit for efficiently implementing a pseudo DDR signal crossing a clock domain includes:
芯片端高频时钟域模块101、设置在所述芯片端高频时钟域模块101上的多个跨时钟域模块102,以及和多个所述跨时钟域模块102连接的主机端低频时钟域模块103;A chip-side high-frequency
每个所述跨时钟域模块102包括低频向高频传输子模块1021和高频向低频传输子模块1022,所述低频向高频传输子模块1021的一端和所述芯片端高频时钟域模块101连接,另一端和所述主机端低频时钟域模块103连接,所述高频向低频传输子模块1022的一端和所述芯片端高频时钟域模块101连接,另一端和所述主机端低频时钟域模块103连接。Each of the
所述低频向高频传输子模块用于,在接收到所述主机端低频时钟域模块发出写操作指令对应的写控制信号和写数据信号的情况下,将所述写控制信号和所述写数据信号分别从低频时钟域调整到高频时钟域,并对调整后的所述写控制信号和所述写数据信号进行同步对齐处理,将同步对齐处理后的所述写控制信号和所述写数据信号发送至所述芯片端高频时钟域模块;The low frequency to high frequency transmission sub-module is used for, in the case of receiving the write control signal and the write data signal corresponding to the write operation command issued by the low frequency clock domain module of the host side, to transfer the write control signal and the write data signal. The data signals are respectively adjusted from the low frequency clock domain to the high frequency clock domain, and the adjusted write control signal and the write data signal are synchronously aligned, and the synchronously aligned write control signal and the write sending data signals to the chip-side high-frequency clock domain module;
所述高频向低频传输子模块用于,在接收到所述主机端低频时钟域模块发出读操作指令对应的读数据信号的情况下,基于所述读数据信号完成对应数据的读取。The high frequency to low frequency transmission sub-module is configured to, in the case of receiving a read data signal corresponding to a read operation command issued by the host-side low frequency clock domain module, complete reading of corresponding data based on the read data signal.
在本申请中,高频向低频传输子模块1022包括先进先出队列(QUEUE)1022A。In this application, the high frequency to low
本发明实施例提供的高效实现伪DDR信号跨时钟域的电路,所述低频向高频传输子模块用于,在接收到所述主机端低频时钟域模块发出写操作指令对应的写控制信号和写数据信号的情况下,将所述写控制信号和所述写数据信号分别从低频时钟域调整到高频时钟域,并对调整后的所述写控制信号和所述写数据信号进行同步对齐处理,将同步对齐处理后的所述写控制信号和所述写数据信号发送至所述芯片端高频时钟域模块;所述高频向低频传输子模块用于,在接收到所述主机端低频时钟域模块发出读操作指令对应的读数据信号的情况下,基于所述读数据信号完成对应数据的读取,可以同时处理单周期与多周期信号之间的同步跨时钟域传播等高时序要求的场景,其应用场景广泛,可以应用于大量信号从低频域向高频域或相反反向的双向跨时钟域传播,避免了亚稳态的多域传播,提高了电路的稳定性与可靠性。In the circuit for efficiently realizing the pseudo-DDR signal crossing the clock domain provided by the embodiment of the present invention, the low-frequency to high-frequency transmission sub-module is used to receive a write control signal corresponding to a write operation command issued by the host-side low-frequency clock domain module and In the case of writing a data signal, the write control signal and the write data signal are respectively adjusted from the low frequency clock domain to the high frequency clock domain, and the adjusted write control signal and the write data signal are synchronously aligned. processing, sending the write control signal and the write data signal after synchronization and alignment processing to the chip-side high-frequency clock domain module; the high-frequency to low-frequency transmission sub-module is used to receive the host-side When the low-frequency clock domain module issues a read data signal corresponding to a read operation command, the reading of the corresponding data is completed based on the read data signal, and the synchronization between single-cycle and multi-cycle signals can be processed simultaneously across the clock domain. The required scenarios have a wide range of application scenarios and can be applied to the bidirectional cross-clock domain propagation of a large number of signals from the low frequency domain to the high frequency domain or the opposite direction, avoiding the multi-domain propagation of metastable stability and improving the stability and reliability of the circuit. sex.
可选的,参见图1,所述电路还包括多个存储器模块104,所述存储器模块104设置在所述芯片端高频时钟域模块101上,多个所述存储器模块104分别和每个所述跨时钟域模块102一一对应连接。Optionally, referring to FIG. 1, the circuit further includes a plurality of
可选的,参见图1,所述低频向高频传输子模块1021包括异步先入先出控制信号传输单元1021A和数据信号传输单元1021B,所述异步先入先出控制信号传输单元1021A的一端和所述芯片端高频时钟域模块101连接,另一端和所述主机端低频时钟域模块103连接,所述数据信号传输单元1021B的一端和所述芯片端高频时钟域模块连101接,另一端和所述主机端低频时钟域模块103连接。Optionally, referring to FIG. 1 , the low frequency to high
所述异步先入先出控制信号传输单元用于,在接收到所述主机端低频时钟域模块发出所述写操作指令对应的写控制信号的情况下,将所述写控制信号从低频时钟域调整到高频时钟域;The asynchronous FIFO control signal transmission unit is configured to adjust the write control signal from the low frequency clock domain in the case of receiving the write control signal corresponding to the write operation command issued by the host-side low frequency clock domain module to the high frequency clock domain;
所述数据信号传输单元用于,在接收到所述主机端低频时钟域模块发出所述写操作指令对应的写数据信号的情况下,将所述写数据信号从低频时钟域调整到高频时钟域;The data signal transmission unit is configured to adjust the write data signal from the low frequency clock domain to the high frequency clock in the case of receiving the write data signal corresponding to the write operation command issued by the host-side low frequency clock domain module area;
所述异步先入先出控制信号传输单元和所述数据信号传输单元,还用于对调整后的所述写控制信号和所述写数据信号进行同步对齐处理,将同步对齐处理后的所述写控制信号和所述写数据信号发送至所述芯片端高频时钟域模块。The asynchronous FIFO control signal transmission unit and the data signal transmission unit are further configured to perform synchronous alignment processing on the adjusted write control signal and the write data signal, and align the synchronously aligned write The control signal and the write data signal are sent to the chip-side high-frequency clock domain module.
其中,主机端低频时钟域模块可以是HOST,其中,HOST是100兆赫兹的低频时钟,芯片端高频时钟域模块可以是DEVICE,其中,DEVICE是400兆赫兹的高频时钟。The host-side low-frequency clock domain module may be HOST, where HOST is a 100-MHz low-frequency clock, and the chip-side high-frequency clock domain module may be DEVICE, where DEVICE is a 400-MHz high-frequency clock.
当主机端低频时钟域模块执行写(WRITE)操作时,HOST端会向DEVICE端发送控制(WRITE)信号、并同步数据(DATA)信号和非读非写(NOP)信号等,当执行读(READ)操作时,DEVICE端仅会向HOST端发送数据信号。When the host-side low-frequency clock domain module performs a write (WRITE) operation, the HOST side will send a control (WRITE) signal, a synchronous data (DATA) signal, and a non-read non-write (NOP) signal to the DEVICE side. READ) operation, the DEVICE terminal will only send a data signal to the HOST terminal.
可选的,图2示出了本申请实施例提供的一种写操作信号的操作时序图,如图2所示,CTRL信号持续一个时钟周期,随后紧跟若干个周期的NOP操作,当执行写操作时,HOST端发出WRITE信号,并且发送WRITE指令的同时会有8个周期的DATA数据同步发送到DEVICE端,在DATA数据发送结束之前不会发出除NOP指令之外的其他指令,信号odt=1表示DATA是由HOST写往DEVICE。Optionally, FIG. 2 shows an operation timing diagram of a write operation signal provided by an embodiment of the present application. As shown in FIG. 2 , the CTRL signal lasts for one clock cycle, followed by several cycles of NOP operations. During the write operation, the HOST terminal sends a WRITE signal, and 8 cycles of DATA data will be sent to the DEVICE terminal synchronously when the WRITE command is sent, and no other commands other than the NOP command will be sent until the DATA data is sent, and the signal odt =1 indicates that DATA is written to DEVICE by HOST.
可选的,图3示出了本申请实施例提供的一种读操作信号的操作时序图,如图3所示,由DEVICE向HOST仅存在连续8个cycle的DATA信号传输,不存在该方向的CTRL信号传输,读有效信号rdvalid=1表明DATA是由DEVICE读往HOST。Optionally, FIG. 3 shows an operation timing diagram of a read operation signal provided by an embodiment of the present application. As shown in FIG. 3 , there is only 8 consecutive cycles of DATA signal transmission from DEVICE to HOST, and there is no such direction. CTRL signal transmission, read valid signal rdvalid=1 indicates that DATA is read to HOST by DEVICE.
需要说明的是,跨时域基本要求可以包括:CDC前后信号周期保持不变、WRITE指令和所传输的DATA信号在CDC前后时钟保持对齐,以及WRITE和READ过程的DATA数据由odt和rdvalid信号分别控制。It should be noted that the basic requirements for cross-time domain can include: the signal period before and after CDC remains unchanged, the WRITE instruction and the transmitted DATA signal are kept aligned before and after CDC, and the DATA data in the WRITE and READ processes are determined by the odt and rdvalid signals respectively. control.
由HOST向DEVICE跨时钟域的信号可以包括:ddr4_cke、ddr4_cs_n、ddr4_act_n、ddr4_adr[16:0]、ddr4_bg[2:0]、ddr4_c[2:0]、ddr4_ba[1:0]、ddr4_odt、ddr4_dq[7:0]、ddr4_dm_n和ddr4_dqs。Signals from HOST to DEVICE across the clock domain may include: ddr4_cke, ddr4_cs_n, ddr4_act_n, ddr4_adr[16:0], ddr4_bg[2:0], ddr4_c[2:0], ddr4_ba[1:0], ddr4_odt, ddr4_dq[ 7:0], ddr4_dm_n, and ddr4_dqs.
由DEVICE向HOST跨时钟域的信号可以包括:ddr4_dq[7:0]、ddr4_dm_n、ddr4_dqs和rd_valid。The signals from DEVICE to HOST across the clock domain may include: ddr4_dq[7:0], ddr4_dm_n, ddr4_dqs and rd_valid.
可选的,本申请中的异步先入先出控制信号传输单元也即是异步FIFO(先入先出队列,First Input First Output)。异步FIFO是一种先入先出电路,可以存储缓冲再同步两个不同时钟域的数据,异步FIFO是两个完全独立的时钟域,写时钟域和读时钟域,写时钟域的时钟信号为wclk,异步复位信号是reset_n。winc信号是控制是否向FIFO中写入wdata的使能信号。Optionally, the asynchronous first-in-first-out control signal transmission unit in this application is also an asynchronous FIFO (first-in-first-out queue, First Input First Output). Asynchronous FIFO is a first-in, first-out circuit that can store buffered and then synchronize data in two different clock domains. Asynchronous FIFO is two completely independent clock domains, write clock domain and read clock domain. The clock signal of the write clock domain is wclk , the asynchronous reset signal is reset_n. The winc signal is an enable signal that controls whether to write wdata to the FIFO.
当FIFO被写满时,wfull信号会被上拉为高有效,直到FIFO中的数据从读时钟域读出使得FIFO非空,此时wfull才会再次被拉低。读时钟域的信号定义与写时钟域类似。若rempty信号拉高则表示此时FIFO中的数据已经被完全读空,直至写时钟域重新向FIFO中写入数据,此时rempty才会再次被拉低。异步FIFO中的awfull和arempty信号用来表征此时FIFO中仅差一个size大小的诗句才会被写满或读空,awfull和arempty信号也是高有效输出。When the FIFO is full, the wfull signal will be pulled up to be active high until the data in the FIFO is read from the read clock domain to make the FIFO not empty, then wfull will be pulled low again. The signal definitions for the read clock domain are similar to the write clock domain. If the empty signal is pulled high, it means that the data in the FIFO has been completely read at this time, until the write clock domain re-writes the data into the FIFO, then the empty will be pulled low again. The awfull and arempty signals in the asynchronous FIFO are used to indicate that only one size verse in the FIFO will be filled or read empty at this time, and the awfull and arempty signals are also high-effective outputs.
当HOST发出写操作(ddr4adr=10000),参见图2,HOST端会向DEVICE端发送一个周期的写控制信号,并且此时会有8个周期的写数据信号与之同步发送,可以通过将写控制信号和写数据信号分别从低频域跨时钟域处理到高频域,然后将两者进行同步对齐。When the HOST issues a write operation (ddr4adr=10000), see Figure 2, the HOST end will send a cycle of write control signals to the DEVICE end, and 8 cycles of write data signals will be sent synchronously with it. The control signal and the write data signal are processed across the clock domain from the low frequency domain to the high frequency domain respectively, and then the two are synchronized and aligned.
可选的,所述异步先入先出控制信号传输单元用于,在接收到所述主机端低频时钟域模块发出的所述写操作指令对应的所述写控制信号的情况下,根据预先设置的第一传输深度值,在检测到所述异步先入先出控制信号传输单元处于预设正常状态的情况下,将所述写控制信号写入所述异步先入先出控制信号传输单元;Optionally, the asynchronous FIFO control signal transmission unit is configured to, in the case of receiving the write control signal corresponding to the write operation instruction sent by the host-side low-frequency clock domain module, according to a preset For the first transmission depth value, when it is detected that the asynchronous FIFO control signal transmission unit is in a preset normal state, the write control signal is written into the asynchronous FIFO control signal transmission unit;
所述预设正常状态指的是所述异步先入先出控制信号传输单元处于非满并且不处于非读非写状态。The preset normal state refers to that the asynchronous FIFO control signal transmission unit is not full and not in a non-reading and non-writing state.
具体的,CTRL(控制)信号具有一定的持续性,不是像DATA信号存在突发传输,因此,可以通过设置合适的FIFO深度,当检测到FIFO非满并且不处于NOP状态时,将winc信号置为1,允许从写时钟域中向FIFO写入wdata。rinc信号只要检测到FIFO非空就置1,并且rinc信号只能保持一个cycle有效,就可以实现对CTRL信号跨时钟域的实时处理。也即是,只要FIFO中写入了一个cycle的非NOP指令,就将FIFO中该指令读出,并且读出的指令同样保持一个cycle有效,由于跨时钟域前后时钟频率发生变化,为了保证rinc仅一个周期有效,在检测FIFO非空就置rinc为1的基础上,还可以增加一个电平脉冲转化(上升沿检测)电路来控制rinc仅一个cycle高有效。Specifically, the CTRL (control) signal has a certain duration, not burst transmission like the DATA signal. Therefore, by setting an appropriate FIFO depth, when it is detected that the FIFO is not full and is not in the NOP state, the winc signal is set to Set to 1 to allow wdata to be written to the FIFO from the write clock domain. The rinc signal is set to 1 as long as it detects that the FIFO is not empty, and the rinc signal can only be kept valid for one cycle, so that the real-time processing of the CTRL signal across the clock domain can be realized. That is, as long as a cycle non-NOP instruction is written in the FIFO, the instruction in the FIFO is read out, and the read instruction is also valid for one cycle. Since the clock frequency changes before and after the clock domain, in order to ensure that the rinc Only one cycle is valid. On the basis of setting rinc to 1 when detecting that the FIFO is not empty, a level pulse conversion (rising edge detection) circuit can also be added to control only one cycle of rinc being active high.
可选的,所述数据信号传输单元用于,在接收到所述主机端低频时钟域模块发出的所述写数据信号的情况下,根据预先设置的第二传输深度值,确定每次传输对应的写数据传输信号,将所述写数据传输信号存储在对应的所述存储器模块中,直至传输次数达到所述第二传输深度值,将所有的所述写数据传输信号按照存储写入的顺序从所述数据传输单元依次读出。Optionally, the data signal transmission unit is configured to, in the case of receiving the write data signal sent by the host-side low-frequency clock domain module, determine the corresponding value of each transmission according to a preset second transmission depth value. store the write data transmission signal in the corresponding memory module until the number of times of transmission reaches the second transmission depth value, and store all the write data transmission signals in the order of storage and writing Sequentially read from the data transfer unit.
在本申请中,数据传输单元可以是QUEUE。In this application, the data transmission unit may be a QUEUE.
具体的,当odt=1时,DATA由HOST传输至DEVICE,DATA信号的特点是具有突发性,只有HOST端发送特定的WRITE指令的同时才会有数据传输,而且每次burst传输长度固定为8。将FIFO用作QUEUE,先设置FIFO的深度为burst长度,可以是确定值8,也即是第二传输深度值可以是8,将每次burst传输的8个单位的DATA在FIFO中存储稳定,等8个单位的数据全部进入到QUEUE中后,QUEUE被标记为满状态(wfull=1),再将DATA按照之前从写时钟域写入的顺序从QUEUE中读出。Specifically, when odt=1, DATA is transmitted from HOST to DEVICE. The characteristic of the DATA signal is that it is bursty. Only when the HOST terminal sends a specific WRITE command will data be transmitted, and the length of each burst transmission is fixed as 8. To use the FIFO as a QUEUE, first set the depth of the FIFO to the burst length, which can be a definite value of 8, that is, the second transmission depth value can be 8, and
在分别完成CTRL信号和DATA信号的CDC传输后,将特定的1个cycle的WRITE指令和8个cycle的DATA信号对其,实现完成CTRL信号和DATA信号的协同传输,由于DATA信号在QUEUE中暂时存储会造成一定的延时,因此具有一定的延时特性,因此DATA信号是不可以提前到和每个WRITE指令同周期开始传输,基于此,可以将WRITE指令延时到和DATA同周期时再进行传输。由于DATA信号的读出是以rinc=1为条件的,可以以rinc=1作为CTRL信号的读出条件将CTRL和DATA信号同步,完成由HOST向DEVICE的跨时钟域处理。After completing the CDC transmission of the CTRL signal and the DATA signal respectively, align the WRITE command of a specific cycle with the DATA signal of 8 cycles to complete the coordinated transmission of the CTRL signal and the DATA signal. Since the DATA signal is temporarily in the QUEUE Storage will cause a certain delay, so it has a certain delay characteristic. Therefore, the DATA signal cannot be advanced to the same cycle as each WRITE command to start transmission. Based on this, the WRITE command can be delayed until the same cycle as the DATA command. to transmit. Since the readout of the DATA signal is conditional on rinc=1, rinc=1 can be used as the readout condition of the CTRL signal to synchronize the CTRL and DATA signals to complete the cross-clock domain processing from HOST to DEVICE.
所述高频向低频传输子模块用于,在接收到所述主机端低频时钟域模块发出读操作指令对应的读数据信号的情况下,基于所述读数据信号完成对应数据的读取。The high frequency to low frequency transmission sub-module is configured to, in the case of receiving a read data signal corresponding to a read operation command issued by the host-side low frequency clock domain module, complete reading of corresponding data based on the read data signal.
在本申请中,高频向低频传输子模块可以包括QUEUE,当发生读操作时,是从DEVICE高频域向HOST低频域之间的跨时钟域处理,DEVICE端向HOST端的数据传输具有一定的突发性,当DEVICE向HOST连续burst传输8个周期的DATA数据时,将FIFO用作QUEUE的功能,将所有数据全部暂存在QUEUE中,再将QUEUE中的数据从DEVICE端顺序读出。因为DEVICE端的时钟频率高于HOST端,因此QUEUE写满的速度是先与读出的速度,因此需要在上一次QUEUE中的数据全部读出之后再进行下一次DATA数据的写入,两次burst读操作的8个单位的数据之间的间隔不能太小,可以避免上一次的数据还未读出,下一次写入的数据已经到来而发生的数据丢失,完成DEVICE端向HOST端的跨时钟域处理。In this application, the high frequency to low frequency transmission sub-module may include QUEUE. When a read operation occurs, it is a cross-clock domain processing from the DEVICE high frequency domain to the HOST low frequency domain. The data transmission from the DEVICE end to the HOST end has a certain Burst, when DEVICE continuously transmits 8 cycles of DATA data to HOST, FIFO is used as the function of QUEUE, all data is temporarily stored in QUEUE, and then the data in QUEUE is sequentially read from DEVICE. Because the clock frequency of the DEVICE side is higher than that of the HOST side, the speed at which the QUEUE is full is the same as the reading speed. Therefore, it is necessary to write the next DATA data after all the data in the last QUEUE has been read out, two bursts. The interval between the 8 units of data in the read operation cannot be too small, which can avoid data loss due to the fact that the last data has not been read out and the next written data has arrived, and the cross-clock domain from the DEVICE end to the HOST end is completed. deal with.
本申请的高效实现伪DDR信号跨时钟域的电路,其可配置性好,可以同时处理单周期与多周期信号之间的同步跨时钟域传播等高时序要求的场景,其应用场景广泛,可以应用于大量信号从低频域向高频域或相反反向的双向跨时钟域传播,避免了亚稳态的多域传播,提高了系统的稳定性与可靠性。The circuit for efficiently realizing pseudo-DDR signals across clock domains of the present application has good configurability, and can simultaneously handle scenarios with high timing requirements such as synchronous cross-clock domain propagation between single-cycle and multi-cycle signals, and has a wide range of application scenarios. It is applied to the bidirectional cross-clock domain propagation of a large number of signals from the low frequency domain to the high frequency domain or the opposite direction, avoiding the multi-domain propagation of the metastable state, and improving the stability and reliability of the system.
图4示出了本申请实施例提供的一种主机端低频时钟域模块向芯片端高频时钟域模块跨时钟域前后波形示意图,在HOST向DEVICE跨时钟域模式下,在分别完成CTRL信号和DATA信号的CDC传输后,将特定的1个cycle的WRITE指令和8个cycle的DATA信号对其,实现完成CTRL信号和DATA信号的协同传输,由于DATA信号在QUEUE中暂时存储会造成一定的延时,因此具有一定的延时特性,因此DATA信号是不可以提前到和每个WRITE指令同周期开始传输,基于此,可以将WRITE指令延时到和DATA同周期时再进行传输。由于DATA信号的读出是以rinc=1为条件的,可以以rinc=1作为CTRL信号的读出条件将CTRL和DATA信号同步,完成由HOST向DEVICE的跨时钟域处理。4 shows a schematic diagram of waveforms before and after a host-side low-frequency clock domain module to a chip-side high-frequency clock domain module crosses the clock domain according to an embodiment of the present application. In the HOST to DEVICE cross-clock domain mode, the CTRL signal and the After the CDC transmission of the DATA signal, align the WRITE command of a specific cycle with the DATA signal of 8 cycles to complete the coordinated transmission of the CTRL signal and the DATA signal. Because the DATA signal is temporarily stored in the QUEUE, it will cause a certain delay. Therefore, it has a certain delay characteristic. Therefore, the DATA signal cannot be transmitted in advance to the same cycle as each WRITE command. Based on this, the WRITE command can be delayed until the same cycle as the DATA command before transmission. Since the readout of the DATA signal is conditional on rinc=1, rinc=1 can be used as the readout condition of the CTRL signal to synchronize the CTRL and DATA signals to complete the cross-clock domain processing from HOST to DEVICE.
图5示出了本申请实施例提供的一种芯片端高频时钟域模块向主机端低频时钟域模块跨时钟域前后的波形示意图,在DEVICE向HOST跨时钟域模式下,当发生读操作时,是从DEVICE高频域向HOST低频域之间的跨时钟域处理,DEVICE端向HOST端的数据传输具有一定的突发性,当DEVICE向HOST连续burst传输8个周期的DATA数据时,将FIFO用作QUEUE的功能,将所有数据全部暂存在QUEUE中,再将QUEUE中的数据从DEVICE端顺序读出。因为DEVICE端的时钟频率高于HOST端,因此QUEUE写满的速度是先与读出的速度,因此需要在上一次QUEUE中的数据全部读出之后再进行下一次DATA数据的写入,两次burst读操作的8个单位的数据之间的间隔不能太小,也即是在下一次写入的数据到来之前,保证目前写入的数据已经被读出,本申请实施例对间隔的具体设置数值不作限定,可以根据实际应用场景做具体调整,可以避免上一次的数据还未读出,下一次写入的数据已经到来而发生的数据丢失,完成DEVICE端向HOST端的跨时钟域处理。5 shows a schematic diagram of waveforms before and after a chip-side high-frequency clock domain module to a host-side low-frequency clock domain module crosses the clock domain provided by an embodiment of the present application. In the DEVICE to HOST cross-clock domain mode, when a read operation occurs , is the cross-clock domain processing from the high-frequency domain of DEVICE to the low-frequency domain of HOST. The data transmission from the DEVICE end to the HOST end has a certain burstiness. When DEVICE continuously bursts 8 cycles of DATA data to the HOST, the FIFO Used as the function of QUEUE, all data is temporarily stored in QUEUE, and then the data in QUEUE is sequentially read from the DEVICE side. Because the clock frequency of the DEVICE side is higher than that of the HOST side, the speed at which the QUEUE is full is the same as the reading speed. Therefore, it is necessary to write the next DATA data after all the data in the last QUEUE has been read out, two bursts. The interval between the 8 units of data in the read operation cannot be too small, that is, before the arrival of the next written data, it is ensured that the currently written data has been read. Restrictions, you can make specific adjustments according to the actual application scenario, you can avoid the data loss that occurs when the last data has not been read, and the next written data has arrived, and complete the cross-clock domain processing from the DEVICE side to the HOST side.
本发明实施例提供的高效实现伪DDR信号跨时钟域的电路,所述低频向高频传输子模块用于,在接收到所述主机端低频时钟域模块发出写操作指令对应的写控制信号和写数据信号的情况下,将所述写控制信号和所述写数据信号分别从低频时钟域调整到高频时钟域,并对调整后的所述写控制信号和所述写数据信号进行同步对齐处理,将同步对齐处理后的所述写控制信号和所述写数据信号发送至所述芯片端高频时钟域模块;所述高频向低频传输子模块用于,在接收到所述主机端低频时钟域模块发出读操作指令对应的读数据信号的情况下,基于所述读数据信号完成对应数据的读取,可以同时处理单周期与多周期信号之间的同步跨时钟域传播等高时序要求的场景,其应用场景广泛,可以应用于大量信号从低频域向高频域或相反反向的双向跨时钟域传播,避免了亚稳态的多域传播,提高了电路的稳定性与可靠性。In the circuit for efficiently realizing the pseudo-DDR signal crossing the clock domain provided by the embodiment of the present invention, the low-frequency to high-frequency transmission sub-module is used to receive a write control signal corresponding to a write operation command issued by the host-side low-frequency clock domain module and In the case of writing a data signal, the write control signal and the write data signal are respectively adjusted from the low frequency clock domain to the high frequency clock domain, and the adjusted write control signal and the write data signal are synchronously aligned. processing, sending the write control signal and the write data signal after synchronization and alignment processing to the chip-side high-frequency clock domain module; the high-frequency to low-frequency transmission sub-module is used to receive the host-side When the low-frequency clock domain module issues a read data signal corresponding to a read operation command, the reading of the corresponding data is completed based on the read data signal, and the synchronization between single-cycle and multi-cycle signals can be processed simultaneously across the clock domain. The required scenarios have a wide range of application scenarios and can be applied to the bidirectional cross-clock domain propagation of a large number of signals from the low frequency domain to the high frequency domain or the opposite direction, avoiding the multi-domain propagation of metastable stability and improving the stability and reliability of the circuit. sex.
图6示出了本申请实施例提供的一种高效实现伪DDR信号跨时钟域的方法的流程示意图,应用于图1所示的高效实现伪DDR信号跨时钟域的电路中,如图6所示,该高效实现伪DDR信号跨时钟域的方法包括:FIG. 6 shows a schematic flowchart of a method for efficiently implementing a pseudo DDR signal crossing a clock domain provided by an embodiment of the present application, which is applied to the circuit for efficiently implementing a pseudo DDR signal crossing a clock domain shown in FIG. 1 , as shown in FIG. 6 . As shown in the figure, the method for efficiently realizing the pseudo DDR signal crossing the clock domain includes:
步骤201:低频向高频传输子模块在接收到主机端低频时钟域模块发出写操作指令对应的写控制信号和写数据信号的情况下,将所述写控制信号和所述写数据信号分别从低频时钟域调整到高频时钟域,并对调整后的所述写控制信号和所述写数据信号进行同步对齐处理,将同步对齐处理后的所述写控制信号和所述写数据信号发送至芯片端高频时钟域模块。Step 201: In the case where the low-frequency to high-frequency transmission sub-module receives the write control signal and the write data signal corresponding to the write operation command issued by the host-side low-frequency clock domain module, the write control signal and the write data signal are respectively sent from the host side to the write control signal and the write data signal. The low-frequency clock domain is adjusted to the high-frequency clock domain, the adjusted write control signal and the write data signal are synchronously aligned, and the synchronously aligned write control signal and the write data signal are sent to the Chip-side high-frequency clock domain module.
可选的,步骤201的具体实现方式可以包括以下子步骤:Optionally, the specific implementation of
子步骤S1:所述异步先入先出控制信号传输单元在接收到所述主机端低频时钟域模块发出所述写操作指令对应的写控制信号的情况下,将所述写控制信号从低频时钟域调整到高频时钟域;Sub-step S1: the asynchronous FIFO control signal transmission unit transmits the write control signal from the low-frequency clock domain to the low-frequency clock domain when receiving the write control signal corresponding to the write operation command issued by the host-side low-frequency clock domain module. Adjusted to the high frequency clock domain;
可选的,所述异步先入先出控制信号传输单元在接收到所述主机端低频时钟域模块发出的所述写操作指令对应的所述写控制信号的情况下,根据预先设置的第一传输深度值,在检测到所述异步先入先出控制信号传输单元处于预设正常状态的情况下,将所述写控制信号写入所述异步先入先出控制信号传输单元;Optionally, when the asynchronous FIFO control signal transmission unit receives the write control signal corresponding to the write operation command sent by the host-side low-frequency clock domain module, the transmission a depth value, when it is detected that the asynchronous FIFO control signal transmission unit is in a preset normal state, write the write control signal into the asynchronous FIFO control signal transmission unit;
所述预设正常状态指的是所述异步先入先出控制信号传输单元处于非满并且不处于非读非写状态。The preset normal state refers to that the asynchronous FIFO control signal transmission unit is not full and not in a non-reading and non-writing state.
子步骤S2:所述数据信号传输单元在接收到所述主机端低频时钟域模块发出所述写操作指令对应的写数据信号的情况下,将所述写数据信号从低频时钟域调整到高频时钟域;Sub-step S2: the data signal transmission unit adjusts the write data signal from the low frequency clock domain to the high frequency when receiving the write data signal corresponding to the write operation command issued by the host-side low frequency clock domain module clock domain;
所述数据信号传输单元在接收到所述主机端低频时钟域模块发出的所述写数据信号的情况下,根据预先设置的第二传输深度值,确定每次传输对应的写数据传输信号,将所述写数据传输信号存储在对应的所述存储器模块中,直至传输次数达到所述第二传输深度值,将所有的所述写数据传输信号按照存储写入的顺序从所述数据传输单元依次读出。In the case of receiving the write data signal sent by the low-frequency clock domain module of the host side, the data signal transmission unit determines the corresponding write data transmission signal for each transmission according to the preset second transmission depth value, The write data transmission signal is stored in the corresponding memory module until the number of times of transmission reaches the second transmission depth value, and all the write data transmission signals are stored and written in sequence from the data transmission unit. read out.
子步骤S3:所述异步先入先出控制信号传输单元和所述数据信号传输单元对调整后的所述写控制信号和所述写数据信号进行同步对齐处理,将同步对齐处理后的所述写控制信号和所述写数据信号发送至所述芯片端高频时钟域模块。Sub-step S3: the asynchronous FIFO control signal transmission unit and the data signal transmission unit perform synchronous alignment processing on the adjusted write control signal and the write data signal, and synchronously align the write The control signal and the write data signal are sent to the chip-side high-frequency clock domain module.
步骤202:所述高频向低频传输子模块在接收到所述主机端低频时钟域模块发出读操作指令对应的读数据信号的情况下,基于所述读数据信号完成对应数据的读取。Step 202 : the high frequency to low frequency transmission sub-module completes the reading of the corresponding data based on the read data signal in the case of receiving the read data signal corresponding to the read operation command issued by the host-side low frequency clock domain module.
本发明实施例提供的高效实现伪DDR信号跨时钟域的方法,所述低频向高频传输子模块在接收到所述主机端低频时钟域模块发出写操作指令对应的写控制信号和写数据信号的情况下,将所述写控制信号和所述写数据信号分别从低频时钟域调整到高频时钟域,并对调整后的所述写控制信号和所述写数据信号进行同步对齐处理,将同步对齐处理后的所述写控制信号和所述写数据信号发送至所述芯片端高频时钟域模块;所述高频向低频传输子模块在接收到所述主机端低频时钟域模块发出读操作指令对应的读数据信号的情况下,基于所述读数据信号完成对应数据的读取,可以同时处理单周期与多周期信号之间的同步跨时钟域传播等高时序要求的场景,其应用场景广泛,可以应用于大量信号从低频域向高频域或相反反向的双向跨时钟域传播,避免了亚稳态的多域传播,提高了电路的稳定性与可靠性。The embodiment of the present invention provides a method for efficiently implementing a pseudo-DDR signal across a clock domain, wherein the low-frequency to high-frequency transmission sub-module receives a write control signal and a write data signal corresponding to a write operation command issued by the host-side low-frequency clock domain module In the case of , the write control signal and the write data signal are respectively adjusted from the low frequency clock domain to the high frequency clock domain, and the adjusted write control signal and the write data signal are synchronously aligned. The write control signal and the write data signal after synchronous alignment processing are sent to the chip-side high-frequency clock domain module; the high-frequency to low-frequency transmission sub-module receives a read from the host-side low-frequency clock domain module In the case of the read data signal corresponding to the operation command, the reading of the corresponding data is completed based on the read data signal, and the scenarios with high timing requirements such as synchronization between single-cycle and multi-cycle signals can be simultaneously processed across clock domains, and its application It has a wide range of scenarios and can be applied to the bidirectional cross-clock domain propagation of a large number of signals from the low frequency domain to the high frequency domain or the opposite direction, avoiding the multi-domain propagation of metastable stability and improving the stability and reliability of the circuit.
本发明提供的一种高效实现伪DDR信号跨时钟域的方法,应用于如图1所示的高效实现伪DDR信号跨时钟域的电路,为避免重复,这里不再赘述。The method for efficiently realizing the pseudo DDR signal crossing the clock domain provided by the present invention is applied to the circuit for efficiently realizing the pseudo DDR signal crossing the clock domain as shown in FIG.
本发明实施例中的电子设备可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personaldigital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(NetworkAttached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本发明实施例不作具体限定。The electronic device in this embodiment of the present invention may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). , PDA), etc., the non-mobile electronic device may be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc. The embodiment of the present invention There is no specific limitation.
本发明实施例中的电子设备可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为IOS操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。The electronic device in the embodiment of the present invention may be a device having an operating system. The operating system may be an Android (Android) operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present invention.
图7示出了本发明实施例提供的一种电子设备的硬件结构示意图。如图7所示,该电子设备300包括处理器310。FIG. 7 shows a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present invention. As shown in FIG. 7 , the electronic device 300 includes a
如图7所示,上述处理器310可以是一个通用中央处理器(central processingunit,CPU),微处理器,专用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本发明方案程序执行的集成电路。As shown in FIG. 7 , the above-mentioned
如图7所示,上述电子设备300还可以包括通信线路340。通信线路340可包括一通路,在上述组件之间传送信息。As shown in FIG. 7 , the above-mentioned electronic device 300 may further include a communication line 340 . Communication line 340 may include a path to communicate information between the aforementioned components.
可选的,如图7所示,上述电子设备还可以包括通信接口320。通信接口320可以为一个或多个。通信接口320可使用任何收发器一类的装置,用于与其他设备或通信网络通信。Optionally, as shown in FIG. 7 , the above electronic device may further include a
可选的,如图7所示,该电子设备还可以包括存储器330。存储器330用于存储执行本发明方案的计算机执行指令,并由处理器来控制执行。处理器用于执行存储器中存储的计算机执行指令,从而实现本发明实施例提供的方法。Optionally, as shown in FIG. 7 , the electronic device may further include a
如图7所示,存储器330可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compactdisc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器330可以是独立存在,通过通信线路340与处理器310相连接。存储器330也可以和处理器310集成在一起。As shown in FIG. 7, the
可选的,本发明实施例中的计算机执行指令也可以称之为应用程序代码,本发明实施例对此不作具体限定。Optionally, the computer-executed instructions in this embodiment of the present invention may also be referred to as application code, which is not specifically limited in this embodiment of the present invention.
在具体实现中,作为一种实施例,如图7所示,处理器310可以包括一个或多个CPU,如图7中的CPU0和CPU1。In a specific implementation, as an embodiment, as shown in FIG. 7 , the
在具体实现中,作为一种实施例,如图7所示,终端设备可以包括多个处理器,如图7中的第一处理器3101和第二处理器3102。这些处理器中的每一个可以是一个单核处理器,也可以是一个多核处理器。In a specific implementation, as an embodiment, as shown in FIG. 7 , the terminal device may include multiple processors, such as the
图8是本发明实施例提供的芯片的结构示意图。如图8所示,该芯片400包括一个或两个以上(包括两个)处理器310。FIG. 8 is a schematic structural diagram of a chip provided by an embodiment of the present invention. As shown in FIG. 8 , the chip 400 includes one or more than two (including two)
可选的,如图8所示,该芯片还包括通信接口320和存储器330,存储器330可以包括只读存储器和随机存取存储器,并向处理器提供操作指令和数据。存储器的一部分还可以包括非易失性随机存取存储器(non-volatile random access memory,NVRAM)。Optionally, as shown in FIG. 8 , the chip further includes a
在一些实施方式中,如图8所示,存储器330存储了如下的元素,执行模块或者数据结构,或者他们的子集,或者他们的扩展集。In some embodiments, as shown in FIG. 8, the
在本发明实施例中,如图8所示,通过调用存储器存储的操作指令(该操作指令可存储在操作系统中),执行相应的操作。In this embodiment of the present invention, as shown in FIG. 8 , corresponding operations are performed by calling an operation instruction stored in the memory (the operation instruction may be stored in the operating system).
如图8所示,处理器310控制终端设备中任一个的处理操作,处理器310还可以称为中央处理单元(central processing unit,CPU)。As shown in FIG. 8 , the
如图8所示,存储器330可以包括只读存储器和随机存取存储器,并向处理器提供指令和数据。存储器330的一部分还可以包括NVRAM。例如应用中存储器、通信接口以及存储器通过总线系统耦合在一起,其中总线系统除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图8中将各种总线都标为总线系统450。As shown in FIG. 8,
如图8所示,上述本发明实施例揭示的方法可以应用于处理器中,或者由处理器实现。处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(digital signal processing,DSP)、ASIC、现成可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。As shown in FIG. 8 , the methods disclosed in the above embodiments of the present invention may be applied to a processor, or implemented by a processor. A processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above-mentioned method can be completed by a hardware integrated logic circuit in a processor or an instruction in the form of software. The above-mentioned processor may be a general-purpose processor, a digital signal processing (DSP), an ASIC, a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps, and logical block diagrams disclosed in the embodiments of the present invention can be implemented or executed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware.
一方面,提供一种计算机可读存储介质,计算机可读存储介质中存储有指令,当指令被运行时,实现上述实施例中由终端设备执行的功能。In one aspect, a computer-readable storage medium is provided, where instructions are stored in the computer-readable storage medium, and when the instructions are executed, the functions performed by the terminal device in the foregoing embodiments are implemented.
一方面,提供一种芯片,该芯片应用于终端设备中,芯片包括至少一个处理器和通信接口,通信接口和至少一个处理器耦合,处理器用于运行指令,以实现上述实施例中由高效实现伪DDR信号跨时钟域的电路执行的功能。On the one hand, a chip is provided, the chip is applied in a terminal device, the chip includes at least one processor and a communication interface, the communication interface is coupled with the at least one processor, and the processor is used for running instructions, so as to realize the high-efficiency implementation in the above-mentioned embodiment. Pseudo DDR signaling functions performed by circuits that span clock domains.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机程序或指令。在计算机上加载和执行所述计算机程序或指令时,全部或部分地执行本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、终端、用户设备或者其它可编程装置。所述计算机程序或指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机程序或指令可以从一个网站站点、计算机、服务器或数据中心通过有线或无线方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是集成一个或多个可用介质的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,例如,软盘、硬盘、磁带;也可以是光介质,例如,数字视频光盘(digital video disc,DVD);还可以是半导体介质,例如,固态硬盘(solid state drive,SSD)。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are performed. The computer may be a general purpose computer, special purpose computer, computer network, terminal, user equipment, or other programmable device. The computer program or instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be downloaded from a website site, computer, A server or data center transmits by wire or wireless to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, data center, or the like that integrates one or more available media. The usable media may be magnetic media, such as floppy disks, hard disks, magnetic tapes; optical media, such as digital video discs (DVD); and semiconductor media, such as solid state drives (solid state drives). , SSD).
尽管在此结合各实施例对本发明进行了描述,然而,在实施所要求保护的本发明过程中,本领域技术人员通过查看附图、公开内容、以及所附权利要求书,可理解并实现公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。Although the invention is described herein in connection with various embodiments, in practicing the claimed invention, those skilled in the art can understand and implement the disclosure by reviewing the drawings, the disclosure, and the appended claims Other variations of the embodiment. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that these measures cannot be combined to advantage.
尽管结合具体特征及其实施例对本发明进行了描述,显而易见的,在不脱离本发明的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本发明的示例性说明,且视为已覆盖本发明范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包括这些改动和变型在内。Although the invention has been described in conjunction with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made therein without departing from the spirit and scope of the invention. Accordingly, this specification and drawings are merely illustrative of the invention as defined by the appended claims, and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the invention. It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit and scope of the invention. Thus, provided that these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210731207.0A CN115035929A (en) | 2022-06-24 | 2022-06-24 | A circuit, method and electronic device for efficiently realizing pseudo DDR signal crossing clock domain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210731207.0A CN115035929A (en) | 2022-06-24 | 2022-06-24 | A circuit, method and electronic device for efficiently realizing pseudo DDR signal crossing clock domain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115035929A true CN115035929A (en) | 2022-09-09 |
Family
ID=83127246
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210731207.0A Pending CN115035929A (en) | 2022-06-24 | 2022-06-24 | A circuit, method and electronic device for efficiently realizing pseudo DDR signal crossing clock domain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115035929A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107656886A (en) * | 2017-09-30 | 2018-02-02 | 中国科学院长春光学精密机械与物理研究所 | A kind of cross clock domain signal processing circuit and its processing method |
CN108170616A (en) * | 2016-12-07 | 2018-06-15 | 上海复旦微电子集团股份有限公司 | The system that cross clock domain signal transmission is realized using latch |
CN109388370A (en) * | 2017-08-03 | 2019-02-26 | 深圳市中兴微电子技术有限公司 | A kind of method and device for realizing First Input First Output |
CN109408427A (en) * | 2017-08-18 | 2019-03-01 | 龙芯中科技术有限公司 | A kind of clock-domain crossing data processing method and system |
CN111506264A (en) * | 2020-04-10 | 2020-08-07 | 华中科技大学 | Virtual multi-channel SDRAM access method supporting flexible block access |
CN112840593A (en) * | 2018-12-21 | 2021-05-25 | 华为技术有限公司 | Cross-clock domain processing circuit |
CN112965689A (en) * | 2021-02-26 | 2021-06-15 | 西安微电子技术研究所 | Distributed asynchronous FIFO data interaction method based on source synchronization and FIFO structure |
CN113615088A (en) * | 2019-03-26 | 2021-11-05 | 华为技术有限公司 | Clock domain crossing synchronization circuit and method |
-
2022
- 2022-06-24 CN CN202210731207.0A patent/CN115035929A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108170616A (en) * | 2016-12-07 | 2018-06-15 | 上海复旦微电子集团股份有限公司 | The system that cross clock domain signal transmission is realized using latch |
CN109388370A (en) * | 2017-08-03 | 2019-02-26 | 深圳市中兴微电子技术有限公司 | A kind of method and device for realizing First Input First Output |
CN109408427A (en) * | 2017-08-18 | 2019-03-01 | 龙芯中科技术有限公司 | A kind of clock-domain crossing data processing method and system |
CN107656886A (en) * | 2017-09-30 | 2018-02-02 | 中国科学院长春光学精密机械与物理研究所 | A kind of cross clock domain signal processing circuit and its processing method |
CN112840593A (en) * | 2018-12-21 | 2021-05-25 | 华为技术有限公司 | Cross-clock domain processing circuit |
CN113615088A (en) * | 2019-03-26 | 2021-11-05 | 华为技术有限公司 | Clock domain crossing synchronization circuit and method |
CN111506264A (en) * | 2020-04-10 | 2020-08-07 | 华中科技大学 | Virtual multi-channel SDRAM access method supporting flexible block access |
CN112965689A (en) * | 2021-02-26 | 2021-06-15 | 西安微电子技术研究所 | Distributed asynchronous FIFO data interaction method based on source synchronization and FIFO structure |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7496777B2 (en) | Power throttling in a memory system | |
US8169841B2 (en) | Strobe apparatus, systems, and methods | |
US8675425B2 (en) | Single-strobe operation of memory devices | |
US8938578B2 (en) | Memory device with multi-mode deserializer | |
US9436388B2 (en) | Memory access alignment in a double data rate (‘DDR’) system | |
US10665286B2 (en) | Pseudo static random access memory and control method thereof | |
JP2024133504A (en) | Extended data clock operation in memory - Patents.com | |
US12062413B1 (en) | Signal receiver with skew-tolerant strobe gating | |
CN104064213B (en) | Memory access method, memory access control method and memory controller | |
US6256716B1 (en) | Apparatus, system and method for reducing bus contention during consecutive read-write operations | |
WO2022179368A1 (en) | Method for optimizing flash memory chip and related device | |
CN111722827B (en) | Efficient DDR access method | |
CN109062538A (en) | Annular first-in first-out buffer and data transmission interface, system, method | |
US20040064660A1 (en) | Multiplexed bus with multiple timing signals | |
CN115035929A (en) | A circuit, method and electronic device for efficiently realizing pseudo DDR signal crossing clock domain | |
CN1937075B (en) | Data transfer operation completion detection circuit and semiconductor memory device provided therewith | |
CN111723027B (en) | Dynamic storage buffer area reading control method based on power edge gateway | |
CN112802537B (en) | Test equipment and chip modules | |
US6915407B2 (en) | Method and apparatus for a low latency source-synchronous address receiver for a host system bus in a memory controller | |
CN112395218A (en) | Novel SPI-NAND Flash memory chip with DDR high transmission interface and operation method | |
US6597628B1 (en) | Auto-disable receive control for DDR receive strobes | |
WO2025007452A1 (en) | Control circuit and memory | |
KR100677230B1 (en) | Interface device and method of computer system block | |
CN118057290A (en) | High-bandwidth DDR dual inline memory module, memory system and operation method thereof | |
CN117991867A (en) | Access clock control circuit of ONFI physical layer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |