Peripheral interface-oriented customized logic circuit and design method

By designing custom logic circuits for peripheral interfaces, the problem of high integration complexity of high-speed peripheral interface IPs in SoC chips is solved, achieving efficient and flexible integration and configuration, and reducing design complexity and cycle time.

CN120892391AActive Publication Date: 2025-11-04NAT INNOVATION INST OF DEFENSE TECH PLA ACAD OF MILITARY SCI
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202511419155.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-30
Publication Date
2025-11-04
Estimated Expiration
2045-09-30

AI Technical Summary

Technical Problem

In SoC chip design, as the scale of high-speed peripheral interface circuit IP increases, the integration complexity of SoC chip increases, affecting design efficiency and performance. Existing technologies are difficult to integrate and flexibly configure high-speed peripheral interface IP efficiently.

Method used

Design a custom logic circuit for peripheral interfaces, including a clock generation module, a synchronous reset module, a custom register read/write module, and a parity check module. By generating appropriate clock and reset signals, connecting detection and control signals to the status register, and comparing parity check codes, the system achieves efficient integration and flexible configuration of SoC chips.

Benefits of technology

It improves the efficiency and flexibility of integrating high-speed peripheral interface IPs into SoC chips, reduces chip design complexity, saves design cycle time, and shortens integration time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120892391A_ABST
    Figure CN120892391A_ABST
Patent Text Reader

Abstract

The invention relates to the field of integrated circuits and the field of chip design, and provides a customized logic circuit facing a peripheral interface and a design method.The circuit comprises a clock generation module used for generating clock signals needed by different peripheral interface IPs according to a main clock signal; the synchronous reset module is used for generating reset signals required by different peripheral interface IPs according to the main reset signal; the self-defined register read-write module is used for connecting a detection signal of the peripheral interface IP to a state register, reading the state register through a bus, connecting a control signal of the peripheral interface IP to a register to be configured, and performing configuration operation on the register in the peripheral interface IP through the bus; and the parity check module is used for generating parity check codes on the data links at the output and input positions of the peripheral interface and comparing the parity check codes, so that the chip design period can be saved, and the integration time of the high-speed peripheral interface IP of the SoC chip is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of integrated circuits and chip design, in particular to a customized logic circuit for peripheral interface and a design method. BACKGROUND

[0002] In the process of SoC (System on Chip) chip design, it is necessary to integrate the controller circuit of high-speed peripheral interface IP (Intellectual Property, refers to the "design module" of DDR controller or PHY, which is integrated into SoC as intellectual property IP), such as DDR SDRAM (Double Data Rate Synchronous Dynamic Random Access Memory), PCIE (Peripheral Component Interconnect Express) and other device controllers.

[0003] With the continuous improvement of the performance of SoC chip processor core, the demand for peripheral access rate also gradually increases. With the continuous development of high-speed peripheral interface circuit, the mainstream peripheral interface circuit, such as DDR interface, PCIE interface, etc., gradually forms an IP product with perfect function and high performance. In the process of SoC chip design, it is necessary to integrate high-speed peripheral interface circuit IP. With the increase of the scale of SoC chip and the scale of high-speed peripheral interface circuit IP, the complexity of SoC chip integrated high-speed peripheral interface circuit IP also increases. The design efficiency of interface circuit IP affects the whole SoC chip design and process, and also affects the performance of the chip. SUMMARY

[0004] In view of the problems existing in the prior art, the present application provides a customized logic circuit for peripheral interface and a design method.

[0005] The present application provides a customized logic circuit for peripheral interface, which comprises a clock generation module, a synchronous reset module, a self-defined register read-write module and a parity check module, wherein: The clock generation module is used for generating clock signals required by different peripheral interface IPs according to the input main clock signal; The synchronous reset module is used for generating reset signals required by different peripheral interface IPs according to the input main reset signal; The self-defined register read-write module is used for connecting the detection signal of the peripheral interface IP to the state register, so that the chip processor core can read the state register through the bus, and connecting the control signal of the peripheral interface IP to the to-be-configured register, so that the chip processor core can perform configuration operation on the register inside the peripheral interface IP through the bus. The parity check module is used for generating parity check codes on the data link at the output and input of the peripheral interface IP, and comparing the parity check codes.

[0006] According to the application, the clock generation module is specifically used for: acquiring a plurality of main clock signals inputted; according to preset clock frequency requirements, accessing the clock enable signal generated by the self-defined register read-write module; according to the clock enable signal, selecting the required main clock signal from the plurality of main clock signals; according to the required main clock signal, generating the clock signal required by the different peripheral interface IP.

