CN114567627A - Simulation platform management method, system, device and medium - Google Patents

Simulation platform management method, system, device and medium Download PDF

Info

Publication number
CN114567627A
CN114567627A CN202210180563.8A CN202210180563A CN114567627A CN 114567627 A CN114567627 A CN 114567627A CN 202210180563 A CN202210180563 A CN 202210180563A CN 114567627 A CN114567627 A CN 114567627A
Authority
CN
China
Prior art keywords
simulation platform
characteristic parameters
linked list
mapping table
management server
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.)
Granted
Application number
CN202210180563.8A
Other languages
Chinese (zh)
Other versions
CN114567627B (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.)
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Original Assignee
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center 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 Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd filed Critical Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Priority to CN202210180563.8A priority Critical patent/CN114567627B/en
Publication of CN114567627A publication Critical patent/CN114567627A/en
Application granted granted Critical
Publication of CN114567627B publication Critical patent/CN114567627B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/34Circuit design for reconfigurable circuits, e.g. field programmable gate arrays [FPGA] or programmable logic devices [PLD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Debugging And Monitoring (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a simulation platform management method, which comprises the following steps: broadcasting the characteristic parameters of each simulation platform by using broadcasting; responding to the fact that the management server receives the broadcast information, and determining whether the feature parameters of the newly added simulation platform need to be added into the first linked list or not according to the feature parameters of the simulation platform carried in the broadcast information; when a request for acquiring the simulation platforms sent by the test framework is received, acquiring and returning the characteristic parameters of one of the simulation platforms from the first linked list, and simultaneously moving the simulation platform to the second linked list; and establishing a mapping table according to the characteristic parameters of the test frame and the characteristic parameters of the corresponding simulation platform so as to realize the forwarding of the data sent by the test frame through the mapping table. The invention also discloses a system, a computer device and a readable storage medium. The scheme provided by the invention can dynamically acquire a proper chip simulation platform from the chip simulation platform resource pool according to the user requirement.

Description

Simulation platform management method, system, device and medium
Technical Field
The invention relates to the field of simulation, in particular to a simulation platform management method, a simulation platform management system, a simulation platform management device and a storage medium.
Background
As the complexity of chip design is continuously increased, the functions of the chip are more and more complex, and more functional modules are provided in the corresponding chip. When the design code is iterated, complete functional verification needs to be performed on each module. In fact, each module has a corresponding development and verification person, and a plurality of modules need to be developed and verified simultaneously in a project group, so that a large number of simulation platforms are needed for the development and verification persons to use, but compared with numerous users, the resources of the simulation platforms are very scarce.
The traditional chip verification uses a one-to-one mode, namely each user monopolizes one simulation platform, and no effective management mode exists, so that the user cannot acquire the use condition of the simulation platform in time, and meanwhile, after a certain user occupies a certain simulation platform, the user cannot return the use right of the simulation platform in time when the user does not need to use the simulation platform temporarily, and the use rate of the simulation platform is low.
Disclosure of Invention
In view of the above, in order to overcome at least one aspect of the above problems, an embodiment of the present invention provides a method for managing a simulation platform, including:
broadcasting the characteristic parameters of each simulation platform by using broadcasting;
responding to the broadcast information received by the management server, and judging whether the corresponding simulation platform is a newly added simulation platform according to the characteristic parameters of the simulation platform carried in the broadcast information;
responding to the newly added simulation platform, and adding the characteristic parameters of the newly added simulation platform into a first linked list;
responding to a simulation platform acquisition interface of the management server to receive a request for acquiring a simulation platform sent by a test framework, acquiring and returning the characteristic parameters of one simulation platform from a first linked list, and moving the corresponding characteristic parameters of the simulation platform from the first linked list to a second linked list;
and establishing a mapping table according to the characteristic parameters of the test frame and the characteristic parameters of the corresponding simulation platform, so that the management server forwards the data sent by the test frame to the corresponding simulation platform through the mapping table.
In some embodiments, further comprising:
and responding to a request of releasing the simulation platform sent by the test frame received by a simulation platform release interface of the management server, moving the characteristic parameters of the simulation platform corresponding to the test frame from the second linked list to the first linked list, and deleting the corresponding mapping table.
In some embodiments, further comprising:
refreshing the first linked list and the second linked list at intervals of a preset time period;
in response to the simulation platform with the effective duration exceeding in the first linked list, deleting the characteristic parameters of the simulation platform with the effective duration exceeding;
and in response to the detection that the unused time length of the simulation platform in the second linked list exceeds a threshold value, deleting the corresponding mapping table, and moving the characteristic parameters from the second linked list to the first linked list.
In some embodiments, a mapping table is established according to the characteristic parameters of the test frame and the characteristic parameters of the corresponding simulation platform, so that the management server forwards the data sent by the test frame to the corresponding simulation platform through the mapping table, further including:
responding to a data packet sent by a test frame received by the management server, and determining the corresponding characteristic parameters of the simulation platform in the mapping table according to the characteristic parameters of the test frame and the types of the characteristic parameters of the simulation platform carried by the data packet;
and forwarding the data packet to a corresponding simulation platform according to the determined characteristic parameters.
Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a simulation platform management system, including:
a broadcasting module configured to broadcast the characteristic parameters of each simulation platform by broadcasting;
the judging module is configured to respond to the fact that the management server receives the broadcast information and judge whether the corresponding simulation platform is a newly added simulation platform or not according to the characteristic parameters of the simulation platform carried in the broadcast information;
a first linked list module configured to add the characteristic parameters of the newly added simulation platform to a first linked list in response to the newly added simulation platform;
the first distribution module is configured to respond to a simulation platform acquisition interface of the management server receiving a request for acquiring a simulation platform sent by a test framework, acquire and return the characteristic parameters of one of the simulation platforms from the first linked list, and move the corresponding characteristic parameters of the simulation platform from the first linked list to the second linked list;
the establishing module is configured to establish a mapping table according to the characteristic parameters of the testing frame and the characteristic parameters of the corresponding simulation platform, so that the management server forwards the data sent by the testing frame to the corresponding simulation platform through the mapping table.
In some embodiments, further comprising a second assignment module configured to:
and in response to the simulation platform release interface of the management server receiving the request for releasing the simulation platform sent by the test frame, moving the characteristic parameters of the simulation platform corresponding to the test frame from the second linked list to the first linked list, and deleting the corresponding mapping table.
In some embodiments, the system further comprises a management module configured to:
refreshing the first linked list and the second linked list at intervals of a preset time period;
in response to the simulation platform with the effective duration exceeding in the first linked list, deleting the characteristic parameters of the simulation platform with the effective duration exceeding;
and in response to the detection that the unused time length of the simulation platform in the second linked list exceeds a threshold value, deleting the corresponding mapping table, and moving the characteristic parameters from the second linked list to the first linked list.
In some embodiments, the setup module is further configured to:
responding to a data packet sent by a test frame received by the management server, and determining the corresponding characteristic parameters of the simulation platform in the mapping table according to the characteristic parameters of the test frame and the types of the characteristic parameters of the simulation platform carried by the data packet;
and forwarding the data packet to a corresponding simulation platform according to the determined characteristic parameters.
Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a computer apparatus, including:
at least one processor; and
a memory storing a computer program operable on the processor, wherein the processor executes the program to perform any of the steps of the emulation platform management method described above.
Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a computer-readable storage medium storing a computer program which, when executed by a processor, performs the steps of any of the simulation platform management methods described above.
The invention has one of the following beneficial technical effects: according to the scheme provided by the invention, the plurality of simulation platforms form the chip simulation platform resource pool, so that a proper chip simulation platform can be dynamically obtained from the chip simulation platform resource pool according to the user requirements.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described 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 embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a simulation platform management method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of connections between a simulation platform and a management server and a user according to an embodiment of the present invention;
FIG. 3 is a hardware block diagram of a chip emulation platform according to an embodiment of the present invention;
FIG. 4 is a software framework of chip firmware provided by an embodiment of the present invention;
FIG. 5 is a software architecture of a chip emulation platform according to an embodiment of the present invention;
FIG. 6 is a diagram of a broadcast protocol provided by an embodiment of the present invention;
FIG. 7 is a diagram illustrating a software architecture of a management server according to an embodiment of the present invention;
FIG. 8 is a test flow diagram of an automated test framework according to an embodiment of the present invention;
FIG. 9 is a schematic structural diagram of a simulation platform management system according to an embodiment of the present invention;
FIG. 10 is a schematic structural diagram of a computer device provided in an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are only used for convenience of expression and should not be construed as a limitation to the embodiments of the present invention, and no description is given in the following embodiments.
According to an aspect of the present invention, an embodiment of the present invention provides a simulation platform management method, as shown in fig. 1, which may include the steps of:
s1, spreading the characteristic parameters of each simulation platform by using broadcasting;
s2, responding to the broadcast information received by the management server, and judging whether the corresponding simulation platform is a newly added simulation platform according to the characteristic parameters of the simulation platform carried in the broadcast information;
s3, responding to the newly added simulation platform, and adding the characteristic parameters of the newly added simulation platform into a first linked list;
s4, responding to a request for acquiring the simulation platform sent by the test framework received by the simulation platform acquisition interface of the management server, acquiring and returning the characteristic parameter of one of the simulation platforms from the first linked list, and moving the characteristic parameter of the corresponding simulation platform from the first linked list to the second linked list;
s5, establishing a mapping table according to the characteristic parameters of the test frame and the characteristic parameters of the corresponding simulation platform, so that the management server forwards the data sent by the test frame to the corresponding simulation platform through the mapping table.
According to the scheme provided by the invention, the plurality of simulation platforms form the chip simulation platform resource pool, so that a proper chip simulation platform can be dynamically obtained from the chip simulation platform resource pool according to the user requirements. When a user needs to use the chip simulation platform, the management server can be matched with the characteristics of the idle chip simulation platform in the chip simulation platform resource pool according to the characteristics provided by the user, and forwards the matched network port of the chip simulation platform to the user, and the user communicates with the chip simulation platform through the port; after a network channel is established between a user and the chip simulation platform, the automatic testing framework can be used for conveniently finishing the work of FPGA program updating, firmware updating, sending of testing instructions and obtaining of testing results.
In some embodiments, as shown in fig. 2, the chip simulation platform is composed of an FPGA and a simulation platform server, the FPGA and the simulation platform server are connected by a hard wire such as UART, PCIe, JTAG, and other interfaces, and the simulation server is responsible for managing a project code number, a platform code number, version information, and the like of the FPGA and also responsible for interface conversion, program update, and the like of the FPGA. The management server classifies and forms a chip simulation platform resource pool according to the project code number, the platform code number, the version information and the like of the chip simulation platform, a proper simulation platform can be dynamically allocated to a user through a chip simulation platform management system, and meanwhile, the management server is also responsible for network port forwarding work between the user and the chip simulation platform. The user may interact through an automated testing framework.
In some embodiments, a hardware block diagram of a chip emulation platform is shown in FIG. 3, which includes an FPGA and an emulation server. The FPGA is connected with the server by a hard wire, and is connected with a debugging serial port, a firmware downloading serial port JTAG and other interfaces. The simulation server converts the original interface into a network interface and provides a virtual serial port interface, a command forwarding interface and an FPGA/firmware updating interface outwards. The software framework of the chip firmware is shown in fig. 4, and includes a driver module and a command parsing module. The driving module is responsible for initializing and driving chip hardware and providing a corresponding hardware operation interface for the command analysis module; the command analysis module can receive related test instructions through the debugging serial port and execute corresponding test functions according to the test instructions and the input test parameters.
In some embodiments, the software architecture of the chip emulation platform is as shown in fig. 5, and includes a virtual serial port module, an FTP service module, a command forwarding module, and a broadcast module. The virtual serial port module is responsible for converting a debugging serial port of the FPGA into a network interface and forwarding serial port data to a user through a TCP (transmission control protocol); the FTP service module is responsible for receiving the FPGA program or the firmware program sent by the user, when the firmware or the FPGA program file and the related configuration file sent by the user are received, the FTP service module calls a firmware download script according to the description of the configuration file or updates the firmware or the FPGA program through a JTAG interface, and meanwhile, the FTP service module also updates version information to the broadcast module; the command forwarding module is used for converting a debugging serial port of the FPGA into a network interface and providing a channel for remotely executing a firmware test instruction for a user.
In some embodiments, in step S1, the characteristic parameters of each emulation platform are broadcasted by broadcasting, specifically, as shown in fig. 5, after the chip emulation platform is online, the characteristics (item code, platform code, version information, network port, etc.) of the emulation platform are broadcasted into the lan at a certain frequency in the form of UDP broadcast by a broadcasting module of the emulation platform, and the broadcasted information is encrypted by AES to ensure security, as shown in protocol fig. 6, where U8 denotes an 8-bit unsigned integer, U16 denotes a 16-bit unsigned integer, and U32 denotes a 32-bit unsigned integer.
In some embodiments, in step S2, in response to the management server receiving the broadcast information, it is determined whether the corresponding simulation platform is a newly added simulation platform according to the characteristic parameters of the simulation platform carried in the broadcast information, specifically, the management server maintains two linked lists, namely "free _ list" and "active _ list" in the platform resource management process, where the simulation platform that can be allocated is stored in the "free _ list". Stored in the "active _ list" is the simulation platform currently in use. Fig. 7 shows a software architecture of the management server, which includes a chip emulation platform management module, a chip emulation platform allocation module, and a port forwarding module. The chip simulation platform management module is responsible for intercepting the broadcast information on the broadcast port, after receiving the broadcast information from the chip simulation platform, all the devices in the free _ list and the active _ list are compared through the parameters broadcasted in the broadcast information, and if the new device is not in the two linked lists, the new device is added into the free _ list.
In some embodiments, in step S4, in response to that the simulation platform acquisition interface of the management server receives a request for acquiring a simulation platform sent by the test framework, acquires and returns a feature parameter of one of the simulation platforms from the first linked list, and moves the corresponding feature parameter of the simulation platform from the first linked list to the second linked list, specifically, the automated test framework may have a simulation platform allocation module, which provides a method for acquiring a chip simulation platform for a user, and the user needs to provide a required item code of the platform. And then the framework can call a chip simulation platform provided by the management server to obtain an interface, and return a network port and some information of the chip simulation platform through the interface, wherein the information comprises a platform code number, a heartbeat port, a virtual serial port, a command port, a firmware/FPGA download port, an SSH port, FPGA version information and firmware version information.
In some embodiments, in step S5, a mapping table is established according to the characteristic parameters of the test frame and the characteristic parameters of the corresponding simulation platform, so that the management server forwards the data sent by the test frame to the corresponding simulation platform through the mapping table, specifically, as shown in fig. 7, a chip simulation platform allocation module of the management server provides a chip simulation platform acquisition interface and a chip simulation platform release interface for a user, and simultaneously runs a heartbeat detection service. When the framework calls the chip simulation platform to obtain the interface during testing, an idle chip simulation platform can be obtained from the free _ list, and if the idle chip simulation platform cannot be obtained, failure information can be returned to a user. If a proper simulation platform is obtained, the chip simulation platform is deleted from the free _ list and then added into the active _ list, a port mapping table is established, the port mapping table comprises the mapping relation between the information of the test frame and the information such as the platform code number, the heartbeat port, the virtual serial port, the command port, the firmware/FPGA downloading port, the SSH port, the FPGA version information and the firmware version information, and the port and the information are packaged and returned to the test frame, so that the test frame can use the ports to operate the chip simulation platform.
Meanwhile, the management server also provides a port forwarding service, and the port forwarding service forwards the relevant TCP data sent to the management server by the user to the corresponding simulation platform according to the port mapping table established by the chip simulation platform acquisition interface. For example, when the management server receives data sent by the test framework a, the management server analyzes the data to know that the data needs to be sent to the port a of the simulation platform (at this time, the management server does not know the simulation platform and the parameters of the port corresponding to the test framework), then, the management server knows that the test framework a corresponds to the simulation platform a through the mapping table, so as to obtain the parameters of the port a, and finally, the port a of the simulation platform a can be sent by using the port forwarding service.
In some embodiments, further comprising:
and in response to the simulation platform release interface of the management server receiving the request for releasing the simulation platform sent by the test frame, moving the characteristic parameters of the simulation platform corresponding to the test frame from the second linked list to the first linked list, and deleting the corresponding mapping table.
Specifically, when a user calls a chip simulation platform release interface, the corresponding simulation platform can be searched from the active _ list, and if the simulation platform cannot be searched, failure is returned. If the port mapping table is found, the simulation platform is deleted from the active _ list and then added into the free _ list, and the port mapping table is deleted.
In some embodiments, further comprising:
refreshing the first linked list and the second linked list at intervals of a preset time period;
in response to the simulation platform with the effective duration exceeding in the first linked list, deleting the characteristic parameters of the simulation platform with the effective duration exceeding;
and in response to the detection that the unused time length of the simulation platform in the second linked list exceeds a threshold value, deleting the corresponding mapping table, and moving the characteristic parameters from the second linked list to the first linked list.
Specifically, the management server further provides a heartbeat detection service, which is used for detecting whether the user uses the current chip simulation platform, if the user does not use the simulation platform for a long time (for example, 15 minutes), the connection between the user and the simulation platform is automatically disconnected, the simulation platform is deleted from the active _ list and then added to the free _ list, and the port mapping table is deleted. Meanwhile, the chip simulation platform management module of the management server can refresh 'free _ list' and 'active _ list' at fixed intervals (such as 1 minute), and if the broadcast information of the chip simulation platform is not received for a long time, the platform can be automatically removed from the linked list.
In some embodiments, a mapping table is established according to the characteristic parameters of the test frame and the characteristic parameters of the corresponding simulation platform, so that the management server forwards the data sent by the test frame to the corresponding simulation platform through the mapping table, further including:
responding to a data packet sent by a test frame received by the management server, and determining the corresponding characteristic parameters of the simulation platform in the mapping table according to the characteristic parameters of the test frame and the types of the characteristic parameters of the simulation platform carried by the data packet;
and forwarding the data packet to a corresponding simulation platform according to the determined characteristic parameters.
Specifically, the automated testing framework may be based on some testing methods written by Python, including a simulation platform allocation module, a firmware/FPGA downloading module, a monitoring module, an SSH remote command execution module, and a test instruction execution module. Based on the testing process of the automated testing framework, as shown in fig. 8, the simulation platform allocation module provides a method for obtaining the chip simulation platform for the user, and the user needs to provide the project code of the required platform. The method can return TCP ports and some information of the chip simulation platform, including platform code number, heartbeat port, virtual serial port, command port, firmware/FPGA download port, SSH port, FPGA version information and firmware version information. The firmware/FPGA downloading module provides a firmware/FPGA downloading interface for a user, and the user can send firmware/FPGA images and image configuration files to the chip simulation platform through the firmware/FPGA downloading port by using an FTP protocol and write the firmware/FPGA images and the image configuration files into the FPGA by the chip simulation platform server. The monitoring module can use the virtual serial port to check the related information of the FPGA debugging serial port printing in real time. And the SSH remote command execution module executes the shell instruction on the chip emulation platform server by using the SSH port. The test instruction execution module can send and receive commands to the firmware through the command port so as to execute the test functions in the firmware.
According to the scheme provided by the invention, the plurality of simulation platforms form the chip simulation platform resource pool, so that a proper chip simulation platform can be dynamically obtained from the chip simulation platform resource pool according to the user requirements. When a user needs to use the chip simulation platform, the management server can be matched with the characteristics of the idle chip simulation platform in the chip simulation platform resource pool according to the characteristics provided by the user, and forwards the matched network port of the chip simulation platform to the user, and the user communicates with the chip simulation platform through the port; after a network channel is established between a user and the chip simulation platform, the automatic test framework can be used for conveniently finishing the work of FPGA program updating, firmware updating, sending of test instructions and obtaining of test results.
Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a simulation platform management system 400, as shown in fig. 9, including:
a broadcasting module 401 configured to broadcast the characteristic parameters of each simulation platform by broadcasting;
a judging module 402, configured to respond to the broadcast information received by the management server, and judge whether the corresponding simulation platform is a newly added simulation platform according to the characteristic parameters of the simulation platform carried in the broadcast information;
a first linked list module 403 configured to add the feature parameters of the newly added simulation platform to a first linked list in response to the newly added simulation platform;
a first distribution module 404, configured to, in response to a simulation platform acquisition interface of the management server receiving a request for acquiring a simulation platform sent by a test framework, acquire and return a feature parameter of one of the simulation platforms from a first linked list, and move a feature parameter of the corresponding simulation platform from the first linked list to a second linked list;
the establishing module 405 is configured to establish a mapping table according to the feature parameters of the test frame and the feature parameters of the corresponding simulation platform, so that the management server forwards the data sent by the test frame to the corresponding simulation platform through the mapping table.
In some embodiments, further comprising a second assignment module configured to:
and responding to a request of releasing the simulation platform sent by the test frame received by a simulation platform release interface of the management server, moving the characteristic parameters of the simulation platform corresponding to the test frame from the second linked list to the first linked list, and deleting the corresponding mapping table.
In some embodiments, the system further comprises a management module configured to:
refreshing the first linked list and the second linked list at intervals of a preset time period;
in response to the simulation platform with the effective duration exceeding in the first linked list, deleting the characteristic parameters of the simulation platform with the effective duration exceeding;
and in response to the detection that the unused time length of the simulation platform in the second linked list exceeds a threshold value, deleting the corresponding mapping table, and moving the characteristic parameters from the second linked list to the first linked list.
In some embodiments, the setup module 405 is further configured to:
responding to a data packet sent by a test frame received by the management server, and determining the corresponding characteristic parameters of the simulation platform in the mapping table according to the characteristic parameters of the test frame and the types of the characteristic parameters of the simulation platform carried by the data packet;
and forwarding the data packet to a corresponding simulation platform according to the determined characteristic parameters.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 10, an embodiment of the present invention further provides a computer apparatus 501, including:
at least one processor 520; and
a memory 510, the memory 510 storing a computer program 511 executable on the processor, the processor 520 executing the program to perform the steps of any of the above simulation platform management methods.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 11, an embodiment of the present invention further provides a computer-readable storage medium 601, where the computer-readable storage medium 601 stores computer program instructions 610, and the computer program instructions 610, when executed by a processor, perform the steps of any of the above simulation platform management methods.
Finally, it should be noted that, as will be understood by those skilled in the art, all or part of the processes of the methods of the above embodiments may be implemented by a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above.
Further, it should be understood that the computer-readable storage medium herein (e.g., memory) can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A simulation platform management method is characterized by comprising the following steps:
broadcasting the characteristic parameters of each simulation platform by using broadcasting;
responding to the broadcast information received by the management server, and judging whether the corresponding simulation platform is a newly added simulation platform according to the characteristic parameters of the simulation platform carried in the broadcast information;
responding to the newly added simulation platform, and adding the characteristic parameters of the newly added simulation platform into a first linked list;
responding to a simulation platform acquisition interface of the management server to receive a request for acquiring a simulation platform sent by a test framework, acquiring and returning the characteristic parameters of one simulation platform from a first linked list, and moving the corresponding characteristic parameters of the simulation platform from the first linked list to a second linked list;
and establishing a mapping table according to the characteristic parameters of the test frame and the characteristic parameters of the corresponding simulation platform, so that the management server forwards the data sent by the test frame to the corresponding simulation platform through the mapping table.
2. The method of claim 1, further comprising:
and in response to the simulation platform release interface of the management server receiving the request for releasing the simulation platform sent by the test frame, moving the characteristic parameters of the simulation platform corresponding to the test frame from the second linked list to the first linked list, and deleting the corresponding mapping table.
3. The method of claim 1, further comprising:
refreshing the first linked list and the second linked list at intervals of a preset time period;
in response to the simulation platform with the effective duration exceeding in the first linked list, deleting the characteristic parameters of the simulation platform with the effective duration exceeding;
and in response to the detection that the unused time length of the simulation platform in the second linked list exceeds a threshold value, deleting the corresponding mapping table, and moving the characteristic parameters from the second linked list to the first linked list.
4. The method of claim 1, wherein a mapping table is established according to the feature parameters of the test frame and the feature parameters of the corresponding simulation platform, so that the management server forwards the data sent by the test frame to the corresponding simulation platform through the mapping table, further comprising:
responding to a data packet sent by a test frame received by the management server, and determining the corresponding characteristic parameters of the simulation platform in the mapping table according to the characteristic parameters of the test frame and the types of the characteristic parameters of the simulation platform carried by the data packet;
and forwarding the data packet to a corresponding simulation platform according to the determined characteristic parameters.
5. A simulation platform management system, comprising:
a broadcasting module configured to broadcast the characteristic parameters of each simulation platform by broadcasting;
the judging module is configured to respond to the fact that the management server receives the broadcast information and judge whether the corresponding simulation platform is a newly added simulation platform or not according to the characteristic parameters of the simulation platform carried in the broadcast information;
a first linked list module configured to add the characteristic parameters of the newly added simulation platform to a first linked list in response to the newly added simulation platform;
the first distribution module is configured to respond to a simulation platform acquisition interface of the management server receiving a request for acquiring a simulation platform sent by a test framework, acquire and return the characteristic parameters of one of the simulation platforms from the first linked list, and move the corresponding characteristic parameters of the simulation platform from the first linked list to the second linked list;
the establishing module is configured to establish a mapping table according to the characteristic parameters of the testing frame and the characteristic parameters of the corresponding simulation platform, so that the management server forwards the data sent by the testing frame to the corresponding simulation platform through the mapping table.
6. The system of claim 5, further comprising a second assignment module configured to:
and in response to the simulation platform release interface of the management server receiving the request for releasing the simulation platform sent by the test frame, moving the characteristic parameters of the simulation platform corresponding to the test frame from the second linked list to the first linked list, and deleting the corresponding mapping table.
7. The system of claim 5, further comprising a management module configured to:
refreshing the first linked list and the second linked list at intervals of a preset time period;
in response to the simulation platform with the effective duration exceeding in the first linked list, deleting the characteristic parameters of the simulation platform with the effective duration exceeding;
and in response to the detection that the unused time length of the simulation platform in the second linked list exceeds a threshold value, deleting the corresponding mapping table, and moving the characteristic parameters from the second linked list to the first linked list.
8. The method of claim 5, wherein the setup module is further configured to:
responding to a data packet sent by a test frame received by the management server, and determining the corresponding characteristic parameters of the simulation platform in the mapping table according to the characteristic parameters of the test frame and the types of the characteristic parameters of the simulation platform carried by the data packet;
and forwarding the data packet to a corresponding simulation platform according to the determined characteristic parameters.
9. A computer device, comprising:
at least one processor; and
memory storing a computer program operable on the processor, characterized in that the processor executes the program to perform the steps of the method according to any of claims 1-4.
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 the method according to any one of claims 1-4.
CN202210180563.8A 2022-02-25 2022-02-25 Simulation platform management method, system, equipment and medium Active CN114567627B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210180563.8A CN114567627B (en) 2022-02-25 2022-02-25 Simulation platform management method, system, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210180563.8A CN114567627B (en) 2022-02-25 2022-02-25 Simulation platform management method, system, equipment and medium

Publications (2)

Publication Number Publication Date
CN114567627A true CN114567627A (en) 2022-05-31
CN114567627B CN114567627B (en) 2024-01-26

Family

ID=81716541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210180563.8A Active CN114567627B (en) 2022-02-25 2022-02-25 Simulation platform management method, system, equipment and medium

Country Status (1)

Country Link
CN (1) CN114567627B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070294337A1 (en) * 2006-03-31 2007-12-20 Maria Gaos Client-side information processing system, apparatus and methods
CN101873233A (en) * 2009-04-22 2010-10-27 电子科技大学 Simulation method compatible with PeerCast network
US20150019186A1 (en) * 2013-07-09 2015-01-15 Nhn Entertainment Corporation Simulation method and system for real-time broadcasting
CN104615502A (en) * 2015-01-16 2015-05-13 北京仿真中心 Fault-tolerant method based on high-performance simulation cloud
CN104899404A (en) * 2015-07-06 2015-09-09 广州特种机电设备检测研究院 Simulation cloud platform and implementation method
WO2016101638A1 (en) * 2014-12-23 2016-06-30 国家电网公司 Operation management method for electric power system cloud simulation platform
CN107065837A (en) * 2017-05-31 2017-08-18 河南思维轨道交通技术研究院有限公司 Simulation test platform, automatic simulation test system and method for testing
CN107632879A (en) * 2017-10-31 2018-01-26 中国人民解放军国防科技大学 Cloud simulation platform
US20190005177A1 (en) * 2017-06-30 2019-01-03 Synopsys, Inc. Method and framework to dynamically split a testbench into concurrent simulatable multi-processes and attachment to parallel processes of an accelerated platform
US20190155985A1 (en) * 2017-11-22 2019-05-23 Mentor Graphics Corporation Communication protocols design verification through database systems for hardware-based emulation platforms
US20190306730A1 (en) * 2018-03-30 2019-10-03 Chongqing University Of Posts And Telecommunications Data source simulation platform
CN110442041A (en) * 2019-08-05 2019-11-12 西藏宁算科技集团有限公司 A kind of emulation platform construction method and analogue system based on isomery cloud computing framework
US20200007934A1 (en) * 2018-06-29 2020-01-02 Advocates, Inc. Machine-learning based systems and methods for analyzing and distributing multimedia content
US20200394122A1 (en) * 2019-06-14 2020-12-17 Paypal, Inc. Simulation computing services for testing application functionalities
CN112560377A (en) * 2020-12-11 2021-03-26 珠海全志科技股份有限公司 Simulation verification method and system based on combination of virtual platform and FPGA
US20210390042A1 (en) * 2020-06-12 2021-12-16 Beijing Baidu Netcom Science And Technology Co., Ltd. Method and apparatus for testing dialogue platform, and storage medium
CN113867889A (en) * 2021-09-24 2021-12-31 北京机电工程研究所 Distributed real-time simulation platform

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070294337A1 (en) * 2006-03-31 2007-12-20 Maria Gaos Client-side information processing system, apparatus and methods
CN101873233A (en) * 2009-04-22 2010-10-27 电子科技大学 Simulation method compatible with PeerCast network
US20150019186A1 (en) * 2013-07-09 2015-01-15 Nhn Entertainment Corporation Simulation method and system for real-time broadcasting
WO2016101638A1 (en) * 2014-12-23 2016-06-30 国家电网公司 Operation management method for electric power system cloud simulation platform
CN104615502A (en) * 2015-01-16 2015-05-13 北京仿真中心 Fault-tolerant method based on high-performance simulation cloud
CN104899404A (en) * 2015-07-06 2015-09-09 广州特种机电设备检测研究院 Simulation cloud platform and implementation method
CN107065837A (en) * 2017-05-31 2017-08-18 河南思维轨道交通技术研究院有限公司 Simulation test platform, automatic simulation test system and method for testing
US20190005177A1 (en) * 2017-06-30 2019-01-03 Synopsys, Inc. Method and framework to dynamically split a testbench into concurrent simulatable multi-processes and attachment to parallel processes of an accelerated platform
CN107632879A (en) * 2017-10-31 2018-01-26 中国人民解放军国防科技大学 Cloud simulation platform
US20190155985A1 (en) * 2017-11-22 2019-05-23 Mentor Graphics Corporation Communication protocols design verification through database systems for hardware-based emulation platforms
US20190306730A1 (en) * 2018-03-30 2019-10-03 Chongqing University Of Posts And Telecommunications Data source simulation platform
US20200007934A1 (en) * 2018-06-29 2020-01-02 Advocates, Inc. Machine-learning based systems and methods for analyzing and distributing multimedia content
US20200394122A1 (en) * 2019-06-14 2020-12-17 Paypal, Inc. Simulation computing services for testing application functionalities
CN110442041A (en) * 2019-08-05 2019-11-12 西藏宁算科技集团有限公司 A kind of emulation platform construction method and analogue system based on isomery cloud computing framework
US20210390042A1 (en) * 2020-06-12 2021-12-16 Beijing Baidu Netcom Science And Technology Co., Ltd. Method and apparatus for testing dialogue platform, and storage medium
CN112560377A (en) * 2020-12-11 2021-03-26 珠海全志科技股份有限公司 Simulation verification method and system based on combination of virtual platform and FPGA
CN113867889A (en) * 2021-09-24 2021-12-31 北京机电工程研究所 Distributed real-time simulation platform

Also Published As

Publication number Publication date
CN114567627B (en) 2024-01-26

Similar Documents

Publication Publication Date Title
CN109525461B (en) Network equipment testing method, device, equipment and storage medium
CN111200837B (en) Wi-Fi software testing system and method
JP2011155660A (en) Analysis device, method and device for product acceptance testing
CN109618176B (en) Processing method, equipment and storage medium for live broadcast service
CN113553257B (en) Test method, device, storage medium and electronic equipment
CN110032507A (en) Applied program testing method, device, system, electronic equipment and storage medium
CN110493028A (en) A kind of clustered deploy(ment) method, system, device and computer readable storage medium
CN107145439B (en) Test request processing method and device
US11570050B2 (en) Methods, systems and computer readable media for performing cabling tasks using augmented reality
CN113608812A (en) Remote control method, device, system and storage medium
CN108512682B (en) Method and device for determining false terminal identification
JP2006211638A (en) Scenario editing apparatus, dummy base station test simulator for wireless communication, dummy terminal test simulator for wireless communication, scenario editing method, test processing method, computer readable storage medium with program stored thereon, and program
CN114040408A (en) Shooting range system based on 4G mobile network simulation environment
CN107231275B (en) Method for connection configuration of user equipment and household equipment
CN114567627B (en) Simulation platform management method, system, equipment and medium
CN107864488B (en) Method, device and system for automatically testing base station service
CN112527589A (en) Process monitoring method and process monitoring device
CN106603328B (en) A kind of method and device for testing fluidic device protocol identification ability
CN115190057A (en) Automatic testing method and device and electronic equipment
CN114390574A (en) Wireless network throughput testing method, device and computer readable storage medium
WO2022116427A1 (en) Test method and apparatus, and electronic device and storage medium
CN114071467A (en) Shooting range system based on 4G mobile network simulation environment
CN112433938A (en) Method and device for testing application of mobile terminal
CN109271310B (en) Development testing method and device for network function of mobile application program
CN117349153A (en) Data recording and playback platform, method, electronic device and storage 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