Memory wrapper file generation method and device, equipment and storage medium

By analyzing signal configuration files and template files, the memory wrapper file is automatically generated, which solves the problems of error-prone and low efficiency in memory wrapper writing, and improves the stability and efficiency of chip design.

CN119091946APending Publication Date: 2024-12-06SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411052455.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The writing of existing memory wrappers is prone to errors and inefficient, resulting in frequent replacement of physical memory during chip design, frequent updates of design requirements, affecting design stability and efficiency.

Method used

By obtaining the signal configuration file and template file of the memory wrapper, the signal configuration file is parsed to obtain signal splicing information and signal list, and data fill and splice the signal splicing template based on this information, the target filling information is generated, and the template is filled and filled. In the file, the memory wrapper file is automatically generated to ensure the correctness and efficiency of writing.

Benefits of technology

Improves the accuracy and generation efficiency of memory wrapper writing, reduces the time for manual modification and compilation, and improves the stability and efficiency of chip design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119091946A_ABST
    Figure CN119091946A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of memory design, and discloses a memory wrapper file generation method and device, equipment and a storage medium, and the method comprises the following steps: obtaining a signal configuration file and a template file of a memory wrapper; analyzing the signal configuration file to obtain a plurality of pieces of signal splicing information and a plurality of signal lists; acquiring a signal splicing template, and performing data filling and splicing on the signal splicing template based on the signal splicing information and the signal list to obtain signal filling information corresponding to multiple pieces of signal splicing information; and determining target filling information from the multiple pieces of signal filling information, and performing data filling on the template file based on the target filling information to obtain a target file corresponding to the memory wrapper. Thus, the template file is directly called, the target filling information is selected from the obtained multiple pieces of signal filling information to fill the template file, the memory wrapper file is automatically generated, the writing accuracy of the memory wrapper is guaranteed, and meanwhile the generation efficiency is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of memory design, and in particular to a method, device, equipment and storage medium for generating a memory wrapper file. Background Art

[0002] There are many types of memory in the chip. When designing the chip, the memory of different subsystem modules in the chip will be customized and developed. At the same time, in order to avoid frequent changes in physical memory during the chip design process, which will lead to frequent updates of design requirements, memory wrappers are often used to ensure the relative stability of the design. At present, memory wrappers mainly use memory compiler technology to compile and generate corresponding physical memories, and then design engineers design memory wrappers according to the depth and width of the physical memory. However, due to the large number of memory types, design engineers need to modify the memory wrappers repeatedly, which makes the writing of memory wrappers prone to errors and low efficiency. Summary of the invention

[0003] In view of this, the present invention provides a method, device, equipment and storage medium for generating a memory wrapper file to solve the problem that the writing of the memory wrapper is prone to errors and has low efficiency.

[0004] In a first aspect, the present invention provides a method for generating a memory wrapper file, the method comprising:

[0005] Get the signal configuration file and template file of the memory wrapper;

[0006] The signal configuration file is parsed to obtain a plurality of signal splicing information and a plurality of signal lists; the signal splicing information corresponds to the signal list one by one;

[0007] Acquire a signal splicing template, and based on the signal splicing information and the signal list, respectively fill and splice the signal splicing template with data to obtain signal filling information corresponding to the plurality of signal splicing information;

[0008] Target filling information is determined from a plurality of signal filling information, and data is filled into the template file based on the target filling information to obtain a target file corresponding to the memory wrapper.

[0009] In this way, relevant signal configurations are configured through the signal configuration file, and the signal configuration file is parsed to obtain signal splicing information and a signal list, and the signal splicing template is filled and spliced ​​based on the signal splicing information and the signal list to obtain signal filling information corresponding to multiple signal splicing information. When generating a memory wrapper file, the template file is directly called, and the target filling information is selected from the obtained multiple signal filling information to fill the template file, thereby automatically generating a memory wrapper file, ensuring the accuracy of memory wrapper writing while having a high generation efficiency.

[0010] In an optional implementation, the signal configuration file is parsed to obtain multiple signal splicing information and multiple signal lists, including:

[0011] Parse the signal configuration file to obtain multiple signal configuration information; the signal configuration information includes index information corresponding to the corresponding physical memory, splicing width information and signal set;

[0012] Determine signal splicing information based on the index information and the splicing width information;

[0013] According to the arrangement order in the signal set, the signal names included in the signal set are stored in the signal list to obtain the signal list.

[0014] In this way, the splicing width, signal configuration and other information of the physical memory are configured through the signal configuration file, the relevant configuration of the physical memory is obtained by parsing the signal configuration file, and the signal filling information is obtained based on this, ensuring that the signal filling information is consistent with the relevant configuration of the physical memory, thereby ensuring the accuracy of the memory wrapper file obtained by filling the template file.

[0015] In an optional implementation, based on the signal splicing information and the signal list, the signal splicing template is respectively filled with data and spliced ​​to obtain signal filling information corresponding to the plurality of signal splicing information, including:

[0016] Based on the signal names included in the signal list, the signal name areas in the signal splicing template are filled respectively to obtain the signal splicing units corresponding to each signal splicing information;

[0017] Filling the signal splicing unit based on the signal splicing information and the bit width of the physical memory corresponding to the signal splicing information to obtain a filling information set;

[0018] The filling information in the filling information set is concatenated and spliced ​​to obtain signal filling information.

[0019] In this way, the signal name area in the signal splicing template is filled based on the signal name in the signal list to obtain a signal splicing unit, and the bit width information of the signal splicing unit is filled based on the signal splicing information, thereby ensuring that the obtained signal filling information is consistent with the configuration in the signal configuration file, thereby ensuring the accuracy of the final memory wrapper file.

[0020] In an optional implementation, based on the signal names included in the signal list, the signal name areas in the signal splicing template are filled respectively to obtain a signal splicing unit corresponding to each signal splicing information, including:

[0021] Get the signal index corresponding to each signal name area;

[0022] Based on the signal index, determine the signal name corresponding to the signal name area from the signal list;

[0023] Fill the signal name into the corresponding signal name area to obtain a signal splicing unit.

[0024] In this way, the signal in the signal splicing template is filled according to the signal index in the signal name area, thereby improving the accuracy of the signal name filled in the signal splicing unit.

[0025] In an optional implementation, the signal splicing information includes index information and splicing width information corresponding to the physical memory; based on the signal splicing information and the bit width of the physical memory corresponding to the signal splicing information, the signal splicing unit is filled to obtain a filling information set, including:

[0026] Divide the bit width of the physical memory by the splicing width information to obtain a quotient and a remainder;

[0027] If the quotient is equal to zero, it is determined that the amount of padding information corresponding to the signal splicing unit is one;

[0028] Zero is used as the low-order width value of the signal splicing unit, the width of the physical memory is reduced by one as the high-order width value of the signal splicing unit, padding information is obtained, and the padding information is put into the padding information set;

[0029] If the quotient is greater than zero, it is determined that the number of filling information corresponding to the signal splicing unit is greater than one, and the signal splicing units are filled in sequence;

[0030] Based on the current filling times and the splicing width information, determine the high-order bit width value and the low-order bit width value of the signal splicing unit, fill the signal splicing unit, and obtain the filled signal splicing unit;

[0031] Based on the current filling number, determine the connection information corresponding to the signal splicing unit, splice the connection information with the filled signal splicing unit to obtain filling information, and put the filling information into the filling information set;

[0032] Based on the number of signal splicing units, the bit width information of the associated signal units corresponding to the signal splicing units is determined, the associated signal units are filled, and the filled associated signal units are used as filling information and put into the filling information set.

[0033] In this way, based on the bit width and splicing width information of the physical memory, the signal splicing unit is filled in sequence, and the connection information corresponding to the signal splicing unit is determined based on the current number of filling times. The two are spliced ​​to obtain the filling information, so that the obtained filling information can meet the writing standards of the memory wrapper file, ensuring that the memory wrapper file can be used normally.

[0034] In an optional implementation, the filling information in the filling information set is serially concatenated to obtain the signal filling information, including:

[0035] Arrange the filling information in the filling information set in an order opposite to the arrangement order to obtain reversely arranged filling information;

[0036] The reversely arranged filling information is concatenated and spliced ​​to obtain the signal filling information.

[0037] In this way, the filling information is arranged in reverse order and then concatenated in series to obtain the signal filling information, so that the signal filling information meets the writing standard of the memory wrapper file and ensures the accuracy of the memory wrapper file.

[0038] In an optional implementation, target filling information is determined from a plurality of signal filling information, and data is filled into a template file based on the target filling information to obtain a target file corresponding to the memory wrapper, including:

[0039] Determine the data filling position in the template file and the index information corresponding to the data filling position;

[0040] Based on the index information, determine the target splicing information corresponding to the data filling position from the plurality of signal splicing information;

[0041] Determine the signal filling information corresponding to the target splicing information as the target filling information;

[0042] Fill the target filling information into the corresponding data filling position to obtain the target file.

[0043] In this way, the corresponding signal splicing information is determined according to the index information of the data filling position in the template file, and is filled into the data filling position, thereby ensuring the accuracy of the information filled in each data filling position in the template file.

[0044] In a second aspect, the present invention provides a device for generating a memory wrapper file, the device comprising:

[0045] A file acquisition module, used to obtain the signal configuration file and template file of the memory wrapper;

[0046] The configuration file parsing module is used to parse the signal configuration file to obtain multiple signal splicing information and multiple signal lists; the signal splicing information corresponds to the signal list one by one;

[0047] A data filling module is used to obtain a signal splicing template, and based on the signal splicing information and the signal list, respectively fill and splice the signal splicing template with data to obtain signal filling information corresponding to a plurality of signal splicing information;

[0048] The template filling module is used to determine the target filling information from the multiple signal filling information, and fill the template file with data based on the target filling information to obtain the target file corresponding to the memory wrapper.

[0049] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method for generating a memory wrapper file of the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0050] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for generating a memory wrapper file of the first aspect or any corresponding embodiment thereof.

[0051] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the method for generating a memory wrapper file of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0053] Figure 1 is a flow chart of a method for generating a memory wrapper file according to an embodiment of the present invention;

[0054] Figure 2 is a flow chart of another method for generating a memory wrapper file according to an embodiment of the present invention;

[0055] Figure 3 is a flow chart of another method for generating a memory wrapper file according to an embodiment of the present invention;

[0056] Figure 4 It is a flowchart of a specific embodiment of obtaining signal filling information in a method for generating a memory wrapper file according to an embodiment of the present invention;

[0057] Figure 5 is a flow chart of another method for generating a memory wrapper file according to an embodiment of the present invention;

[0058] Figure 6 is a structural block diagram of a device for generating a memory wrapper file according to an embodiment of the present invention;

[0059] Figure 7 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0061] There are many types of memory in the chip. When designing the chip, the memory of different subsystem modules in the chip will be customized and developed. At the same time, in order to avoid frequent changes in physical memory during the chip design process, which leads to frequent updates of design requirements, memory wrappers are often used to ensure the relative stability of the design. At present, memory wrappers mainly use memory compiler technology to compile and generate corresponding physical memories, and then design engineers design memory wrappers according to the depth and width of the physical memory. However, due to the large number of memory types, design engineers need to modify the memory wrappers repeatedly, which leads to the following problems:

[0062] (1) Writing memory wrappers is prone to errors: It is difficult to write memory wrappers manually based on customized memory, and the code needs to be modified and compiled repeatedly.

[0063] (2) Low efficiency in writing memory wrappers: Manually writing memory wrappers is time-consuming and labor-intensive, seriously affecting efficiency.

[0064] (3) Slow update of memory wrapper: When the chip architecture design or memory specifications need to be adjusted, the memory wrapper needs to be modified and adapted again. Low writing efficiency will lead to low efficiency in modifying and adapting the memory wrapper, and slow update of the memory wrapper.

[0065] Based on this, an embodiment of the present invention provides a method for generating a memory wrapper file, the method comprising: obtaining a signal configuration file and a template file of a memory wrapper; parsing the signal configuration file to obtain a plurality of signal splicing information and a plurality of signal lists; the signal splicing information corresponds to the signal list one by one; obtaining a signal splicing template, and filling and splicing the signal splicing template with data based on the signal splicing information and the signal list, respectively, to obtain signal filling information corresponding to the plurality of signal splicing information; determining target filling information from the plurality of signal filling information, and filling the template file with data based on the target filling information, to obtain a target file corresponding to the memory wrapper. In this way, the relevant signal configuration is configured through the signal configuration file, the signal splicing information and the signal list are obtained by parsing the signal configuration file, and the signal splicing template is filled and spliced ​​based on the signal splicing information and the signal list, to obtain signal filling information corresponding to the plurality of signal splicing information, and the template file is directly called when generating the memory wrapper file, and the target filling information is selected from the obtained plurality of signal filling information to fill the template file, thereby automatically generating the memory wrapper file, ensuring the correctness of the memory wrapper writing while having a high generation efficiency.

[0066] According to an embodiment of the present invention, an embodiment of a method for generating a memory wrapper file is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0067] In this embodiment, a method for generating a memory wrapper file is provided, which can be used for a memory compiler. Figure 1 is a flow chart of a method for generating a memory wrapper file according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0068] Step S101, obtaining a signal configuration file and a template file of a memory wrapper.

[0069] In an embodiment of the present invention, a signal configuration file is a pre-written file that defines relevant configurations of a physical memory, and includes multiple signal configurations; a template file is a pre-written template of a memory wrapper file, and the written part in the template file can be directly generated through code syntax, and the unwritten part in the template file is a part that cannot be directly generated through the template or is difficult to implement due to restrictions on code syntax. Index information is provided, and index search can be performed based on the index information to determine the content that needs to be filled in the part.

[0070] Step S102: parsing the signal configuration file to obtain multiple signal splicing information and multiple signal lists.

[0071] In an embodiment of the present invention, the signal configuration file is parsed to obtain signal splicing information and a signal list, respectively; wherein the signal splicing information is information required for signal splicing, and includes information indicating the corresponding physical memory and related configuration information of the splicing, and the signal list is a signal set corresponding to the signal configuration. The signal splicing information corresponds to the signal list one by one, and the signal splicing information and the signal list correspond to the signal configuration included in the signal configuration file, that is, the number of signal splicing information and the signal list is consistent with the number of physical memories defined and configured in the signal configuration file.

[0072] Step S103, obtaining a signal splicing template, and filling and splicing the signal splicing template with data based on the signal splicing information and the signal list, to obtain signal filling information corresponding to a plurality of signal splicing information.

[0073] In an embodiment of the present invention, a signal splicing template corresponds to the content of an unwritten part in a template file. A signal splicing template is created according to the writing format or code format of the part, and then based on the signal splicing information and the signal list, the signal splicing template is filled with data and spliced ​​to obtain multiple signal filling information, each signal filling information corresponds to different signal splicing information, that is, corresponds to different physical memories.

[0074] Step S104, determining target filling information from the plurality of signal filling information, and performing data filling on the template file based on the target filling information to obtain a target file corresponding to the memory wrapper.

[0075] In an embodiment of the present invention, required signal filling information is determined from a plurality of signal filling information to obtain target filling information, and the target filling information is filled into a corresponding position of a template file to obtain a target file corresponding to a memory wrapper.

[0076] In an optional implementation, after the template file is filled with data using the target filling information, the filled file is rendered using a code algorithm to obtain a final target file.

[0077] The method for generating a memory wrapper file provided by an embodiment of the present invention configures relevant signal configurations through a signal configuration file, obtains signal splicing information and a signal list by parsing the signal configuration file, and fills and splices a signal splicing template based on the signal splicing information and the signal list to obtain signal filling information corresponding to multiple signal splicing information. When generating a memory wrapper file, the template file is directly called, and target filling information is selected from the obtained multiple signal filling information to fill the template file, thereby automatically generating a memory wrapper file, ensuring the accuracy of memory wrapper writing while having high generation efficiency.

[0078] In this embodiment, a method for generating a memory wrapper file is provided, which can be used for a memory compiler. Figure 2 is a flowchart of another method for generating a memory wrapper file according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0079] Step S201, obtain the signal configuration file and template file of the memory wrapper. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0080] Step S202: parsing the signal configuration file to obtain multiple signal splicing information and multiple signal lists.

[0081] Specifically, step S202 includes:

[0082] Step S2021, parse the signal configuration file to obtain multiple signal configuration information.

[0083] In the embodiment of the present invention, the signal configuration information includes index information corresponding to the corresponding physical memory, splicing width information and signal set. The index information is unique in the signal configuration file, so that it can uniquely represent a signal configuration in the signal configuration file; the splicing width information is the bit width when the signal is spliced; the signal set is the signal included in the corresponding signal configuration.

[0084] In an optional implementation, the signal configuration file also includes the bit width of the physical memory, and the bit width of the physical memory is used to determine the bit width range in the signal filling information.

[0085] In an optional embodiment, a signal configuration file may configure only relevant signals of different data fill positions in a memory wrapper file corresponding to a physical memory, where the data fill positions are the unwritten parts in a template file of the memory wrapper. The index information in the signal configuration file may be used to indicate which data fill position in the template file the signal configuration specifically corresponds to.

[0086] In an optional embodiment, a signal configuration can configure related signals of different data filling positions in a memory wrapper file corresponding to multiple physical memories. At this time, the index information in the signal configuration file can also be used to indicate which data filling position in the template file the signal configuration specifically corresponds to. At the same time, the index information can be set to have multiple flag bits, one or more flag bits are used to indicate the physical memory corresponding to the signal configuration, and other flag bits are used to indicate which data filling position in the template file the signal configuration specifically corresponds to. In this way, multiple physical memories are configured at the same time through one signal configuration file, thereby improving the generation efficiency of the memory wrapper.

[0087] Step S2022: Determine signal splicing information based on the index information and the splicing width information.

[0088] In the embodiment of the present invention, the index information and the corresponding splicing width information are combined to form signal splicing information.

[0089] Step S2023: Store the signal names included in the signal set into a signal list according to the arrangement order in the signal set to obtain a signal list.

[0090] In an embodiment of the present invention, the signal names in the signal set are stored in the signal list in sequence according to the arrangement order of each signal in the signal set, so that the order of the signal names in the signal list is consistent with the order in the signal set, so as to ensure the accuracy and reliability when the signal names in the signal splicing template are subsequently filled in through the signal list.

[0091] For example, the code corresponding to the signal configuration file shown below contains two signal configurations. The index information of the first signal configuration is "index1", the splicing width information is 8, the signal set is ["bytea_en", "bwa_n", "wena"], and the corresponding physical memory bit width is 184; the index information of the second signal position is "index2", the splicing width information is 8, the signal set is ["bytea_en2", "bwa_n2", "wena2"], and the corresponding physical memory bit width is 200.

[0092] For the first signal configuration, the corresponding signal splicing information is index information "index1" and splicing width information 8; the corresponding signal list is "bytea_en", "bwa_n", and "wena", and the arrangement order of the signal names in the signal list is consistent with the arrangement order in the signal set.

[0093] For the first signal configuration, the corresponding signal splicing information is index information "index2" and splicing width information 8; the corresponding signal list is "bytea_en2", "bwa_n2", "wena2", and the arrangement order of signal names in the signal list is consistent with the arrangement order in the signal set.

[0094]

[0095]

[0096] Therefore, through the above method, the splicing width, signal configuration and other information of the physical memory are configured through the signal configuration file, the relevant configuration of the physical memory is obtained by parsing the signal configuration file, and the signal filling information is obtained based on this, ensuring that the signal filling information is consistent with the relevant configuration of the physical memory, thereby ensuring the accuracy of the memory wrapper file obtained by filling the template file.

[0097] Step S203, obtain a signal splicing template, and fill and splice the signal splicing template with data based on the signal splicing information and the signal list, to obtain signal filling information corresponding to the plurality of signal splicing information. Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.

[0098] Step S204, determine the target filling information from the multiple signal filling information, and fill the template file with data based on the target filling information to obtain the target file corresponding to the memory wrapper. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.

[0099] In this embodiment, a method for generating a memory wrapper file is provided, which can be used for a memory compiler. Figure 3 is a flowchart of a method for generating a memory wrapper file according to another embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0100] Step S301, obtain the signal configuration file and template file of the memory wrapper. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0101] Step S302: parse the signal configuration file to obtain multiple signal splicing information and multiple signal lists. Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.

[0102] Step S303, obtaining a signal splicing template, and filling and splicing the signal splicing template with data based on the signal splicing information and the signal list, to obtain signal filling information corresponding to a plurality of signal splicing information.

[0103] Specifically, Figure 4 FIG. 1 is a flow chart of a specific embodiment of obtaining signal filling information in a method for generating a memory wrapper file according to an embodiment of the present invention. Figure 3 and Figure 4 As shown, step S303 includes:

[0104] Step S3031: based on the signal names included in the signal list, fill the signal name areas in the signal splicing template respectively to obtain the signal splicing units corresponding to each signal splicing information.

[0105] In the embodiment of the present invention, the signal splicing template corresponds to the code format in the memory wrapper file, which is used to define the writing format of the signal filling information obtained by the final splicing. Therefore, it is necessary to fill in the signal name and the specific bit width value in the signal splicing template respectively to obtain the final signal filling information.

[0106] In an embodiment of the present invention, a signal splicing template includes multiple signal name areas, each signal name area is set with a corresponding signal index, and according to the signal index, the corresponding signal name is obtained from the signal list and filled in to obtain a signal splicing unit. Specifically, the signal index corresponding to each signal name area is obtained, and the signal index is used to indicate the position of the signal in the signal list; based on the signal index, the signal name corresponding to the signal name area is determined from the signal list; the signal name is filled into the corresponding signal name area to obtain a signal splicing unit. In this way, the signal in the signal splicing template is filled according to the signal index of the signal name area, so as to improve the accuracy of the signal name filled in the signal splicing unit.

[0107] For example, if you want to splice the code corresponding to the signal filling information shown below,

[0108] wire[22:0]bytea_en={(~&bwa_n[183:176]&~wena), (~&bwa_n[175:168]&~wena),..., (~&bwa_n[7:0]&~wena)};

[0109] Then the signal splicing template can be set as:

[0110] "~&@{singal1}@[{upper}:{lower}])&~@(singal2)@";

[0111] Among them, @{singal1}@ and (singal2)@ indicate a signal name area respectively, "singal1" and "singal2" are the signal indexes corresponding to the signal names that need to be filled in the signal name area. Based on the signals contained in the above acquired signal list, it can be determined that the signal name corresponding to singal1 is bwa_n, and the signal name corresponding to singal2 is wena. Fill bwa_n and wena into the corresponding signal name areas respectively, and the signal splicing unit obtained is "~&bwa_n[{upper}:{lower}])&~wena".

[0112] In an optional implementation, if multiple signal splicing information and signal lists are obtained by parsing the signal configuration file, the signal splicing template is filled with the signal name based on each signal list to obtain the corresponding signal splicing unit, and the signal splicing unit is filled and spliced ​​according to the corresponding signal splicing information to obtain the final signal filling information.

[0113] In an optional implementation, the signal index in the signal splicing template does not exceed the index range of the signal list. For example, the index range of the signal list shown above is singal0 to singal2, and the signal index used in the signal splicing template is between singal0 and singal2.

[0114] In an optional implementation, the index range of the signal list shown above is singal0 to singal2, where singal1 and singal2 are the signal names used in the signal splicing template, and singal0 is the signal name of the associated signal unit corresponding to the signal splicing template, corresponding to the above code, that is, bytea_en. In the above example, all signal names in the signal list are used, and their order in the code is consistent with the order in the signal list. In actual use, the signal index in the signal splicing template can be the index corresponding to any signal name in the signal list. The signal list may contain multiple signal names in addition to the signal name of the associated signal unit. For example, the index range of the signal list may be singal0 to singaln, that is, the signal list contains n+1 signal names, and the signal index of the signal name corresponding to the signal name of the associated signal unit may be any signal index in the index range, such as singalm. The signal index corresponding to the signal name area in the signal splicing template may be any signal index in the index range, and the signal index used is not affected by the order of the signal name areas in the signal splicing template. For example, the signal index corresponding to the first signal name area is singal4, and the signal index corresponding to the second signal name area is singal0.

[0115] Step S3032: Fill the signal splicing unit based on the signal splicing information and the bit width of the physical memory corresponding to the signal splicing information to obtain a filling information set.

[0116] In the embodiment of the present invention, based on the signal splicing information and the bit width of the physical memory corresponding to the signal splicing information, the signal splicing unit is filled to obtain a plurality of filling information, and the plurality of filling information constitutes a filling information set. The filling bit width in each filling information is consistent with the splicing width information in the signal splicing information.

[0117] In an optional embodiment, if Figure 4 As shown, step S3032 is specifically as follows: the bit width of the physical memory is divided by the splicing width information to obtain a quotient and a remainder, and the filling method of the signal splicing unit is determined according to the specific values ​​of the quotient and the remainder, which can be divided into the following two cases:

[0118] In the first case, if the quotient is equal to zero, the number of padding information corresponding to the signal splicing unit is determined to be one, and the bit width value of the signal splicing unit is determined according to the bit width of the physical memory. Specifically, zero is used as the lower bit width value of the signal splicing unit, and the bit width of the physical memory minus one is used as the upper bit width value of the signal splicing unit to obtain the padding information, and the padding information is placed in the padding information set code_list.

[0119] In the second case, if the quotient is greater than zero, it is determined that the number of filling information corresponding to the signal splicing unit is greater than one, and the signal splicing unit is filled in sequence. At this time, based on the current number of filling times and the splicing width information, the high-order bit width value upper and the low-order bit width value lower of the signal splicing unit are determined, and the signal splicing unit is filled to obtain the filled signal splicing unit. Specifically, since the bit width is filled starting from zero, the current number of filling times is reduced by one and multiplied by the splicing width information to obtain the current filled low-order bit width value lower. On the basis of the low-order bit width value lower, the splicing width information is added and reduced by one to obtain the high-order bit width value upper, thereby completing the filling of the signal splicing unit.

[0120] In an optional embodiment, if Figure 4 As shown, if the remainder is not zero, then when the current number of filling times is equal to the quotient value, the filling of the signal splicing unit is still not completed, and the bit width corresponding to the additional remainder needs to be filled. At this time, the current number of filling times can still be reduced by one and multiplied by the splicing width information to obtain the low-order bit width value lower, and the remainder is increased and reduced by one on the basis of the low-order bit width value lower, or the bit width of the physical memory is directly reduced by one to obtain the high-order bit width value upper, thereby filling the last signal splicing unit.

[0121] In an optional embodiment, if Figure 4 As shown, in order to ensure that the filling information obtained by filling the signal splicing unit can meet the writing standard of the memory wrapper file, it is also necessary to determine the connection information corresponding to the signal splicing unit. The connection information is used to connect the filling information before and after from the level of code logic, so that the code logic can be used normally after the filling information is spliced. Specifically, based on the current filling number, the connection information corresponding to the signal splicing unit is determined, the connection information is spliced ​​with the filled signal splicing unit to obtain the filling information, and the filling information is put into the filling information set.

[0122] In an alternative real-time approach, such as Figure 4 As shown, according to the different quotient values, remainders and current filling times, the connection information corresponding to the signal splicing unit is also different, which can be specifically divided into the following situations:

[0123] In the first case, if the quotient is equal to zero, the number of padding information corresponding to the signal splicing unit is one, that is, the final signal padding information contains only one padding information except for the associated signal unit representing the left side of the code, that is, the part on the left side of the equal sign in the above example. In other words, the right side of the equal sign in the final code contains only one code unit. At this time, the connection information corresponding to the signal splicing unit includes the first connection information and the second connection information, wherein the first connection information is spliced ​​on the left side of the signal splicing unit, and is a symbol representing the start of the right side of the code, and the second connection information is spliced ​​on the right side of the signal splicing unit, and is a symbol representing the end of the right side of the code, thereby limiting the right side of the code to contain only one code unit. Taking the above code as an example, the first connection information is "{" and the second connection information is "};".

[0124] In the second case, if the quotient value is greater than zero, it is determined that the number of filling information corresponding to the signal splicing unit is greater than one. At this time, the connection information corresponding to the signal splicing unit is different according to the remainder and the current number of filling times. Specifically, if the current number of filling times is 1, the code unit corresponding to the signal splicing unit is the last code unit on the right side of the code, and the connection information corresponding to the signal splicing unit includes the second connection information, and the second connection information is spliced ​​on the right side of the signal splicing unit to indicate that there are no other code units after the code unit, and the right side of the code ends here. If the current number of filling times is between 1 and the quotient value, the code unit corresponding to the signal splicing unit is the code unit in the middle of the right side of the code, and the connection information corresponding to the signal splicing unit includes the third connection information, wherein the third connection information is spliced ​​on the right side of the signal splicing unit to indicate that there are other code units after the code unit; taking the above code as an example, the third connection information is "," . If the current number of filling times is the quotient value and the remainder is 0, or the current number of filling times is the quotient value + 1, and the remainder is not 0, corresponding to Figure 4 That is, when the current number of filling times is the quotient value and the remainder is not 0, the bit width filling of the signal splicing unit and the splicing of the connection information are performed once, and then the bit width filling is performed again. At this time, the code unit corresponding to the signal splicing unit is the first code unit on the right side of the code, and the connection information corresponding to the signal splicing unit includes the first connection information and the third connection information, wherein the first connection information is spliced ​​on the left side of the signal splicing unit to indicate that the right side of the code starts from this code unit, and the third connection information is spliced ​​on the right side of the signal splicing unit, which is a symbol separating two code units to indicate that there are other code units after this code unit.

[0125] In an optional implementation, the filling of the signal splicing unit, the splicing with the connection information and the final calling of the signal filling information to the template file can be implemented based on different programming languages. In order to ensure that the relevant information can be correctly identified when the above steps are implemented by the programming language, the connection information corresponding to the signal splicing unit may include an identification symbol of the programming language used. For example, when using Python to fill the signal splicing unit and splice it with the connection information, in order to correctly identify the final signal filling information, an additional "{" will be added to the first connection information and an additional "}" will be added to the second connection information.

[0126] Therefore, the connection information corresponding to the signal splicing unit is determined by the above method, and the signal splicing unit is spliced ​​with the corresponding connection information to obtain the filling information, thereby ensuring that the filling information can comply with the writing logic of the memory wrapper file, can be used normally, and is placed in the filling information set code_list.

[0127] In an optional implementation, after the signal splicing unit is filled, the bit width information of the associated signal unit corresponding to the signal splicing unit can be determined based on the number of signal splicing units, the associated signal unit can be filled, and the filled associated signal unit can be used as filling information and put into a filling information set, thereby obtaining a filling information set. Specifically, the low-order bit width value of the associated signal unit is 0, and the high-order bit width value upper is the current number of filling times minus one, that is, the number of signal splicing units minus one; considering from the perspective of the quotient value and remainder, if the remainder is 0, the high-order bit width value of the associated signal unit is the quotient value minus one, and if the remainder is not 0, the high-order bit width value of the associated signal unit is the quotient value.

[0128] Through the above method, based on the bit width and splicing width information of the physical memory, the signal splicing unit is filled in sequence, and the connection information corresponding to the signal splicing unit is determined based on the current number of filling times. The two are spliced ​​to obtain the filling information, so that the obtained filling information can meet the writing standard of the memory wrapper file, ensuring that the memory wrapper file can be used normally.

[0129] Step S3033, concatenating the filling information in the filling information set to obtain signal filling information.

[0130] In an embodiment of the present invention, since the signal splicing unit is filled from 0 upward when the bit width is filled, and in the actual code, the arrangement of the code units is arranged from the high bit width value downward, after obtaining the filling information set, the filling information in the filling information set is reversely sorted by a reverse operation and then a join operation is performed for splicing. Specifically, the filling information in the filling information set is arranged in an order opposite to the arrangement order to obtain reversely arranged filling information; the reversely arranged filling information is spliced ​​in series to obtain the signal filling information. Therefore, the filling information is reversely arranged and then spliced ​​in series to obtain the signal filling information, so that the signal filling information meets the writing standard of the memory wrapper file, and the accuracy of the memory wrapper file is ensured.

[0131] Through the above method, the signal name area in the signal splicing template is filled based on the signal name in the signal list to obtain a signal splicing unit, and the bit width information of the signal splicing unit is filled based on the signal splicing information, thereby ensuring that the obtained signal filling information is consistent with the configuration in the signal configuration file, thereby ensuring the accuracy of the final memory wrapper file.

[0132] Step S304, determine the target filling information from the multiple signal filling information, and fill the template file with data based on the target filling information to obtain the target file corresponding to the memory wrapper. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.

[0133] In this embodiment, a method for generating a memory wrapper file is provided, which can be used for a memory compiler. Figure 5 is a flowchart of a method for generating a memory wrapper file according to another embodiment of the present invention. Figure 5 As shown, the process includes the following steps:

[0134] Step S501, obtain the signal configuration file and template file of the memory wrapper. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0135] Step S502: parse the signal configuration file to obtain multiple signal splicing information and multiple signal lists. Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.

[0136] Step S503, obtain a signal splicing template, and fill and splice the signal splicing template with data based on the signal splicing information and the signal list, to obtain signal filling information corresponding to the plurality of signal splicing information. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.

[0137] Step S504, determining target filling information from the plurality of signal filling information, and performing data filling on the template file based on the target filling information to obtain a target file corresponding to the memory wrapper.

[0138] Specifically, step S504 includes:

[0139] Step S5041, determining the data filling position in the template file and the index information corresponding to the data filling position.

[0140] In the embodiment of the present invention, the template file may include multiple data filling positions, each of which corresponds to a part that is not written in the template file. Each data filling position corresponds to an index information, which is consistent with the index information used in the signal configuration file. The signal splicing information corresponding to the data filling position is searched through the index information, so as to further determine the signal filling information that should be filled in the data filling position.

[0141] Step S5042: Based on the index information, determine the target splicing information corresponding to the data filling position from the plurality of signal splicing information.

[0142] In the embodiment of the present invention, index information included in a plurality of signal splicing information is searched, and signal splicing information including index information consistent with index information corresponding to a data filling position is determined as target splicing information corresponding to the data filling position.

[0143] Step S5043: determine the signal filling information corresponding to the target splicing information as the target filling information.

[0144] In the embodiment of the present invention, the signal filling information corresponding to the target splicing information, that is, the information filled into the corresponding data filling position, determines the signal filling information corresponding to the target splicing information as the target filling information.

[0145] Step S5044, fill the target filling information into the corresponding data filling position to obtain the target file.

[0146] In the embodiment of the present invention, the target filling information corresponding to each data filling position in the template file is determined respectively, and the corresponding target filling information is filled into the data filling position respectively, so as to obtain the target file.

[0147] Therefore, through the above method, the corresponding signal splicing information is determined according to the index information of the data filling position in the template file, and is filled into the data filling position, thereby ensuring the accuracy of the information filled in each data filling position in the template file.

[0148] In this embodiment, a device for generating a memory wrapper file is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the term "module" may be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0149] This embodiment provides a device for generating a memory wrapper file, such as Figure 6 As shown, including:

[0150] The file acquisition module 601 is used to acquire the signal configuration file and template file of the memory wrapper;

[0151] The configuration file parsing module 602 is used to parse the signal configuration file to obtain a plurality of signal splicing information and a plurality of signal lists; the signal splicing information corresponds to the signal list one by one;

[0152] The data filling module 603 is used to obtain a signal splicing template, and based on the signal splicing information and the signal list, respectively fill and splice the signal splicing template with data to obtain signal filling information corresponding to the plurality of signal splicing information;

[0153] The template filling module 604 is used to determine target filling information from multiple signal filling information, and fill the template file with data based on the target filling information to obtain a target file corresponding to the memory wrapper.

[0154] In an optional implementation, the configuration file parsing module 602 includes:

[0155] A configuration file parsing unit, used to parse the signal configuration file to obtain a plurality of signal configuration information; the signal configuration information includes index information corresponding to the corresponding physical memory, splicing width information and signal set;

[0156] A signal splicing information determining unit, configured to determine the signal splicing information based on the index information and the splicing width information;

[0157] The signal list determination unit is used to store the signal names contained in the signal set into the signal list according to the arrangement order in the signal set to obtain the signal list.

[0158] In an optional implementation, the data filling module 603 includes:

[0159] A signal name filling unit, used to fill the signal name area in the signal splicing template based on the signal names included in the signal list, to obtain a signal splicing unit corresponding to each signal splicing information;

[0160] A bit width filling unit, used to fill the signal splicing unit based on the signal splicing information and the bit width of the physical memory corresponding to the signal splicing information to obtain a filling information set;

[0161] The filling information concatenation unit is used to concatenate the filling information in the filling information set to obtain signal filling information.

[0162] In an optional implementation manner, the signal name filling unit includes:

[0163] A signal index acquisition subunit is used to acquire the signal index corresponding to each signal name area;

[0164] A signal name determination subunit, used to determine the signal name corresponding to the signal name area from the signal list based on the signal index;

[0165] The signal name filling subunit is used to fill the signal name into the corresponding signal name area to obtain a signal splicing unit.

[0166] In an optional implementation, the signal splicing information includes index information and splicing width information corresponding to the physical memory; the bit width filling unit includes:

[0167] A numerical calculation subunit, used for dividing the bit width of the physical memory by the splicing width information to obtain a quotient and a remainder;

[0168] a quantity determination subunit, used for determining that the quantity of padding information corresponding to the signal splicing unit is one if the quotient value is equal to zero;

[0169] The bit width determination subunit is used to use zero as the low-order bit width value of the signal splicing unit, reduce the bit width of the physical memory by one as the high-order bit width value of the signal splicing unit, obtain padding information, and put the padding information into a padding information set;

[0170] The quantity determination subunit is further used to determine that the quantity of filling information corresponding to the signal splicing unit is greater than one if the quotient value is greater than zero, and fill the signal splicing units in sequence;

[0171] The bit width determination subunit is further used to determine the high bit width value and the low bit width value of the signal splicing unit based on the current filling number and the splicing width information, fill the signal splicing unit, and obtain the filled signal splicing unit;

[0172] A connection information determination subunit, used to determine the connection information corresponding to the signal splicing unit based on the current filling number, splice the connection information with the filled signal splicing unit to obtain filling information, and put the filling information into the filling information set;

[0173] The associated signal unit filling subunit is used to determine the bit width information of the associated signal unit corresponding to the signal splicing unit based on the number of signal splicing units, fill the associated signal unit, and put the filled associated signal unit as filling information into the filling information set.

[0174] In an optional implementation, the filling information splicing unit includes:

[0175] A reverse arrangement subunit, used to arrange the filling information in the filling information set in an order opposite to the arrangement order, so as to obtain reversely arranged filling information;

[0176] The filling information splicing subunit is used to serially splice the reversely arranged filling information to obtain signal filling information.

[0177] In an optional implementation, the template filling module 604 includes:

[0178] An index information determination unit, used to determine a data filling position in a template file, and index information corresponding to the data filling position;

[0179] A target splicing information determining unit, configured to determine target splicing information corresponding to a data filling position from a plurality of signal splicing information based on the index information;

[0180] A target filling information determining unit, used to determine the signal filling information corresponding to the target splicing information as the target filling information;

[0181] The target filling information filling unit is used to fill the target filling information into the corresponding data filling position to obtain the target file.

[0182] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0183] The memory wrapper file generation device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0184] The embodiment of the present invention also provides a computer device having the above Figure 6 The memory wrapper file shown is generated by the device.

[0185] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 7As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.

[0186] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0187] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0188] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0189] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0190] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0191] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0192] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0193] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention. Such modifications and variations are all within the scope defined by the present invention.

Claims

1. A method for generating a memory wrapper file, characterized in that: The method comprises: Get the signal configuration file and template file of the memory wrapper; Parsing the signal configuration file to obtain a plurality of signal splicing information and a plurality of signal lists; the signal splicing information corresponds to the signal list one by one; Acquire a signal splicing template, and based on the signal splicing information and the signal list, respectively fill and splice the signal splicing template with data to obtain signal filling information corresponding to a plurality of the signal splicing information; Target filling information is determined from the plurality of signal filling information, and data is filled in the template file based on the target filling information to obtain a target file corresponding to the memory wrapper.

2. The method according to claim 1, characterized in that The signal configuration file is parsed to obtain multiple signal splicing information and multiple signal lists, including: Parsing the signal configuration file to obtain a plurality of signal configuration information; the signal configuration information includes index information corresponding to the corresponding physical memory, splicing width information and a signal set; Determining the signal splicing information based on the index information and the splicing width information; According to the arrangement order in the signal set, the signal names included in the signal set are stored in the signal list to obtain the signal list.

3. The method according to claim 1, characterized in that: The signal splicing template is filled with data and spliced ​​based on the signal splicing information and the signal list to obtain a plurality of signal filling information corresponding to the signal splicing information, including: Based on the signal names included in the signal list, the signal name areas in the signal splicing template are filled respectively to obtain a signal splicing unit corresponding to each signal splicing information; Filling the signal splicing unit based on the signal splicing information and the bit width of the physical memory corresponding to the signal splicing information to obtain a filling information set; The filling information in the filling information set is serially concatenated to obtain the signal filling information.

4. The method according to claim 3, characterized in that The filling of the signal name area in the signal splicing template based on the signal name included in the signal list to obtain the signal splicing unit corresponding to each signal splicing information includes: Obtain the signal index corresponding to each of the signal name areas; Based on the signal index, determining a signal name corresponding to the signal name area from the signal list; Fill the signal name into the corresponding signal name area to obtain the signal splicing unit.

5. The method according to claim 3, characterized in that: The signal splicing information includes index information and splicing width information corresponding to the physical memory; the signal splicing unit is filled based on the signal splicing information and the bit width of the physical memory corresponding to the signal splicing information to obtain a filling information set, including: Dividing the bit width of the physical memory by the splicing width information to obtain a quotient and a remainder; If the quotient is equal to zero, determining that the amount of padding information corresponding to the signal splicing unit is one; Taking zero as the low-order bit width value of the signal splicing unit, taking the bit width of the physical memory minus one as the high-order bit width value of the signal splicing unit, obtaining the padding information, and putting the padding information into the padding information set; If the quotient is greater than zero, determining that the amount of filling information corresponding to the signal splicing unit is greater than one, and filling the signal splicing unit in sequence; Based on the current filling number and the splicing width information, determine the high-order bit width value and the low-order bit width value of the signal splicing unit, fill the signal splicing unit, and obtain a filled signal splicing unit; Based on the current filling number, determining the connection information corresponding to the signal splicing unit, splicing the connection information with the filled signal splicing unit to obtain the filling information, and putting the filling information into the filling information set; Based on the number of the signal splicing units, the bit width information of the associated signal units corresponding to the signal splicing units is determined, the associated signal units are filled, and the filled associated signal units are used as filling information and put into the filling information set.

6. The method according to claim 3, characterized in that: The step of serially concatenating the filling information in the filling information set to obtain the signal filling information includes: Arrange the filling information in the filling information set in an order opposite to the arrangement order to obtain reversely arranged filling information; The reversely arranged filling information is serially connected to obtain the signal filling information.

7. The method according to claim 1, characterized in that The step of determining target filling information from the plurality of signal filling information, and performing data filling on the template file based on the target filling information to obtain a target file corresponding to the memory wrapper includes: Determine the data filling position in the template file, and the index information corresponding to the data filling position; Based on the index information, determining the target splicing information corresponding to the data filling position from the plurality of signal splicing information; Determine the signal filling information corresponding to the target splicing information as the target filling information; Fill the target filling information into the corresponding data filling position to obtain the target file.

8. A device for generating a memory wrapper file, characterized in that: The device comprises: A file acquisition module, used to obtain the signal configuration file and template file of the memory wrapper; A configuration file parsing module, used for parsing the signal configuration file to obtain a plurality of signal splicing information and a plurality of signal lists; the signal splicing information corresponds to the signal list one by one; A data filling module, used for acquiring a signal splicing template, and performing data filling and splicing on the signal splicing template based on the signal splicing information and the signal list, to obtain signal filling information corresponding to a plurality of signal splicing information; The template filling module is used to determine the target filling information from the multiple signal filling information, and fill the template file with data based on the target filling information to obtain the target file corresponding to the memory wrapper.

9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for generating a memory wrapper file according to any one of claims 1 to 7 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method for generating a memory wrapper file according to any one of claims 1 to 7.