[0007] According to the application, the synchronization reset module is specifically used for: acquiring a main reset signal inputted; according to preset reset requirements, accessing the reset enable signal generated by the self-defined register read-write module; according to the reset enable signal, the clock signal required by the different peripheral interface IP and the main reset signal, generating the reset signal required by the different peripheral interface IP.

[0008] According to the application, the self-defined register read-write module is specifically used for: acquiring the peripheral interface IP identifier to be detected; according to the correspondence between the pre-stored peripheral interface IP identifier and the state register label, determining the state register to be read; reading the state information of the peripheral interface IP to be detected from the state register to be read through the bus.

[0009] According to the application, the self-defined register read-write module is specifically used for: acquiring the register parameter information corresponding to the control signal type to be configured; determining the label of the to-be-configured register inside the peripheral interface IP; performing parameter configuration on the register parameter information in the register corresponding to the label through the bus.

[0010] According to the application, a customized logic circuit for peripheral interface is provided, the parity check module comprises a parity check generation module and a parity check checking module, wherein: The parity check generation module is configured to generate a first parity check code on a data link at an input of the peripheral interface IP. The parity check checking module is configured to generate a second parity check code on a data link at an output of the peripheral interface IP, and compare the first parity check code with the second parity check code.

[0011] The application further provides a design method of the customized logic circuit for peripheral interface, comprising: According to an input main clock signal, a clock signal required for adapting different peripheral interface IPs is generated. According to an input main reset signal, a reset signal required for adapting different peripheral interface IPs is generated. The detection signal of the peripheral interface IP is connected to a state register, so that the chip processor core can read the state register through a bus, and the control signal of the peripheral interface IP is connected to a to-be-configured register, so that the chip processor core can perform a configuration operation on the register inside the peripheral interface IP through the bus. Parity check codes are generated on data links at the output and the input of the peripheral interface IP, and the parity check codes are compared.

[0012] The application further provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned design methods of the customized logic circuit for peripheral interface when executing the program.

[0013] The application further provides a non-transitory computer readable storage medium having a computer program stored thereon, wherein the computer program is executable by a processor to implement any of the above-mentioned design methods of the customized logic circuit for peripheral interface.

[0014] The application further provides a computer program product comprising a computer program, wherein the computer program is executable by a processor to implement any of the above-mentioned design methods of the customized logic circuit for peripheral interface.

[0015] The application provides a customized logic circuit for peripheral interface and a design method, which generates clock signals required by different peripheral interface IPs according to a main clock signal, generates reset signals required by different peripheral interface IPs according to a main reset signal, connects detection signals of the peripheral interface IPs to a state register, enables a chip processor core to read the state register through a bus, connects control signals of the peripheral interface IPs to a to-be-configured register, enables the chip processor core to configure and operate the register inside the peripheral interface IP through the bus, generates parity check codes on data links at outputs and inputs of the peripheral interface IP, and compares the parity check codes, so that the SoC chip can efficiently integrate high-speed peripheral interface IPs, improve flexibility of the SoC chip in integrating the high-speed peripheral interface IPs, reduce chip design complexity, save chip design period, and accelerate integration time of the high-speed peripheral interface IPs of the SoC chip. BRIEF DESCRIPTION OF DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are some embodiments of the application, and other drawings can be obtained by those skilled in the art without any creative effort on the basis of these drawings.

[0017] Figure 1 is a structural schematic diagram of the customized logic circuit for peripheral interface provided by the application.

[0018] Figure 2 is a structural schematic diagram of the clock generation module provided by the application.

[0019] Figure 3 is a structural schematic diagram of the synchronous reset module provided by the application.

[0020] Figure 4 is a self-defined register read-write logic flowchart provided by the application.

[0021] Figure 5 is a structural schematic diagram of the self-defined register read-write module provided by the application.

[0022] Figure 6 is a parity check logic flowchart provided by the application.

[0023] Figure 7 is a structural schematic diagram of the parity check module provided by the application.

[0024] Figure 8 is a flowchart of the customized logic circuit design method for peripheral interface provided by the application.

[0025] Figure 9 is a structural schematic diagram of an electronic device provided by the present application. DETAILED DESCRIPTION

[0026] In order to make the objects, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be described clearly and completely below with reference to the drawings in the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present application.

