CN107436770B - Computer resource generation method and system and computer - Google Patents

Computer resource generation method and system and computer Download PDF

Info

Publication number
CN107436770B
CN107436770B CN201710686398.2A CN201710686398A CN107436770B CN 107436770 B CN107436770 B CN 107436770B CN 201710686398 A CN201710686398 A CN 201710686398A CN 107436770 B CN107436770 B CN 107436770B
Authority
CN
China
Prior art keywords
computer resource
ram
computer
resource generation
type
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
CN201710686398.2A
Other languages
Chinese (zh)
Other versions
CN107436770A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201710686398.2A priority Critical patent/CN107436770B/en
Publication of CN107436770A publication Critical patent/CN107436770A/en
Application granted granted Critical
Publication of CN107436770B publication Critical patent/CN107436770B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/32Circuit design at the digital level
    • G06F30/33Design verification, e.g. functional simulation or model checking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • Computing Systems (AREA)
  • Stored Programmes (AREA)
  • Control By Computers (AREA)

Abstract

The invention relates to the technical field of computers, and provides a computer resource generation method, a system and a computer, wherein the method comprises the following steps: receiving a computer resource generation triggering instruction input by a user; analyzing the computer resource generation trigger instruction to acquire the type of the computer resource; calling a pre-generated computer resource generation tool matched with the type of the computer resource; and receiving parameters which are input by a user and conform to the type of the computer resources, and generating the computer resources matched with the computer resource generation trigger instruction by using the computer resource generation tool, so that the automatic batch generation of the computer resources is realized, the management of operators on the computer resources is facilitated, the progress of the front end design and verification of the whole digital chip is improved, and the efficiency is improved.

Description

