Register array and configuration method and device thereof, electronic equipment and readable medium

By obtaining the connection relationship between the register, the read-write data register and the readout controller, the placement of the register on the chip is optimized, which solves the wiring design problem caused by insufficient chip space and achieves more efficient utilization of wiring resources.

CN118862811APending Publication Date: 2024-10-29SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410888751.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

In the prior art, due to space constraints in the design of register array wiring in chip design, it is difficult to effectively lay out, resulting in short circuits or spacing violations, and the chip space cannot be fully utilized.

Method used

By obtaining the connection relationship between the read-write data register and the register and the connection relationship between the read-out controller and the register, the reasonable placement position of the register on the chip is determined, the layout of the register array is optimized, and the waste of wiring resources is reduced.

Benefits of technology

It achieves a reasonable layout of the register array, saves the wiring resources of the chip, reduces local wiring congestion and design rule violations, and improves the utilization efficiency of wiring resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118862811A_ABST
    Figure CN118862811A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a register array and a configuration method and device thereof, electronic equipment and a readable medium. The method comprises the following steps: acquiring a first connection relationship between a read-write data register and at least one register, and / or a second connection relationship between a read-out controller and at least one register; according to the first connection relation and / or the second connection relation, determining the placing position of the register on the chip; according to the placing position, installing the register on the chip; and at least one register forms a register array. Therefore, when layout design is carried out on the registers, the connection relation between the read-write data registers and the registers and / or the connection relation between the read-out controller and the registers can be comprehensively considered, so that the placement positions of the registers are more reasonable, wiring resources in a chip are saved, and the layout design efficiency is improved. And the conditions of local wiring blockage or violation of design rules are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of chip technology, and in particular to a register array configuration method, a register array configuration device, a register array, an electronic device and a computer-readable medium. Background Art

[0002] In the prior art, chip design usually includes the wiring design between different modules and standard cells in the chip. The purpose of wiring design is usually to interconnect the input and output interfaces of the modules and standard cells distributed in the chip core according to the logical relationship, and to meet the design rules required by the process manufacturer so that the designed chip can be manufactured correctly.

[0003] Generally speaking, when designing the wiring, for the register array, we can usually consider the logical interconnection relationship between the registers and place the registers with logical interconnection as close as possible to reduce the length of the interconnection lines between the registers and save a certain amount of power consumption. However, the current placement method may still cause short circuits or spacing violations, and there is not enough space on the chip to complete the wiring design of the register array. Summary of the invention

[0004] The embodiment of the present invention provides a register array configuration method, a register array configuration device, a register array, an electronic device and a computer-readable medium to solve the problem that there is not enough space on a chip to complete the wiring design of the register array.

[0005] An embodiment of the present invention discloses a method for configuring a register array, the method comprising: Acquire a first connection relationship between a read / write data register and at least one register, and / or a second connection relationship between a read controller and at least one register; Determining a placement position of the register on the chip according to the first connection relationship and / or the second connection relationship; According to the placement position, the register is installed on the chip; at least one of the registers constitutes a register array.

[0006] Optionally, the registers are of the same size; Determining the placement position of the register on the chip according to the first connection relationship and / or the second connection relationship includes: According to the first connection relationship and / or the second connection relationship, the placement positions of the registers on the chip are determined such that at least two of the registers are in the same row and / or at least two of the registers are in the same column.

[0007] Optionally, the step of determining a placement position of the register on the chip according to the first connection relationship includes: Determine, according to the first connection relationship, at least one of the registers connected to the same read-write data register; For at least one of the registers connected to the same read / write data register, determining a first area on the chip; Determine that the placement position of at least one of the registers connected to the same read-write data register is the first area.

[0008] Optionally, the first area is where at least one of the registers connected to the same read / write data register is arranged in a same row or column.

[0009] Optionally, the step of determining a placement position of the register on the chip according to the second connection relationship includes: According to the second connection relationship, determining at least one of the registers connected to the same bit in the readout controller; For at least one of the registers connected to the same bit in the readout controller, determining a second area on the chip; The placement position of at least one of the registers connected to the same bit in the readout controller is determined to be a second area.

[0010] Optionally, the second area is where at least one of the registers connected to the same bit in the readout controller is arranged in a same row or column.

[0011] Optionally, the step of determining the placement position of the register on the chip according to the first connection relationship and the second connection relationship includes: According to the first connection relationship, at least one of the registers connected to the same read / write data register is used as a first register group to obtain at least one first register group; According to the second connection relationship, at least one of the registers connected to the same bit in the readout controller is used as a second register group to obtain at least one second register group; respectively determining the third regions corresponding to the first register groups; the third regions corresponding to different first register groups do not overlap; respectively determining fourth regions corresponding to the second register groups; wherein the fourth regions corresponding to different second register groups have no overlap; It is determined that the placement position of the registers in the first register group is the third area, and the placement position of the registers in the second register group is the fourth area.

[0012] Optionally, the third area is where the registers in the same first register group are arranged in the same row; and the fourth area is where the registers in the same second register group are arranged in the same column.

[0013] Optionally, before the step of installing the register on the chip according to the placement position, the method further includes: Acquire a third connection relationship between the clock gating unit and the register; The placement position of the register on the chip is determined according to the third connection relationship.

[0014] Optionally, the step of determining the placement position of the register on the chip according to the third connection relationship includes: Determine, according to the third connection relationship, at least one of the registers connected to the same clock gating unit; For at least one of the registers connected to the same clock gating unit, determining a fifth area on the chip; Determine that the placement position of at least one of the registers connected to the same clock gating unit is the fifth area.

[0015] Optionally, the fifth area is where at least one of the registers connected to the same clock gating unit is arranged in a same row or a same column.

[0016] Optionally, the method further comprises: The clock gating unit is arranged in the register array.

[0017] Optionally, the method further comprises: The placement position of the clock gating unit in the register array is determined according to the number of registers around the clock gating unit.

[0018] Optionally, the step of determining the placement position of the clock gating unit in the register array according to the number of registers around the clock gating unit includes: Determine that the placement position of the clock gating unit in the register array is a middle row in the register array, so that the number of rows of registers above the clock gating unit is the same as the number of rows of registers below the clock gating unit; or, The placement position of the clock gating unit in the register array is determined to be the middle column in the register array, so that the number of columns of registers on the left side of the clock gating unit is the same as the number of columns of registers on the right side of the clock gating unit.

[0019] Optionally, the method further comprises: According to the third connection relationship, the placement position of the clock gating unit in the register array is determined to be the middle of the row or column where the register connected to the clock gating unit is located.

[0020] Optionally, the method further comprises: If the size of the clock gating unit is larger than the size of the register, the placement of the clock gating unit is divided into at least two rows or at least two columns.

[0021] Optionally, the method further comprises: The number of rows or columns of the placement position of the clock gating unit is determined based on the area multiple between the size of the clock gating unit and the size of the register.

[0022] Optionally, the method further comprises: If the placement position of the clock gating unit is divided into at least two rows or at least two columns, according to the third connection relationship, the placement position of the clock gating unit in the register array is determined to be the row or column where the register connected to the clock gating unit is located.

[0023] Optionally, the method further comprises: If the placement positions of the clock gating units are divided into at least two rows or at least two columns, the placement positions of the clock gating units in the register array are determined according to the order of the rows or columns where the registers connected to the clock gating units are located.

[0024] An embodiment of the present invention further provides a register array configuration device, the device comprising: A first connection relationship acquisition module, used to acquire a first connection relationship between the read / write data register and at least one register, and / or a second connection relationship between the read controller and at least one register; A first position determination module, used for determining a placement position of the register on the chip according to the first connection relationship and / or the second connection relationship; The installation module is used to install the register on the chip according to the placement position; at least one of the registers constitutes a register array.

[0025] Optionally, the registers are of the same size; The first location determination module comprises: The row and column placement submodule is used to determine the placement positions of the registers on the chip based on the first connection relationship and / or the second connection relationship, such that at least two of the registers are in the same row, and / or at least two of the registers are in the same column.