[0027] The customized logic circuit and design method for peripheral interface of the present application will be described below. Figures 1-9 The customized logic circuit and design method for peripheral interface of the present application will be described below.

[0028] Figure 1 A structural schematic diagram of a customized logic circuit for peripheral interface provided by the present application is shown in FIG. 1, which comprises a clock generation module 11, a synchronous reset module 12, a self-defined register read-write module 13 and a parity check module 14, wherein: Figure 1 The clock generation module is used to generate clock signals required by different peripheral interface IPs according to inputted main clock signals; The synchronous reset module is used to generate reset signals required by different peripheral interface IPs according to inputted main reset signals; The self-defined register read-write module is used to connect detection signals of the peripheral interface IP to a state register, so that a chip processor core can read the state register through a bus, and connect control signals of the peripheral interface IP to a to-be-configured register, so that the chip processor core can perform configuration operation on the register inside the peripheral interface IP through the bus; The parity check module is used to generate parity check codes on data links at the output and input of the peripheral interface IP, and compare the parity check codes.

[0029] ​To this end, it is necessary to note that in the process of SoC (System on Chip, System on Chip) chip design, the controller circuit of devices such as DDR SDRAM (Double Data Rate Synchronous Dynamic Random Access Memory, Double Data Rate Synchronous Dynamic Random Access Memory), PCIE (Peripheral Component Interconnect Express, Peripheral Component Interconnect Express Bus) and the like needs to be integrated with high-speed peripheral interface IP (Intellectual Property, Intellectual Property, refers to the "design module" of the DDR controller or PHY, which is integrated into the SoC as an intellectual property IP).

[0030] With the continuous improvement of the performance of the SoC chip processor core, the demand for peripheral access rate is gradually increasing. With the continuous development of high-speed peripheral interface circuit, the mainstream peripheral interface circuit, such as DDR interface, PCIE interface, etc., gradually forms an IP product with perfect function and high performance. In the process of SoC chip design, it is necessary to integrate high-speed peripheral interface circuit IP. With the increase of the scale of SoC chip and high-speed peripheral interface circuit IP, the complexity of SoC chip integrated high-speed peripheral interface circuit IP also increases. The design efficiency of interface circuit IP affects the entire SoC chip design and process, and also affects the performance of the chip.

[0031] Therefore, the design of the customized logic circuit for high-speed peripheral interface IP can improve the efficiency and flexibility of the SoC chip integrated high-speed peripheral controller circuit, reduce the chip circuit design time overhead, and achieve the purpose of reducing the entire SoC chip design cycle, and provide a theoretical basis for the design of high-speed peripheral interface circuit of SoC chip.

[0032] In the present application, the customized logic circuit for peripheral interface needs to accelerate the integration process of SoC chip high-speed peripheral interface IP, and can also improve the reliability of data transmission between SoC chip and peripheral components. However, the SoC chip needs to integrate multiple high-speed peripheral interface IPs. Different high-speed peripheral interface IPs, the execution action of the business data processed by each of them needs to be closely related to the clock signal. Therefore, the customized logic circuit for peripheral interface includes a clock generation module, which can generate the clock signal required by each high-speed peripheral interface IP through PLL locking of the main clock, and can realize the integration effect of SoC chip high-speed peripheral interface IP in clock synchronization.

[0033] In the present application, in the operation of the programmable chip electronic device, the program may run off or jump, and the hardware specific interface can be manually or automatically sent to the software to restore the operation to a specific program segment, which is the reset process, and in this process, the signal sent to the hardware specific interface by manual or automatic method is the reset signal. The synchronous reset signal refers to the signal generated by resetting the flip-flop when the clock active edge comes; the asynchronous reset signal does not depend on the clock signal, and is only generated when the system reset is valid. Therefore, the customized logic circuit facing the peripheral interface includes a synchronous reset module, which generates reset signals required by different peripheral interface IPs according to the input main reset signal, and can realize the integration effect of the high-speed peripheral interface IP of the SoC chip in synchronous reset.

[0034] In the present application, according to the needs of the user, the detection signal of the high-speed peripheral interface IP is connected to the state register, so that the chip processor core can read the state register through the AHB or APB AMBA configuration bus, and the state information in the self-defined state register includes clock enable, reset, parity enable, parity interrupt, ECC interrupt, initialization interrupt, low-power interrupt and other state signals. In addition, the chip processor core can also configure and operate the registers in the peripheral interface IP through the AHB or APB bus.

