DDR physical layer interface circuit and control method based on FPGA
By designing the DDR physical layer interface circuit in FPGA, using the programmable physical layer controller and byte module of the same clock for data transmission, the problem of many signal lines and low transmission efficiency of the DDR physical layer interface is solved, and more efficient Data transmission.
Patent Information
- Application Number
- CN202411230403.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-09-04
AI Technical Summary
The existing DDR physical layer interface signal lines are large and the transmission efficiency is low, resulting in limited resources of the physical interface module and difficult wiring, and the APB bus is less efficient when interacting with data.
Design a DDR physical layer interface circuit based on FPGA, including a programmable physical layer controller, a physical interface module and a physical layer. All byte modules use the same clock and send selection signals, address signals and data signals through the physical interface module. Write operations reduce interface signal lines and improve transmission efficiency.
The interface signal lines between the physical layer and the programmable physical layer controller are reduced, data transmission efficiency is improved, and the interface signal lines required for driving is reduced, solving the problems of large number of interface signal lines and low transmission efficiency.
Smart Images

Figure CN118734757B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of integrated circuit design, and in particular to a DDR physical layer interface circuit based on FPGA and a control method thereof. Background Art
[0002] FPGA (Field Programmable Gate Arrays) emerged as a semi-custom circuit in the field of application-specific integrated circuits (ASICs). It not only solves the shortcomings of custom circuits, but also overcomes the disadvantage of the limited number of gate circuits of the original programmable devices.
[0003] In FPGA, DDR (Double Data Rate Synchronous Dynamic Random Access Memory) is usually used to achieve fast data transmission. A complete DDR system usually consists of three parts: memory controller (MC), physical layer (PHY) and storage particles. Among them, the physical layer serves as a channel for the interaction between the memory controller and the storage particles, and mainly solves the timing matching problem of data and addresses between the memory controller and the DDR storage particles.
[0004] In order to realize the physical layer function, the physical layer is generally controlled by a programmable physical layer controller (PPC), which mainly completes the initialization of particles, various trainings, data reception and transmission, register configuration, etc. Therefore, there are a large number of interface signal lines between the programmable physical layer controller and the physical layer, such as: the particle's own address command line, data line, delay unit encoding signal line, delay unit control signal line and mode control signal, etc. These interface signal lines need to pass through the physical interface module (PIB), and the resources of the physical interface module are limited in FPGA. Too many interface signal lines will cause the physical interface module wiring to fail.
[0005] At present, due to the low power consumption and simplified interface characteristics of APB (Advanced Peripheral Bus, a low-cost interface protocol), APB is usually used to reduce the interface signal lines between the programmable physical layer controller and the physical layer. However, since the APB bus read and write data channels are separate, and considering the address line and command line, the number of interface signal lines is greater than twice the read and write data width. Moreover, since each byte (BYTE) module in the physical layer needs to be controlled separately, when there are multiple byte modules in the physical layer, the number of interfaces occupied by APB is also large. In addition, when exchanging data through the APB bus, at least two clock cycles are required, and the transmission efficiency is low. Summary of the invention
[0006] The object of the present invention is to provide a DDR physical layer interface circuit based on FPGA and a control method thereof, so as to solve the problem that the existing DDR physical layer interface has a large number of signal lines and low transmission efficiency.
[0007] In order to solve the above technical problems, the present invention provides a DDR physical layer interface circuit based on FPGA, including a programmable physical layer controller, a physical interface module and a physical layer, wherein the physical layer includes multiple byte modules; the programmable physical layer controller and all the byte modules use the same clock; the programmable physical layer controller sends a transmission signal to the physical layer through the physical interface module to regulate the write operation of each of the byte modules, and the transmission signal includes a selection signal, an address signal and a data signal.
[0008] Optionally, in the FPGA-based DDR physical layer interface circuit, the byte module includes a write register, an asynchronous first-in-first-out data buffer, a data selector and a read register; the write register is used to synchronize and temporarily store the address signal and the data signal according to the selection signal; the asynchronous first-in-first-out data buffer is used to store the synchronized address signal and the data signal; the data selector is used to read out the address and data stored in the asynchronous first-in-first-out data buffer, and parse the read address to input the data into the read register according to the parsing result; the read register is used to temporarily store the data sent by the data selector.
[0009] Optionally, in the FPGA-based DDR physical layer interface circuit, the byte module also includes a delay unit; the programmable physical layer controller also sends a delay coding signal to the physical layer through the physical interface module; the delay unit is used to confirm the delay time of the data output by the read register according to the delay coding signal.
[0010] Optionally, in the FPGA-based DDR physical layer interface circuit, each of the byte modules includes a plurality of the write registers, and the output ends of all the write registers are connected to the asynchronous first-in-first-out data buffer; each of the byte modules includes a plurality of the read registers, and the output ends of the data selector are connected to each of the read registers; each of the byte modules includes a plurality of the delay units, the number of the delay units is consistent with the number of the read registers, and the output end of each of the read registers is connected to a delay unit.
[0011] In order to solve the above technical problems, the present invention further provides a control method of a DDR physical layer interface circuit based on FPGA, which is applied to the DDR physical layer interface circuit based on FPGA as described in any one of the above items, and the control method comprises:
[0012] The programmable physical layer controller sends down selection signals, address signals and data signals;
[0013] The selection signal, address signal and data signal reach the physical layer via the physical interface module;
[0014] Select the current byte module according to the selection signal, and send the address signal and data signal to the current byte module;
[0015] The current byte module performs a write operation on the address signal and the data signal for data transmission.
[0016] Optionally, in the control method of the FPGA-based DDR physical layer interface circuit, the byte module includes a read register; the method for the programmable physical layer controller to send a selection signal, an address signal and a data signal includes: when the selection signal is high, the address of the read register is given in the address signal, and the data to be written is given in the data signal.
[0017] Optionally, in the control method of the FPGA-based DDR physical layer interface circuit, the selection signal reaches the physical layer in parallel; when the selection signal is high, the corresponding byte module is selected.
[0018] Optionally, in the control method of the FPGA-based DDR physical layer interface circuit, the byte module includes a write register, an asynchronous first-in first-out data buffer, a data selector and a read register; the method in which the current byte module performs a write operation on the address signal and the data signal includes:
[0019] The write register performs beat synchronization on the address signal and the data signal, and sends the synchronized address signal and the data signal to the asynchronous first-in first-out data buffer;
[0020] The asynchronous first-in first-out data buffer uses the selection signal as a write enable signal and stores the synchronized address signal and data signal according to the selection signal;
[0021] The data selector reads the address and data from the address signal and the data signal stored in the asynchronous first-in first-out data buffer, and writes the data into the read register corresponding to the address.
[0022] Optionally, in the control method of the FPGA-based DDR physical layer interface circuit, the write register performs tap synchronization on the address signal and the data signal, and sends the synchronized address signal and the data signal to the asynchronous first-in-first-out data buffer, including:
[0023] The write register performs tap synchronization on the address signal and the data signal;
[0024] Combining the synchronized address signal and data signal in a high address, low data manner to obtain a combined signal;
[0025] Feed the combined signal into an asynchronous first-in, first-out data buffer.
[0026] Optionally, in the control method of the FPGA-based DDR physical layer interface circuit, the asynchronous first-in-first-out data buffer stores the synchronized address signal and data signal in the same address space.
[0027] Optionally, in the control method of the FPGA-based DDR physical layer interface circuit, the method in which the data selector reads the address and data from the address signal and the data signal stored in the asynchronous first-in first-out data buffer and writes the data into the read register corresponding to the address includes:
[0028] The data selector determines whether the asynchronous first-in first-out data buffer is empty;
[0029] If the asynchronous first-in first-out data buffer is not empty, the address and data stored in the asynchronous first-in first-out data buffer are read out;
[0030] Compare the read address with the address of the read register;
[0031] If the read address is consistent with the address of the read register, the read data is written into the read register.
[0032] Optionally, in the control method of the FPGA-based DDR physical layer interface circuit, the byte module further includes a delay unit; and the method in which the current byte module performs a write operation on the address signal and the data signal further includes:
[0033] The programmable physical layer controller sends down a delay coding signal;
[0034] The delayed coded signal reaches the physical layer via the physical interface module;
[0035] The delay unit confirms the delay time according to the delay coding signal;
[0036] According to the delay time, the data output by the read register is delayed and then output.
[0037] The FPGA-based DDR physical layer interface circuit and control method thereof provided by the present invention include a programmable physical layer controller, a physical interface module and a physical layer, wherein the physical layer includes multiple byte modules; the programmable physical layer controller and all the byte modules use the same clock; the programmable physical layer controller sends a transmission signal to the physical layer through the physical interface module to regulate the write operation of each byte module, and the transmission signal includes a selection signal, an address signal and a data signal. In this way, data is transmitted unidirectionally from the programmable physical layer controller to the physical layer, thereby not only eliminating the interface signal line transmitted from the physical layer to the programmable physical layer controller, but also improving the data transmission efficiency; at the same time, the programmable physical layer controller and the byte module use the same clock, and some control signals are driven by the internal physical layer instead, which not only reduces the interface signal lines required for driving, but also improves the data transmission efficiency, solving the problem of large number of existing DDR physical layer interface signal lines and low transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A block diagram of the FPGA-based DDR physical layer interface circuit provided in this embodiment;
[0039] Figure 2 A structural block diagram of the byte module provided in this embodiment;
[0040] Figure 3 A structural block diagram of a byte module with a delay unit provided for this embodiment;
[0041] Figure 4 A schematic diagram of the specific structure of the byte module provided in this embodiment;
[0042] Figure 5 A flow chart of a control method for a DDR physical layer interface circuit based on FPGA provided in this embodiment;
[0043] Figure 6 This is a timing diagram of the FPGA-based DDR physical layer interface circuit provided in this embodiment. DETAILED DESCRIPTION
[0044] The FPGA-based DDR physical layer interface circuit and its control method proposed by the present invention are further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the accompanying drawings are all in a very simplified form and use non-precise proportions, which are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention. In addition, the structure shown in the accompanying drawings is often a part of the actual structure. In particular, the emphasis of each accompanying drawing is different, and sometimes different proportions are used.
[0045] It should be noted that the terms "first", "second", etc. in the specification, claims and drawings of the present invention are used to distinguish similar objects in order to describe the embodiments of the present invention, rather than to describe a specific order or sequence. It should be understood that the structures used in this way can be interchanged under appropriate circumstances. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0046] This embodiment provides a DDR physical layer interface circuit based on FPGA, such as Figure 1 As shown, it includes a programmable physical layer controller PPC, a physical interface module PIB and a physical layer PHY, and the physical layer includes multiple byte modules; the programmable physical layer controller and all the byte modules use the same clock; the programmable physical layer controller sends a transmission signal to the physical layer through the physical interface module to regulate the write operation of each byte module, and the transmission signal includes a selection signal, an address signal and a data signal.
[0047] In the FPGA-based DDR physical layer interface circuit provided in this embodiment, data is transmitted unidirectionally from the programmable physical layer controller to the physical layer, which not only saves the interface signal line for transmitting from the physical layer to the programmable physical layer controller, but also improves the data transmission efficiency; at the same time, the programmable physical layer controller and the byte module use the same clock, and some control signals are driven by the internal part of the physical layer, which not only reduces the interface signal lines required for driving, but also improves the data transmission efficiency, solving the problem of a large number of interface signal lines and low transmission efficiency in the existing DDR physical layer.
[0048] Specifically, in this embodiment, the programmable physical layer controller PPC includes a scheduling module SCH, and the scheduling module is used to regulate the write operation of each of the byte modules.
[0049] And, in this embodiment, if Figure 2 As shown, the byte module includes a write register, an asynchronous first-in-first-out data buffer, a data selector and a read register; the write register is used to synchronize and temporarily store the address signal and the data signal according to the selection signal; the asynchronous first-in-first-out data buffer is used to store the synchronized address signal and the data signal; the data selector is used to read out the address and data stored in the asynchronous first-in-first-out data buffer, and parse the read address to input the data into the read register according to the parsing result; the read register is used to temporarily store the data sent by the data selector.
[0050] Preferably, in this embodiment, Figure 3 As shown, the byte module also includes a delay unit; the programmable physical layer controller also sends a delay coding signal to the physical layer through the physical interface module; the delay unit is used to confirm the delay time of the data output by the read register according to the delay coding signal. In this way, the delay unit receives the delay coding signal and can delay the data as required.
[0051] In actual applications, each of the byte modules includes multiple write registers, and the output ends of all the write registers are connected to the asynchronous first-in first-out data buffer; each of the byte modules includes multiple read registers, and the output ends of the data selector are connected to each of the read registers; each of the byte modules includes multiple delay units, the number of the delay units is consistent with the number of the read registers, and the output end of each of the read registers is connected to a delay unit.
[0052] In a specific embodiment, if Figure 4 As shown, there are multiple write registers, all of which are D flip-flops (DFFs); the outputs of the multiple write registers are connected to the inputs of the asynchronous first-in first-out data buffer (asynchronous FIFO). Since the width and number of registers determine the address width and data width, the number of write registers can be determined based on the address width and data width that actually need to be sent.
[0053] And, the data selector includes a multiplexer (MUX), the multiple input ports of the multiplexer are connected to the asynchronous first-in first-out data buffer to receive data data, and the output data is selected according to the address addr read from the asynchronous first-in first-out data buffer. Figure 4 In the structure shown, the multiplexer has two input ports (port 0 and port 1). Of course, in practical applications, a multiplexer with more input ports can be selected as a data selector according to actual needs.
[0054] Also, there are multiple read registers, all of which are D flip-flops (DFFs). The input of each read register is connected to the output of the data selector, and the output of each read register is connected to the input of the delay unit, so that the data selector selects the corresponding read register, stores the read data in the selected read register, and uses the delay unit to delay the data before outputting it. Similarly, since the width and number of registers determine the address width and data width, the number of read registers can be determined based on the address width and data width that actually need to be sent.
[0055] Furthermore, in order to improve the efficiency of the programmable physical layer controller (PPC) sending the delay coding signal and the mode control signal to the physical layer (PHY), in this embodiment, the programmable physical layer controller sends the delay coding signal in parallel.
[0056] Compared with the prior art, this embodiment, through the structural design of the byte module, can utilize the internal registers of the physical layer (write register and read register) to realize the internal driving of delayed coding signals and unfamiliar control signals, without the need for driving by a programmable physical layer controller, thereby reducing this part of the interface data lines; since the signal transmission between the programmable physical layer controller and the physical layer is unidirectional, the physical layer does not need to return any response signal to the programmable physical layer controller, so this part of the interface data lines can be omitted; since the physical layer directly stores the data received by the write register into an asynchronous first-in-first-out data buffer when writing data, there is no need to perform a handshake action, thereby improving the transmission efficiency.
[0057] This embodiment also provides a control method for a DDR physical layer interface circuit based on FPGA, which is applied to the DDR physical layer interface circuit based on FPGA as described above. Figure 5 As shown, the control method includes:
[0058] S1, the programmable physical layer controller sends the selection signal, address signal and data signal;
[0059] S2, the selection signal, address signal and data signal reach the physical layer via the physical interface module;
[0060] S3, select the current byte module according to the selection signal, and send the address signal and data signal to the current byte module;
[0061] S4, the current byte module performs a write operation on the address signal and the data signal to perform data transmission.
[0062] The control method of the FPGA-based DDR physical layer interface circuit provided in this embodiment transmits data unidirectionally from the programmable physical layer controller to the physical layer, which not only saves the interface signal line transmitted from the physical layer to the programmable physical layer controller, but also improves the data transmission efficiency; at the same time, the programmable physical layer controller and the byte module use the same clock, and some control signals are driven by the internal part of the physical layer, which not only reduces the interface signal lines required for driving, but also improves the data transmission efficiency, solving the problem of a large number of interface signal lines and low transmission efficiency in the existing DDR physical layer.
[0063] Specifically, in this embodiment, the programmable physical layer controller (PPC) and the physical layer (PHY) use the same clock, wherein the clock of the programmable physical layer controller is denoted as ppc_clk, the clock of the write register in the byte module is denoted as ctl_clk, the clock of the asynchronous first-in first-out data buffer (asynchronous FIFO) write phase is denoted as wr_clk, and the clock of the asynchronous first-in first-out data buffer read phase is denoted as rd_clk; the selection signal sent by the programmable physical layer controller (PPC) is denoted as psel, the address signal is denoted as paddr, and the data signal is denoted as pwdata.
[0064] Among them, step S1, the method of the programmable physical layer controller sending the selection signal psel, the address signal paddr and the data signal pwdata includes: when the selection signal psel is high, the address addr of the read register is given in the address signal paddr, and the data data to be written is given in the data signal pwdata.
[0065] In a specific embodiment, if Figure 6 As shown, when the selection signal psel is high, addresses A1, A2 and A3 are respectively given in the address signal paddr, and correspondingly, data D1, D2 and D3 are given in the data signal pwdata.
[0066] In this embodiment, in step S2, the selection signal, the address signal and the data signal arrive at the physical layer via the physical interface module, wherein, in order to improve transmission efficiency, the selection signal arrives at the physical layer in parallel.
[0067] Further, in this embodiment, in step S3, the current byte module is selected according to the selection signal, and the address signal and the data signal are sent to the current byte module. Specifically, when the selection signal psel is high, the corresponding byte module is selected. The address signal paddr and the data signal pwdata are sent to the write register of the current byte module.
[0068] And, in this embodiment, in step S4, the current byte module performs a write operation on the address signal and the data signal to perform a method for data transmission, including:
[0069] S41, the write register performs tap synchronization on the address signal and the data signal, and sends the synchronized address signal and the data signal to the asynchronous first-in first-out data buffer.
[0070] Specifically, in this embodiment, first, the write register performs beat synchronization on the address signal and the data signal; then, the synchronized address signal and the data signal are combined in a high address, low data manner to obtain a combined signal; finally, the combined signal is sent to the asynchronous first-in first-out data buffer. In this way, not only can the corresponding relationship between the address and the data be guaranteed, but also the data transmission efficiency can be improved.
[0071] like Figure 6 As shown, the selection signal, address signal and data signal transmitted by the physical interface module PIB have a certain delay when arriving at the write register compared with the selection signal, address signal and data signal sent by the programmable physical layer controller. In this embodiment, the selection signal received by the write register is recorded as psel_dly, the address signal is recorded as paddr_dly, and the data signal is recorded as pwdata_dly. After the write register is synchronized, the address signal paddr_dly and the data signal pwdata_dly are strictly aligned and synchronized, thereby ensuring the accuracy of the corresponding relationship between data and address.
[0072] S42, the asynchronous first-in first-out data buffer uses the selection signal as a write enable signal and stores the synchronized address signal and data signal according to the selection signal.
[0073] Specifically, in this embodiment, the write enable signal of the asynchronous first-in first-out data buffer is denoted as wr_en. Figure 6 As shown, the write enable signal wr_en is consistent with the selection signal psel_dly received by the write register. At this time, according to the selection signal psel_dly, the synchronized address signal and data signal are stored.
[0074] Preferably, in order to ensure the correct correspondence between data and address and facilitate the subsequent reading of address and data, in this embodiment, the asynchronous first-in first-out data buffer stores the synchronized address signal and data signal in the same address space. Of course, since the synchronized address signal and data signal have been combined to obtain a combined signal during the tapping synchronization process of the write register, the asynchronous first-in first-out data buffer can directly store the combined signal wrdata according to the selection signal.
[0075] S43, the data selector reads the address and data from the address signal and data signal stored in the asynchronous first-in first-out data buffer, and writes the data into the read register corresponding to the address.
[0076] Specifically, in this embodiment, first, the data selector determines whether the asynchronous first-in-first-out data buffer is empty; if the asynchronous first-in-first-out data buffer is not empty, the address and data stored in the asynchronous first-in-first-out data buffer are read out. If the asynchronous first-in-first-out data buffer previously stored a combination signal, then the combined data (combining the address and data) in the combination signal is also read out at this time. Generally, it takes about 3 clock cycles from detecting that the asynchronous first-in-first-out data buffer is not empty to starting to read the data in the asynchronous first-in-first-out data buffer.
[0077] Then, the read combined data is parsed to separate the address and data. Finally, the read address is compared with the address of the read register; if the read address is consistent with the address of the read register, the read data is written into the read register. By comparing the read address with the address of the read register, the read register for storing data can be selected, so that different read registers can be used to store different data, thereby improving the efficiency of data transmission.
[0078] like Figure 6 As shown, 3 clock cycles after the write enable signal is invalid (data writing to the asynchronous first-in first-out data buffer is completed), the read enable signal rd_en of the asynchronous first-in first-out data buffer is valid, and the data rddata stored in the asynchronous first-in first-out data buffer is read out.
[0079] Preferably, in this embodiment, in step S4, the current byte module performs a write operation on the address signal and the data signal to perform data transmission, and the method further includes:
[0080] S44, the programmable physical layer controller sends a delayed coding signal; the delayed coding signal reaches the physical layer via the physical interface module; the delay unit confirms the delay time according to the delayed coding signal; according to the delay time, the data output by the read register is delayed and then output.
[0081] The FPGA-based DDR physical layer interface circuit and control method thereof provided in this embodiment delay the coding signal between the programmable physical layer controller (PPC) and the physical layer (PHY) in parallel, thereby effectively reducing the number of interface signal lines, thereby facilitating the reduction of the use of the physical interface module (PIB) and reducing the difficulty of wiring.
[0082] The FPGA-based DDR physical layer interface circuit and control method thereof provided in this embodiment can realize data transmission without handshaking, and can complete sequential transmission in only one clock cycle, thereby effectively improving transmission efficiency.
[0083] In the FPGA-based DDR physical layer interface circuit and control method thereof provided in this embodiment, the number and maximum width of registers in the byte module and the maximum number of delay units affect the address width and data width of the transmission. Therefore, the bit width of the address and data can be flexibly configured according to the specific circumstances of the registers and delay units. Of course, the design of the registers and delay units can also be confirmed according to the actual transmission requirements of the address and data, thereby increasing the portability and scalability of the solution.
[0084] The FPGA-based DDR physical layer interface circuit and control method thereof provided in this embodiment confirm the byte module through the selection signal sent by the programmable physical layer controller, thereby reducing the difficulty of implementing the arbitration circuit in the programmable physical layer controller and reducing the hardware cost.
[0085] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other. In addition, the different parts between the various embodiments can also be used in combination with each other, and the present invention is not limited to this.
[0086] The FPGA-based DDR physical layer interface circuit and control method thereof provided in this embodiment include a programmable physical layer controller, a physical interface module and a physical layer, wherein the physical layer includes multiple byte modules; the programmable physical layer controller and all the byte modules use the same clock; the programmable physical layer controller sends a transmission signal to the physical layer through the physical interface module to regulate the write operation of each byte module, and the transmission signal includes a selection signal, an address signal and a data signal. In this way, data is transmitted from the programmable physical layer controller to the physical layer in a unidirectional manner, thereby not only eliminating the interface signal line transmitted from the physical layer to the programmable physical layer controller, but also improving the data transmission efficiency; at the same time, the programmable physical layer controller and the byte module use the same clock, and some control signals are driven by the internal physical layer instead, which not only reduces the interface signal lines required for driving, but also improves the data transmission efficiency, solving the problem of large number of existing DDR physical layer interface signal lines and low transmission efficiency.
[0087] The above description is only a description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the claims.
Claims
1. A DDR physical layer interface circuit based on FPGA, It is characterized in that It comprises a programmable physical layer controller, a physical interface module and a physical layer, wherein the physical layer comprises a plurality of byte modules, wherein the byte modules comprise a write register, an asynchronous first-in first-out data buffer, a data selector and a read register; the write register is used to synchronize and temporarily store an address signal and a data signal according to a selection signal; the asynchronous first-in first-out data buffer is used to store the synchronized address signal and the data signal; the data selector is used to read out the address and data stored in the asynchronous first-in first-out data buffer, and parse the read address to input the data into the read register according to the parsing result; The read register is used to temporarily store the data sent by the data selector; the programmable physical layer controller and all the byte modules use the same clock; the programmable physical layer controller sends a transmission signal to the physical layer in a unidirectional transmission manner through the physical interface module to regulate the write operation of each byte module, and the transmission signal includes the selection signal, the address signal and the data signal.
2. The FPGA-based DDR physical layer interface circuit according to claim 1, It is characterized in that The byte module also includes a delay unit; the programmable physical layer controller also sends a delay coding signal to the physical layer through the physical interface module; the delay unit is used to confirm the delay time of the data output by the read register according to the delay coding signal.
3. The FPGA-based DDR physical layer interface circuit according to claim 2, It is characterized in that Each of the byte modules includes a plurality of the write registers, and the output ends of all the write registers are connected to the asynchronous first-in first-out data buffer; each of the byte modules includes a plurality of the read registers, and the output ends of the data selector are connected to each of the read registers; each of the byte modules includes a plurality of the delay units, the number of the delay units is consistent with the number of the read registers, and the output end of each of the read registers is connected to a delay unit.
4. A control method for a DDR physical layer interface circuit based on FPGA, applied to the DDR physical layer interface circuit based on FPGA as claimed in any one of claims 1 to 3, It is characterized in that The control method comprises: The programmable physical layer controller sends down selection signals, address signals and data signals; The selection signal, address signal and data signal reach the physical layer via the physical interface module; Select the current byte module according to the selection signal, and send the address signal and data signal to the current byte module; The current byte module performs a write operation on the address signal and the data signal for data transmission.
5. The control method of the FPGA-based DDR physical layer interface circuit according to claim 4, It is characterized in that The byte module includes a read register; the method for the programmable physical layer controller to send a selection signal, an address signal and a data signal includes: when the selection signal is high, the address of the read register is given in the address signal, and the data to be written is given in the data signal.
6. The control method of the FPGA-based DDR physical layer interface circuit according to claim 4, It is characterized in that The selection signal reaches the physical layer in parallel; when the selection signal is high, the corresponding byte module is selected.
7. The control method of the FPGA-based DDR physical layer interface circuit according to claim 4, It is characterized in that The byte module includes a write register, an asynchronous first-in first-out data buffer, a data selector and a read register; the method for the current byte module to perform a write operation on an address signal and a data signal includes: The write register performs beat synchronization on the address signal and the data signal, and sends the synchronized address signal and the data signal to the asynchronous first-in first-out data buffer; The asynchronous first-in first-out data buffer uses the selection signal as a write enable signal and stores the synchronized address signal and data signal according to the selection signal; The data selector reads the address and data from the address signal and the data signal stored in the asynchronous first-in first-out data buffer, and writes the data into the read register corresponding to the address.
8. The control method of the FPGA-based DDR physical layer interface circuit according to claim 7, It is characterized in that The method of performing beat synchronization on the address signal and the data signal by the write register and sending the synchronized address signal and the data signal to the asynchronous first-in first-out data buffer comprises: The write register performs tap synchronization on the address signal and data signal; Combining the synchronized address signal and data signal in a high address, low data manner to obtain a combined signal; Feed the combined signal into an asynchronous first-in, first-out data buffer.
9. The control method of the FPGA-based DDR physical layer interface circuit according to claim 7, It is characterized in that The asynchronous first-in first-out data buffer stores the synchronized address signal and the data signal in the same address space.
10. The control method of the FPGA-based DDR physical layer interface circuit according to claim 7, It is characterized in that The method of the data selector reading the address and data from the address signal and the data signal stored in the asynchronous first-in first-out data buffer and writing the data into the read register corresponding to the address includes: The data selector determines whether the asynchronous first-in first-out data buffer is empty; If the asynchronous first-in first-out data buffer is not empty, the address and data stored in the asynchronous first-in first-out data buffer are read out; Compare the read address with the address of the read register; If the read address is consistent with the address of the read register, the read data is written into the read register.
11. The control method of the FPGA-based DDR physical layer interface circuit according to claim 7, It is characterized in that The byte module further includes a delay unit; the method in which the current byte module performs a write operation on the address signal and the data signal further includes: The programmable physical layer controller sends down a delay coding signal; The delayed coded signal reaches the physical layer via the physical interface module; The delay unit confirms the delay time according to the delay coding signal; According to the delay time, the data output by the read register is delayed and then output.