[0026] Optionally, the first position determination module includes: A first connection relationship determining submodule, used for determining at least one of the registers connected to the same read-write data register according to the first connection relationship; A first region determination submodule, configured to determine a first region on the chip for at least one of the registers connected to the same read / write data register; The first position determination submodule is used to determine that the placement position of at least one of the registers connected to the same read-write data register is the first area.

[0027] Optionally, the first area is where at least one of the registers connected to the same read / write data register is arranged in a same row or column.

[0028] Optionally, the first position determination module includes: A second connection relationship determination submodule, used for determining at least one of the registers connected to the same bit in the readout controller according to the second connection relationship; A second region determination submodule, configured to determine a second region on the chip for at least one of the registers connected to the same bit in the readout controller; The second position determination submodule is used to determine that the placement position of at least one of the registers connected to the same bit in the readout controller is a second area.

[0029] Optionally, the second area is where at least one of the registers connected to the same bit in the readout controller is arranged in a same row or column.

[0030] Optionally, the first position determination module includes: A first register group determination submodule, configured to use at least one of the registers connected to the same read / write data register as a first register group according to the first connection relationship, to obtain at least one first register group; A second register group determination submodule, configured to use at least one of the registers connected to the same bit in the read controller as a second register group according to the second connection relationship, to obtain at least one second register group; A third region determination submodule, used to respectively determine third regions corresponding to the first register groups; the third regions corresponding to different first register groups have no overlap; a fourth region determination submodule, used to respectively determine fourth regions corresponding to the second register groups; the fourth regions corresponding to different second register groups have no overlap; The third position determination submodule is used to determine that the placement position of the registers in the first register group is the third area, and the placement position of the registers in the second register group is the fourth area.

[0031] Optionally, the third area is where the registers in the same first register group are arranged in the same row; and the fourth area is where the registers in the same second register group are arranged in the same column.

[0032] Optionally, the device further comprises: A second connection relationship acquisition module, used for thirdly acquiring a third connection relationship between the clock gating unit and the register; The second position determination module is used to determine the placement position of the register on the chip according to the third connection relationship.

[0033] Optionally, the second position determination module includes: A third connection relationship acquisition submodule, used for determining at least one of the registers connected to the same clock gating unit according to the third connection relationship; A fifth region determination submodule, configured to determine a fifth region on the chip for at least one of the registers connected to the same clock gating unit; The fourth position determination submodule is used to determine that the placement position of at least one of the registers connected to the same clock gating unit is the fifth area.

[0034] Optionally, the fifth area is where at least one of the registers connected to the same clock gating unit is arranged in a same row or a same column.

[0035] Optionally, the device further comprises: A clock gating unit setting module is used to set the clock gating unit in the register array.

[0036] Optionally, the device further comprises: The first clock gating unit position determination module is used to determine the placement position of the clock gating unit in the register array according to the number of registers around the clock gating unit.

[0037] Optionally, the first clock gating unit position determination module includes: A first clock gating unit position determination submodule, used to determine that the placement position of the clock gating unit in the register array is a middle row in the register array, so that the number of rows of registers above the clock gating unit is the same as the number of rows of registers below the clock gating unit; or, The second clock gating unit position determination submodule is used to determine the placement position of the clock gating unit in the register array as the middle column in the register array, so that the number of columns of registers on the left side of the clock gating unit is the same as the number of columns of registers on the right side of the clock gating unit.

[0038] Optionally, the device further comprises: The second clock gating unit position determination module is used to determine, based on the third connection relationship, that the placement position of the clock gating unit in the register array is the middle of the row or column where the register connected to the clock gating unit is located.

[0039] Optionally, the device further comprises: The third clock gating unit position determination module is used to divide the placement of the clock gating unit into at least two rows or at least two columns if the size of the clock gating unit is larger than the size of the register.

[0040] Optionally, the device further comprises: The fourth clock gating unit position determination module is used to determine the number of rows or columns of the placement position of the clock gating unit based on the area multiple between the size of the clock gating unit and the size of the register.

[0041] Optionally, the device further comprises: The fifth clock gating unit position determination module is used to determine the placement position of the clock gating unit in the register array as the row or column where the register connected to the clock gating unit is located, according to the third connection relationship, if the placement position of the clock gating unit is divided into at least two rows or at least two columns.

[0042] Optionally, the device further comprises: The sixth clock gating unit position determination module is used to determine the placement position of the clock gating unit in the register array according to the order of the rows or columns of the registers connected to the clock gating unit if the placement position of the clock gating unit is divided into at least two rows or at least two columns.

[0043] An embodiment of the present invention also provides a register array, which is arranged on a chip. The register sequence includes at least one register, and the placement position of the register on the chip is determined according to a first connection relationship between a read-write data register and at least one register, and / or a second connection relationship between a read-out controller and at least one register.

[0044] Optionally, the registers have the same size; the registers are arranged on the chip such that at least two of the registers are in the same row, and / or at least two of the registers are in the same column.

[0045] Optionally, the placement position of the register on the chip is specifically that at least one of the registers connected to the same read-write data register is located in a first area of ​​the chip.

[0046] Optionally, the first area is where at least one of the registers connected to the same read / write data register is arranged in a same row or column.

[0047] Optionally, the placement position of the register on the chip is specifically that at least one of the registers connected to the same readout controller is located in the second area of ​​the chip.

[0048] Optionally, the second area is where at least one of the registers connected to the same bit in the readout controller is arranged in a same row or column.

[0049] Optionally, according to the first connection relationship, at least one of the registers connected to the same read / write data register is used as a first register group to obtain at least one first register group; According to the second connection relationship, at least one of the registers connected to the same bit in the readout controller is used as a second register group to obtain at least one second register group; The registers are placed in the chip in such a way that each first register group corresponds to a third region, and the third regions corresponding to different first register groups do not overlap. Each second register group corresponds to a fourth region, and the fourth regions corresponding to different second register groups do not overlap.

[0050] Optionally, the third area is where the registers in the same first register group are arranged in the same row; and the fourth area is where the registers in the same second register group are arranged in the same column.

[0051] Optionally, the placement position of the register on the chip is determined based on obtaining a third connection relationship between the clock gating unit and the register.

[0052] Optionally, the placement position of the register in the chip is specifically that at least one of the registers connected to the same clock gating unit is located in the fifth area of ​​the chip.

[0053] Optionally, the fifth area is where at least one of the registers connected to the same clock gating unit is arranged in a same row or a same column.

[0054] Optionally, the clock gating unit is arranged in the register array.

[0055] Optionally, the placement position of the clock gating unit in the register array is determined according to the number of registers around the clock gating unit.

[0056] Optionally, the clock gating unit is specifically placed in a middle row in the register array, so that the number of rows of registers above the clock gating unit is the same as the number of rows of registers below the clock gating unit; or, The clock gating unit is specifically placed in the middle column of the register array, so that the number of columns of registers on the left side of the clock gating unit is the same as the number of columns of registers on the right side of the clock gating unit.

[0057] Optionally, the clock gating unit is placed in the register array in the middle of a row or column where the register connected to the clock gating unit is located.

[0058] Optionally, if the size of the clock gating unit is larger than the size of the register, the placement of the clock gating unit is divided into at least two rows or at least two columns.

[0059] Optionally, the number of rows or columns of the placement positions of the clock gating units is determined based on an area multiple of a size of the clock gating units and a size of the register.

[0060] Optionally, if the placement positions of the clock gating units are divided into at least two rows or at least two columns, the placement positions of the clock gating units in the register array are specifically located in the row or column where the register connected to the clock gating units is located.

[0061] Optionally, if the placement positions of the clock gating units are divided into at least two rows or at least two columns, the placement positions of the clock gating units in the register array are specifically determined according to the order of the rows or columns where the registers connected to the clock gating units are located.

[0062] An embodiment of the present invention further provides an electronic device, the electronic device comprising a chip, the chip being provided with a register array configured by the method described in the embodiment of the present invention, or being provided with a register array described in the embodiment of the present invention.

[0063] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.

[0064] The embodiment of the present invention further discloses one or more computer-readable media on which instructions are stored. When executed by one or more processors, the processors are enabled to execute the method described in the embodiment of the present invention.

[0065] The embodiments of the present invention include the following advantages: Through the configuration method of the register array provided by the embodiment of the present invention, the first connection relationship between the read-write data register and at least one register, and / or the second connection relationship between the read-out controller and at least one register is obtained; according to the first connection relationship and / or the second connection relationship, the placement position of the register on the chip is determined; according to the placement position, the register is installed on the chip; at least one of the registers constitutes a register array. Therefore, when the layout design of the register is performed, the connection relationship between the read-write data register and the register and / or the connection relationship between the read-out controller and the register can be comprehensively considered, so that the placement position of the register is more reasonable, the wiring resources in the chip are saved, and the occurrence of local wiring blockage or violation of design rules is reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1 is a schematic diagram of a circuit structure of a register array provided in an embodiment of the present invention; Figure 2 It is a schematic diagram of the placement of a register provided in the prior art; Figure 3 is a flowchart of a method for configuring a register array provided in an embodiment of the present invention; Figure 4 is a flowchart of another method for configuring a register array provided in an embodiment of the present invention; Figure 5 is a schematic diagram of a wiring track provided in an embodiment of the present invention; Figure 6is a schematic diagram of a memory array provided by an embodiment of the present invention; Figure 7 is another schematic diagram of a memory array provided by an embodiment of the present invention; Figure 8 is a structural block diagram of a register array configuration device provided in an embodiment of the present invention; Fig. 9 is a block diagram of an electronic device provided in an embodiment of the present invention; Fig.10 is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0067] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0068] Reference Figure 1 , showing a schematic diagram of the circuit structure of a register array provided in an embodiment of the present invention.

[0069] The register array may include at least one register group, and the register group may include at least two registers (Register), which have an input terminal D, an input terminal CP, and an output terminal Q. The registers in the same register group may have a logical interconnection relationship, and some registers may be used to receive data transmitted by the write data register (WD_reg), and some registers may obtain data transmitted by the write data register based on the logical interconnection relationship, and be obtained by the read data register (RD_reg). There are multiple write data registers, and different write data registers may have a logical interconnection relationship with different register groups respectively. There are also multiple read data registers, and different read data registers may have a logical interconnection relationship with different register groups respectively. Data writing is implemented by the write address decoder controlling the clock gating unit (Integrated Clock Gating, ICG), which has an input terminal E and an input terminal CP. Data reading is implemented by a read-out controller (mux).

[0070] When writing data, the write address decoder controls at least one of the clock gating units to be turned on, and the remaining clock gating units maintain the relationship. The data transmitted from the n write data registers will be written into the register group controlled by the turned-on clock gating unit.

[0071] When reading data, the read controller selects at least one register group and transfers the data stored in the register group to n read data registers.

[0072] Reference Figure 2 , Figure 2It is a schematic diagram of the placement of a register provided in the prior art. In the prior art, the registers in the register array can determine the position of the registers mainly by considering the condition that the registers with logical interconnection relationship are placed nearby. However, there may also be modules such as write data registers, read data registers, and clock gating units that have a logical interconnection relationship with the registers. After determining the position of the registers, it may be difficult to allocate positions for modules such as write data registers, read data registers, and clock gating units, resulting in the interlacing of interconnection lines in other modules, which may increase the line length and even cause congestion in the winding, and the wiring resources on the chip are not fully utilized.

[0073] Based on this, an embodiment of the present invention provides a method for configuring a register array, which can comprehensively consider the connection relationship between the read and write data registers and the registers and / or the connection relationship between the read controller and the registers, so that the placement of the registers is more reasonable, saving wiring resources in the chip and reducing the occurrence of local wiring congestion or violation of design rules.

[0074] Reference Figure 3 , shows a flowchart of a method for configuring a register array provided in an embodiment of the present invention, which may specifically include the following steps: Step 301, obtaining a first connection relationship between a read / write data register and at least one register, and / or a second connection relationship between a read controller and at least one register; Specifically, in order to determine the placement of different registers in the register array, the logical interconnection relationship between the read / write data register and at least one register can be obtained to obtain a first connection relationship. At the same time, the logical interconnection relationship between the read controller and at least one register can also be obtained to obtain a second connection relationship. In this way, the placement of the registers on the chip can be more comprehensively analyzed based on the first connection relationship and the second connection relationship, thereby improving the utilization of wiring resources.

[0075] The read / write data register may specifically include a read data register and / or a write data register. The register may be connected to the read data register or to the write data register.

[0076] Step 302, determining the placement position of the register on the chip according to the first connection relationship and / or the second connection relationship; In an embodiment of the present invention, in order to avoid insufficient wiring resources due to unreasonable placement of registers, when determining the placement of registers on the chip, the placement of registers on the chip can be determined based on the first connection relationship and / or the second connection relationship, so that when other modules such as write data registers, read data registers, clock gating units, etc. are subsequently configured, other modules can be arranged near registers that have a logical interconnection relationship with them, so as to reduce the wiring resources consumed by connecting other modules to the registers, thereby reducing the wiring resources related to the register array in the overall chip design.

[0077] Step 303: Install the register on the chip according to the placement position; at least one of the registers constitutes a register array.

[0078] After the placement position is determined, the registers can be installed on the chip according to the determined placement position. The registers can form a register array for receiving data written by the write data register and transmitting the data to the read data register.

[0079] Through the configuration method of the register array provided by the embodiment of the present invention, the first connection relationship between the read-write data register and at least one register, and / or the second connection relationship between the read-out controller and at least one register is obtained; according to the first connection relationship and / or the second connection relationship, the placement position of the register on the chip is determined; according to the placement position, the register is installed on the chip; at least one of the registers constitutes a register array. Therefore, when the layout design of the register is performed, the connection relationship between the read-write data register and the register and / or the connection relationship between the read-out controller and the register can be comprehensively considered, so that the placement position of the register is more reasonable, the wiring resources in the chip are saved, and the occurrence of local wiring blockage or violation of design rules is reduced.

[0080] Reference Figure 4 , shows a flowchart of a method for configuring a register array provided in an embodiment of the present invention, which may specifically include the following steps: Step 401, obtaining a first connection relationship between a read / write data register and at least one register, and / or a second connection relationship between a read controller and at least one register; Specifically, in order to determine the placement of different registers in the register array, the logical interconnection relationship between the read / write data register and at least one register can be obtained to obtain a first connection relationship. At the same time, the logical interconnection relationship between the read controller and at least one register can also be obtained to obtain a second connection relationship. In this way, the placement of the registers on the chip can be more comprehensively analyzed based on the first connection relationship and the second connection relationship, thereby improving the utilization of wiring resources.

[0081] Step 402: According to the first connection relationship and / or the second connection relationship, the placement positions of the registers on the chip are determined to be at least two of the registers in the same row and / or at least two of the registers in the same column; and the registers have the same size; In the specific implementation, Figure 5 As shown, Figure 5 1 is a schematic diagram of a wiring track shown in an embodiment of the present invention. In the process of chip design, the wiring can be designed according to a preset wiring track. Among them, the wiring track can be further divided into a horizontal wiring track and a vertical wiring track. Thus, the space on the chip for placing registers and other modules such as write data registers, read data registers, clock gating units, etc. can be divided into several rows and several columns by the wiring track.

[0082] In order to facilitate the planning of the logical interconnection between registers and between registers and other modules, and to make the time for signal transmission to different registers close, that is, the timing of register data transmission as convergent as possible, the registers can be arranged in rows and columns. At the same time, since the registers have the same size, the registers can form a regular matrix.

[0083] At this time, the placement position of the registers determined according to the first connection relationship and / or the second connection relationship can be in the form of rows and columns. In this case, in the determined placement position of the registers, there may be at least two of the registers in the same row, and / or at least two of the registers in the same column.

[0084] In one embodiment of the present invention, the step of determining the placement position of the register on the chip according to the first connection relationship includes: S11, determining at least one of the registers logically interconnected with the same read-write data register according to the first connection relationship; Specifically, the register may be logically interconnected with a read data register or a write data register. At least one of the registers logically interconnected with the same read and write data register may be determined according to the first connection relationship.

[0085] S12, determining a first area on the chip for at least one of the registers logically interconnected with the same read / write data register; For at least one register logically interconnected with the same read / write data register, a first area can be allocated to it on the chip. The first area can be any position on the chip that can be used to place registers in the register array, and the present invention does not limit this.

[0086] S13, determining that the placement position of at least one of the registers logically interconnected with the same read-write data register is the first area.

[0087] Afterwards, at least one of the registers that are logically interconnected with the same read-write data register can be placed in the first area. As a result, the placement position of at least one of the registers that are logically interconnected with the same read-write data register is in the same area, so that the placement position of at least one of the registers that are logically interconnected with the same read-write data register can be as close as possible, which is convenient for subsequent planning of the logical interconnection relationship between registers, and the logical interconnection relationship between registers and read-write data registers, and more fully utilizes wiring resources. At the same time, due to the close placement position, the signal transmission time between the read-write data register and the register can be closer, which is conducive to timing convergence.

[0088] In one embodiment of the present invention, the first area is arranged at least one of the registers logically interconnected with the same read-write data register in the same row or column. Thus, registers logically interconnected with different read-write data registers can be regularly arranged in different rows or columns, which can better plan wiring, improve the utilization of wiring resources, and reduce layout violations.

[0089] As a specific example of the present invention, data can usually be transferred to a register for writing data by using a write data register for storage, and then transferred to a register for reading data by a user through the interconnection relationship between the registers, and then read out by a read data register. Therefore, the registers for writing data and the registers for reading data can usually have the same number. There are n write data registers and n read data registers. At this time, the registers connected to the same write data register can be placed in the same row, so that the 1st to nth rows of registers can be obtained. At the same time, the registers connected to the same read register can be placed in the same row, so that the n+1st to 2nth rows of registers can be obtained.

[0090] In one embodiment of the present invention, the step of determining the placement position of the register on the chip according to the second connection relationship includes: S21, determining at least one of the registers connected to the same bit in the readout controller according to the second connection relationship; Specifically, the read controller may have multiple data read lines, and the multiple data read lines may be sorted according to 0 bit, 1 bit, 2 bits, ... n bits. At this time, the register may be logically interconnected with a certain bit in a read controller. According to the second connection relationship, at least one of the registers connected to the same bit in the read controller may be determined respectively. Among them, for the register for writing data, it may have no direct connection relationship with the read controller. In this case, if the register for reading data connected to the register for writing data has a direct connection relationship with a certain bit in the read controller, it can be considered that the register for writing data has a logical interconnection relationship with the read controller, that is, there is a second connection relationship.

[0091] S22, determining a second area on the chip for at least one of the registers connected to the same bit in the readout controller; For at least one register connected to the same bit in the read controller, a second area can be allocated on the chip. The second area can be any position on the chip that can be used to place registers in the register array, and the present invention does not limit this.

[0092] S23, determining that the placement position of at least one of the registers connected to the same bit in the readout controller is the second area.

[0093] Afterwards, at least one of the registers connected to the same bit in the readout controller can be placed in the second area. Thus, the placement position of at least one of the registers logically interconnected with the same readout controller is in the same area, so that the placement position of at least one of the registers logically interconnected with the same readout controller can be as close as possible, which is convenient for subsequent planning of the logical interconnection relationship between registers, and the logical interconnection relationship between registers and readout controllers, and more fully utilizes wiring resources. At the same time, due to the close placement position, the signal transmission time between the readout controller and the register can be closer, which is conducive to timing convergence.

[0094] In one embodiment of the present invention, the second area is the at least one register connected to the same bit in the readout controller and is arranged in the same row or column. Thus, the registers logically interconnected by different readout controllers can be regularly arranged in different rows or columns, which can better plan the wiring, improve the utilization of wiring resources, and reduce layout violations.

[0095] In one embodiment of the present invention, the step of determining the placement position of the register on the chip according to the first connection relationship and the second connection relationship includes: S31, according to the first connection relationship, taking at least one of the registers logically interconnected with the same read-write data register as a first register group, to obtain at least one first register group; In an embodiment of the present invention, the placement of the registers can be comprehensively determined based on both the first connection relationship and the second connection relationship. In this case, at least one of the registers logically interconnected with the same read-write data register can be used as a first register group according to the first connection relationship to obtain at least one first register group, so that in subsequent layout design, the registers logically interconnected with the same read-write data register can be considered together and their positions can be close.

[0096] S32, according to the second connection relationship, taking at least one of the registers connected to the same bit in the read controller as a second register group, to obtain at least one second register group; According to the second connection relationship, at least one of the registers logically interconnected with the same read-write data register can be used as a second register group to obtain at least one second register group, so that in subsequent layout design, the registers logically interconnected with the same read-write data register can be considered together and their positions are close.

[0097] S33, respectively determining third regions corresponding to the first register groups; the third regions corresponding to different first register groups have no overlap; Thereafter, the third regions corresponding to different first register groups can be determined respectively, and the third regions corresponding to different first register groups have no overlap, so that registers logically interconnected with the same read-write data registers are placed in the same region so that their positions are close, while registers logically interconnected with different read-write data registers are placed in different regions.

[0098] S34, respectively determining fourth regions corresponding to the second register groups; the fourth regions corresponding to different second register groups do not overlap; Thereafter, the fourth regions corresponding to different second register groups can be determined respectively, and the fourth regions corresponding to different second register groups have no overlap, so that the registers connected to the same bit in the read-out controller are placed in the same region so that their positions are close, while the registers connected to different bits in the read-out controller are placed in different regions.

[0099] S35, determining that the placement position of the registers in the first register group is the third area, and the placement position of the registers in the second register group is the fourth area.

[0100] Thereafter, the registers in the first register group can be set in the third area, and the registers in the second register group can be set in the fourth area. Thus, at least one of the registers logically interconnected with the same readout controller is placed in the same area, and the registers connected to the same bit in the readout controller are placed in the same area, so that it is easier to plan wiring for both the read-write data register and the readout controller, and wiring resources can be more fully utilized, and the register can have a relatively close signal transmission time relative to the read-write data register or the readout controller, which is beneficial to the overall timing convergence of the register array.

[0101] In one embodiment of the present invention, the third area is the registers in the same first register group set at the same row; the fourth area is the registers in the same second register group set at the same column. By setting the rows and columns at different angles, it is easier to plan and route the registers, whether for the read-write data register or the read-out controller, because the overall timing of the register array converges.

[0102] In one embodiment of the present invention, before the step of installing the register on the chip according to the placement position, the method further includes: S41, obtaining a third connection relationship between the clock gating unit and the register; Specifically, for a register, it can usually have a logical interconnection relationship with a read / write data register, a readout controller, and a clock gating unit. Therefore, in order to more comprehensively plan the wiring between the register and the read / write data register, the readout controller, and the clock gating unit, a third connection relationship between the clock gating unit and the register can be further considered.

[0103] S42: Determine the placement position of the register on the chip according to the third connection relationship.

[0104] Subsequently, in order to avoid insufficient wiring resources due to unreasonable placement of registers, when determining the placement of registers on the chip, the placement of registers on the chip can be further determined based on the third connection relationship, so that when the clock gating unit is subsequently configured, the clock gating unit can be arranged near the register that has a logical interconnection relationship with it, so as to reduce the wiring resources consumed by connecting the clock gating unit to the register, thereby reducing the wiring resources related to the register array in the overall chip design.

[0105] In one embodiment of the present invention, the step of determining the placement position of the register on the chip according to the third connection relationship includes: S51, determining, according to the third connection relationship, at least one of the registers logically interconnected with the same clock gating unit; Specifically, the register may be logically interconnected with a clock gating unit. At least one of the registers logically interconnected with the same clock gating unit may be determined according to the third connection relationship.

[0106] Among them, for the register used to write data, it may have a direct connection relationship with the clock gating unit, so that it can be directly determined that the register used to write data and the clock gating unit have a logical interconnection relationship. For the register used to read data, it may not have a direct connection relationship with the clock gating unit. If the register used to write data connected to the register used to read data has a direct connection relationship, it can be considered that the register used to read data has a logical interconnection relationship with the clock gating unit.

[0107] S52, determining a fifth region on the chip for at least one of the registers logically interconnected with the same clock gating unit; For at least one register logically interconnected with the same clock gating unit, a fifth region may be allocated to it on the chip. The fifth region may be any position on the chip that can be used to place registers in the register array, and the present invention does not limit this.

[0108] S53, determining that the placement position of at least one of the registers logically interconnected with the same clock gating unit is the fifth area.

[0109] Afterwards, at least one of the registers logically interconnected with the same clock gating unit can be placed in the fifth area. Thus, the placement position of at least one of the registers logically interconnected with the same clock gating unit is in the same area, so that the placement position of at least one of the registers logically interconnected with the same clock gating unit can be as close as possible, which is convenient for subsequent planning of the logical interconnection relationship between registers, and the logical interconnection relationship between registers and clock gating units, and more fully utilizing wiring resources. At the same time, due to the close placement position, the signal transmission time between the clock gating unit and the register can be closer, which is conducive to timing convergence.

[0110] In one embodiment of the present invention, the fifth area is where at least one of the registers connected to the same clock gating unit is arranged in the same row or column. Thus, the registers logically interconnected by different clock gating units can be regularly arranged in different rows or columns, which can better plan the wiring, improve the utilization of wiring resources, and reduce layout violations.

[0111] In one embodiment of the present invention, the method further comprises: S61, the clock gating unit is set in the register array.

[0112] Specifically, in order to connect the clock line (Clock Net) to the register at a shorter distance to shorten the time spent on signal transmission and further reduce the consumption of wiring resources, a clock gating unit can be set in the register array.

[0113] In one embodiment of the present invention, the method further comprises: S71, determining the placement position of the clock gating unit in the register array according to the number of registers around the clock gating unit.

[0114] In a specific implementation, the placement of the clock gating unit in the register array can be determined based on the number of registers around the clock gating unit. When the number of registers around the clock gating unit is similar, the clock tree formed by the clock line can be more easily balanced as a whole, that is, the time taken by different clock gating units to send signals to the registers is relatively close, and the time taken by individual clock gating units to send signals to the registers will not be significantly longer or shorter than the time taken by other clock gating units to send signals to the registers.

[0115] In one embodiment of the present invention, the step of determining the placement position of the clock gating unit in the register array according to the number of registers around the clock gating unit includes: S81, determining that the placement position of the clock gating unit in the register array is a middle row in the register array, so that the number of rows of registers above the clock gating unit is the same as the number of rows of registers below the clock gating unit; or, S82, determining that the placement position of the clock gating unit in the register array is the middle column in the register array, so that the number of columns of registers on the left side of the clock gating unit is the same as the number of columns of registers on the right side of the clock gating unit.

[0116] In a specific implementation, the placement position of the clock gating unit may be set to be in a middle row or a middle column in the register array.

[0117] When located in the middle row, the number of rows of registers above the clock gating unit can be the same as the number of rows of registers below the clock gating unit, so that the maximum time spent on signal transmission between the clock gating unit and the upper row registers can be close to the maximum time spent on signal transmission between the clock gating unit and the lower row registers, which is beneficial to the overall balance of the clock tree.

[0118] In the case of being located in the middle column, the number of columns of registers on the left side of the clock gating unit is the same as the number of columns of registers on the right side of the clock gating unit. Thus, the maximum time spent on signal transmission between the clock gating unit and the registers on the left column can be close to the maximum time spent on signal transmission between the clock gating unit and the registers on the left column, which is beneficial to the overall balance of the clock tree.

[0119] In one embodiment of the present invention, the method further comprises: S91, according to the third connection relationship, determine that the placement position of the clock gating unit in the register array is the middle of the row or column where the register connected to the clock gating unit is located.

[0120] Furthermore, the placement position of the clock gating unit in the middle row or middle column can be associated with the row or column where the register connected to the clock gating unit is located, and the clock gating unit can be placed in the middle of the row or column where the register connected to the clock gating unit is located. In this case, the connection distance between the clock gating unit and the register is significantly shortened, which is conducive to further shortening the wiring distance and shortening the signal transmission time.

[0121] As an example of the present invention, Figure 6 It is a schematic diagram of a memory array provided by an embodiment of the present invention. Among them, there are n write data registers, and the registers connected to the same write data register are located in the same row, so that the 1st to nth row registers can be obtained, the clock gating unit can be located in the n+1th row, and there are n read data registers, and the registers connected to the same read data register are located in the same row, so that the n+2th to 2n+1th row registers can be obtained. Among them, each column of registers is also connected to the same bit in the read controller, wherein the 1st column is connected to the 0th bit in the read controller, the 2nd column is connected to the 1st bit in the read controller, and the nth column is connected to the n-1th bit in the read controller. At the same time, the registers in the same column can also have a logical interconnection relationship with the same clock gating unit, and the clock gating unit and the registers with a logical interconnection relationship are in the same row. Therefore, in the layout design process of the register, the logical interconnection relationship between the read-write data register, the read controller, and the clock gating unit can be comprehensively considered to save wiring resources as much as possible.

[0122] In one embodiment of the present invention, the method further comprises: S101: If the size of the clock gating unit is larger than the size of the register, the placement of the clock gating unit is divided into at least two rows or at least two columns.

[0123] Specifically, if the size of the clock gating unit is the size of the register, the clock gating unit cannot be arranged in only one row or one column, and the placement of the clock gating unit needs to be further divided into at least two rows or at least two columns.

[0124] In one embodiment of the present invention, the method further comprises: S111, determining the number of rows or columns of the placement position of the clock gating unit based on the area multiple between the size of the clock gating unit and the size of the register.

[0125] In a specific implementation, the number of rows or columns of the placement position of the clock gating unit can be determined according to the area multiple between the size of the clock gating unit and the size of the register. Specifically, the area multiple can be used as the number of rows or columns of the placement position of the clock gating unit. For example, when the area multiple between the clock gating unit and the register is 2, the clock gating unit can be divided into two rows or two columns.

[0126] In one embodiment of the present invention, the method further comprises: S121, if the placement position of the clock gating unit is divided into at least two rows or at least two columns, according to the third connection relationship, determine that the placement position of the clock gating unit in the register array is the row or column where the register connected to the clock gating unit is located.

[0127] Specifically, if the placement position of the clock gating unit is divided into at least two rows or at least two columns, then the clock gating unit can set the placement position of the clock gating unit in the register array to pass through the row or column where the register connected to the clock gating unit is located, so that the clock gating unit is relatively close to the register connected to it.

[0128] In one embodiment of the present invention, the method further comprises: S131, if the placement positions of the clock gating units are divided into at least two rows or at least two columns, determine the placement positions of the clock gating units in the register array according to the order of the rows or columns where the registers connected to the clock gating units are located.

[0129] In a specific implementation, if the placement positions of the clock gating units are divided into at least two rows or at least two columns, the placement positions of the clock gating units in the register array can be specifically based on the order of the rows or columns of the registers connected to the clock gating units.

[0130] As a specific example of the present invention, the placement positions of the clock gating units can be sorted first, and can be sorted from left to right and from top to bottom. The closer to the left, the smaller the sorting number. In the case of being in the same column, the closer to the top, the smaller the sorting number, so as to obtain a placement position sorting of the clock gating units. Afterwards, the columns where the registers are located can be sorted from left to right. If the column number of the register connected to the clock gating unit is smaller, the clock gating unit can be placed in a closer position.

[0131] As a specific example of the present invention, Figure 7 : This is another memory array schematic diagram provided by an embodiment of the present invention. There are n write data registers, and the registers connected to the same write data register are located in the same row, so that the 1st to nth rows of registers can be obtained. The clock gating unit area is twice that of the register, which is divided into two rows, that is, the clock gating unit can be located in the n+1st to n+2nd rows. There are n read data registers, and the registers connected to the same read data register are located in the same row, so that the n+3rd to 2n+2nd rows of registers can be obtained. Each column of registers is also respectively connected to the same bit in the read controller, wherein the 1st column is connected to the 0th bit in the read controller, the 2nd column is connected to the 1st bit in the read controller, and the nth column is connected to the n-1th bit in the read controller.

[0132] At the same time, the order is sorted from left to right and from top to bottom. The closer to the left, the smaller the sorting number. In the case of being in the same column, the closer to the top, the smaller the sorting number. Thus, the placement order of a clock gating unit can be obtained. Thereafter, the column where the register is located can be sorted from left to right. If the column number of the register connected to the clock gating unit is smaller, the clock gating unit can be placed in a closer position. Thus, the clock gating unit connected to the register in the first column is placed in the first position on the left of the n+1th row, the clock gating unit connected to the register in the second column is placed in the first position on the left of the n+2th row, the clock gating unit connected to the register in the third column is placed in the second position on the left of the n+1th row, and the clock gating unit connected to the register in the fourth column is placed in the second position on the left of the n+2th row. Thus, in the layout design process of the register, the logical interconnection relationship between the read-write data register, the read-out controller, and the clock gating unit can be comprehensively considered to save wiring resources as much as possible.

[0133] Step 403, installing the registers on the chip according to the placement positions; at least one of the registers constitutes a register array.

[0134] Through the configuration method of the register array provided by the embodiment of the present invention, the first connection relationship between the read-write data register and at least one register, and / or the second connection relationship between the read-out controller and at least one register is obtained; according to the first connection relationship and / or the second connection relationship, the placement position of the register on the chip is determined; according to the placement position, the register is installed on the chip; at least one of the registers constitutes a register array. Therefore, when the layout design of the register is performed, the connection relationship between the read-write data register and the register and / or the connection relationship between the read-out controller and the register can be comprehensively considered, so that the placement position of the register is more reasonable, the wiring resources in the chip are saved, and the occurrence of local wiring blockage or violation of design rules is reduced.

[0135] Through the configuration method of the register array provided by the embodiment of the present invention, the first connection relationship between the read-write data register and at least one register, and / or the second connection relationship between the read-out controller and at least one register is obtained; according to the first connection relationship and / or the second connection relationship, the placement position of the register on the chip is determined to be at least two of the registers in the same row, and / or, according to at least two of the registers in the same column; according to the placement position, the register is installed on the chip; at least one of the registers constitutes a register array. Therefore, when the layout design of the register is performed, the connection relationship between the read-write data register and the register and / or the connection relationship between the read-out controller and the register can be comprehensively considered, so that the placement position of the register is more reasonable, the wiring resources in the chip are saved, and the occurrence of local wiring blockage or violation of design rules is reduced.

[0136] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0137] Reference Figure 8 , shows a structural block diagram of a register array configuration device provided in an embodiment of the present invention, which may specifically include the following modules: A first connection relationship acquisition module 801 is used to acquire a first connection relationship between a read / write data register and at least one register, and / or a second connection relationship between a read controller and at least one register; A first position determination module 802, configured to determine a placement position of the register on the chip according to the first connection relationship and / or the second connection relationship; The installation module 803 is used to install the register on the chip according to the placement position; at least one of the registers constitutes a register array.

[0138] Optionally, the registers are of the same size; The first location determination module comprises: The row and column placement submodule is used to determine the placement positions of the registers on the chip based on the first connection relationship and / or the second connection relationship, such that at least two of the registers are in the same row, and / or at least two of the registers are in the same column.

[0139] Optionally, the first position determination module includes: A first connection relationship determining submodule, used for determining at least one of the registers connected to the same read-write data register according to the first connection relationship; A first region determination submodule, configured to determine a first region on the chip for at least one of the registers connected to the same read / write data register; The first position determination submodule is used to determine that the placement position of at least one of the registers connected to the same read-write data register is the first area.

[0140] Optionally, the first area is where at least one of the registers connected to the same read / write data register is arranged in a same row or column.

[0141] Optionally, the first position determination module includes: A second connection relationship determination submodule, used for determining at least one of the registers connected to the same bit in the readout controller according to the second connection relationship; A second region determination submodule, configured to determine a second region on the chip for at least one of the registers connected to the same bit in the readout controller; The second position determination submodule is used to determine that the placement position of at least one of the registers connected to the same bit in the readout controller is a second area.

[0142] Optionally, the second area is where at least one of the registers connected to the same bit in the readout controller is arranged in a same row or column.

[0143] Optionally, the first position determination module includes: A first register group determination submodule, configured to use at least one of the registers connected to the same read / write data register as a first register group according to the first connection relationship, to obtain at least one first register group; A second register group determination submodule, configured to use at least one of the registers connected to the same bit in the read controller as a second register group according to the second connection relationship, to obtain at least one second register group; A third region determination submodule, used to respectively determine third regions corresponding to the first register groups; the third regions corresponding to different first register groups have no overlap; a fourth region determination submodule, used to respectively determine fourth regions corresponding to the second register groups; the fourth regions corresponding to different second register groups have no overlap; The third position determination submodule is used to determine that the placement position of the registers in the first register group is the third area, and the placement position of the registers in the second register group is the fourth area.

[0144] Optionally, the third area is where the registers in the same first register group are arranged in the same row; and the fourth area is where the registers in the same second register group are arranged in the same column.

[0145] Optionally, the device further comprises: A second connection relationship acquisition module, used for thirdly acquiring a third connection relationship between the clock gating unit and the register; The second position determination module is used to determine the placement position of the register on the chip according to the third connection relationship.

[0146] Optionally, the second position determination module includes: A third connection relationship acquisition submodule, used for determining at least one of the registers connected to the same clock gating unit according to the third connection relationship; A fifth region determination submodule, configured to determine a fifth region on the chip for at least one of the registers connected to the same clock gating unit; The fourth position determination submodule is used to determine that the placement position of at least one of the registers connected to the same clock gating unit is the fifth area.

[0147] Optionally, the fifth area is where at least one of the registers connected to the same clock gating unit is arranged in a same row or a same column.

[0148] Optionally, the device further comprises: A clock gating unit setting module is used to set the clock gating unit in the register array.

[0149] Optionally, the device further comprises: The first clock gating unit position determination module is used to determine the placement position of the clock gating unit in the register array according to the number of registers around the clock gating unit.

[0150] Optionally, the first clock gating unit position determination module includes: A first clock gating unit position determination submodule, used to determine that the placement position of the clock gating unit in the register array is a middle row in the register array, so that the number of rows of registers above the clock gating unit is the same as the number of rows of registers below the clock gating unit; or, The second clock gating unit position determination submodule is used to determine the placement position of the clock gating unit in the register array as the middle column in the register array, so that the number of columns of registers on the left side of the clock gating unit is the same as the number of columns of registers on the right side of the clock gating unit.

[0151] Optionally, the device further comprises: The second clock gating unit position determination module is used to determine, based on the third connection relationship, that the placement position of the clock gating unit in the register array is the middle of the row or column where the register connected to the clock gating unit is located.