[0035] In the present application, the parity module can improve the reliability of data transmission between the SoC chip and the peripheral components by generating parity codes on the data link at the output and input of the interface IP and realizing the comparison function of the parity codes.

[0036] In the further circuit of the above-mentioned circuit, the clock generation module is specifically used for: obtaining a plurality of input main clock signals; according to the preset clock frequency requirement, accessing the clock enable signal generated by the self-defined register read-write module; according to the clock enable signal, selecting the required main clock signal from the plurality of main clock signals; according to the required main clock signal, generating a clock signal required by different peripheral interface IPs.

[0037] To this end, it should be noted that the clock signal can be divided into high-speed clock signal and low-speed clock signal, high-speed clock signal refers to the clock signal with higher frequency. In digital electronic system, clock signal is like a metronome, controlling the rhythm of various operations in the circuit. The frequency of high-speed clock signal is usually between tens of megahertz (MHz) to thousands of megahertz (GHz). For example, in modern high-performance computers, the clock frequency of processor can reach 3-5GHz or even higher. This high-speed clock signal allows the processor to process a large number of instructions and data operations in a unit of time. The frequency of low-speed clock signal is relatively low, usually between several hertz (Hz) to several megahertz (MHz). It is mainly used in some circuits or devices that do not require high speed but require stable timing control. For this purpose, the required clock frequency requirement can be preconfigured. Whether it is high-speed or low-speed, in the clock generation module, a plurality of main clock signals are configured in advance, such as based on one of the main clock signals, different high-speed clock signals can be obtained, and based on another main clock signal, different low-speed clock signals can be obtained. Therefore, according to the preset clock frequency requirement, the clock enable signal generated by the custom register read-write module is accessed, and according to the clock enable signal, the required main clock signal is selected from the plurality of main clock signals, that is, according to the clock enable signal, one of the plurality of main clock signals can play a role in the clock generation module, and then according to the required main clock signal, the clock signal with different frequencies required by different peripheral interface IP is generated.

[0038] As Figure 2is a clock generation module in the present application, and clk and dft_bypass_clk can be regarded as various master clock signals in the figure. Different interface IP clock signals are generated by the master clock clk, such as axi0_clk, axi1_clk, axi2_clk, axi3_clk, clk_d2, clk_ctrl_sync, reghclk. Among them, axi0_clk, axi1_clk, axi2_clk, axi3_clk are used for axi1 channel, axi2 channel, axi3 channel, axi4 channel, and are used for axi control signal and read-write data transmission. clk_d2 is a clock for DDR controller. clk_ctrl_sync is a clock for DDR PHY (physical layer). reghclk is a clock for AHB bus data transmission, address transmission and control signal transmission. axi0_clken, axi1_clken, axi2_clken, axi3_clken, ctrl_clken, phy_clken, ahb_clken are clock enable signals generated by the custom register read-write module, and axi0_clken, axi1_clken, axi2_clken, axi3_clken, ctrl_clken, phy_clken, ahb_clken signals are assigned 1'b1. When When scanmode is 1'b1, dft_bypass_clk is passed through ckbuf to form axi0_clk, axi1_clk, axi2_clk, axi3_clk, clk_d2, clk_ctrl_sync, reghclk clock signals and the frequency is consistent with the frequency of dft_bypass_clk. dft_bypass_clk is a low-speed scan clock.

[0039] In the further circuit of the above-mentioned circuit, the synchronous reset module is specifically used for: obtaining an input master reset signal; According to the preset reset requirement, the reset enable signal generated by the custom register read-write module is connected; According to the reset enable signal, the clock signal required by the different peripheral interface IP and the master reset signal, the reset signal required by the different peripheral interface IP is generated.

