CN109741776B - Initialization method, device, equipment and medium of block-shaped static random access memory - Google Patents

Initialization method, device, equipment and medium of block-shaped static random access memory Download PDF

Info

Publication number
CN109741776B
CN109741776B CN201811647732.4A CN201811647732A CN109741776B CN 109741776 B CN109741776 B CN 109741776B CN 201811647732 A CN201811647732 A CN 201811647732A CN 109741776 B CN109741776 B CN 109741776B
Authority
CN
China
Prior art keywords
initialization
data
address
file
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811647732.4A
Other languages
Chinese (zh)
Other versions
CN109741776A (en
Inventor
李元策
毛忠亮
孙莉莉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gowin Semiconductor Corp
Original Assignee
Gowin Semiconductor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gowin Semiconductor Corp filed Critical Gowin Semiconductor Corp
Priority to CN201811647732.4A priority Critical patent/CN109741776B/en
Publication of CN109741776A publication Critical patent/CN109741776A/en
Application granted granted Critical
Publication of CN109741776B publication Critical patent/CN109741776B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an initialization method, device, equipment and medium of a block-shaped static random access memory. The method comprises the steps of obtaining an initialization configuration request to enter a file configuration interface; acquiring file configuration parameters based on a file configuration interface, and entering a visual editing interface based on the file configuration parameters, wherein the visual editing interface comprises a starting address, an address offset corresponding to the starting address, and a region to be edited corresponding to the starting address and the address offset; acquiring original initialization data based on a region to be edited of a visual editing interface, and performing format verification on the original initialization data to acquire target initialization data; based on the target initialization data, an initialization file corresponding to the file format is generated. The method overcomes the defects of easy error, inflexibility and difficult modification of the traditional method for generating the initialization file, enables developers to concentrate on the engineering, shortens the engineering development period and improves the development quality and efficiency.

Description

Initialization method, device, equipment and medium of block-shaped static random access memory
Technical Field
The present invention relates to the field of engineering development technologies, and in particular, to an initialization method, an initialization device, an initialization apparatus, and a medium for a block-type static random access memory.
Background
When the block-type static random access memory is used in engineering development, the block-type static random access memory is usually initialized according to engineering requirements, and an initialization method is to use an initialization file to configure an initialization value in the block-type static random access memory.
The current methods for generating initialization files are manual written code generation, generation using scripting languages, and generation using specialized tools. The manual code writing is low in efficiency and easy to make mistakes, for example, the problems that the data quantity in the initialization file does not accord with the data depth, the data width is unreasonable, invalid data values and the like often occur. When the script language is used for generating the initialization file, extra time is needed for writing the script, namely, the script needs to be modified every time the format, the data depth and the data width of the initialization file are changed, and the problems of low efficiency and inconvenience in subsequent modification exist. The initialization file is generated by using a special tool, and the generated format is relatively single and not flexible enough.
Disclosure of Invention
The embodiment of the invention provides an initialization method, device, equipment and medium of a block-shaped static random access memory, and aims to solve the problems of low efficiency, high error probability and single format in the current generation process of an initialization file of the block-shaped static random access memory.
An initialization method of a block static random access memory, comprising:
acquiring an initialization configuration request, and entering a file configuration interface based on the initialization configuration request;
acquiring file configuration parameters based on the file configuration interface, wherein the file configuration parameters comprise file formats, data depths and data widths;
entering a visual editing interface based on the file format, the data depth and the data width, wherein the visual editing interface comprises a starting address, an address offset corresponding to the starting address and a region to be edited corresponding to the starting address and the address offset;
acquiring original initialization data based on the area to be edited of the visual editing interface, and performing format verification on the original initialization data to acquire target initialization data;
and generating an initialization file corresponding to the file format based on the target initialization data.
An initialization apparatus of a block type static random access memory, comprising:
the device comprises an initialization configuration request acquisition module, a file configuration interface acquisition module and a file configuration interface acquisition module, wherein the initialization configuration request acquisition module is used for acquiring an initialization configuration request and entering the file configuration interface based on the initialization configuration request;
the file configuration parameter acquisition module is used for acquiring file configuration parameters based on the file configuration interface, and the file configuration parameters comprise file formats, data depths and data widths;
a visual editing interface module, configured to enter a visual editing interface based on the file format, the data depth, and the data width, where the visual editing interface includes a start address, an address offset corresponding to the start address, and a region to be edited corresponding to the start address and the address offset;
the target initialization data acquisition module is used for acquiring original initialization data based on the area to be edited of the visual editing interface, and carrying out format verification on the original initialization data to acquire target initialization data;
and the initialization file generation module is used for generating an initialization file corresponding to the file format based on the target initialization data.
A computer device comprising a memory, a processor and a computer program stored in said memory and running on said processor, said processor implementing the steps of the above method for initializing a block-shaped static random access memory when executing said computer program.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method for initializing a block-shaped static random access memory as described above.
According to the initialization method, the initialization device, the computer equipment and the storage medium of the block-shaped static random access memory, the initialization system enters the text configuration interface based on the acquired initialization configuration request, so that file configuration parameters such as file format, data depth and data width are configured on the text configuration interface, and the visual editing interface is opened based on the file configuration parameters, so that the initialization data can be clearly and intuitively acquired based on the visual editing interface. After original initialization data are obtained through an area to be edited of an interface to be edited of a visual editing interface, the original initialization data are checked to check whether data which do not conform to a format exist, if the data which do not conform to the format exist, the data are modified to obtain target initialization data, and an initialization file is generated based on the target initialization data. The visual interface can be used for visually presenting the initialization data to developers, meanwhile, the address of the area to be edited corresponds to the block-shaped static random access memory, the block-shaped static random access memory can be initialized based on the target initialization data in the initialization file, the initialization efficiency is improved, meanwhile, the visual interface can modify the initialization data for many times, the operation is simple and flexible, and codes do not need to be rewritten.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flowchart of a method for initializing a block SRAM according to an embodiment of the present invention;
FIG. 2 is another flow chart of a method for initializing a block SRAM according to an embodiment of the present invention;
FIG. 3 is another flow chart of a method for initializing a block SRAM according to an embodiment of the present invention;
FIG. 4 is another flow chart of a method for initializing a block SRAM in accordance with an embodiment of the present invention;
FIG. 5 is another flow chart of a method for initializing a block SRAM in accordance with an embodiment of the present invention;
FIG. 6 is a diagram of an apparatus for initializing a block SRAM according to an embodiment of the present invention;
FIG. 7 is another diagram of an apparatus for initializing a block SRAM according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a computer device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The initialization method of the block-shaped static random access memory provided by the embodiment of the invention is applied to an initialization system of the block-shaped static random access memory, and is used for realizing the rapid configuration of an initialization file which is verified and has a flexible format, so that the initialization value of the block-shaped static random access memory is initialized based on the initialization file.
In an embodiment, as shown in fig. 1, the present embodiment provides an initialization method for a block sram, including the following steps performed by an initialization system:
s101: and acquiring an initialization configuration request, and entering a file configuration interface based on the initialization configuration request.
The initialization configuration request is a request for configuring an initialization file for initializing the block static random access memory. The file configuration interface refers to an interface for implementing a configuration initialization file. For example, the file configuration interface may allow a developer to set file configuration parameters such as a file format, a data depth, and a data width of the initialization file, so as to configure a corresponding required initialization file based on the file configuration parameters.
In this embodiment, the initialization system obtains the initialization configuration request to control the client to enter the file configuration interface, so that a developer can set the file configuration parameters of the initialization file in the file configuration interface. The file configuration interface provides an intuitive and vivid operation interface for developers, so that the developers can modify the file configuration parameters of the initialization file according to actual needs, errors are avoided, and the development speed is improved.
S102: and acquiring file configuration parameters based on the file configuration interface, wherein the file configuration parameters comprise a file format, data depth and data width.
The file configuration parameter refers to a parameter for configuring the type of the initialization file. The file format is a format for storing information or identifying a particular encoding scheme of the stored information. The data depth refers to the number of addressable memory cells. The data width refers to the width of a memory cell, and can be understood as the character length of data corresponding to the memory cell.
Specifically, after the initialization system controls the client to enter a file configuration interface, the file configuration interface is provided with an interface for inputting file configuration parameters, and the interface of the file configuration parameters specifically comprises a file format interface, a data width interface and a data depth interface so as to set file configuration parameters such as a file format, a data width and a data depth of the initialization file. In this embodiment, according to the requirements of different users, the interface capable of setting the file configuration parameters may configure the file configuration parameters in a manual input manner, or may configure the file configuration parameters in a selection manner by pulling down a selection box.
In this embodiment, the file format interface supports formats such as Bin, Hex and Address-Hex, that is, the user may input the Bin, Hex or Address-Hex format through a manual input mode, or may input the Bin, Hex or Address-Hex format through a drop-down selection mode of the selection box. The data width interface can set the data width by directly and manually inputting the numerical value, and can also set the data width in a mode of increasing or decreasing the numerical value through an operation arrow carried by the data width interface. The data depth interface can set the data depth by directly and manually inputting the numerical value, and can also set the data depth in a mode of increasing or decreasing the numerical value through an operation arrow carried by the data depth interface. It can be understood that the type of the initialization file can be quickly set by setting the file configuration parameters, so that the efficiency of the initialization file configuration is improved, the engineering development speed is accelerated, and meanwhile, developers can conveniently modify the initialization file.
S103: and entering a visual editing interface based on the file format, the data depth and the data width, wherein the visual editing interface comprises a starting address, an address offset corresponding to the starting address and a region to be edited corresponding to the starting address and the address offset.
The visual editing interface is an interface which is displayed visually and can edit the initialization data. The start address is an address for determining the start of editing of the initialization data, and is set by a developer. The address offset refers to an offset from a start address. The area to be edited refers to an area for editing and storing initialization data.
In this embodiment, a table is set in the visual editing interface to display and store the initialization data. The table comprises a row table head, a column table head and cells, wherein the list head is used for setting a starting address, the table head of each column represents the starting address of the column, the row table head is used for representing address offset, the cells corresponding to the column table head and the row table head are used for displaying and editing initialization data, an area corresponding to each cell is an area to be edited, and the cell address is the starting address plus the address offset. Each cell address corresponds to an address of each block sram cell. For example, in the cell of row 2 and column 2, the address of the corresponding block sram cell is start address (00100000) + address offset (+1) ═ 00100001. The visual editing interface is used for displaying and editing the initialization data, and can visually and vividly present the initialization data to a user, so that developers can directly edit and modify the initialization data on the visual editing interface without rewriting codes when maintaining and modifying the block-shaped static random access memory, the development period of the developers is greatly shortened, and the convenience of subsequent modification is ensured.
S104: and acquiring original initialization data based on the area to be edited of the visual editing interface, and performing format verification on the original initialization data to acquire target initialization data.
The original initialization data refers to data edited by a developer to initialize the block-shaped static random access memory. The target initialization data refers to data acquired after format verification of original initialization data, and is data finally used for initializing the block-shaped static random access memory.
In this embodiment, a client enters a visual editing interface, and a developer inputs original initialization data in a to-be-edited region of the visual editing interface, so that the to-be-edited region acquires the original initialization data, performs format verification on the original initialization data, and acquires target initialization data. Since the developer may have errors in the editing process, the original initialization data with errors can be found by performing format verification on the original initialization data, so that the original initialization data with errors can be modified, and the accuracy of finally obtaining the target initialization data is ensured.
S105: based on the target initialization data, an initialization file corresponding to the file format is generated.
The initialization file is a file storing target initialization data and is used for initializing the block-shaped static random access memory. In this embodiment, the initialization system acquires an Address of the block-shaped static random access memory to be initialized based on the target initialization data, and a developer generates an initialization file by using a software code of the background according to a specified initialization file format (currently, commonly used initialization file formats include Bin, Hex and Address-Hex). It is understood that after the initialization file is obtained, the initialization operation may be performed on the block-shaped static random access memory based on the initialization file for the purpose of configuring the initialization value of the block-shaped static random access memory.
In the initialization method for the block-shaped static random access memory provided by this embodiment, the initialization system enters the text configuration interface based on the acquired initialization configuration request, so as to configure file configuration parameters such as file format, data depth and data width on the text configuration interface, and open the visual editing interface based on the file configuration parameters, so as to clearly and intuitively acquire initialization data based on the visual editing interface. After original initialization data are obtained through an area to be edited of an interface to be edited of a visual editing interface, the original initialization data are checked to check whether data which do not conform to a format exist, if the data which do not conform to the format exist, the data are modified to obtain target initialization data, and an initialization file is generated based on the target initialization data. The visual interface can be used for visually presenting the initialization data to developers, meanwhile, the address of the area to be edited corresponds to the block-shaped static random access memory, the block-shaped static random access memory can be initialized based on the target initialization data in the initialization file, the initialization efficiency is improved, meanwhile, the visual interface can modify the initialization data for many times, the operation is simple and flexible, and codes do not need to be rewritten.
In an embodiment, as shown in fig. 2, after S104, that is, after acquiring the target initialization data, the initialization method of the block-shaped static random access memory further includes:
and S201, acquiring the address of the block-shaped static random access memory corresponding to the address of the area to be edited based on the initial address and the address offset.
The address of the block-shaped static random access memory refers to the address of a storage unit in the block-shaped static random access memory, and the address of the block-shaped static random access memory corresponds to the address of the area to be edited. Since the address of the area to be edited is the start address + the address offset. It is understood that the address of the block sram is the start address + the address offset, and therefore the address of the memory cell of the block sram can be found based on the start address and the address offset. Specifically, the initialization system can obtain the start address and the address offset based on the visual editing interface to calculate the address of the area to be edited, and determine the corresponding address of the block-shaped static random access memory according to the address of the area to be edited, so that the initialization data can be set according to actual needs. For example, if a developer needs to initialize a cell with address 00100001, the developer selects a cell with address 00100001 in the area to be edited, where 00100001 is the start address (00100000) + the address offset (+ 1). In the embodiment, the initialization data can be quickly filled into the corresponding block-shaped static random access memory based on the visual editing interface.
And S202, storing the target initialization data to the address of the block-shaped static random access memory corresponding to the area to be edited.
Specifically, based on the start address and the address offset, the address of the area to be edited is calculated by using the address of the area to be edited, which is the start address plus the address offset. Developers can visually see what the initialization data corresponding to the addresses of the block-shaped static random access memory are, and do not need to look up the initialization data facing to complicated codes.
In the initialization method of the block-shaped static random access memory provided by this embodiment, since the address of the area to be edited corresponds to the address of the block-shaped static random access memory, the address of the block-shaped static random access memory corresponding to the address of the area to be edited can be quickly acquired based on the start address and the address offset. And then storing the target initialization data to the address of the block-shaped static random access memory corresponding to the area to be edited so that a developer can fill the initialization data in the area to be edited, thereby clearly and intuitively checking the target initialization data corresponding to the block-shaped static random access memory corresponding to the developer.
In an embodiment, as shown in fig. 3, the step S202 of storing the target initialization data to the address of the block-shaped sram corresponding to the area to be edited specifically includes the following steps:
s301, a data editing request is obtained, wherein the data editing request comprises an initialization value and at least one area identifier.
The data editing request refers to a request for editing initialization data received by an initialization system, and the initialization value refers to a numerical value constituting the initialization data, for example, the initialization value may be 1 or 0, and the initialization value may be set manually according to actual needs. The area identifier is an identifier of a cell used for storing an initialization value in an area to be edited, each cell corresponds to one area identifier, and one initialization value is filled into one area identifier.
Further, the area identification includes a continuous area identification and a discontinuous area identification. The continuous area identification refers to an identification that an address in the block static random access memory, which needs to be initialized, is continuous and uninterrupted and comprises at least two addresses, for example, 0 to 127. The discontinuous area identifier is an identifier of an address to be initialized in the block sram, which is a discontinuity, for example, addresses of the block sram to be initialized are 1, 3, 5, 7, 9, and 11. When the initialization data is filled in for the continuous area identifications, the developer can quickly fill in the corresponding initialization values after selecting a plurality of continuous area identifications. For the discontinuous area identifier, after the developer selects the discontinuous area identifier, the corresponding initialization value is refilled. In the embodiment, after the at least one area identifier is selected, the area to be edited corresponding to the at least one area identifier is conveniently and quickly filled with the initialization value subsequently, and the initialization values of the cells do not need to be filled one by one, so that the development speed of developers is increased, and the development period is shortened.
And S302, filling the initialization value into a to-be-edited area corresponding to the area identification in the visual editing interface, and acquiring original initialization data.
In this embodiment, the initialization value is filled in the region to be edited in the visual editing interface corresponding to the region identifier, so as to quickly obtain the original initialization data. It can be understood that, in steps S301 and S302, the same original initialization data can be quickly filled in the areas to be edited corresponding to the continuous multiple area identifications or the areas to be edited corresponding to the discontinuous multiple area identifications, so as to improve the acquisition efficiency of the original initialization data.
In the initialization method of the block static random access memory provided by this embodiment, an initialization value and an area marker are determined according to an acquired data editing request, and the initialization value is filled in an area to be edited corresponding to an area identifier in a visual editing interface, so as to acquire original initialization data. After at least one area identification is selected, the area to be edited corresponding to the at least one area identification is quickly filled with the initialization value, and the initialization value of each cell does not need to be filled one by one, so that the development speed of developers is accelerated, and the development period is shortened.
In an embodiment, as shown in fig. 4, the step S202 of storing the target initialization data to the address of the block-shaped sram corresponding to the area to be edited specifically includes the following steps:
s401, a data editing request is obtained, wherein the data editing request comprises at least one area identification, a customized data rule and an initial parameter corresponding to the customized data rule.
The customized data rule refers to a preset rule for configuring the initialization value. For example, if the customized data rule includes an arithmetic progression and an geometric progression, the configured initialization value satisfies the arithmetic progression and the geometric progression, and the initialization value can be customized according to the customized data rule, so as to edit a plurality of initialization values at one time. For example, the initialization value is 1, 3, 5, 7, 9 … … N or 0, 2, 4, 6, 8 … … N, such initialization value satisfies the arithmetic progression; if the initialization values are 1, 2, 4, 8, 16, 32 … … N and satisfy the geometric series, the initialization value corresponding to the area identifier is customized. The initial parameter refers to a parameter for determining an initialization value, and particularly refers to a parameter to which a preset customized data rule can be applied. For example, when the custom data rule is an arithmetic series, the corresponding initial parameters are a tolerance and a first term value, and if the first term value is 3 and the tolerance is 3, the initialization values determined according to the custom data rule are 3, 6, 9, and 12 … … N. It is to be understood that at least one region identifier in step S501 is generally a region identifier corresponding to a continuous region to be edited.
S402, processing the initial parameters based on the customized data rule to obtain the initialization value.
The initialization value refers to a numerical value in each area identifier, that is, a numerical value that needs to be filled into the area to be edited corresponding to each area identifier. In this embodiment, the developer determines the corresponding customized data rule based on the special rule, and may quickly determine the same or different initialization values according to the customized data rule and the initial parameters, so as to generate the initialization values in batch. Meanwhile, the defects that other methods for manually generating the initialization value are easy to make mistakes and are inflexible are overcome.
And S403, filling the initialization value into the area to be edited corresponding to the area identification in the visual editing interface, and acquiring original initialization data.
The implementation process of step S403 is similar to step S302, and is not described herein again.
In the initialization method for the block-shaped static random access memory provided by this embodiment, the initialization system obtains a data editing request, processes the initial parameters by using the customized data rule to quickly obtain initialization values in batches, and fills the initialization values into the to-be-edited region corresponding to the region identifier in the visual editing interface, so as to obtain the original initialization data, thereby clearly and intuitively viewing the target initialization data corresponding to the corresponding block-shaped static random access memory.
In one embodiment, the initial parameters include an original value and an original address, and the customized data rule includes a data address association relationship. Step S402, namely, processing the initial parameter based on the customized data rule, and obtaining an initialization value, specifically including: and processing the original numerical value and the original address based on the data address incidence relation to obtain an initialization value.
The original numerical value refers to a numerical value in an unedited region to be edited. The original address refers to the address of the head of the row and the head of the list in the table which are not edited. The data address incidence relation refers to the incidence relation between the numerical value used in the area to be edited and the address thereof. For example, the initialization values are 0, 2, 4, 6, 8, 10, 12 … … N, such initialization values satisfy the formula: the initialization value is address 2. And processing the original numerical value and the original address based on the data address incidence relation, quickly acquiring a corresponding initialization value, and filling the initialization value into the area to be edited.
In the initialization method of the block-shaped static random access memory provided by this embodiment, the original numerical value and the original address are processed according to the data address association relationship to obtain the initialization value, and for the initialization value related to the address, the data address association relationship and the initial data may be filled in based on the data address association relationship, that is, the required initialization value may be generated and filled in the area identifier to generate the initialization value in batches, and meanwhile, the disadvantages that other methods for manually generating the initialization value are prone to errors and are inflexible are overcome.
In an embodiment, as shown in fig. 5, the method for initializing a block-type static random access memory further includes:
s501, acquiring a system configuration request, and entering a system configuration interface based on the system configuration request.
The binary configuration request refers to a request for setting the binary of the initialization data by a developer. The system configuration interface refers to an interface for setting an initialization data system. In this embodiment, the initialization system controls the client to enter the scale configuration interface based on the scale configuration request, so as to set the scale of the initialization data.
S502, acquiring the system configuration parameters based on the system configuration interface, wherein the system configuration parameters comprise a display address system and a display data system.
The binary configuration parameter refers to a parameter for a developer to perform binary setting on the address and the type of the initialization data. The display address scale is a scale of an address of the initialization data displayed in the area to be edited, and the display data scale is a scale for setting a data type of the initialization data displayed in the area to be edited, for example, the scale for setting the initialization data includes, but is not limited to, binary formats such as Bin, Hex, Oct, and Dec.
And S503, calling a pre-configured display address interface to process the display address system, calling a pre-configured display data interface to process the display data system, and configuring the address system and the data system corresponding to the visual editing interface.
The display address interface is an interface for setting an address system of the initialization data, so that a developer can quickly set the address system of the initialization data, thereby conforming to habits of different users. The display data interface is an interface for setting the initialization data system, so that a developer can quickly initialize the data system to set the data system, thereby conforming to the habits of different users.
In the initialization method of the block-shaped static random access memory provided by this embodiment, an initialization system obtains a binary system setting request, opens a binary system configuration interface, obtains a binary system configuration parameter based on the binary system configuration interface, and sets a display address interface and a display data interface. It will be appreciated that the interface may be configured in a variety of ways to meet the needs of more users, for example, the display address and the address of the display data may be configured by manually filling in, clicking on, and the like.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, an initialization apparatus for a block sram is provided, where the initialization apparatus of the block sram corresponds to the initialization method of the block sram in the above embodiments one to one. As shown in fig. 6, the initialization apparatus of the block-shaped static random access memory includes an initialization configuration request obtaining module 601, a file configuration parameter obtaining module 602, a visual editing interface module 603, a target initialization data obtaining module 604, and an initialization file generating module 605. The functional modules are explained in detail as follows:
the initialization configuration request obtaining module 601 is configured to obtain an initialization configuration request, and enter a file configuration interface based on the initialization configuration request.
The file configuration parameter obtaining module 602 is configured to obtain a file configuration parameter based on the file configuration interface, where the file configuration parameter includes a file format, a data depth, and a data width.
And a visual editing interface module 603, configured to enter a visual editing interface based on the file format, the data depth, and the data width, where the visual editing interface includes a start address, an address offset corresponding to the start address, and a region to be edited corresponding to the start address and the address offset.
The target initialization data obtaining module 604 is configured to obtain original initialization data based on a region to be edited in the visual editing interface, perform format verification on the original initialization data, and obtain target initialization data.
An initialization file generating module 605, configured to generate an initialization file corresponding to a file format based on the target initialization data.
Preferably, as shown in fig. 7, after the target initialization data obtaining module 604, the initialization apparatus of the block-type static random access memory further includes: a memory address acquisition module 701 and a target initialization data storage module 702.
A memory address obtaining module 701, configured to obtain, based on the start address and the address offset, a block-shaped static random access memory address corresponding to the area to be edited.
And a target initialization data storage module 702, configured to store the target initialization data to the address of the block-shaped static random access memory corresponding to the area to be edited.
Preferably, the target initialization data acquisition module 604 comprises: a data edit request acquisition unit and an original initialization data acquisition unit.
A data editing request obtaining unit, configured to obtain a data editing request, where the data editing request includes at least one area identifier and an initialization value.
And the original initialization data acquisition unit is used for filling the initialization value into the area to be edited corresponding to the area identifier in the visual editing interface to acquire the original initialization data.
Preferably, the target initialization data acquisition module 604 comprises: a data edit request acquisition unit, an initialization value acquisition unit, and an original initialization data acquisition unit.
And the data editing request acquiring unit is used for acquiring a data editing request, and the data editing request comprises at least one area identifier, a customized data rule and an initial parameter corresponding to the customized data rule.
And the initialization value acquisition unit is used for processing the initial parameters based on the customized data rule and acquiring the initialization values.
And the original initialization data acquisition unit is used for filling the initialization value into the area to be edited corresponding to the area identifier in the visual editing interface to acquire the original initialization data.
Preferably, the initial parameters include original values and original addresses, and the customized data rule includes data address association relations.
And the initialization value acquisition unit is also used for processing the original numerical value and the original address based on the data address incidence relation to acquire an initialization value.
Preferably, the initialization apparatus of the block-shaped static random access memory further includes: the system comprises a system configuration request acquisition module, a system configuration parameter acquisition module and a calling module.
And the system configuration request acquisition module is used for acquiring the system configuration request and entering a system configuration interface based on the system configuration request.
And the system configuration parameter acquisition module is used for acquiring system configuration parameters based on the system configuration interface, wherein the system configuration parameters comprise a display address system and a display data system.
And the calling module is used for calling the pre-configured display address interface to process the display address system, calling the pre-configured display data interface to process the display data system, and configuring the address system and the data system corresponding to the visual editing interface.
For specific limitations of the initialization apparatus of the block sram, reference may be made to the above limitations of the initialization method of the block sram, and details are not described herein again. The various blocks in the initialization apparatus of the block sram described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, the initialization system may be a stand-alone device, i.e., a computer device having an internal structure as shown in FIG. 8, including a processor, a memory, a network interface, and a database connected via a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data adopted or generated in the process of executing the initialization method of the block-shaped static random access memory, such as target initialization data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of initializing a block static random access memory.
In one embodiment, the initialization system may include a client terminal and a server communicatively coupled to the client terminal via a network, and the server may be a computer device as shown in FIG. 8. The client terminal is also called a user terminal, and refers to a program corresponding to the server and providing local services for the client. The client may be installed on, but not limited to, various personal computers and notebook computers. The server may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers. The client terminal is in communication connection with the server, so that developers can access the server by using the client terminal to realize online rapid configuration of the verified initialization file with flexible format, and the initialization value of the block static random access memory is initialized based on the initialization file.
In an embodiment, a computer device is provided, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the method for processing hot spot video annotation in the foregoing embodiments is implemented, for example, steps S101 to S105 shown in fig. 1 or steps shown in fig. 2 to fig. 5, which are not described again to avoid repetition. Alternatively, the processor executes the functions of each module/unit in the embodiment of the initialization method of the block static random access memory when the computer program is executed, for example, the initialization configuration request obtaining module 601, the file configuration parameter obtaining module 602, the visual editing interface module 603, the target initialization data obtaining module 604, and the initialization file generating module 605 shown in fig. 6. The functions of (1) are not described in detail herein to avoid redundancy.
In an embodiment, a computer-readable storage medium is provided, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the method for processing hot spot video annotation in the foregoing embodiments is implemented, for example, steps S101 to S105 shown in fig. 1 or steps shown in fig. 2 to fig. 5, which are not repeated herein for avoiding repetition. Alternatively, the processor executes the functions of each module/unit in the embodiment of the initialization method of the block static random access memory when the computer program is executed, for example, the initialization configuration request obtaining module 601, the file configuration parameter obtaining module 602, the visual editing interface module 603, the target initialization data obtaining module 604, and the initialization file generating module 605 shown in fig. 6. The functions of (1) are not described in detail herein to avoid redundancy.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A method for initializing a block static random access memory, comprising:
acquiring an initialization configuration request, and entering a file configuration interface based on the initialization configuration request;
acquiring file configuration parameters based on the file configuration interface, wherein the file configuration parameters comprise file formats, data depths and data widths;
entering a visual editing interface based on the file format, the data depth and the data width, wherein the visual editing interface comprises a starting address, an address offset corresponding to the starting address and a region to be edited corresponding to the starting address and the address offset, the region to be edited is a region corresponding to a cell of the visual editing interface, and each cell address corresponds to the address of each block-shaped static random access memory storage unit;
acquiring original initialization data based on the area to be edited of the visual editing interface, and performing format verification on the original initialization data to acquire target initialization data;
and generating an initialization file corresponding to the file format based on the target initialization data.
2. The method for initializing a block of static random access memory according to claim 1, wherein after said obtaining the target initialization data, the method for initializing a block of static random access memory further comprises:
acquiring a block-shaped static random access memory address corresponding to the area to be edited based on the initial address and the address offset;
and storing the target initialization data to the address of the block-shaped static random access memory corresponding to the area to be edited.
3. The initialization method of the block-shaped static random access memory according to claim 1, wherein the obtaining of the original initialization data based on the area to be edited of the visual editing interface comprises:
acquiring a data editing request, wherein the data editing request comprises at least one area identifier and an initialization value;
and filling the initialization value into a to-be-edited area corresponding to the area identification in the visual editing interface to obtain original initialization data.
4. The initialization method of the block-shaped static random access memory according to claim 1, wherein the obtaining of the original initialization data based on the area to be edited of the visual editing interface comprises:
acquiring a data editing request, wherein the data editing request comprises at least one area identifier, a customized data rule and initial parameters corresponding to the customized data rule, and the customized data rule is a preset rule for configuring an initialization value;
processing the initial parameters based on the customized data rule to obtain an initialization value;
and filling the initialization value into a to-be-edited area corresponding to the area identification in the visual editing interface to obtain original initialization data.
5. The method for initializing a block static random access memory according to claim 4, wherein the initial parameters include an original value and an original address, and the customized data rule includes a data address association relationship;
the processing the initial parameter based on the customized data rule to obtain an initialization value includes:
and processing the original numerical value and the original address based on the data address incidence relation to obtain an initialization value.
6. The method for initializing a block static random access memory according to claim 1, further comprising:
acquiring a system configuration request, and entering a system configuration interface based on the system configuration request;
acquiring a system configuration parameter based on the system configuration interface, wherein the system configuration parameter comprises a display address system and a display data system;
and calling a pre-configured display address interface to process the display address system, calling a pre-configured display data interface to process the display data system, and configuring the address system and the data system corresponding to the visual editing interface.
7. An apparatus for initializing a block-type static random access memory, comprising:
the device comprises an initialization configuration request acquisition module, a file configuration interface acquisition module and a file configuration interface acquisition module, wherein the initialization configuration request acquisition module is used for acquiring an initialization configuration request and entering the file configuration interface based on the initialization configuration request;
the file configuration parameter acquisition module is used for acquiring file configuration parameters based on the file configuration interface, and the file configuration parameters comprise file formats, data depths and data widths;
a visual editing interface module, configured to enter a visual editing interface based on the file format, the data depth, and the data width, where the visual editing interface includes a start address, an address offset corresponding to the start address, and a region to be edited corresponding to the start address and the address offset, the region to be edited is a region corresponding to a cell of the visual editing interface, and each cell address corresponds to an address of each block-shaped sram storage unit;
the target initialization data acquisition module is used for acquiring original initialization data based on the area to be edited of the visual editing interface, and carrying out format verification on the original initialization data to acquire target initialization data;
and the initialization file generation module is used for generating an initialization file corresponding to the file format based on the target initialization data.
8. The apparatus for initializing a block of static random access memory as defined in claim 7, wherein the apparatus for initializing a block of static random access memory further comprises:
a memory address obtaining module, configured to obtain, based on the start address and the address offset, a block-shaped static random access memory address corresponding to the region to be edited;
and the target initialization data storage module is used for storing the target initialization data to the address of the block-shaped static random access memory corresponding to the area to be edited.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and running on the processor, characterized in that the processor implements the steps of the method for initializing a block-shaped static random access memory according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of a method for initializing a block-shaped static random access memory according to any one of claims 1 to 6.
CN201811647732.4A 2018-12-29 2018-12-29 Initialization method, device, equipment and medium of block-shaped static random access memory Active CN109741776B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811647732.4A CN109741776B (en) 2018-12-29 2018-12-29 Initialization method, device, equipment and medium of block-shaped static random access memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811647732.4A CN109741776B (en) 2018-12-29 2018-12-29 Initialization method, device, equipment and medium of block-shaped static random access memory

Publications (2)

Publication Number Publication Date
CN109741776A CN109741776A (en) 2019-05-10
CN109741776B true CN109741776B (en) 2020-03-20

Family

ID=66362818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811647732.4A Active CN109741776B (en) 2018-12-29 2018-12-29 Initialization method, device, equipment and medium of block-shaped static random access memory

Country Status (1)

Country Link
CN (1) CN109741776B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111585792B (en) * 2020-04-17 2023-05-26 湖南三一智能控制设备有限公司 Data port configuration method and data port configuration device
CN113031865B (en) * 2021-03-23 2023-12-22 北京和利时系统集成有限公司 Method, device, computer storage medium and terminal for realizing data storage

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040268046A1 (en) * 2003-06-27 2004-12-30 Spencer Andrew M Nonvolatile buffered memory interface
CN101436135B (en) * 2007-11-15 2012-04-04 英业达股份有限公司 Initialized setting system and method of options read only memory
CN102087880B (en) * 2009-12-08 2013-09-18 奇景光电股份有限公司 Initialization method of memory element

Also Published As

Publication number Publication date
CN109741776A (en) 2019-05-10

Similar Documents

Publication Publication Date Title
KR101999409B1 (en) Formatting data by example
US11132114B2 (en) Method and apparatus for generating customized visualization component
CN108388515B (en) Test data generation method, device, equipment and computer readable storage medium
CN109857451B (en) Method, device, equipment and medium for generating IP core file
CN109741776B (en) Initialization method, device, equipment and medium of block-shaped static random access memory
CN109614101B (en) Page generation method, system, device, computer equipment and storage medium
CN110442378A (en) The amending method and system of interface document
CN109286517B (en) Method, device and storage medium for creating service and electronic equipment
CN110597714A (en) Kafka message testing method and device, computer equipment and storage medium
CN111984520A (en) Buried point testing method, computer device and computer-readable storage medium
CN110457016B (en) Data visualization processing method and device, computer equipment and storage medium
CN109669977A (en) Data cut-in method, device, computer equipment and the storage medium of integration across database
CN112650548A (en) Date display method, date display device, date display equipment and storage medium
CN110597874B (en) Data analysis model creation method and device, computer equipment and storage medium
CN114048407A (en) HTML format-based flat rich text content generation method and device
CN114564924A (en) Data insertion method, device, equipment and storage medium
CN112435007A (en) Js-based code submission method, device, computer equipment and storage medium
CN107220045B (en) Station building method, device, equipment and storage medium based on artificial intelligence
CN110335247B (en) BIM (building information modeling) -based defect positioning method, device, equipment and storage medium
CN114722161B (en) Method and device for rapidly inquiring state of single task of adding PM on IDE interface
CN117806631A (en) Page configuration method, page configuration device, computer equipment and storage medium
CN116880841A (en) User interface generation method, device and storage medium
JP6407481B1 (en) Program creation device
CN117806632A (en) Multi-page configuration method, device, computer equipment and storage medium
CN117669491A (en) Report generation method, system, device and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant