CN110501627B - Digital logic circuit detection method and device for base station - Google Patents

Digital logic circuit detection method and device for base station Download PDF

Info

Publication number
CN110501627B
CN110501627B CN201810474796.2A CN201810474796A CN110501627B CN 110501627 B CN110501627 B CN 110501627B CN 201810474796 A CN201810474796 A CN 201810474796A CN 110501627 B CN110501627 B CN 110501627B
Authority
CN
China
Prior art keywords
subframe
use cases
detection
sub
processes
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
CN201810474796.2A
Other languages
Chinese (zh)
Other versions
CN110501627A (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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201810474796.2A priority Critical patent/CN110501627B/en
Publication of CN110501627A publication Critical patent/CN110501627A/en
Application granted granted Critical
Publication of CN110501627B publication Critical patent/CN110501627B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/282Testing of electronic circuits specially adapted for particular applications not provided for elsewhere

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a method and a device for detecting a digital logic circuit of a base station, which are applied to terminal equipment, wherein the terminal equipment runs a detection application program, and the method comprises the following steps: creating a plurality of processes corresponding to the detection application program; adding sub-frame data packets from a preset use case library; calling the processes to respectively detect different subframes in the subframe data packet; when all the sub-frames are detected, obtaining the detection result of the sub-frames; the sub-frames or the use cases can be distributed according to the processing speed of the processes, so that the load balance among the processes is realized, and the detection efficiency is improved; the running environment is not limited to a certain operating system, and the application range of the detection mode is widened; the detection result can be obtained only by setting the global variable file, so that the automation of the detection process is realized; and abundant detection modes are supported, and the detection efficiency is greatly improved.

Description

Digital logic circuit detection method and device for base station
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a digital logic circuit detection method and a digital logic circuit detection apparatus for a base station.
Background
Logic circuit implementation of an LTE (Long Term Evolution) or 5G (5th-Generation, fifth Generation mobile communication technology) digital baseband is complex, and needs are many, and in order to ensure detection sufficiency, hundreds of scenarios need to be constructed first, and then a verification environment is established to simulate the scenarios.
The traditional digital logic circuit detection method generally starts a process for detection, and the processing performance of a high-performance computer and a server is not fully exerted due to the limitation of processor and memory resources occupied by a detection process of a detection tool; in addition, although an individual detection tool can start multi-process detection through setting of environment variables, different detection processes can only be specified in advance to run different use cases, so that a fast-forward process can wait for a slow process after running an allocated use case, hardware resources are greatly wasted, and detection efficiency cannot be fully exerted; especially, the 5G digital baseband has complex circuits, and it takes several weeks to detect hundreds of cases on the existing hardware platform according to the traditional single process, which is time-consuming and reduces the work efficiency.
Disclosure of Invention
The embodiment of the invention provides a method and a device for detecting a digital logic circuit of a base station, which aim to solve the problems that when different detection processes are appointed to run different use cases in the prior art, the load conditions of a fast process and a slow process are unreasonable, so that the load among the processes is unbalanced, and hardware resources are wasted.
In order to solve the above problem, an embodiment of the present invention discloses a method for detecting a digital logic circuit of a base station, which is applied to a terminal device, where the terminal device runs a detection application program, and the method includes:
creating a plurality of processes corresponding to the detection application program;
adding sub-frame data packets from a preset use case library;
calling the processes to respectively detect different subframes in the subframe data packet;
and when the detection of all the subframes is finished, obtaining the detection result of the subframes.
Preferably, the step of invoking the plurality of processes to respectively detect different subframes in the subframe data packet includes:
and calling the processes to respectively detect a plurality of use cases corresponding to the subframes.
Preferably, the step of invoking the plurality of processes to respectively detect different subframes in the subframe data packet includes:
judging whether the number of use cases of the sub-frame corresponding to the target process reaches the maximum number of use cases; wherein the subframe has a corresponding subframe identifier;
when the number of use cases of the sub-frame corresponding to the target process reaches the maximum number of use cases, judging whether the sub-frame identification conforms to a preset identification number;
and when the subframe identification does not accord with the preset identification number, distributing the use case corresponding to the subframe to be detected to the target process.
Preferably, the method further comprises:
and after the use case corresponding to the subframe to be detected is distributed to the target process, calling the target process to detect the use case corresponding to the subframe to be detected.
Preferably, before the step of creating the plurality of processes of the detection application, the method further includes:
and setting a global variable file.
Preferably, the method further comprises:
generating a verification environment by adopting a global variable file;
and/or generating a plurality of first initialization parameters by adopting a global variable file;
and/or generating a plurality of second initialization parameters by adopting the global variable file;
the first initialization parameters comprise the number of use cases corresponding to each subframe, the maximum number of use cases, the current subframe, the number of use cases and the number of use cases completed; the second initialization parameters comprise the number of use cases, use case names and process IDs corresponding to the subframes.
The embodiment of the invention also discloses a digital logic circuit detection device of the base station, which is applied to terminal equipment, wherein the terminal equipment runs a detection application program, and the device comprises:
the process creation module is used for creating a plurality of processes corresponding to the detection application program;
the subframe data packet loading module is used for loading subframe data packets from a preset use case library;
the calling module is used for calling the processes to respectively detect different subframes in the subframe data packet;
and the detection result obtaining module is used for obtaining the detection result of the subframe when the detection of all the subframes is finished.
Preferably, the calling module includes:
and the calling submodule is used for calling the processes to respectively detect a plurality of use cases corresponding to the sub-frames.
Preferably, the calling module includes:
the first judgment submodule is used for judging whether the number of use cases of the subframe corresponding to the target process reaches the maximum number of use cases; wherein the subframe has a corresponding subframe identifier;
the second judgment submodule is used for judging whether the subframe identification accords with a preset identification number or not when the use case number of the subframe corresponding to the target process reaches the maximum use case number;
and the distribution submodule is used for distributing the use case corresponding to the sub-frame to be detected to the target process when the sub-frame identification does not accord with the preset identification number.
Preferably, the apparatus further comprises:
and the detection module is used for calling the target process to detect the use case corresponding to the subframe to be detected after the use case corresponding to the subframe to be detected is distributed to the target process.
Preferably, the module connected to the process creation module comprises:
and the global variable file setting module is used for setting the global variable file.
Preferably, the apparatus further comprises:
the verification environment generation module is used for generating a verification environment by adopting the global variable file;
and/or the first initialization parameter generation module is used for generating a plurality of first initialization parameters by adopting the global variable file;
and/or the second initialization parameter generation module is used for generating a plurality of second initialization parameters by adopting the global variable file;
the first initialization parameters comprise the number of use cases corresponding to each subframe, the maximum number of use cases, the current subframe, the number of use cases and the number of use cases completed; the second initialization parameters comprise the number of use cases, use case names and process IDs corresponding to the subframes.
The embodiment of the invention has the following advantages:
the method is applied to the terminal equipment, the terminal equipment runs a detection application program, and a plurality of processes corresponding to the detection application program are created; loading the subframe data packet from the use case library; calling the processes to respectively detect different subframes in the subframe data packet; when all the sub-frames are detected, obtaining the detection result of the sub-frames; in the embodiment of the invention, the sub-frames or the use cases can be distributed according to the processing speed of the processes, so that the load balance among the processes is realized, and the detection efficiency is improved; the running environment is not limited to a certain operating system, and the application range of the detection mode is widened; the detection result can be obtained only by setting the global variable file, so that the automation of the detection process is realized; and abundant detection modes are supported, and the detection efficiency is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts;
fig. 1 is a flowchart illustrating a first step of a digital logic circuit detection method of a base station according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating steps of a second embodiment of a digital logic circuit detection method for a base station according to the present invention;
FIG. 3 is a schematic diagram of a detection process according to an embodiment of the present invention;
fig. 4 is a block diagram of an embodiment of a digital logic circuit detection apparatus of a base station according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects solved by the embodiments of the present invention more clearly apparent, the embodiments of the present invention are described in further detail below with reference to the accompanying drawings and the 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.
One of the core concepts of the embodiment of the invention is that a plurality of processes can be flexibly called to respectively detect different subframes, and the subframes to be detected can be distributed according to the processing efficiency of the processes.
Referring to fig. 1, a flowchart of a first step of a method for detecting a digital logic circuit of a base station according to an embodiment of the present invention is shown, and is applied to a terminal device, where the terminal device runs a detection application program, and the method specifically includes the following steps:
step 101, creating a plurality of processes corresponding to the detection application program;
in the embodiment of the present invention, the types of the base stations may include a macro base station, a micro base station, a pico base station, a distributed base station, and the like, and the embodiments of the present invention do not specifically limit this, and the base stations may mainly include a baseband processing Unit (building base band Unit), a Radio Remote Unit (Radio Remote Unit), and an antenna feed system;
the baseband processing unit mainly completes the functions of channel coding and decoding, modulation and demodulation of baseband signals, protocol processing and the like, and simultaneously needs to provide an interface function with an upper network element.
The remote radio unit mainly performs D/a (Digital to Analog) conversion of Digital signals, a/D (Analog to Digital) conversion of Analog signals, Digital up/down conversion and radio frequency signal modulation and demodulation on Digital/Analog signals received from/transmitted to the baseband processing unit, then performs power amplification/low noise amplification on the radio frequency Analog signals to be transmitted/received, and finally transmits the radio frequency Analog signals to the antenna feed system through the filter element for transmission. The remote radio unit needs to provide interfaces with the baseband processing unit and the antenna feed system;
the antenna feed system mainly comprises a feeder line and an antenna, and aims to centralize wireless signals received to the remote radio unit and then radiate the wireless signals out, and also centralize signals sent by user equipment and transmit the signals to the remote radio unit for processing.
In this embodiment of the present invention, the method is applied to a terminal device, the terminal device runs a detection application, the detection application may include multiple simulation applications, such as Matlab, Multisim, VCS (vertical complex simulator), protocol, Pspice, and the like, which is not specifically limited in this embodiment of the present invention.
Specifically, the detection result of the embodiment of the present invention may be applied to the terminal device of the base station; or the method may be applied to a terminal device of a base station, which is not limited in this embodiment of the present invention, and an operating system of the terminal device may be windows or Linux, which may also include other operating systems, which is not limited in this embodiment of the present invention.
102, adding a sub-frame data packet from a preset use case library;
further, the terminal device may load the subframe data packet from a use case library, that is, load the subframe, where the subframe has one or more corresponding use cases, it should be noted that the number of the subframe may be 10, and the number of the use cases corresponding to the subframe may also be 10, which is not limited in this embodiment of the present invention, for example, the subframe may be subframe 0, subframe 1, subframe 2, subframe 3 · · · subframe 7, subframe 8, subframe 9; and each subframe may have a corresponding 10 use cases.
It should be noted that, before the step of creating the multiple processes corresponding to the detection application program, a global variable file may be further generated, and a verification environment and multiple initial parameters may be generated according to the global variable file, where the initial parameters include a first initial parameter and a second initial parameter.
103, calling the processes to respectively detect different subframes in the subframe data packet;
in practical application to the embodiment of the present invention, the terminal device may invoke a plurality of processes to respectively detect different subframes in the subframe data packet; specifically, multiple processes can be invoked to detect the sub-frames 0 to 9, that is, 10 processes can be invoked to detect 10 use cases corresponding to the sub-frames 0 to 9, for example, the 10 processes can include a 0 th process, a 1 st process, a 2 nd process, a 3 rd process, a 6 th process, a 7 th process, an 8 th process, and a 9 th process, the 0 th process can be invoked to sequentially detect the 10 use cases corresponding to the sub-frame 0, the 1 st process can be invoked to sequentially detect the 10 use cases corresponding to the sub-frame 1, the 2 nd process can be invoked to sequentially detect the 10 use cases corresponding to the sub-frame 2, and so on, the different sub-frames can be detected respectively.
Further, 10 processes can be invoked to respectively detect 10 use cases corresponding to the subframe 0, for example, the 0 th process is invoked to detect the 0 th use case of the subframe 0, the 1 st process is invoked to detect the 1 st use case of the subframe 0, the 8 th process is invoked to detect the 8 th use case of the subframe 0, and the 9 th process is invoked to detect the 9 th use case of the subframe 0; and then, calling 10 processes to respectively detect 10 cases corresponding to the sub-frames 1 to 9, and repeating the steps in such a way to detect all the sub-frames.
When the created process is less than the sub-frame to be detected, a new sub-frame to be detected is allocated to the process only after the sub-frame detection of a certain process is required to be completed, for example, when the created process has 5 sub-frames and the sub-frames to be detected have 10 sub-frames, a sub-frame to be detected is allocated to each process from beginning, for example, sub-frames 0 to 4 are sequentially allocated to processes from 0 th to 4 th for detection, the processing speed of the 0 th process is slower, and the processing speed of the 1 st process is faster, the sub-frame 5 is allocated to the 1 st process which completes the detection first, if the processing speed of the 0 th process is slower than that of the 2 nd process, the sub-frame 6 is allocated to the 2 nd process which completes the detection first, namely, different sub-frames or corresponding cases thereof can be allocated according to the processing speeds of the processes, so that the load balance among the processes is realized, and the processing efficiency is improved.
In this embodiment of the present invention, the step of invoking the multiple processes to respectively detect different subframes in the subframe data packet includes: calling the processes to respectively detect a plurality of use cases corresponding to the subframes; namely, the use case corresponding to the subframe is detected.
And step 104, when the detection of all the subframes is finished, obtaining the detection result of the subframes.
When all the sub-frame detection is completed, the detection result of the sub-frame can be obtained; it should be noted that the detection result of each use case of each subframe may be obtained and output individually.
The method is applied to the terminal equipment, the terminal equipment runs a detection application program, and a plurality of processes corresponding to the detection application program are created; adding sub-frame data packets from a preset use case library; calling the processes to respectively detect different subframes in the subframe data packet; when all the sub-frames are detected, obtaining the detection result of the sub-frames; in the embodiment of the invention, the sub-frames or the use cases can be distributed according to the processing speed of the processes, so that the load balance among the processes is realized, and the detection efficiency is improved; the running environment is not limited to a certain operating system, and the application range of the detection mode is widened; the detection result can be obtained only by setting the global variable file, so that the automation of the detection process is realized; and abundant detection modes are supported, and the detection efficiency is greatly improved.
Referring to fig. 2, a flowchart illustrating steps of a second embodiment of a method for detecting a digital logic circuit of a base station according to an embodiment of the present invention is shown, and is applied to a terminal device, where the terminal device runs a detection application program, and the method specifically includes the following steps:
step 201, creating a plurality of processes corresponding to the detection application program;
in this embodiment of the present invention, when the detection application is running, the terminal device may create multiple processes corresponding to the application, and it should be noted that a current hardware platform of the terminal device should support multiple processes to run.
In a preferred embodiment of the present invention, before the step of creating the plurality of processes of the detection application, the method further includes: setting a global variable file; i.e. parameter settings are required before running the detection application.
Further, after the global variable file is set, a verification environment can be generated by adopting the global variable file; and/or generating a plurality of second initialization parameters by adopting the global variable file; and/or generating a plurality of first initialization parameters by adopting a global variable file; the first initialization parameters comprise the number of use cases corresponding to each subframe, the maximum number of use cases, the current subframe, the number of use cases and the number of use cases completed; the second initialization parameters comprise the number of use cases, use case names and process IDs corresponding to the subframes.
Specifically, the terminal device first generates a verification environment according to the global variable file, and then generates a plurality of initialization parameters, where the initialization parameters may include a first initialization parameter and a second initialization parameter, and the first initialization parameter may include the number of use cases, the maximum number of use cases, the current subframe, the number of use cases, the number of completed use cases, and the like corresponding to each subframe; the second initialization parameter includes the number of use cases, use case names, process IDs, and the like corresponding to each subframe, which is not limited in the embodiment of the present invention;
after the verification environment and the plurality of initialization parameters are generated, a plurality of processes corresponding to the application program can be created when the detection application program runs.
Step 202, adding a sub-frame data packet from a preset use case library; wherein the subframe data packet comprises a plurality of subframes;
in the embodiment of the present invention, after creating a plurality of processes corresponding to the application, the terminal device may load a sub-frame data packet from a preset use case library, where the sub-frame data packet includes a plurality of sub-frames.
Step 203, judging whether the number of use cases of the sub-frame corresponding to the target process reaches the maximum number of use cases; wherein the subframe has a corresponding subframe identifier;
in practical application to the embodiment of the present invention, it may also be determined whether the number of use cases of the sub-frame corresponding to the target process reaches the maximum number of use cases; the sub-frame has a corresponding sub-frame identification; the maximum number of use cases represents the maximum number of use cases of each subframe, for example, if the subframe 2 has 10 corresponding use cases, the maximum number of use cases of the subframe 2 is 10, and if the current process (i.e., the target process: e.g., the 1 st process) is running the 8 th use case of the subframe 2, it is determined that the number of use cases of the subframe corresponding to the target process does not reach the maximum number of use cases.
It should be noted that the maximum number of use cases is any value set by a person skilled in the art according to practical situations, and the embodiment of the present invention is not limited to this.
Step 204, when the number of use cases of the sub-frame corresponding to the target process reaches the maximum number of use cases, judging whether the sub-frame identification conforms to a preset identification number;
specifically, when the number of use cases of the sub-frame corresponding to the target process reaches the maximum number of use cases, it is further determined whether the sub-frame identifier matches a preset identifier, for example, if the preset identifier is 9, it is determined whether the sub-frame 9 has been detected by the program.
And when the number of use cases of the sub-frame corresponding to the target process does not reach the maximum number of use cases, sequentially allocating the next use case for the target process, for example, when the current 1 st process is running the 8 th use case of the sub-frame 2, judging that the number of use cases of the sub-frame corresponding to the sub-frame identifier does not reach the maximum number of use cases, and allocating the 9 th use case for the 1 st process.
Step 205, when the subframe identifier does not conform to the preset identifier number, allocating the use case corresponding to the subframe to be detected to the target process;
further, when the subframe identifier does not meet the preset identifier, allocating a corresponding use case to the subframe to be detected to the target process, for example, if the preset identifier is 9 and the subframe currently being detected is subframe 2, allocating a new use case corresponding to the subframe to be detected to the target process; if the current 1 st process is running the 9 th use case of the subframe 2, judging that the number of use cases of the subframe corresponding to the subframe identification reaches the maximum number of use cases, but the subframe identification does not accord with the preset identification number, allocating the use case corresponding to the subframe 3 to be detected to the 1 st process, and also allocating the use cases corresponding to other subframes to be detected to the 1 st process (namely a target process); the load balance among the processes is realized, and the processing efficiency is improved.
Step 206, after the use case corresponding to the subframe to be detected is allocated to the target process, calling the target process to detect the use case corresponding to the subframe to be detected;
it should be noted that, after the use case corresponding to the subframe to be detected is allocated to the target process, the target process is called to detect the use case corresponding to the subframe to be detected; for example, the 1 st process is invoked to detect for 10 use cases of the subframe 3.
And step 207, when the detection of all the subframes is finished, obtaining the detection result of the subframe.
When all the sub-frame detection is completed, the detection result of the sub-frame can be obtained; it should be noted that the detection result of each use case of each subframe may be obtained and output individually.
In the embodiment of the invention, a plurality of processes corresponding to the detection application program are created; loading the subframe data packet from a preset use case library; wherein the subframe data packet comprises a plurality of subframes; judging whether the number of use cases of the sub-frame corresponding to the target process reaches the maximum number of use cases; the sub-frame has a corresponding sub-frame identification; when the number of use cases of the sub-frame corresponding to the target process reaches the maximum number of use cases, judging whether the sub-frame identification conforms to a preset identification number; when the subframe identification does not accord with the preset identification number, distributing the use case corresponding to the subframe to be detected to the target process; after the use case corresponding to the subframe to be detected is distributed to the target process, calling the target process to detect the use case corresponding to the subframe to be detected; when all the sub-frames are detected, obtaining the detection result of the sub-frames; in the embodiment of the invention, the load balance of each process is realized, the advantages of hardware resources are fully exerted, and the detection efficiency is greatly improved.
In order to make the embodiments of the present invention better understood by those skilled in the art, the following description is given with a specific example:
referring to fig. 3, a schematic diagram of a detection flow according to an embodiment of the present invention is shown, as shown in fig. 3, in a technical solution according to an embodiment of the present invention, the detection flow includes a TCL (Tool Command Language) script of multiple processes that is set by a global variable file and is started in a background, a verification environment sim _ tb _ top.sv of each process, and a scan _ para _ up.do that monitors multiple processes in real time and schedules use cases.
If for example, 5 processes are created, the TCL script generates a TCL _ para _ int.do file to provide initial values (i.e., initialization parameters) of each variable for scan _ para _ up.do according to the settings of each global variable file in the setup.do file, and simultaneously creates a start directory of 5 folders corresponding to the verification environments of the 5 processes, and simultaneously generates verification environments of 5 processes such as sim1_ tb _ top.sv, sim2_ tb _ top.sv · sm 5_ tb _ top.sv, and generates line _ id.txt and svh files, where line _ id.txt represents a process ID; the svh file mainly comprises the number of use cases and names of use cases corresponding to each subframe from subframe 0 to subframe 9; the initialization parameters in the generated intermediate file are also shown in fig. 3.
Wherein, the Tcl _ para _ int.do initialization parameter (first initialization parameter) includes: the number of use cases corresponding to each subframe, the maximum number of use cases, the current subframe of 5 processes, the current number of use cases of 5 processes and the number of completed use cases of 5 processes;
further, the Sim1_ tb _ top. sv initialization parameter (second initialization parameter) includes: svh document: the number of use cases and the names of use cases corresponding to each subframe from the subframe 0 to the subframe 9; txt is process ID; the above files are generated by the TCL script from the global variable file.
The core module of the embodiment of the invention is a scan _ para _ up.do file (namely TCL script), the module is responsible for scanning whether a corresponding simn _ end.txt (n is 1-5) file is generated or not in a folder of each process, once the simulation indicating that the process completes the current use case is generated, the TCL script deletes the file so as not to influence the next scanning result, simultaneously distributes a new use case for the process and updates each internal parameter.
The TCL script (TCL _ para _ up.do) and the verification environment are interacted through a txt file, the TCL script writes parameters of the verification environment for controlling the process into sim _ para.txt, the verification environment loads the parameters at the initial position of each subframe, and the information of the subframe to be detected, the corresponding use case and the like is distributed to the process.
In the embodiment of the invention, only the setting of the variable is needed to be carried out in the setup global variable file, and the directory of each process is created in the script file, wherein the directory comprises a plurality of files used in the verification environment and the global variable file of each parameter initial value when the verification environment runs;
the background process state detection and use case scheduling module is not limited to TCL scripts and is suitable for languages with various similar functions, and the interaction between the module and multiple processes is not limited to txt files; any multi-process simulation can be supported as long as the hardware platform supports the simulation; the starting sub-frame of different processes is not limited to sub-frame 0, and can be configured as any sub-frame from sub-frame 0 to sub-frame 9 as required;
the running cases of each process do not need to be distributed in advance, only the sub-frames to be detected need to be set, and the scheduling module can distribute new cases according to the running speed of each process, so that each process is guaranteed not to wait and not to be blocked; subframes which do not need to be detected can be skipped according to the setting of the global variable, so that the detection efficiency is greatly improved; all processes can jump to the subframe 1 according to all use cases of which the detection of the subframe 0 is finished, and the like in sequence until the processes run to the subframe 9, so that the detection of all use cases is finished; or, the method can also be set to jump to the next subframe by detecting only one use case in each subframe until the next cycle of one use case in each subframe is carried out after the operation is carried out to the subframe 9; the automatic comparison process is not limited to matlab implementation and is suitable for various high-level languages convenient to implement; the operating system of the terminal device is not limited to windows, and is applicable to various systems other than windows, such as Linux. The method can be set to any process according to a hardware platform, can improve the detection efficiency by many times, and greatly improves the detection efficiency; the supported simulation modes are rich, the process is supported to jump to a certain subframe for detection, the process is supported to be allocated to different subframes, the cycle of detection by taking subframes 0-9 as a whole is supported, and the mode of jumping to the next subframe after all cases of a certain subframe are detected in a centralized manner is supported.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 4, a block diagram of a digital logic circuit detection apparatus of a base station according to an embodiment of the present invention is shown, and is applied to a terminal device, where the terminal device runs a detection application program, and the detection application program may specifically include the following modules:
a process creating module 401, configured to create multiple processes corresponding to the detection application;
a sub-frame data packet loading module 402, configured to load sub-frame data packets from a preset use-case library;
a calling module 403, configured to call the multiple processes to respectively detect different subframes in the subframe data packet;
a detection result obtaining module 404, configured to obtain a detection result of the subframe when detection of all subframes is completed.
Preferably, the calling module includes:
and the calling submodule is used for calling the processes to respectively detect a plurality of use cases corresponding to the sub-frames.
Preferably, the calling module includes:
the first judgment submodule is used for judging whether the number of use cases of the subframe corresponding to the target process reaches the maximum number of use cases; wherein the subframe has a corresponding subframe identifier;
the second judgment submodule is used for judging whether the subframe identification accords with a preset identification number or not when the use case number of the subframe corresponding to the target process reaches the maximum use case number;
and the distribution submodule is used for distributing the use case corresponding to the sub-frame to be detected to the target process when the sub-frame identification does not accord with the preset identification number.
Preferably, the apparatus further comprises:
and the detection module is used for calling the target process to detect the use case corresponding to the subframe to be detected after the use case corresponding to the subframe to be detected is distributed to the target process.
Preferably, the module connected to the process creation module comprises:
and the global variable file setting module is used for setting the global variable file.
Preferably, the apparatus further comprises:
the verification environment generation module is used for generating a verification environment by adopting the global variable file;
and/or the first initialization parameter generation module is used for generating a plurality of first initialization parameters by adopting the global variable file;
and/or the second initialization parameter generation module is used for generating a plurality of second initialization parameters by adopting the global variable file;
the first initialization parameters comprise the number of use cases corresponding to each subframe, the maximum number of use cases, the current subframe, the number of use cases and the number of use cases completed; the second initialization parameters comprise the number of use cases, use case names and process IDs corresponding to the subframes.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The above detailed description is provided for a digital logic circuit detection method of a base station and a digital logic circuit detection device of a base station, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for detecting a digital logic circuit of a base station, the method being applied to a terminal device, the terminal device running a detection application program, the method comprising:
creating a plurality of processes corresponding to the detection application program;
adding sub-frame data packets from a preset use case library;
calling the processes to respectively detect different subframes in the subframe data packet;
when all the sub-frames are detected, obtaining the detection result of the sub-frames;
the step of invoking the multiple processes to respectively detect different subframes in the subframe data packet comprises:
judging whether the number of use cases of the sub-frame corresponding to the target process reaches the maximum number of use cases; wherein the subframe has a corresponding subframe identifier;
when the number of use cases of the sub-frame corresponding to the target process reaches the maximum number of use cases, judging whether the sub-frame identification conforms to a preset identification number;
and when the subframe identification does not accord with the preset identification number, distributing the use case corresponding to the subframe to be detected to the target process.
2. The method of claim 1, wherein the step of invoking the plurality of processes to detect for different subframes in the subframe data packet further comprises:
and calling the processes to respectively detect a plurality of use cases corresponding to the subframes.
3. The method of claim 1, further comprising:
and after the use case corresponding to the subframe to be detected is distributed to the target process, calling the target process to detect the use case corresponding to the subframe to be detected.
4. The method of claim 1, wherein the step of creating the corresponding plurality of processes of the inspection application is preceded by:
and setting a global variable file.
5. The method of claim 1 or 4, further comprising:
generating a verification environment by adopting a global variable file;
and/or generating a plurality of first initialization parameters by adopting a global variable file;
and/or generating a plurality of second initialization parameters by adopting the global variable file;
the first initialization parameters comprise the number of use cases corresponding to each subframe, the maximum number of use cases, the current subframe, the number of use cases and the number of use cases completed; the second initialization parameters comprise the number of use cases, use case names and process IDs corresponding to the subframes.
6. A digital logic circuit detection apparatus for a base station, the apparatus being applied to a terminal device, the terminal device running a detection application, the apparatus comprising:
the process creation module is used for creating a plurality of processes corresponding to the detection application program;
the subframe data packet loading module is used for loading subframe data packets from a preset use case library;
the calling module is used for calling the processes to respectively detect different subframes in the subframe data packet;
the detection result obtaining module is used for obtaining the detection results of the subframes when the detection of all the subframes is finished;
the calling module comprises:
the first judgment submodule is used for judging whether the number of use cases of the subframe corresponding to the target process reaches the maximum number of use cases; wherein the subframe has a corresponding subframe identifier;
the second judgment submodule is used for judging whether the subframe identification accords with a preset identification number or not when the use case number of the subframe corresponding to the target process reaches the maximum use case number;
and the distribution submodule is used for distributing the use case corresponding to the sub-frame to be detected to the target process when the sub-frame identification does not accord with the preset identification number.
7. The apparatus of claim 6, wherein the invoking module further comprises:
and the calling submodule is used for calling the processes to respectively detect a plurality of use cases corresponding to the sub-frames.
8. The apparatus of claim 6, further comprising:
and the detection module is used for calling the target process to detect the use case corresponding to the subframe to be detected after the use case corresponding to the subframe to be detected is distributed to the target process.
9. The apparatus of claim 6, wherein the module coupled to the process creation module comprises:
and the global variable file setting module is used for setting the global variable file.
10. The apparatus of claim 6 or 9, further comprising:
the verification environment generation module is used for generating a verification environment by adopting the global variable file;
and/or the first initialization parameter generation module is used for generating a plurality of first initialization parameters by adopting the global variable file;
and/or the second initialization parameter generation module is used for generating a plurality of second initialization parameters by adopting the global variable file;
the first initialization parameters comprise the number of use cases corresponding to each subframe, the maximum number of use cases, the current subframe, the number of use cases and the number of use cases completed; the second initialization parameters comprise the number of use cases, use case names and process IDs corresponding to the subframes.
CN201810474796.2A 2018-05-17 2018-05-17 Digital logic circuit detection method and device for base station Active CN110501627B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810474796.2A CN110501627B (en) 2018-05-17 2018-05-17 Digital logic circuit detection method and device for base station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810474796.2A CN110501627B (en) 2018-05-17 2018-05-17 Digital logic circuit detection method and device for base station

Publications (2)

Publication Number Publication Date
CN110501627A CN110501627A (en) 2019-11-26
CN110501627B true CN110501627B (en) 2020-11-03

Family

ID=68584401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810474796.2A Active CN110501627B (en) 2018-05-17 2018-05-17 Digital logic circuit detection method and device for base station

Country Status (1)

Country Link
CN (1) CN110501627B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609352A (en) * 2011-01-19 2012-07-25 阿里巴巴集团控股有限公司 Parallel testing method and parallel testing server
CN102999423A (en) * 2012-11-15 2013-03-27 华为技术有限公司 Multi-core testing method and device
CN103544102A (en) * 2013-09-02 2014-01-29 烟台中科网络技术研究所 Method and device for test and simulation of software performance
CN104407367A (en) * 2014-12-19 2015-03-11 中国科学院重庆绿色智能技术研究院 Device and method for improving baseband signal processing capacity of satellite navigation terminal receiver
CN106547654A (en) * 2015-09-21 2017-03-29 中兴通讯股份有限公司 A kind of automated testing method and device
CN107291621A (en) * 2017-07-07 2017-10-24 恒生电子股份有限公司 Processing method, processing unit, medium and the electronic equipment of test case

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609352A (en) * 2011-01-19 2012-07-25 阿里巴巴集团控股有限公司 Parallel testing method and parallel testing server
CN102999423A (en) * 2012-11-15 2013-03-27 华为技术有限公司 Multi-core testing method and device
CN103544102A (en) * 2013-09-02 2014-01-29 烟台中科网络技术研究所 Method and device for test and simulation of software performance
CN104407367A (en) * 2014-12-19 2015-03-11 中国科学院重庆绿色智能技术研究院 Device and method for improving baseband signal processing capacity of satellite navigation terminal receiver
CN106547654A (en) * 2015-09-21 2017-03-29 中兴通讯股份有限公司 A kind of automated testing method and device
CN107291621A (en) * 2017-07-07 2017-10-24 恒生电子股份有限公司 Processing method, processing unit, medium and the electronic equipment of test case

Also Published As

Publication number Publication date
CN110501627A (en) 2019-11-26

Similar Documents

Publication Publication Date Title
CN109076567B (en) Method and apparatus for suspending uplink transmissions during a transmission time interval
EP3393167A1 (en) Resource allocation method and device, and base station
CN110149711B (en) Signal transmission method and device
CN102394728B (en) Determination method of downlink process number and device thereof
CN109392015A (en) A kind of resource selection method and device
KR101964534B1 (en) Repeated transmission of scheduling assignment for random access response
CN110351848A (en) A kind of time-domain resource distribution method and device
JP2021503848A (en) Data transmission methods, terminals, base stations and storage media
EP4258741A3 (en) Address coordination method, device, base station, smf network element and storage medium
CN112106414A (en) Paging occasion start determination
CN107770877A (en) One kind is first listened sends out LBT execution methods and relevant apparatus afterwards
CN105407532A (en) D2D communication method and apparatus
CN103369663B (en) Avoid the method for arbitrary access response collision
CN105745979A (en) Resource allocation for distributed device-to-device synchronization
CN104185289A (en) Base station and method of scheduling service by base station
CN105511587B (en) Method and device for controlling radio frequency link
CN110501627B (en) Digital logic circuit detection method and device for base station
EP4048007A1 (en) Time domain resource determination method and device
CN109150455B (en) Indication method, processing method and device
CN107077378B (en) Communication method, device, electronic equipment and program product
CN107567095B (en) Physical uplink control channel PUCCH resource allocation method and base station
CN105472570A (en) Base station/terminal and PDCCH scrambling/descrambling method and device thereof
CN104104969B (en) Video interception method and device
CN112398585A (en) Codebook generation method and device
CN104039017A (en) Method for transmitting scheduling information and base station

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