Computer resource generation method and system and computer
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a computer resource generation method, a system and a computer.
Background
In the front-end design and verification of a digital chip, a large amount of computer resources are often used, which is described by taking ram resources as an example, and for these rams, different bit widths and depths need to be set.
In project management, these rams are usually managed in a centralized manner, and other designers only need to provide the requirements of the rams, such as information of ram type, depth and width, and one of the designers sets the management in a centralized manner. However, in the design stage, due to the large task amount of ram resources, the manual modification operation is difficult to realize the requirement of one-to-many work figures, and the progress and efficiency of the design and verification of the front end of the whole digital chip are reduced.
Disclosure of Invention
The invention aims to provide a computer resource generation method, and aims to solve the problems that in the prior art, due to the fact that the task amount of ram resources is large, the manual modification operation is difficult to achieve the progress requirement of one-to-many working figures, and the progress and the efficiency of the front-end design and verification of the whole digital chip are reduced.
The invention is realized in such a way that a computer resource generation method comprises the following steps:
receiving a computer resource generation triggering instruction input by a user, wherein the computer resource comprises ram, fifo and cam;
analyzing the computer resource generation trigger instruction to acquire the type of the computer resource;
calling a pre-generated computer resource generation tool matched with the type of the computer resource;
and receiving parameters which are input by a user and conform to the type of the computer resources, and generating the computer resources matched with the computer resource generation triggering instruction by using the computer resource generation tool.
As an improved scheme, when the computer resource is ram, the step of receiving a parameter input by a user and conforming to the type of the computer resource, and generating, by using the computer resource generation tool, a computer resource matching with the computer resource generation trigger instruction specifically includes the following steps:
receiving parameters of the ram input through a command line, and defining the meaning of each parameter, wherein the parameters comprise ram type, ram depth and ram width;
setting corresponding output ram types according to different types of ram parameters;
and transmitting the parameter depth and width parameters of the ram into a computer resource generation tool corresponding to the ram according to different depths and widths of the ram, and outputting the parameters to the generated ram.
As an improved scheme, the computer resource generation tool is formed by writing in perl language.
As an improvement, the method further comprises the steps of:
and generating a plurality of computer resource generation tools matched with the types of the computer resources in advance, wherein each computer resource generation tool is used for generating the computer resources matched with the computer resource generation triggering instructions.
It is another object of the present invention to provide a computer resource generation system, the system comprising:
the trigger instruction receiving module is used for receiving a computer resource generation trigger instruction input by a user, wherein the computer resource comprises ram, fifo and cam;
the resource type acquisition module is used for analyzing the computer resource generation trigger instruction to acquire the type of the computer resource;
the tool calling module is used for calling a pre-generated computer resource generation tool matched with the type of the computer resource;
the parameter receiving module is used for receiving parameters which are input by a user and conform to the type of the computer resources;
and the resource generation module is used for generating the computer resource matched with the computer resource generation triggering instruction by using the computer resource generation tool.
As an improved scheme, when the computer resource is ram, the parameter receiving module specifically includes:
a ram parameter receiving and defining module, configured to receive parameters of the ram input through a command line and define the meaning of each parameter, where the parameters include a ram type, a ram depth, and a ram width; the resource generation module specifically includes:
the resource generation module specifically includes:
the ram type setting module is used for setting corresponding output ram types according to different types of parameters of rams;
and the ram resource generation module is used for transmitting the parameter depth and width parameters of the ram into a computer resource generation tool corresponding to the ram according to different depths and widths of the ram and outputting the parameters to the generated ram.
As an improved scheme, the computer resource generation tool is formed by writing in perl language.
As an improvement, the system further comprises:
and the resource tool generating module is used for generating a plurality of computer resource generating tools matched with the types of the computer resources in advance, and each computer resource generating tool is used for generating the computer resource matched with the computer resource generating trigger instruction.
It is another object of the present invention to provide a computer, including a computer resource generation system.
In the embodiment of the invention, a computer resource generation triggering instruction input by a user is received; analyzing the computer resource generation trigger instruction to acquire the type of the computer resource; calling a pre-generated computer resource generation tool matched with the type of the computer resource; and receiving parameters which are input by a user and conform to the type of the computer resources, and generating the computer resources matched with the computer resource generation trigger instruction by using the computer resource generation tool, so that the automatic batch generation of the computer resources is realized, the management of operators on the computer resources is facilitated, the progress of the front end design and verification of the whole digital chip is improved, and the efficiency is improved.
Drawings
FIG. 1 is a flow chart of an implementation of a computer resource generation method provided by the present invention;
FIG. 2 is a flowchart of an implementation of a ram batch generation method provided by the present invention;
FIG. 3 is a schematic structural diagram of a computer resource generation system provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 shows a flowchart of an implementation of a computer resource generation method provided by the present invention, which specifically includes the following steps:
in step S101, a computer resource receiving user input, including but not limited to ram, fifo and cam, generates a trigger instruction.
In this step, a batch production method of various computer resources can be provided, such as ram, fifo and cam, wherein ram is more, and the types and the utilization rate are higher;
the operator may input the computer resources required to be generated in batch by inputting the command line, that is, generating the triggering instruction of the computer resource generation in the computer, where each resource matches one resource type.
In step S102, the computer resource generation trigger instruction is analyzed, and the type of the computer resource is obtained.
The step is to obtain the type of the corresponding computer resource which needs to be generated in batch, and according to the type, a corresponding tool needs to be called.
In step S103, a pre-generated computer resource generation tool matching the type of the computer resource is invoked.
The computer resource generation tool, that is, the functional program segment, needs to be generated in advance and stored in the database of the computer at the same time so as to be called at any time, and the function of the pre-generated computer resource generation tool is to generate a computer resource matched with the computer resource generation trigger instruction, and the specific implementation thereof may refer to the following example description of ram, which is not described herein again.
In step S104, a parameter corresponding to the type of the computer resource and input by the user is received, and a computer resource matching the computer resource generation trigger instruction is generated by using the computer resource generation tool.
In this step, the parameters input by the user may be differentiated differently according to different types of computer resources, for example, the following specific implementation of ram is not described herein, but the invention is not limited thereto.
For convenience of description, the following description is given with reference to fig. 2 by taking a computer resource as an example, that is, the step S104 receives a parameter which is input by a user and conforms to the type of the computer resource, and generates, by using the computer resource generation tool, a computer resource which matches the computer resource generation trigger instruction, specifically implement the step:
in step S201, parameters of the ram input through a command line are received, and the meaning of each parameter is defined, the parameters including a ram type, a ram depth, and a ram width.
In step S202, according to different types of parameters of ram, corresponding output ram types are set.
In step S203, according to different depths and widths of the ram, the parameters are transmitted to the computer resource generation tool corresponding to the ram, and output to the generated ram.
The program generated in batch by ram may be written in a perl language, and may also be written in other languages, which are not described herein again.
Fig. 3 is a block diagram of a computer resource generation system provided in the present invention, and for convenience of explanation, only the part related to the embodiment of the present invention is shown in the diagram, wherein the computer resource generation system is built in a computer.
The computer resource generation system includes:
the trigger instruction receiving module 11 is configured to receive a computer resource generation trigger instruction input by a user, where the computer resource includes ram, fifo, and cam;
a resource type obtaining module 12, configured to analyze the computer resource generation trigger instruction to obtain a type of the computer resource;
a tool calling module 13, configured to call a pre-generated computer resource generation tool that matches the type of the computer resource;
the parameter receiving module 14 is used for receiving parameters which are input by a user and conform to the computer resource type;
and the resource generation module 15 is configured to generate, by using the computer resource generation tool, a computer resource matched with the computer resource generation trigger instruction.
Wherein, when the computer resource is ram, the parameter receiving module 14 specifically includes:
a ram parameter receiving and defining module 16, configured to receive parameters of the ram input through a command line, and define the meaning of each parameter, where the parameters include a ram type, a ram depth, and a ram width; the resource generation module specifically includes:
the resource generation module 15 specifically includes:
an ram type setting module 17, configured to set a corresponding output ram type according to different types of parameters of the ram;
and the ram resource generation module 18 is configured to transmit the parameters to the computer resource generation tool corresponding to the ram according to different depths and widths of the ram, and output the parameters to the generated ram.
In the embodiment of the present invention, the resource tool generating module 19 is configured to generate a plurality of computer resource generating tools matched with the types of the computer resources in advance, where each of the computer resource generating tools is configured to generate a computer resource matched with the computer resource generating trigger instruction.
The functions of the above modules are described in the above embodiments, and are not described herein again, but are not intended to limit the present invention.
In the embodiment of the invention, a computer resource generation triggering instruction input by a user is received; analyzing the computer resource generation trigger instruction to acquire the type of the computer resource; calling a pre-generated computer resource generation tool matched with the type of the computer resource; and receiving parameters which are input by a user and conform to the type of the computer resources, and generating the computer resources matched with the computer resource generation trigger instruction by using the computer resource generation tool, so that the automatic batch generation of the computer resources is realized, the management of operators on the computer resources is facilitated, the progress of the front end design and verification of the whole digital chip is improved, and the efficiency is improved.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (9)