[0040] To this end, it should be noted that, see Figure 3 is the reset synchronization module in the present application, which generates corresponding reset signals such as regHRESETn, Sync_rst_n_ctrl, Sync_rst_n_phy, axi0_ARESETn, axi1_ARESETn, axi2_ARESETn, axi3_ARESETn according to the clock frequency of different interfaces based on rst_n. Among them, axi0_ARESETn, axi1_ARESETn, axi2_ARESETn, axi3_ARESETn are used for the reset of axi 1 channel, axi 2 channel, axi 3 channel, axi 4 channel. Sync_rst_n_phy is used for the reset of DDR PHY (physical layer). Sync_rst_n_ctrl is used for the reset of DDR controller. regHRESETn is used for the reset of AHB / APB configuration bus of DDR controller and custom register read-write module. The user_ddr_ctrl_rst_n and user_axi_rst_n signals are reset enable signals generated by the custom register read-write module. When regHRESET is 1’b0, the user_ddr_ctrl_rst_n and user_axi_rst_n signals are assigned 1’b1. rst_n and user_ddr_ctrl_rst_n are ANDed, and the resulting signal is output through a two-stage flip-flop structure. If the clock signal of the flip-flop is clk, the output signal is Sync_rst_n_ctrl; if the clock signal of the flip-flop is phy_clk, the output signal is Sync_rst_n_phy. rst_n and user_axi_rst_n are ANDed, and the resulting signal is output through a two-stage flip-flop structure. The clock signal of the flip-flop is , and the output signal is The reset signal regHRESETn of the AHB / APB bus is clocked by ahb_clk, the reset signal is rst_n, and rst_n is output through two-stage flip-flop, and the output signal is regHRESETn.

[0041] In further circuits of the above-mentioned circuits, the custom register read-write module is specifically used for: obtaining the peripheral interface IP identifier to be detected; determining the state register to be read according to the correspondence between the pre-stored peripheral interface IP identifier and the state register label; reading the state information of the peripheral interface IP to be detected from the state register to be read through the bus; Obtaining register parameter information corresponding to the control signal type to be configured; Determining the label of the register to be configured inside the IP; Configuring parameters on the register corresponding to the label through the bus.

[0042] To this end, it should be noted that, Figure 4 is the custom register read-write logic in the example of the present application, including steps S41 to S410, which will be described below.

[0043] Step S41, after generating the ahb_op_en signal, the value of the regHWRITE signal is judged.

[0044] Step S42, the ahb_rd_en signal is generated.

[0045] Step S43, the value of the custom_sel signal is judged.

[0046] Step S44, the custom register is read according to the corresponding register number.

[0047] Step S45, the ahb_wr_en signal is assigned a value.

[0048] Step S46, the regHWREADY signal is judged.

[0049] Step S47, the ahb_wr_user_reg_en signal is assigned a value.

[0050] Step S48, the register number and the register type are defined.

[0051] Step S49, the parameters are written into the register.

[0052] Step S410, the ahb_wr_user_reg_en signal is assigned a value.

[0053] Further, in step S41, the value of the regHWRITE signal is judged to be 1’b0 or 1’b1. When the value of the regHWRITE signal is 1’b0, the next step enters step S42. When the value of the regHWRITE signal is 1’b1, the next step enters step S45.

[0054] Further, in step S42, the regHWRITE signal is first negated, and then the obtained signal is ANDed with the ahb_op_en signal, and the result is the ahb_rd_en signal. Therefore, the ahb_rd_en signal is assigned a value of 1’b1.

[0055] Further, it is judged in step S43 whether the value of the custom_sel signal is 1'b0 or 1'b1. When the value of the custom_sel signal is 1'b1, the next step goes to step S44.

[0056] Further, in step S44, the value in the custom register is read by matching the register number.

[0057] Further, in step S45, the ahb_op_en is ANDed with the regHWRITE to obtain the ahb_wr_en signal, and thus the ahb_wr_en signal is assigned a value of 1'b1.

[0058] Further, in step S46, it is judged whether the value of the regHREADY signal is equal to 1'b1. When the value of the regHREADY signal is equal to 1'b1, the next step goes to step S47. When the value of the regHREADY signal is equal to 1'b0, the next step goes to step S410.

[0059] Further, in step S47, the ahb_wr_en signal is ANDed with the regHREADY signal to obtain the ahb_wr_user_reg_en signal, and thus the ahb_wr_user_reg_en signal is assigned a value of 1'b1.

[0060] Further, in step S48, the register number and the register type are defined. The register number is used for searching by the address of the regHADDR. The register type defines the register parameter data and the bit corresponding to the parameter.

[0061] Further, in step S49, the parameter is written into the corresponding register by the regHWDATA signal in the AHB / APB bus.

[0062] Further, in step S410, because it is judged in step S46 that the value of the regHREADY signal is 1'b0, the ahb_wr_en is ANDed with the regHREADY to obtain the ahb_wr_user_reg_en signal which is assigned a value of 1'b0.

[0063] Referring to Figure 5 , Figure 5Is the structure diagram of custom register read-write module in the present application, wherein the custom_sel signal is generated by the TEST layer and transmitted to the custom_ahb module through the Wrapper (code or module used to describe the packaging of existing functions, interfaces, libraries or systems). As can be seen from steps S43 and S44, the function of the custom_sel signal is to distinguish whether the value of the custom register is read. The ahb_op_en signal is obtained by the combination logic of the regHSELx, regHREADY and regHTRANS signals on the AHB bus. The regHCLK is the working clock of the AHB bus. The regHRESETn is the reset signal of the AHB bus. The regHADDR is the address bus of the AHB bus. The regHWDATA is the write data bus of the AHB bus. The regHRDATA is the read data bus of the AHB bus. The register stack includes a plurality of custom designed registers. The state information in the custom register includes clock enable, reset, parity enable, parity interrupt, ECC interrupt, initialization interrupt, low power interrupt and the like.

[0064] In further circuits of the above circuit, the parity module comprises a parity generation module and a parity check module, wherein: The parity generation module is configured to generate a first parity code on a data link at an input of the peripheral interface IP; The parity check module is configured to generate a second parity code on a data link at an output of the peripheral interface IP, and to compare the first parity code and the second parity code.

[0065] For this purpose, it is noted that reference is made to Figure 6 , Figure 6 The parity logic in the present application comprises steps S61 to S69, which are described as follows.

[0066] Step S61, it is judged whether the parity enable signal is sent.

[0067] Step S62, the parity function is started.

[0068] Step S63, the parity function is closed.

[0069] Step S64, it is judged whether the write data, address signal and CMD signal are transmitted.

[0070] Step S65, the parity Gen module generates parity data according to the W, AW and AR channels.

[0071] Step S66, the Parity Check module generates parity data according to the R, B channel.

[0072] Step S67, determine whether the parity data generated by the Parity Gen and Parity Check modules are consistent.

[0073] Step S68, no parity error is generated on the AXI path.

[0074] Step S69, parity error is generated on the AXI path.

[0075] Further, in step S61, determine whether the custom_ahb (custom AHB) sends a parity enable signal, which is encapsulated in a custom register. When the parity enable signal is detected, the next step enters step S62. When the parity enable signal is not detected, the next step enters step S63.

[0076] Further, in step S62, the parity function is enabled, and the parity on the AXI path is enabled.

[0077] Further, in step S63, the parity function is disabled, and the parity on the AXI path is disabled.

[0078] Further, in step S64, determine whether the write data, address signal, and CMD signal are transmitted. When it is detected that the write data, address signal, and CMD signal are transmitted, the next step enters step S65. When it is detected that the write data, address signal, and CMD signal are not transmitted, the next step enters step S64.

[0079] Further, in step S65, the Parity Gen module generates parity data according to the W, AW, and B channels, and sends the obtained parity data to the Parity Check module, which is compared in step S67.

[0080] Further, in step S66, the Parity Check module generates parity data according to the R, AR channel. Enter step S67 to compare the parity data.

[0081] Further, in step S67, parity check data generated by the Parity Gen module and the Parity Check module are compared. If the parity check data are consistent, the next step enters step S68. If the parity check data are inconsistent, the next step enters step S69.

[0082] Further, in step S68, data on the AXI path is correct.

[0083] Further, in step S69, parity error is generated on the AXI path, and the generated error is sent to the custom_ahb module.

[0084] Referring to Figure 7 , Figure 7 is a structure diagram of the parity check module in the present application. Write data, address signals and control signals are sent through the TEST layer. In the Wrapper layer, a Parity enable signal is generated by the Custom_ahb module and transmitted to the Parity Gen module and the Parity Check module. Data, address, control signals are transmitted to the Parity Gen module and the Parity Check module, respectively. The Parity Gen module and the Parity Check module generate parity codes, respectively, and the Parity Gen module transmits the generated parity codes to the Parity Check module for comparison. If the parity codes are inconsistent, a Parity error signal is generated and uploaded to the Custom_ahb module. Data is transmitted to the Parity Gen module and the Parity Check module again through the DDR IP, and the same operation is performed as before the data is transmitted to the DDR IP. Finally, read data and control signals are output. This module performs parity check twice at the entrance and exit of the data, respectively, to ensure the correctness of data transmission on the AXI path.

[0085] The application provides a customized logic circuit for peripheral interface, which can efficiently integrate high-speed peripheral interface IP of an SoC chip and improve flexibility of the SoC chip in integrating the high-speed peripheral interface IP, thereby reducing complexity of chip design, saving chip design period and accelerating integration time of the high-speed peripheral interface IP of the SoC chip.

[0086] The customized logic circuit design method for peripheral interface provided by the application is described below, and the customized logic circuit design method for peripheral interface described below can be referred to each other in correspondence with the customized logic circuit for peripheral interface described above.

[0087] Figure 8 A flowchart of a customized logic circuit design method for peripheral interface provided by the application is shown, referring to Figure 8 The device comprises the following steps: Step 81, generating a clock signal required by different peripheral interface IPs according to an input main clock signal.

[0088] Step 82, generating a reset signal required by different peripheral interface IPs according to an input main reset signal.

[0089] Step 83, connecting detection signals of the peripheral interface IPs to a status register, so that a chip processor core can read the status register through a bus, and connecting control signals of the peripheral interface IPs to a to-be-configured register, so that the chip processor core can perform configuration operation on registers inside the peripheral interface IPs through the bus.

[0090] Step 84, generating parity check codes on data links at outputs and inputs of the peripheral interface IPs, and comparing the parity check codes.

[0091] Since the method of the embodiment of the application is the same as the principle of the above-mentioned embodiment system, more detailed explanation contents will not be repeated here.

[0092] The application provides a peripheral interface-oriented customized logic circuit design method, which comprises the following steps: generating a clock signal required by different peripheral interface IPs according to a main clock signal; generating a reset signal required by different peripheral interface IPs according to a main reset signal; connecting detection signals of the peripheral interface IPs to a state register, so that a chip processor core can read the state register through a bus; connecting control signals of the peripheral interface IPs to a to-be-configured register, so that the chip processor core can perform configuration operation on registers in the peripheral interface IPs through the bus; generating parity check codes on data links at outputs and inputs of the peripheral interface IPs, and comparing the parity check codes.

[0093] Figure 9 An example of a schematic diagram of a physical structure of an electronic device is shown in Figure 9 The electronic device can include a processor 91, a communications interface 92, a memory 93 and a communications bus 94, wherein the processor 91, the communications interface 92 and the memory 93 complete mutual communication through the communications bus 94. The processor 91 can call logical instructions in the memory 93 to execute a peripheral interface-oriented customized logic circuit design method, which comprises the following steps: generating a clock signal required by different peripheral interface IPs according to an input main clock signal; generating a reset signal required by different peripheral interface IPs according to an input main reset signal; connecting detection signals of the peripheral interface IPs to a state register, so that a chip processor core can read the state register through a bus; connecting control signals of the peripheral interface IPs to a to-be-configured register, so that the chip processor core can perform configuration operation on registers in the peripheral interface IPs through the bus; generating parity check codes on data links at outputs and inputs of the peripheral interface IPs, and comparing the parity check codes.

[0094] In addition, the logic instructions in the memory 93 described above can be realized in the form of a software function unit and sold or used as an independent product, and can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the parts that contribute to the prior art or parts of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0095] In another aspect, the present application also provides a computer program product, which comprises a computer program, the computer program can be stored on a non-transitory computer readable storage medium, and the computer program is executed by a processor, so that the computer can execute the customized logic circuit design method for peripheral interface provided by the above-mentioned methods, and the method comprises the following steps: generating a clock signal required for adapting different peripheral interface IPs according to an input main clock signal; generating a reset signal required for adapting different peripheral interface IPs according to an input main reset signal; connecting detection signals of the peripheral interface IPs to a state register, so that a chip processor core can read the state register through a bus, and connecting control signals of the peripheral interface IPs to a to-be-configured register, so that the chip processor core can perform configuration operation on the registers inside the peripheral interface IPs through the bus; generating parity check codes on data links at outputs and inputs of the peripheral interface IPs, and comparing the parity check codes.

[0096] In another aspect, the present application also provides a non-transitory computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the customized logic circuit design method for peripheral interface provided by the above-mentioned methods, and the method comprises the following steps: generating a clock signal required for adapting different peripheral interface IPs according to an input main clock signal; generating a reset signal required for adapting different peripheral interface IPs according to an input main reset signal; connecting detection signals of the peripheral interface IPs to a state register, so that a chip processor core can read the state register through a bus, and connecting control signals of the peripheral interface IPs to a to-be-configured register, so that the chip processor core can perform configuration operation on the registers inside the peripheral interface IPs through the bus; generating parity check codes on data links at outputs and inputs of the peripheral interface IPs, and comparing the parity check codes.

[0097] The device embodiments described above are merely illustrative, wherein the units described as separate components can or can not be physically separate, and the components displayed as units can or can not be physical units, i.e., can be located in one place, or can be distributed to multiple network units. Part or all of the modules can be selected to achieve the purposes of the embodiments according to actual needs. Those skilled in the art can understand and implement without creative labor.

[0098] Through the description of the above embodiments, those skilled in the art can clearly understand that the embodiments can be realized by means of software and the necessary general hardware platform, and of course can also be realized by hardware. Based on such understanding, the above technical solutions can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the methods described in each embodiment or some parts of the embodiments.

[0099] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A custom logic circuit for peripheral interfaces, characterized in that, It includes a clock generation module, a synchronous reset module, a custom register read / write module, and a parity check module, among which: The clock generation module is used to generate clock signals adapted to different peripheral interface IPs based on the input master clock signal. The synchronous reset module is used to generate reset signals adapted to different peripheral interface IPs based on the input master reset signal. A custom register read / write module is used to connect the detection signals of the peripheral interface IP to the status register, enabling the chip processor core to read the status register via the bus, and to connect the control signals of the peripheral interface IP to the register to be configured, enabling the chip processor core to perform configuration operations on the registers inside the peripheral interface IP via the bus. The parity check module is used to generate parity check codes on the data link at the output and input of the peripheral interface IP and to compare the parity check codes.

2. The custom logic circuit for peripheral interfaces according to claim 1, characterized in that, The clock generation module is specifically used for: Acquire multiple master clock signals from the input; According to the preset clock frequency requirements, the clock enable signal generated by the custom register read / write module is connected; Based on the clock enable signal, select the desired master clock signal from a variety of master clock signals; Based on the required master clock signal, generate clock signals adapted to different peripheral interface IPs.

3. The custom logic circuit for peripheral interfaces according to claim 1 or 2, characterized in that, The synchronous reset module is specifically used for: Obtain the input master reset signal; According to the preset reset requirements, the reset enable signal generated by the custom register read / write module is accessed; Based on the reset enable signal, the clock signal required to adapt to different peripheral interface IPs, and the main reset signal, a reset signal required to adapt to different peripheral interface IPs is generated.

4. The custom logic circuit for peripheral interfaces according to claim 3, characterized in that, The custom register read / write module is specifically used for: Obtain the IP address of the peripheral interface to be tested; Based on the pre-stored correspondence between peripheral interface IP identifiers and status register numbers, determine the status register to be read; The status information of the peripheral interface IP to be detected is read from the status register to be read via the bus.

5. The custom logic circuit for peripheral interfaces according to claim 4, characterized in that, The custom register read / write module is specifically used for: Obtain the register parameter information corresponding to the control signal type to be configured; Determine the label of the register to be configured inside the peripheral interface IP; The register parameter information is transmitted via the bus to the register corresponding to the label for parameter configuration.

6. The custom logic circuit for peripheral interfaces according to claim 5, characterized in that, The parity check module includes a parity check generation module and a parity check checking module, wherein: The parity generation module is used to generate a first parity check code on the data link at the input of the peripheral interface IP. The parity check module is used to generate a second parity check code on the data link at the output of the peripheral interface IP, and to compare the first parity check code with the second parity check code.

7. A method for designing custom logic circuits oriented towards peripheral interfaces, characterized in that, include: Based on the input master clock signal, generate clock signals required to adapt to different peripheral interface IPs; Based on the input master reset signal, generate the reset signal required to adapt to different peripheral interface IPs; Connect the detection signal of the peripheral interface IP to the status register so that the chip processor core can read the status register through the bus. Connect the control signal of the peripheral interface IP to the register to be configured so that the chip processor core can perform configuration operations on the registers inside the peripheral interface IP through the bus. Parity check codes are generated on the data links at the output and input of the peripheral interface IP, and then the parity check codes are compared.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the custom logic circuit design method for peripheral interfaces as described in claim 7.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the custom logic circuit design method for peripheral interfaces as described in claim 7.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the custom logic circuit design method for peripheral interfaces as described in claim 7.

Citation Information

Patent Citations

  • SoC bootstrap IP circuit with APB interface

    CN107291655A

  • Pci interface module and pci bus control data transmission method

    CN119179670A

  • Three-party cooperative processing video real-time transmission and processing heterogeneous system

    CN119906846A

  • Parity generation and bus matching arrangement for synchronized duplicated data processing units

    US4020459A

  • Cross-copy arrangement for synchronizing error detection clock signals in a duplex digital system

    US4551836A