[0152] Optionally, the device further comprises: The third clock gating unit position determination module is used to divide the placement of the clock gating unit into at least two rows or at least two columns if the size of the clock gating unit is larger than the size of the register.

[0153] Optionally, the device further comprises: The fourth clock gating unit position determination module is used to determine the number of rows or columns of the placement position of the clock gating unit based on the area multiple between the size of the clock gating unit and the size of the register.

[0154] Optionally, the device further comprises: The fifth clock gating unit position determination module is used to determine the placement position of the clock gating unit in the register array as the row or column where the register connected to the clock gating unit is located, according to the third connection relationship, if the placement position of the clock gating unit is divided into at least two rows or at least two columns.

[0155] Optionally, the device further comprises: The sixth clock gating unit position determination module is used to determine the placement position of the clock gating unit in the register array according to the order of the rows or columns of the registers connected to the clock gating unit if the placement position of the clock gating unit is divided into at least two rows or at least two columns.

[0156] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0157] An embodiment of the present invention also provides a register array, which is arranged on a chip. The register sequence includes at least one register, and the placement position of the register on the chip is determined according to a first connection relationship between a read-write data register and at least one register, and / or a second connection relationship between a read-out controller and at least one register.

[0158] Optionally, the registers have the same size; the registers are arranged on the chip such that at least two of the registers are in the same row, and / or at least two of the registers are in the same column.

[0159] Optionally, the placement position of the register on the chip is specifically that at least one of the registers connected to the same read-write data register is located in a first area of ​​the chip.

[0160] Optionally, the first area is where at least one of the registers connected to the same read / write data register is arranged in a same row or column.

[0161] Optionally, the placement position of the register on the chip is specifically that at least one of the registers connected to the same readout controller is located in the second area of ​​the chip.

[0162] Optionally, the second area is where at least one of the registers connected to the same bit in the readout controller is arranged in a same row or column.

[0163] Optionally, according to the first connection relationship, at least one of the registers connected to the same read / write data register is used as a first register group to obtain at least one first register group; According to the second connection relationship, at least one of the registers connected to the same bit in the readout controller is used as a second register group to obtain at least one second register group; The placement of the registers on the chip is specifically that each first register group corresponds to a third area, and the third areas corresponding to different first register groups do not overlap. Each second register group corresponds to a fourth area; the fourth areas corresponding to different second register groups do not overlap, Optionally, the third area is where the registers in the same first register group are arranged in the same row; and the fourth area is where the registers in the same second register group are arranged in the same column.

[0164] Optionally, the placement position of the register on the chip is determined based on obtaining a third connection relationship between the clock gating unit and the register.

[0165] Optionally, the placement position of the register in the chip is specifically that at least one of the registers connected to the same clock gating unit is located in the fifth area of ​​the chip.

[0166] Optionally, the fifth area is where at least one of the registers connected to the same clock gating unit is arranged in a same row or a same column.

[0167] Optionally, the clock gating unit is arranged in the register array.

[0168] Optionally, the placement position of the clock gating unit in the register array is determined according to the number of registers around the clock gating unit.

[0169] Optionally, the clock gating unit is specifically placed in a middle row in the register array, so that the number of rows of registers above the clock gating unit is the same as the number of rows of registers below the clock gating unit; or, The clock gating unit is specifically placed in the middle column of the register array, so that the number of columns of registers on the left side of the clock gating unit is the same as the number of columns of registers on the right side of the clock gating unit.

[0170] Optionally, the clock gating unit is placed in the register array in the middle of a row or column where the register connected to the clock gating unit is located.

[0171] Optionally, if the size of the clock gating unit is larger than the size of the register, the placement of the clock gating unit is divided into at least two rows or at least two columns.

[0172] Optionally, the number of rows or columns of the placement positions of the clock gating units is determined based on an area multiple of a size of the clock gating units and a size of the register.

[0173] Optionally, if the placement positions of the clock gating units are divided into at least two rows or at least two columns, the placement positions of the clock gating units in the register array are specifically located in the row or column where the register connected to the clock gating units is located.

[0174] Optionally, if the placement positions of the clock gating units are divided into at least two rows or at least two columns, the placement positions of the clock gating units in the register array are specifically determined according to the order of the rows or columns where the registers connected to the clock gating units are located.

[0175] An embodiment of the present invention further provides an electronic device, the electronic device comprising a chip, the chip being provided with a register array configured by the method described in the embodiment of the present invention, or being provided with a register array described in the embodiment of the present invention.

[0176] In addition, an embodiment of the present invention further provides an electronic device, such as Fig. 9 As shown, it includes a processor 901, a communication interface 902, a memory 903 and a communication bus 904, wherein the processor 901, the communication interface 902, and the memory 903 communicate with each other through the communication bus 904. Memory 903, used for storing computer programs; The processor 901 is used to execute the program stored in the memory 903 to implement the following steps: Acquire a first connection relationship between a read / write data register and at least one register, and / or a second connection relationship between a read controller and at least one register; Determining a placement position of the register on the chip according to the first connection relationship and / or the second connection relationship; According to the placement position, the register is installed on the chip; at least one of the registers constitutes a register array.

[0177] Optionally, the registers are of the same size; Determining the placement position of the register on the chip according to the first connection relationship and / or the second connection relationship includes: According to the first connection relationship and / or the second connection relationship, the placement positions of the registers on the chip are determined such that at least two of the registers are in the same row and / or at least two of the registers are in the same column.

[0178] Optionally, the step of determining a placement position of the register on the chip according to the first connection relationship includes: Determine, according to the first connection relationship, at least one of the registers connected to the same read-write data register; For at least one of the registers connected to the same read / write data register, determining a first area on the chip; Determine that the placement position of at least one of the registers connected to the same read-write data register is the first area.

[0179] Optionally, the first area is where at least one of the registers connected to the same read / write data register is arranged in a same row or column.

[0180] Optionally, the step of determining a placement position of the register on the chip according to the second connection relationship includes: According to the second connection relationship, determining at least one of the registers connected to the same bit in the readout controller; For at least one of the registers connected to the same bit in the readout controller, determining a second area on the chip; The placement position of at least one of the registers connected to the same bit in the readout controller is determined to be a second area.

[0181] Optionally, the second area is where at least one of the registers connected to the same bit in the readout controller is arranged in a same row or column.

[0182] Optionally, the step of determining the placement position of the register on the chip according to the first connection relationship and the second connection relationship includes: According to the first connection relationship, at least one of the registers connected to the same read / write data register is used as a first register group to obtain at least one first register group; According to the second connection relationship, at least one of the registers connected to the same bit in the readout controller is used as a second register group to obtain at least one second register group; respectively determining the third regions corresponding to the first register groups; the third regions corresponding to different first register groups do not overlap; respectively determining fourth regions corresponding to the second register groups; wherein the fourth regions corresponding to different second register groups have no overlap; It is determined that the placement position of the registers in the first register group is the third area, and the placement position of the registers in the second register group is the fourth area.

[0183] Optionally, the third area is where the registers in the same first register group are arranged in the same row; and the fourth area is where the registers in the same second register group are arranged in the same column.

[0184] Optionally, before the step of installing the register on the chip according to the placement position, the method further includes: Acquire a third connection relationship between the clock gating unit and the register; The placement position of the register on the chip is determined according to the third connection relationship.

[0185] Optionally, the step of determining the placement position of the register on the chip according to the third connection relationship includes: Determine, according to the third connection relationship, at least one of the registers connected to the same clock gating unit; For at least one of the registers connected to the same clock gating unit, determining a fifth area on the chip; Determine that the placement position of at least one of the registers connected to the same clock gating unit is the fifth area.

[0186] Optionally, the fifth area is where at least one of the registers connected to the same clock gating unit is arranged in a same row or a same column.

[0187] Optionally, the method further comprises: The clock gating unit is arranged in the register array.

[0188] Optionally, the method further comprises: The placement position of the clock gating unit in the register array is determined according to the number of registers around the clock gating unit.

[0189] Optionally, the step of determining the placement position of the clock gating unit in the register array according to the number of registers around the clock gating unit includes: Determine that the placement position of the clock gating unit in the register array is a middle row in the register array, so that the number of rows of registers above the clock gating unit is the same as the number of rows of registers below the clock gating unit; or, The placement position of the clock gating unit in the register array is determined to be the middle column in the register array, so that the number of columns of registers on the left side of the clock gating unit is the same as the number of columns of registers on the right side of the clock gating unit.

[0190] Optionally, the method further comprises: According to the third connection relationship, the placement position of the clock gating unit in the register array is determined to be the middle of the row or column where the register connected to the clock gating unit is located.

[0191] Optionally, the method further comprises: If the size of the clock gating unit is larger than the size of the register, the placement of the clock gating unit is divided into at least two rows or at least two columns.

[0192] Optionally, the method further comprises: The number of rows or columns of the placement position of the clock gating unit is determined based on the area multiple between the size of the clock gating unit and the size of the register.

[0193] Optionally, the method further comprises: If the placement position of the clock gating unit is divided into at least two rows or at least two columns, according to the third connection relationship, the placement position of the clock gating unit in the register array is determined to be the row or column where the register connected to the clock gating unit is located.

[0194] Optionally, the method further comprises: If the placement positions of the clock gating units are divided into at least two rows or at least two columns, the placement positions of the clock gating units in the register array are determined according to the order of the rows or columns where the registers connected to the clock gating units are located.

[0195] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0196] The communication interface is used for communication between the above terminal and other devices.

[0197] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0198] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0199] like Fig.10 As shown, in another embodiment provided by the present invention, a computer-readable storage medium 1001 is also provided, in which instructions are stored. When the computer-readable storage medium 1001 is run on a computer, the computer executes the register array configuration method described in the above embodiment.

[0200] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes the register array configuration method described in the above embodiment.

[0201] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0202] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0203] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0204] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A method for configuring a register array, characterized in that: The method comprises: Acquire a first connection relationship between a read / write data register and at least one register, and / or a second connection relationship between a read controller and at least one register; Determining a placement position of the register on the chip according to the first connection relationship and / or the second connection relationship; According to the placement position, the register is installed on the chip; at least one of the registers constitutes a register array.

2. The method according to claim 1, characterized in that The registers are of the same size; Determining the placement position of the register on the chip according to the first connection relationship and / or the second connection relationship includes: According to the first connection relationship and / or the second connection relationship, the placement positions of the registers on the chip are determined such that at least two of the registers are in the same row and / or at least two of the registers are in the same column.

3. The method according to claim 2, characterized in that The step of determining the placement position of the register on the chip according to the first connection relationship includes: Determine, according to the first connection relationship, at least one of the registers connected to the same read-write data register; For at least one of the registers connected to the same read / write data register, determining a first area on the chip; Determine that the placement position of at least one of the registers connected to the same read-write data register is the first area.

4. The method according to claim 3, characterized in that The first area is where at least one of the registers connected to the same read / write data register is arranged in the same row or column.

5. The method according to claim 2, characterized in that: The step of determining the placement position of the register on the chip according to the second connection relationship includes: According to the second connection relationship, determining at least one of the registers connected to the same bit in the readout controller; For at least one of the registers connected to the same bit in the readout controller, determining a second area on the chip; The placement position of at least one of the registers connected to the same bit in the readout controller is determined to be a second area.

6. The method according to claim 5, characterized in that The second area is where at least one of the registers connected to the same bit in the readout controller is arranged in the same row or column.

7. The method according to claim 2, characterized in that: The step of determining the placement position of the register on the chip according to the first connection relationship and the second connection relationship includes: According to the first connection relationship, at least one of the registers connected to the same read / write data register is used as a first register group to obtain at least one first register group; According to the second connection relationship, at least one of the registers connected to the same bit in the readout controller is used as a second register group to obtain at least one second register group; respectively determining the third regions corresponding to the first register groups; the third regions corresponding to different first register groups do not overlap; respectively determining fourth regions corresponding to the second register groups; wherein the fourth regions corresponding to different second register groups have no overlap; It is determined that the placement position of the registers in the first register group is the third area, and the placement position of the registers in the second register group is the fourth area.

8. The method according to claim 7, characterized in that The third area is where the registers in the same first register group are arranged in the same row; the fourth area is where the registers in the same second register group are arranged in the same column.

9. The method according to claim 2, characterized in that: Before the step of installing the register on the chip according to the placement position, the method further includes: Acquire a third connection relationship between the clock gating unit and the register; The placement position of the register on the chip is determined according to the third connection relationship.

10. The method according to claim 9, characterized in that The step of determining the placement position of the register on the chip according to the third connection relationship includes: Determine, according to the third connection relationship, at least one of the registers connected to the same clock gating unit; For at least one of the registers connected to the same clock gating unit, determining a fifth area on the chip; Determine that the placement position of at least one of the registers connected to the same clock gating unit is the fifth area.

11. The method according to claim 10, characterized in that The fifth area is where at least one of the registers connected to the same clock gating unit is arranged in the same row or column.

12. The method according to any one of claims 9 to 11, characterized in that: The method further comprises: The clock gating unit is arranged in the register array.

13. The method according to claim 12, characterized in that The method further comprises: The placement position of the clock gating unit in the register array is determined according to the number of registers around the clock gating unit.

14. The method according to claim 13, characterized in that The step of determining the placement position of the clock gating unit in the register array according to the number of registers around the clock gating unit includes: Determine that the placement position of the clock gating unit in the register array is a middle row in the register array, so that the number of rows of registers above the clock gating unit is the same as the number of rows of registers below the clock gating unit; or, The placement position of the clock gating unit in the register array is determined to be the middle column in the register array, so that the number of columns of registers on the left side of the clock gating unit is the same as the number of columns of registers on the right side of the clock gating unit.

15. The method according to claim 14, characterized in that The method further comprises: According to the third connection relationship, the placement position of the clock gating unit in the register array is determined to be the middle of the row or column where the register connected to the clock gating unit is located.

16. The method according to claim 14, characterized in that The method further comprises: If the size of the clock gating unit is larger than the size of the register, the placement of the clock gating unit is divided into at least two rows or at least two columns.

17. The method according to claim 16, characterized in that The method further comprises: The number of rows or columns of the placement position of the clock gating unit is determined based on the area multiple between the size of the clock gating unit and the size of the register.

18. The method according to claim 16 or 17, characterized in that The method further comprises: If the placement position of the clock gating unit is divided into at least two rows or at least two columns, according to the third connection relationship, the placement position of the clock gating unit in the register array is determined to be the row or column where the register connected to the clock gating unit is located.

19. The method according to claim 18, characterized in that The method further comprises: If the placement positions of the clock gating units are divided into at least two rows or at least two columns, the placement positions of the clock gating units in the register array are determined according to the order of the rows or columns where the registers connected to the clock gating units are located.

20. A register array configuration device, characterized in that: The device comprises: An acquisition module, used to acquire a first connection relationship between a read / write data register and at least one register, and / or a second connection relationship between a read controller and at least one register; A position determination module, used to determine the placement position of the register on the chip according to the first connection relationship and / or the second connection relationship; The installation module is used to install the register on the chip according to the placement position; at least one of the registers constitutes a register array.

21. A register array, characterized in that: The register array is arranged on the chip, the register sequence includes at least one register, and the placement position of the register on the chip is determined according to a first connection relationship between a read-write data register and at least one register, and / or a second connection relationship between a read-out controller and at least one register.

22. An electronic device, characterized in that: The electronic device comprises a chip, on which is disposed a register array configured by the method according to any one of claims 1 to 19, or a register array according to claim 21.

23. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 19 when executing the program stored in the memory.

24. A computer readable medium having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 19.