1. A computer resource generation method, characterized in that the method comprises the steps of:
receiving a computer resource generation triggering instruction input by a user, wherein the computer resource comprises ram, fifo and cam;
analyzing the computer resource generation trigger instruction to acquire the type of the computer resource;
calling a pre-generated computer resource generation tool matched with the type of the computer resource;
and receiving parameters which are input by a user and conform to the type of the computer resources, and generating the computer resources matched with the computer resource generation triggering instruction by using the computer resource generation tool.
2. The method according to claim 1, wherein when the computer resource is ram, the step of receiving a parameter corresponding to the type of the computer resource and input by a user, and generating the computer resource matching the computer resource generation trigger instruction by using the computer resource generation tool specifically includes the following steps:
receiving parameters of the ram input through a command line, and defining the meaning of each parameter, wherein the parameters comprise ram type, ram depth and ram width;
setting corresponding output ram types according to different types of ram parameters;
and transmitting the parameter depth and width parameters of the ram into a computer resource generation tool corresponding to the ram according to different depths and widths of the ram, and outputting the parameters to the generated ram.
3. The computer resource generation method of claim 2, wherein the computer resource generation tool is written in perl language.
4. The computer resource generation method of claim 3, further comprising the steps of:
and generating a plurality of computer resource generation tools matched with the types of the computer resources in advance, wherein each computer resource generation tool is used for generating the computer resources matched with the computer resource generation triggering instructions.
5. A computer resource generation system, the system comprising:
the trigger instruction receiving module is used for receiving a computer resource generation trigger instruction input by a user, wherein the computer resource comprises ram, fifo and cam;
the resource type acquisition module is used for analyzing the computer resource generation trigger instruction to acquire the type of the computer resource;
the tool calling module is used for calling a pre-generated computer resource generation tool matched with the type of the computer resource;
the parameter receiving module is used for receiving parameters which are input by a user and conform to the type of the computer resources;
and the resource generation module is used for generating the computer resource matched with the computer resource generation triggering instruction by using the computer resource generation tool.
6. The computer resource generation system of claim 5, wherein when the computer resource is ram, the parameter receiving module specifically includes:
a ram parameter receiving and defining module, configured to receive parameters of the ram input through a command line and define the meaning of each parameter, where the parameters include a ram type, a ram depth, and a ram width; the resource generation module specifically includes:
the resource generation module specifically includes:
the ram type setting module is used for setting corresponding output ram types according to different types of parameters of rams;
and the ram resource generation module is used for transmitting the parameter depth and width parameters of the ram into a computer resource generation tool corresponding to the ram according to different depths and widths of the ram and outputting the parameters to the generated ram.
7. The computer resource generation system of claim 6, wherein the computer resource generation tool is written in perl language.
8. The computer resource generation system of claim 7, further comprising:
and the resource tool generating module is used for generating a plurality of computer resource generating tools matched with the types of the computer resources in advance, and each computer resource generating tool is used for generating the computer resource matched with the computer resource generating trigger instruction.
9. A computer comprising the computer resource generation system of claim 6.
CN201710686398.2A 2017-08-11 2017-08-11 Computer resource generation method and system and computer Active CN107436770B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710686398.2A CN107436770B (en) 2017-08-11 2017-08-11 Computer resource generation method and system and computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710686398.2A CN107436770B (en) 2017-08-11 2017-08-11 Computer resource generation method and system and computer

Publications (2)

Publication Number Publication Date
CN107436770A CN107436770A (en) 2017-12-05
CN107436770B true CN107436770B (en) 2020-10-20

Family

ID=60460581

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710686398.2A Active CN107436770B (en) 2017-08-11 2017-08-11 Computer resource generation method and system and computer

Country Status (1)

Country Link
CN (1) CN107436770B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7457805B2 (en) * 1999-07-26 2008-11-25 Microsoft Corporation Method and system for processing HTTP requests creating a new map for an entire namespace that is associated with the request and that maps the name extension to the further content type within namespace
CN101384050A (en) * 2008-10-14 2009-03-11 深圳市戴文科技有限公司 Mobile terminal, method and system for resource management
US7757214B1 (en) * 2005-11-10 2010-07-13 Symantec Operating Coporation Automated concurrency configuration of multi-threaded programs
CN102436373A (en) * 2011-09-13 2012-05-02 上海普元信息技术股份有限公司 Method for realizing resource loading and resource hot-updating in distributed enterprise application system
CN105391774A (en) * 2015-10-15 2016-03-09 珠海市君天电子科技有限公司 Resource request method and device based on amazon network server
CN105511934A (en) * 2015-12-08 2016-04-20 贵阳朗玛信息技术股份有限公司 Resource processing method and device in application program development

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7457805B2 (en) * 1999-07-26 2008-11-25 Microsoft Corporation Method and system for processing HTTP requests creating a new map for an entire namespace that is associated with the request and that maps the name extension to the further content type within namespace
US7757214B1 (en) * 2005-11-10 2010-07-13 Symantec Operating Coporation Automated concurrency configuration of multi-threaded programs
CN101384050A (en) * 2008-10-14 2009-03-11 深圳市戴文科技有限公司 Mobile terminal, method and system for resource management
CN102436373A (en) * 2011-09-13 2012-05-02 上海普元信息技术股份有限公司 Method for realizing resource loading and resource hot-updating in distributed enterprise application system
CN105391774A (en) * 2015-10-15 2016-03-09 珠海市君天电子科技有限公司 Resource request method and device based on amazon network server
CN105511934A (en) * 2015-12-08 2016-04-20 贵阳朗玛信息技术股份有限公司 Resource processing method and device in application program development

Also Published As

Publication number Publication date
CN107436770A (en) 2017-12-05

Similar Documents

Publication Publication Date Title
CN110543295B (en) Visual Web front-end project construction system
CN104573063A (en) Data analysis method based on big data
CN104317589A (en) Automatic code generating method and automatic code generating device for loading dynamic link library
CN110955410B (en) Code automatic generation method, device, equipment and medium
CN104536768A (en) Method for improving user-friendly operation of software user interface
CN112860256B (en) Visual configuration system and method for Linux kernel equipment tree
CN104123400A (en) Global-Local detail finite element method based on force method
CN102567592A (en) Stamping die auxiliary designing method and system utilizing same
CN113094932A (en) Method, device, equipment and storage medium for acquiring construction cost of power transformation project
CN107436770B (en) Computer resource generation method and system and computer
CN109191078A (en) A kind of traffic flow modeling method, device and equipment
CN106779582B (en) TWS (two way service) process configuration method and device
CN109617944B (en) WEB parameter management method, device, computer storage medium and equipment
CN111427940A (en) Self-adaptive database conversion method and device
CN104679733A (en) Voice conversation translation method, device and system
CN113296746A (en) System and method for building configurable Vue project scaffold by command line
CN110705117B (en) Configurable efficient solution method and system for complex task of digital twin system
CN105354398B (en) A kind of mold 2D machining period appraisal procedure based on UG software
CN108549693B (en) CMS page generation method based on crawler technology
CN105700866A (en) RTE code generating method and apparatus performing the same
CN103870633B (en) A kind of large scale structure rapid modeling system
CN106777640B (en) Model array copying method based on PDMS
CN105022896A (en) Method and device for APDL modelling based on dynamic numbering
Serugga et al. A framework for emergent needs analysis during front-end design in social housing
CN103530436A (en) Tooling layout drawing parameterization generation method based on AUTOCAD. NET API

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200917

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 450018 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant