CN113961405B - State switching instruction verification method and device, electronic equipment and storage medium - Google Patents
State switching instruction verification method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113961405B CN113961405B CN202111159823.5A CN202111159823A CN113961405B CN 113961405 B CN113961405 B CN 113961405B CN 202111159823 A CN202111159823 A CN 202111159823A CN 113961405 B CN113961405 B CN 113961405B
- Authority
- CN
- China
- Prior art keywords
- state
- switching
- switched
- array
- switching object
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
- Hardware Redundancy (AREA)
Abstract
Description
技术领域technical field
本公开涉及人工智能技术领域,特别涉及人工智能芯片和云计算等领域的状态切换指令验证方法、装置、电子设备及存储介质。The present disclosure relates to the field of artificial intelligence technology, and in particular to a verification method, device, electronic equipment, and storage medium for state switching instructions in the fields of artificial intelligence chips and cloud computing.
背景技术Background technique
芯片系统,如语音芯片中存在大量的状态切换指令,如复位类状态切换指令和时钟频率切换类状态切换指令等。Chip systems, such as voice chips, have a large number of state switching instructions, such as reset state switching instructions and clock frequency switching state switching instructions.
目前,针对状态切换指令的验证,需要在验证平台中对所有信号线依次进行分析比对,效率低下。At present, for the verification of state switching instructions, it is necessary to analyze and compare all signal lines in the verification platform in sequence, which is inefficient.
发明内容Contents of the invention
本公开提供了状态切换指令验证方法、装置、电子设备及存储介质。The disclosure provides a state switching instruction verification method, device, electronic equipment and storage medium.
一种状态切换指令验证方法,包括:A method for verifying a state switching instruction, comprising:
针对任一类状态切换指令,并行地对被测设备中的各切换对象执行以下处理:For any type of state switching instruction, perform the following processing on each switching object in the device under test in parallel:
针对向所述切换对象发出的属于所述任一类的状态切换指令,将所述状态切换指令要求切换到的状态与对应的切换后状态进行比对,所述切换后状态为所述切换对象切换后的状态,若不一致,则进行报错处理。For the state switching instruction sent to the switching object belonging to any one of the types, the state to which the state switching instruction is required to switch is compared with the corresponding switched state, and the switched state is the switching object If the state after switching is inconsistent, an error will be reported.
一种状态切换指令验证装置,包括:第一处理模块以及第二处理模块;A state switching instruction verification device, comprising: a first processing module and a second processing module;
所述第一处理模块,用于针对任一类状态切换指令,并行地对被测设备中的各切换对象执行以下处理:针对向所述切换对象发出的属于所述任一类的状态切换指令,将所述状态切换指令要求切换到的状态与对应的切换后状态进行比对,所述切换后状态为所述切换对象切换后的状态;The first processing module is configured to perform the following processing on each switching object in the device under test in parallel for any type of state switching instruction: Comparing the state to which the state switching instruction requires to switch with the corresponding switched state, the switched state is the switched state of the switching object;
所述第二处理模块,用于当所述要求切换到的状态与对应的所述切换后状态不一致时,进行报错处理。The second processing module is configured to report an error when the state to be switched to is inconsistent with the corresponding switched state.
一种电子设备,包括:An electronic device comprising:
至少一个处理器;以及at least one processor; and
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如以上所述的方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can perform the method as described above.
一种存储有计算机指令的非瞬时计算机可读存储介质,所述计算机指令用于使计算机执行如以上所述的方法。A non-transitory computer-readable storage medium storing computer instructions, the computer instructions are used to cause a computer to execute the method as described above.
一种计算机程序产品,包括计算机程序/指令,所述计算机程序/指令被处理器执行时实现如以上所述的方法。A computer program product, comprising computer programs/instructions, when executed by a processor, implements the method as described above.
上述公开中的一个实施例具有如下优点或有益效果:针对任一类状态切换指令,可并行地对被测设备中的各切换对象进行验证,即可按照同样的方式对各切换对象进行并行处理,从而提升了验证效率等。An embodiment in the above disclosure has the following advantages or beneficial effects: For any type of state switching instruction, each switching object in the device under test can be verified in parallel, and each switching object can be processed in parallel in the same way , thereby improving the verification efficiency, etc.
应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will be readily understood through the following description.
附图说明Description of drawings
附图用于更好地理解本方案,不构成对本公开的限定。其中:The accompanying drawings are used to better understand the present solution, and do not constitute a limitation to the present disclosure. in:
图1为本公开所述状态切换指令验证方法第一实施例的流程图;FIG. 1 is a flow chart of the first embodiment of the method for verifying state switching instructions described in the present disclosure;
图2为本公开所述状态切换指令验证方法第二实施例的流程图;FIG. 2 is a flow chart of the second embodiment of the state switching instruction verification method described in the present disclosure;
图3为本公开所述状态切换指令验证装置实施例300的组成结构示意图;FIG. 3 is a schematic diagram of the composition and structure of an
图4示出了可以用来实施本公开的实施例的电子设备400的示意性框图。FIG. 4 shows a schematic block diagram of an
具体实施方式Detailed ways
以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
另外,应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。In addition, it should be understood that the term "and/or" in this article is only an association relationship describing associated objects, which means that there may be three relationships, for example, A and/or B may mean: A exists alone, and A exists at the same time. and B, there are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual objects are an "or" relationship.
图1为本公开所述状态切换指令验证方法第一实施例的流程图。如图1所示,包括以下具体实现方式。FIG. 1 is a flow chart of a first embodiment of the method for verifying a state switching instruction in the present disclosure. As shown in FIG. 1 , the following specific implementation manners are included.
在步骤101中,针对任一类状态切换指令,并行地对被测设备(DUT,Device UnderTest)中的各切换对象执行步骤102所示处理。In
在步骤102中,针对向切换对象发出的属于所述任一类的状态切换指令,将状态切换指令要求切换到的状态与对应的切换后状态进行比对,所述切换后状态为切换对象切换后的状态,若不一致,则进行报错处理。In
可以看出,上述方法实施例所述方案中,针对任一类状态切换指令,可并行地对被测设备中的各切换对象进行验证,即可按照同样的方式对各切换对象进行并行处理,从而提升了验证效率等。It can be seen that in the scheme described in the above method embodiment, for any type of state switching instruction, each switching object in the device under test can be verified in parallel, and each switching object can be processed in parallel in the same way, Thereby improving the verification efficiency and so on.
对于不同类的状态切换指令,如复位类状态切换指令和时钟频率切换类状态切换指令等,可分别按照本公开所述方式进行处理。Different types of state switching instructions, such as reset state switching instructions and clock frequency switching state switching instructions, etc., can be processed according to the methods described in the present disclosure.
以复位类状态切换指令为例,被测设备中的切换对象可为信号线,即系统内独立控制的复位信号线,具体数量视实际情况确定,可并行地对各切换对象执行上述步骤102所示处理,即针对向切换对象发出的属于复位类的任一状态切换指令,将该状态切换指令要求切换到的状态与对应的切换后状态进行比对,若不一致,则可进行报错处理。Taking the reset state switching command as an example, the switching object in the device under test can be a signal line, that is, the reset signal line independently controlled in the system. Display processing, that is, for any state switching instruction issued to the switching object and belonging to the reset category, the state to which the state switching instruction is required to switch is compared with the corresponding switched state, and if they are inconsistent, error processing can be performed.
本公开的一个实施例中,针对向切换对象发出的任一状态切换指令,还可先将要求切换到的状态与切换对象当前的状态进行比对,若一致,可结束针对该状态切换指令的处理,若不一致,可进一步将要求切换到的状态与对应的切换后状态进行比对。In an embodiment of the present disclosure, for any state switching instruction sent to the switching object, the state to be switched to can be compared with the current state of the switching object, and if they are consistent, the state switching instruction for the state switching instruction can be terminated. For processing, if they are inconsistent, the state to be switched to can be further compared with the corresponding switched state.
若要求切换到的状态与切换对象当前的状态一致,那么说明当前的状态即为要求切换到的状态,从而可直接结束针对该状态切换指令的处理,进而可省去后续处理流程,减少资源和时间消耗等。If the state to be switched to is consistent with the current state of the switching object, it means that the current state is the state to be switched to, so that the processing of the state switching command can be directly ended, and subsequent processing procedures can be omitted, reducing resources and time consumption etc.
本公开的一个实施例中,针对每类状态切换指令,还可分别构建期望当前状态数组,其中的元素数量等于切换对象的数量,各元素分别对应于不同的切换对象,分别用于记录对应的切换对象的状态;相应地,可获取期望当前状态数组中记录的切换对象的状态,作为切换对象当前的状态,另外,若要求切换到的状态与切换对象当前的状态不一致,还可利用要求切换到的状态更新期望当前状态数组中记录的切换对象的状态。In an embodiment of the present disclosure, for each type of state switching instruction, a desired current state array can also be constructed respectively, in which the number of elements is equal to the number of switching objects, each element corresponds to a different switching object, and is used to record the corresponding The state of the switching object; correspondingly, the state of the switching object recorded in the expected current state array can be obtained as the current state of the switching object. In addition, if the state to be switched to is inconsistent with the current state of the switching object, you can also use the required switching The state update to expects the state of the toggle object as recorded in the current state array.
本公开的一个实施例中,针对每类状态切换指令,还可分别构建期望切换后状态数组和实际切换后状态数组,各数组中的元素数量均等于切换对象的数量,同一数组中的各元素分别对应于不同的切换对象,且,各数组中的元素分别为一个队列,相应地,若要求切换到的状态与切换对象当前的状态不一致,可将要求切换到的状态加入到期望切换后状态数组中切换对象对应的队列中,另外,可采集切换对象的状态变化,将每次变化后的状态分别加入到实际切换后状态数组中切换对象对应的队列中,进一步地,可根据期望切换后状态数组中切换对象对应的队列以及实际切换后状态数组中切换对象对应的队列,分别确定出各要求切换到的状态对应的切换后状态。In one embodiment of the present disclosure, for each type of state switching instruction, an array of expected state after switching and an array of actual state after switching can also be constructed respectively. The number of elements in each array is equal to the number of switching objects, and each element in the same array They correspond to different switching objects, and the elements in each array are respectively a queue. Correspondingly, if the state to be switched to is inconsistent with the current state of the switching object, the state to be switched to can be added to the desired state after switching In the queue corresponding to the switching object in the array, in addition, the state change of the switching object can be collected, and the state after each change is added to the queue corresponding to the switching object in the actual switching state array, and further, after switching according to expectations The queues corresponding to the switching objects in the state array and the queues corresponding to the switching objects in the actual state array after switching respectively determine the switching states corresponding to the states to be switched to.
也就是说,优选地,针对每类状态切换指令,可分别构建三个数组,分别为期望当前状态数组、期望切换后状态数组和实际切换后状态数组。That is to say, preferably, for each type of state switching instruction, three arrays can be respectively constructed, which are respectively an array of expected current state, an array of expected state after switching and an array of actual state after switching.
其中,期望切换后状态数组用于存储状态切换指令要求切换到的状态,作为期望值与实际切换后状态数组中的对应状态进行比对,期望切换后状态数组中的元素数量等于切换对象的数量,各元素分别对应于不同的切换对象,且,各数组中的元素分别为一个队列。Among them, the expected switched state array is used to store the state that the state switching instruction requires to switch to, and is compared with the corresponding state in the actual switched state array as the expected value, and the number of elements in the expected switched state array is equal to the number of switching objects, Each element corresponds to a different switching object, and the elements in each array are respectively a queue.
实际切换后状态数组用于存储切换对象的切换后状态,其中的元素数量等于切换对象的数量,各元素分别对应于不同的切换对象,且,各数组中的元素分别为一个队列。The actual switched state array is used to store the switched state of the switched object, the number of elements in it is equal to the number of switched objects, and each element corresponds to a different switched object, and the elements in each array are respectively a queue.
期望当前状态数组用于存储切换对象的期望的当前状态,其中的元素数量等于切换对象的数量,各元素分别对应于不同的切换对象,分别用于记录对应的切换对象的状态。The expected current state array is used to store the expected current state of the switching object, and the number of elements therein is equal to the number of switching objects, each element corresponds to a different switching object, and is used to record the state of the corresponding switching object.
初始状态下,期望切换后状态数组和实际切换后状态数组中的各队列均为空,期望当前状态数组中的各元素的初始值可为被测设备中的各切换对象的上电初始化状态。In the initial state, each queue in the expected state array after switching and the actual state array after switching is empty, and the initial value of each element in the expected current state array is the power-on initialization state of each switching object in the device under test.
针对向切换对象发出的任一状态切换指令,可首先获取期望当前状态数组中记录的切换对象的状态,作为切换对象当前的状态,之后可将状态切换指令要求切换到的状态与切换对象当前的状态进行比对,若一致,可直接结束针对状态切换指令的处理,若不一致,可利用要求切换到的状态更新期望当前状态数组中记录的切换对象的状态,即可将所记录的切换对象的状态更新为要求切换到的状态,并可将要求切换到的状态加入到期望切换后状态数组中切换对象对应的队列中,即加入到队列末尾,另外,可实时采集切换对象的状态变化,并可将每次变化后的状态加入到实际切换后状态数组中切换对象对应的队列中,即当切换对象的状态每次发生变化时,则可将变化后的状态加入到实际切换后状态数组中切换对象对应的队列中,所述变化可能是由于执行了对应的状态切换指令引起的,也可能是由于其它原因引起的,比如,切换对象错误地自行进行了切换等。For any state switching instruction issued to the switching object, the state of the switching object recorded in the expected current state array can be obtained first, as the current state of the switching object, and then the state that the state switching instruction requires to switch to can be compared with the current state of the switching object If they are consistent, the processing of the state switching instruction can be ended directly. If they are not consistent, the state of the switching object recorded in the expected current state array can be updated by using the state required to switch to, that is, the recorded switching object The state is updated to the state required to switch to, and the state required to be switched can be added to the queue corresponding to the switching object in the expected switching state array, that is, added to the end of the queue. In addition, the state change of the switching object can be collected in real time, and The state after each change can be added to the queue corresponding to the switching object in the actual switching state array, that is, when the state of the switching object changes each time, the changed state can be added to the actual switching state array In the queue corresponding to the switching object, the change may be caused by the execution of the corresponding state switching instruction, or may be caused by other reasons, for example, the switching object has switched by itself by mistake.
借助于上述各数组,可对所需的不同状态进行方便准确的记录,从而为后续处理奠定了良好的基础,而且,期望切换后状态数组和实际切换后状态数组中,采用队列的方式对同一切换对象对应的状态进行存储,可确保先存储的状态在未被处理时不会被覆盖掉,另外,采用上述数组的方式,可实现灵活扩容,比如,若需要增加同类状态切换指令数量,只需增加各数组的维度(元素数量)即可,若需要增加状态切换指令类别,只需要增加对应的数组即可,非常的灵活方便。With the help of the above-mentioned arrays, the different states required can be recorded conveniently and accurately, thus laying a good foundation for subsequent processing. Moreover, in the expected state array after switching and the actual state array after switching, the same Switching the state corresponding to the object is stored to ensure that the state stored first will not be overwritten when it is not processed. In addition, the above-mentioned array method can be used to achieve flexible expansion. For example, if it is necessary to increase the number of state switching instructions of the same type, only It is only necessary to increase the dimension (number of elements) of each array. If it is necessary to increase the category of state switching instructions, it is only necessary to increase the corresponding array, which is very flexible and convenient.
如前所述,针对向切换对象发出的任一状态切换指令,可将状态切换指令要求切换到的状态与对应的切换后状态进行比对。本公开的一个实施例中,可根据期望切换后状态数组中切换对象对应的队列以及实际切换后状态数组中切换对象对应的队列,分别确定出各要求切换到的状态对应的切换后状态。As mentioned above, for any state switching instruction sent to the switching object, the state to which the state switching instruction requires to switch can be compared with the corresponding switched state. In an embodiment of the present disclosure, the switched states corresponding to the states to be switched to can be determined respectively according to the queue corresponding to the switching object in the expected switched state array and the queue corresponding to the switching object in the actual switched state array.
本公开的一个实施例中,当切换对象对应的两个队列均为非空时,可将两个队列中处于相同位置(如均处于队列中的第一位等)的两个状态作为一个状态对取出,并可将状态对中的第一状态作为状态对中的第二状态对应的切换后状态,其中,第一状态为从实际切换后状态数组中切换对象对应的队列中取出的状态,第二状态为从期望切换后状态数组中切换对象对应的队列中取出的状态。In one embodiment of the present disclosure, when the two queues corresponding to the switching object are both non-empty, the two states in the same position in the two queues (for example, both are in the first position in the queue, etc.) can be regarded as one state The first state in the state pair can be used as the switched state corresponding to the second state in the state pair, wherein the first state is the state taken out from the queue corresponding to the switching object in the actual switched state array, The second state is the state taken from the queue corresponding to the switching object in the desired state array after switching.
比如,假设某一切换对象分别对应于期望切换后状态数组中的队列1以及实际切换后状态数组中的队列2,当队列1和队列2均为非空时,假设队列1中包括两个要求切换到的状态,分别为状态a和状态b,队列2中包括一个切换后状态,为状态A,状态a和状态b分别对应于不同的状态切换指令,假设状态A为执行完状态a对应的状态切换指令后切换对象的切换后状态,由于存在处理上的延时等,此时还未执行完状态b对应的状态切换指令,相应地,队列2中仅包括状态A,而不包括执行完状态b对应的状态切换指令后切换对象的切换后状态B,由于队列1和队列2均为非空,因此可将两个队列中处于相同位置的两个状态作为一个状态对取出,即可取出状态a和状态A组成的状态对,并可将状态A作为状态a对应的切换后状态,假设之后队列2中增加了状态B,那么可进一步取出状态b和状态B组成的状态对,并可将状态B作为状态b对应的切换后状态。For example, assume that a switch object corresponds to queue 1 in the expected state array after switching and queue 2 in the actual state array after switching. When both queue 1 and queue 2 are not empty, suppose that queue 1 includes two requirements The states to switch to are state a and state b respectively. Queue 2 includes a state after switching, which is state A. State a and state b correspond to different state switching instructions respectively. Suppose state A is the one corresponding to state a after execution The switched state of the switching object after the state switching instruction, due to the processing delay, etc., the state switching instruction corresponding to the state b has not been executed at this time, correspondingly, only the state A is included in the queue 2, and the execution is not included The state B corresponding to the state switching instruction after the switching object is switched. Since queue 1 and queue 2 are both non-empty, the two states in the same position in the two queues can be taken out as a state pair, and can be taken out A state pair composed of state a and state A, and state A can be used as the switched state corresponding to state a, assuming that state B is added to queue 2 later, then the state pair composed of state b and state B can be further taken out, and can be Let state B be the switched state corresponding to state b.
可将每次取出的状态对中的两个状态进行比对,若不一致,则说明出现了状态切换指令与状态切换执行情况不相符的情况,相应地,可进行报错处理。The two states in the state pair taken out each time can be compared. If they are not consistent, it means that the state switching instruction does not match the state switching execution. Correspondingly, error processing can be performed.
可以看出,采用上述处理方式,只要切换对象对应的两个队列均为非空,则可进行状态对的取出和比较,而无需等到所有的状态切换指令均处理完毕,从而提升了处理效率等。It can be seen that with the above processing method, as long as the two queues corresponding to the switching object are not empty, the state pair can be retrieved and compared without waiting for all state switching instructions to be processed, thereby improving processing efficiency, etc. .
本公开的一个实施例中,当需要向切换对象发出的各状态切换指令均处理完毕时,若未出现报错,可确定针对切换对象的状态切换指令验证通过。In one embodiment of the present disclosure, when all state switching instructions that need to be sent to the switching object are processed, if no error occurs, it can be determined that the state switching instruction for the switching object has passed the verification.
假设针对某一切换对象,共需要向其发出50条状态切换指令,这50条状态切换指令可属于同一类,那么当这50条状态切换指令均处理完毕时,若未出现报错,则可确定针对该切换对象的该类状态切换指令验证通过,针对其它类状态切换指令,可按照同样的方式进行处理。各状态切换指令的发送顺序可根据实际需要而定。Assuming that a total of 50 state switching instructions need to be issued to a certain switching object, these 50 state switching instructions can belong to the same category, then when the 50 state switching instructions are all processed, if no error occurs, it can be determined This type of state switching instruction for the switching object passes the verification, and other types of state switching instructions can be processed in the same manner. The sending order of each state switching instruction can be determined according to actual needs.
假设针对上述切换对象,当50条状态切换指令均处理完毕时,未出现报错,那么则可确定针对该切换对象的状态切换指令验证通过。Assuming that no error occurs when all 50 state switching instructions are processed for the above switching object, then it can be determined that the state switching instruction for the switching object has passed the verification.
本公开的一个实施例中,当需要向切换对象发出的各状态切换指令均处理完毕时,若实际切换后状态数组中切换对象对应的队列不为空而期望切换后状态数组中切换对象对应的队列为空,那么可确定出现了不存在对应的状态切换指令但进行了状态切换的错误。In one embodiment of the present disclosure, when all state switching instructions that need to be sent to the switching object are processed, if the queue corresponding to the switching object in the actual switching state array is not empty and the queue corresponding to the switching object in the expected switching state array is If the queue is empty, it can be determined that there is an error that there is no corresponding state switching instruction but the state switching is performed.
比如,针对某一切换对象,依次向其发出了4(仅为举例说明,实际可能远大于此)条状态切换指令,相应地,期望切换后状态数组中该切换对象对应的队列中前后共存储了4个要求切换到的状态,分别为状态a、状态b、状态c和状态d,但实际切换后状态数组中该切换对象对应的队列中前后共存储了5个切换后状态,分别为状态A、状态B、状态C、状态X和状态D,其中,状态A为根据状态a对应的状态切换指令进行状态切换后的状态,状态B为根据状态b对应的状态切换指令进行状态切换后的状态,状态C为根据状态c对应的状态切换指令进行状态切换后的状态,状态D为根据状态d对应的状态切换指令进行状态切换后的状态,状态X为不知由于何种原因导致的状态切换,这样,可依次取出状态a和状态A、状态b和状态B、状态c和状态C、状态d和状态X共4个状态对,其中,针对状态d和状态X组成的状态对,会进行报错处理,另外,实际切换后状态数组中还会剩余一个状态D,即实际切换后状态数组中该切换对象对应的队列不为空而期望切换后状态数组中该切换对象对应的队列为空,那么则可确定出现了不存在对应的状态切换指令但进行了状态切换的错误。For example, for a switching object, 4 (only for example, the actual may be much larger than this) state switching instructions are issued to it in sequence. There are 4 states to be switched to, which are state a, state b, state c and state d respectively. However, in the queue corresponding to the switching object in the actual switching state array, a total of 5 switching states are stored before and after the switching, which are state A, state B, state C, state X, and state D, wherein state A is the state after state switching according to the state switching instruction corresponding to state a, and state B is the state after state switching according to the state switching instruction corresponding to state b State, state C is the state after state switching according to the state switching instruction corresponding to state c, state D is the state after state switching according to the state switching instruction corresponding to state d, and state X is the state switching due to unknown reasons , in this way, four state pairs of state a and state A, state b and state B, state c and state C, state d and state X can be sequentially taken out, among which, for the state pair composed of state d and state X, the Error processing, in addition, there will be a state D left in the state array after the actual switching, that is, the queue corresponding to the switching object in the actual switching state array is not empty and the queue corresponding to the switching object in the expected switching state array is empty, Then it can be determined that there is an error that there is no corresponding state switching instruction but the state switching is performed.
本公开的一个实施例中,当需要向切换对象发出的各状态切换指令均处理完毕时,若期望切换后状态数组中切换对象对应的队列不为空而实际切换后状态数组中切换对象对应的队列为空,可确定出现了未根据状态切换指令进行对应的状态切换的错误。In one embodiment of the present disclosure, when all state switching instructions that need to be sent to the switching object are processed, if the queue corresponding to the switching object in the expected state array after switching is not empty but the queue corresponding to the switching object in the actual switching state array is If the queue is empty, it can be determined that the corresponding state switching error has not been performed according to the state switching instruction.
比如,针对某一切换对象,依次向其发出了4条状态切换指令,相应地,期望切换后状态数组中该切换对象对应的队列中前后共存储了4个要求切换到的状态,分别为状态a、状态b、状态c和状态d,但实际切换后状态数组中该切换对象对应的队列中前后共存储了3个切换后状态,分别为状态A、状态B和状态D,其中,状态A为根据状态a对应的状态切换指令进行状态切换后的状态,状态B为根据状态b对应的状态切换指令进行状态切换后的状态,状态D为根据状态d对应的状态切换指令进行状态切换后的状态,这样,可依次取出状态a和状态A、状态b和状态B、状态c和状态D共3个状态对,其中,针对状态c和状态D组成的状态对,会进行报错处理,另外,期望切换后状态数组中还会剩余一个状态d,即期望切换后状态数组中该切换对象对应的队列不为空而实际切换后状态数组中该切换对象对应的队列为空,那么可确定出现了未根据状态切换指令进行对应的状态切换的错误,如以上为未根据状态c对应的状态切换指令进行对应的状态切换。For example, for a switching object, four state switching instructions are issued to it in sequence. Correspondingly, a total of 4 states to be switched to are stored in the queue corresponding to the switching object in the expected state array after switching, which are state a, state b, state c, and state d, but in the queue corresponding to the switching object in the actual switching state array, a total of 3 switching states are stored before and after, which are state A, state B, and state D respectively. Among them, state A It is the state after state switching according to the state switching instruction corresponding to state a, state B is the state after state switching according to the state switching instruction corresponding to state b, and state D is the state after switching according to the state switching instruction corresponding to state d In this way, three state pairs of state a and state A, state b and state B, state c and state D can be taken out in sequence. Among them, for the state pair composed of state c and state D, error processing will be performed. In addition, It is expected that there will be a state d left in the state array after switching, that is, the queue corresponding to the switching object in the expected switching state array is not empty but the queue corresponding to the switching object in the actual switching state array is empty, then it can be determined that there is a The error of not performing the corresponding state switching according to the state switching instruction, as above, is not performing the corresponding state switching according to the state switching instruction corresponding to state c.
通过上述处理可以看出,当需要向切换对象发出的各状态切换指令均处理完毕时,可通过查看期望切换后状态数组和实际切换后状态数组是否为空,确定出出现的错误类型,从而丰富了验证结果,为验证人员提供了更多的可用信息等。Through the above processing, it can be seen that when all the state switching instructions that need to be sent to the switching object are processed, the error type can be determined by checking whether the expected switching state array and the actual switching state array are empty, so as to enrich Verification results are provided, and more available information is provided for verifiers.
综合上述介绍,图2为本公开所述状态切换指令验证方法第二实施例的流程图。如图2所示,包括以下具体实现方式。Based on the above introduction, FIG. 2 is a flow chart of a second embodiment of the method for verifying a state switching instruction in the present disclosure. As shown in FIG. 2 , the following specific implementation manners are included.
在步骤201中,针对任一类状态切换指令,分别构建期望切换后状态数组、实际切换后状态数组以及期望当前状态数组,各数组中的元素数量均等于被测设备中的切换对象的数量,同一数组中的各元素分别对应于不同的切换对象,且,期望切换后状态数组和实际切换后状态数组中的元素分别为一个队列。In step 201, for any type of state switching instruction, respectively construct the expected switching state array, the actual switching state array and the expected current state array, the number of elements in each array is equal to the number of switching objects in the device under test, Each element in the same array corresponds to a different switching object, and the elements in the expected switching state array and the actual switching state array are respectively a queue.
初始状态,期望切换后状态数组和实际切换后状态数组中的各队列均为空,期望当前状态数组中的各元素的初始值可为被测设备中的各切换对象的上电初始化状态。In the initial state, each queue in the expected state array after switching and the actual state array after switching is empty, and the initial value of each element in the expected current state array can be the power-on initialization state of each switching object in the device under test.
在步骤202中,针对被测设备中的各切换对象,并行地按照步骤203-步骤209所示方式进行处理。In
在步骤203中,针对当前向切换对象发出的属于该类的任一状态切换指令,获取期望当前状态数组中记录的切换对象的状态,作为切换对象当前的状态。In
在步骤204中,确定状态切换指令要求切换到的状态与切换对象当前的状态是否一致,若是,则执行步骤203,否则,执行步骤205。In
若要求切换到的状态与切换对象当前的状态一致,那么可执行步骤203,即可继续处理下一条状态切换指令。If the state to be switched to is consistent with the current state of the switching object, then step 203 can be executed to continue processing the next state switching instruction.
在步骤205中,利用要求切换到的状态更新期望当前状态数组中记录的切换对象的状态,并将要求切换到的状态加入到期望切换后状态数组中切换对象对应的队列中,之后可执行步骤203和步骤207。In
除了需要对期望当前状态数组中记录的切换对象的状态进行更新以及将要求切换到的状态加入到期望切换后状态数组中切换对象对应的队列中后,还可执行状态切换指令,之后可执行步骤203,即可继续处理下一条状态切换指令,并可在满足条件时执行步骤207。In addition to updating the state of the switching object recorded in the expected current state array and adding the state to be switched to to the queue corresponding to the switching object in the expected switching state array, the state switching instruction can also be executed, and then the steps can be executed 203 , the next state switching instruction can be continued to be processed, and step 207 can be executed when the condition is met.
在步骤206中,采集切换对象的状态变化,将每次变化后的状态分别加入到实际切换后状态数组中切换对象对应的队列中,之后可执行步骤207。In
在步骤207中,当切换对象对应的两个队列均为非空时,将两个队列中处于相同位置的两个状态作为一个状态对取出,并将状态对中的第一状态作为状态对中的第二状态对应的切换后状态,第一状态为从实际切换后状态数组中切换对象对应的队列中取出的状态,第二状态为从期望切换后状态数组中切换对象对应的队列中取出的状态。In
在步骤208中,分别将取出的每个状态对中的两个状态进行比对,若不一致,则进行报错处理。In
若一致,可不作处理。If they are consistent, no processing is required.
在步骤209中,当需要向切换对象发出的各状态切换指令均处理完毕时,若未出现报错,则确定针对切换对象的状态切换指令验证通过。In
进一步地,当需要向切换对象发出的各状态切换指令均处理完毕时,若实际切换后状态数组中切换对象对应的队列不为空而期望切换后状态数组中切换对象对应的队列为空,可确定出现了不存在对应的状态切换指令但进行了状态切换的错误。Further, when all state switching instructions that need to be sent to the switching object are processed, if the queue corresponding to the switching object in the actual switching state array is not empty and the queue corresponding to the switching object in the expected switching state array is empty, you can It is determined that there is an error that there is no corresponding state switching instruction but the state switching is performed.
当需要向切换对象发出的各状态切换指令均处理完毕时,若期望切换后状态数组中切换对象对应的队列不为空而实际切换后状态数组中切换对象对应的队列为空,可确定出现了未根据状态切换指令进行对应的状态切换的错误。When all state switching instructions that need to be sent to the switching object are processed, if the queue corresponding to the switching object in the expected state array after switching is not empty but the queue corresponding to the switching object in the actual switching state array is empty, it can be determined that a The corresponding state switching error is not performed according to the state switching instruction.
需要说明的是,对于前述的各方法实施例,为了简单描述,将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本公开并不受所描述的动作顺序的限制,因为依据本公开,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本公开所必须的。另外,某个实施例中没有详述的部分,可以参见其它实施例中的相关说明。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited by the described action sequence, because Certain steps may be performed in other orders or simultaneously in accordance with the present disclosure. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present disclosure. In addition, for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions in other embodiments.
总之,采用本公开方法实施例所述方案,可实现状态切换指令集中管理、流程化执行和批量操作等,且支持相同指令多次发送的情况,并可满足各种项目需求,具有普遍适用性,另外,可实现灵活扩容,比如,若需要增加同类状态切换指令数量,只需增加各数组的维度即可,若需要增加状态切换指令类别,只需要增加对应的数组即可,非常的灵活方便。In a word, adopting the scheme described in the disclosed method embodiment can realize centralized management of state switching instructions, process-based execution, batch operation, etc., and supports multiple sending of the same instruction, and can meet the needs of various projects, and has universal applicability In addition, flexible expansion can be realized. For example, if you need to increase the number of state switching instructions of the same type, you only need to increase the dimensions of each array. If you need to increase the type of state switching instructions, you only need to increase the corresponding array. It is very flexible and convenient. .
以上是关于方法实施例的介绍,以下通过装置实施例,对本公开所述方案进行进一步说明。The above is the introduction of the method embodiments, and the solution of the present disclosure will be further described through the device embodiments below.
图3为本公开所述状态切换指令验证装置实施例300的组成结构示意图。如图3所示,包括:第一处理模块301以及第二处理模块302。FIG. 3 is a schematic diagram of the composition and structure of an
第一处理模块301,用于针对任一类状态切换指令,并行地对被测设备中的各切换对象执行以下处理:针对向切换对象发出的属于所述任一类的状态切换指令,将状态切换指令要求切换到的状态与对应的切换后状态进行比对,切换后状态为切换对象切换后的状态。The
第二处理模块302,用于当要求切换到的状态与对应的切换后状态不一致时,进行报错处理。The
上述装置实施例所述方案中,针对任一类状态切换指令,可并行地对被测设备中的各切换对象进行验证,即可按照同样的方式对各切换对象进行并行处理,从而提升了验证效率等。In the scheme described in the above-mentioned device embodiment, for any type of state switching instruction, each switching object in the device under test can be verified in parallel, that is, each switching object can be processed in parallel in the same way, thereby improving verification efficiency etc.
本公开的一个实施例中,针对向切换对象发出的任一状态切换指令,第一处理模块301还可先将要求切换到的状态与切换对象当前的状态进行比对,若一致,可结束针对该状态切换指令的处理,若不一致,可进一步将要求切换到的状态与对应的切换后状态进行比对。In an embodiment of the present disclosure, for any state switching instruction issued to the switching object, the
若要求切换到的状态与切换对象当前的状态一致,那么说明当前的状态即为要求切换到的状态,从而可直接结束针对该状态切换指令的处理。If the state to be switched to is consistent with the current state of the switching object, it means that the current state is the state to be switched to, so that the processing of the state switching instruction can be ended directly.
本公开的一个实施例中,针对每类状态切换指令,第一处理模块301还可分别构建期望当前状态数组,其中的元素数量等于切换对象的数量,各元素分别对应于不同的切换对象,分别用于记录对应的切换对象的状态;相应地,可获取期望当前状态数组中记录的切换对象的状态,作为切换对象当前的状态,另外,若要求切换到的状态与切换对象当前的状态不一致,还可利用要求切换到的状态更新期望当前状态数组中记录的切换对象的状态。In an embodiment of the present disclosure, for each type of state switching instruction, the
本公开的一个实施例中,针对每类状态切换指令,第一处理模块301还可分别构建期望切换后状态数组和实际切换后状态数组,各数组中的元素数量均等于切换对象的数量,同一数组中的各元素分别对应于不同的切换对象,且,各数组中的元素分别为一个队列,相应地,若要求切换到的状态与切换对象当前的状态不一致,可将要求切换到的状态加入到期望切换后状态数组中切换对象对应的队列中,另外,可采集切换对象的状态变化,将每次变化后的状态分别加入到实际切换后状态数组中切换对象对应的队列中,进一步地,可根据期望切换后状态数组中切换对象对应的队列以及实际切换后状态数组中切换对象对应的队列,分别确定出各要求切换到的状态对应的切换后状态。In an embodiment of the present disclosure, for each type of state switching instruction, the
也就是说,优选地,针对每类状态切换指令,可分别构建三个数组,分别为期望当前状态数组、期望切换后状态数组和实际切换后状态数组。That is to say, preferably, for each type of state switching instruction, three arrays can be respectively constructed, which are respectively an array of expected current state, an array of expected state after switching and an array of actual state after switching.
其中,期望切换后状态数组用于存储状态切换指令要求切换到的状态,作为期望值与实际切换后状态数组中的对应状态进行比对,期望切换后状态数组中的元素数量等于切换对象的数量,各元素分别对应于不同的切换对象,且,各数组中的元素分别为一个队列。Among them, the expected switched state array is used to store the state that the state switching instruction requires to switch to, and is compared with the corresponding state in the actual switched state array as the expected value, and the number of elements in the expected switched state array is equal to the number of switching objects, Each element corresponds to a different switching object, and the elements in each array are respectively a queue.
实际切换后状态数组用于存储切换对象的切换后状态,其中的元素数量等于切换对象的数量,各元素分别对应于不同的切换对象,且,各数组中的元素分别为一个队列。The actual switched state array is used to store the switched state of the switched object, the number of elements in it is equal to the number of switched objects, and each element corresponds to a different switched object, and the elements in each array are respectively a queue.
期望当前状态数组用于存储切换对象的期望的当前状态,其中的元素数量等于切换对象的数量,各元素分别对应于不同的切换对象,分别用于记录对应的切换对象的状态。The expected current state array is used to store the expected current state of the switching object, and the number of elements therein is equal to the number of switching objects, each element corresponds to a different switching object, and is used to record the state of the corresponding switching object.
初始状态下,期望切换后状态数组和实际切换后状态数组中的各队列均为空,期望当前状态数组中的各元素的初始值可为被测设备中的各切换对象的上电初始化状态。In the initial state, each queue in the expected state array after switching and the actual state array after switching is empty, and the initial value of each element in the expected current state array is the power-on initialization state of each switching object in the device under test.
针对向切换对象发出的任一状态切换指令,可首先获取期望当前状态数组中记录的切换对象的状态,作为切换对象当前的状态,之后可将状态切换指令要求切换到的状态与切换对象当前的状态进行比对,若一致,可直接结束针对状态切换指令的处理,若不一致,可利用要求切换到的状态更新期望当前状态数组中记录的切换对象的状态,即可将所记录的切换对象的状态更新为要求切换到的状态,并可将要求切换到的状态加入到期望切换后状态数组中切换对象对应的队列中,即加入到队列末尾,另外,可实时采集切换对象的状态变化,并可将每次变化后的状态加入到实际切换后状态数组中切换对象对应的队列中,即当切换对象的状态每次发生变化时,则可将变化后的状态加入到实际切换后状态数组中切换对象对应的队列中,所述变化可能是由于执行了对应的状态切换指令引起的,也可能是由于其它原因引起的,比如,切换对象错误地自行进行了切换等。For any state switching instruction issued to the switching object, the state of the switching object recorded in the expected current state array can be obtained first, as the current state of the switching object, and then the state that the state switching instruction requires to switch to can be compared with the current state of the switching object If they are consistent, the processing of the state switching instruction can be ended directly. If they are not consistent, the state of the switching object recorded in the expected current state array can be updated by using the state required to switch to, that is, the recorded switching object The state is updated to the state required to switch to, and the state required to be switched can be added to the queue corresponding to the switching object in the expected switching state array, that is, added to the end of the queue. In addition, the state change of the switching object can be collected in real time, and The state after each change can be added to the queue corresponding to the switching object in the actual switching state array, that is, when the state of the switching object changes each time, the changed state can be added to the actual switching state array In the queue corresponding to the switching object, the change may be caused by the execution of the corresponding state switching instruction, or may be caused by other reasons, for example, the switching object has switched by itself by mistake.
本公开的一个实施例中,第一处理模块301可根据期望切换后状态数组中切换对象对应的队列以及实际切换后状态数组中切换对象对应的队列,分别确定出各要求切换到的状态对应的切换后状态。In an embodiment of the present disclosure, the
本公开的一个实施例中,第一处理模块301可在切换对象对应的两个队列均为非空时,将两个队列中处于相同位置的两个状态作为一个状态对取出,并可将状态对中的第一状态作为状态对中的第二状态对应的切换后状态,其中,第一状态为从实际切换后状态数组中切换对象对应的队列中取出的状态,第二状态为从期望切换后状态数组中切换对象对应的队列中取出的状态。In an embodiment of the present disclosure, the
第一处理模块301可将每次取出的状态对中的两个状态进行比对,若不一致,则说明出现了状态切换指令与状态切换执行情况不相符的情况,相应地,可由第二处理模块302进行报错处理。The
本公开的一个实施例中,第二处理模块302可在当需要向切换对象发出的各状态切换指令均处理完毕时,若未出现报错,则确定针对切换对象的状态切换指令验证通过。In an embodiment of the present disclosure, the
本公开的一个实施例中,第二处理模块302可在当需要向切换对象发出的各状态切换指令均处理完毕时,若实际切换后状态数组中切换对象对应的队列不为空而期望切换后状态数组中切换对象对应的队列为空,则确定出现了不存在对应的状态切换指令但进行了状态切换的错误。In an embodiment of the present disclosure, the
本公开的一个实施例中,第二处理模块302可在当需要向切换对象发出的各状态切换指令均处理完毕时,若期望切换后状态数组中切换对象对应的队列不为空而实际切换后状态数组中切换对象对应的队列为空,则确定出现了未根据状态切换指令进行对应的状态切换的错误。In one embodiment of the present disclosure, the
图3所示装置实施例的具体工作流程可参照前述方法实施例中的相关说明。For the specific working process of the device embodiment shown in FIG. 3 , reference may be made to the relevant descriptions in the foregoing method embodiments.
总之,采用本公开装置实施例所述方案,可实现状态切换指令集中管理、流程化执行和批量操作等,且支持相同指令多次发送的情况,并可满足各种项目需求,具有普遍适用性,另外,可实现灵活扩容,比如,若需要增加同类状态切换指令数量,只需增加各数组的维度即可,若需要增加状态切换指令类别,只需要增加对应的数组即可,非常的灵活方便。In a word, adopting the scheme described in the embodiment of the disclosed device can realize centralized management of state switching instructions, process execution and batch operation, etc., and supports the situation of sending the same instruction multiple times, and can meet the needs of various projects, and has universal applicability In addition, flexible expansion can be realized. For example, if you need to increase the number of state switching instructions of the same type, you only need to increase the dimensions of each array. If you need to increase the type of state switching instructions, you only need to increase the corresponding array. It is very flexible and convenient. .
本公开所述方案可应用于人工智能领域,特别涉及人工智能芯片和云计算等领域。人工智能是研究使计算机来模拟人的某些思维过程和智能行为(如学习、推理、思考、规划等)的学科,既有硬件层面的技术也有软件层面的技术,人工智能硬件技术一般包括如传感器、专用人工智能芯片、云计算、分布式存储、大数据处理等技术,人工智能软件技术主要包括计算机视觉技术、语音识别技术、自然语言处理技术以及机器学习/深度学习、大数据处理技术、知识图谱技术等几大方向。The solution described in the present disclosure can be applied to the field of artificial intelligence, and particularly relates to fields such as artificial intelligence chips and cloud computing. Artificial intelligence is a discipline that studies how to make computers simulate certain human thinking processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.). It includes both hardware-level technology and software-level technology. Artificial intelligence hardware technology generally includes such Sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing and other technologies, artificial intelligence software technology mainly includes computer vision technology, speech recognition technology, natural language processing technology and machine learning/deep learning, big data processing technology, Several major directions such as knowledge graph technology.
另外,本公开的技术方案中,所涉及的用户个人信息的收集、存储、使用、加工、传输、提供和公开等处理,均符合相关法律法规的规定,且不违背公序良俗。In addition, in the technical solution of the disclosure, the collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved are all in compliance with relevant laws and regulations, and do not violate public order and good customs.
根据本公开的实施例,本公开还提供了一种电子设备、一种可读存储介质和一种计算机程序产品。According to the embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
图4示出了可以用来实施本公开的实施例的电子设备400的示意性框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字助理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。FIG. 4 shows a schematic block diagram of an
如图4所示,设备400包括计算单元401,其可以根据存储在只读存储器(ROM)402中的计算机程序或者从存储单元408加载到随机访问存储器(RAM)403中的计算机程序,来执行各种适当的动作和处理。在RAM 403中,还可存储设备400操作所需的各种程序和数据。计算单元401、ROM 402以及RAM 403通过总线404彼此相连。输入/输出(I/O)接口405也连接至总线404。As shown in FIG. 4, the
设备400中的多个部件连接至I/O接口405,包括:输入单元406,例如键盘、鼠标等;输出单元407,例如各种类型的显示器、扬声器等;存储单元408,例如磁盘、光盘等;以及通信单元409,例如网卡、调制解调器、无线通信收发机等。通信单元409允许设备400通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Multiple components in the
计算单元401可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元401的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元401执行上文所描述的各个方法和处理,例如本公开所述的方法。例如,在一些实施例中,本公开所述的方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元408。在一些实施例中,计算机程序的部分或者全部可以经由ROM 402和/或通信单元409而被载入和/或安装到设备400上。当计算机程序加载到RAM 403并由计算单元401执行时,可以执行本公开所述的方法的一个或多个步骤。备选地,在其他实施例中,计算单元401可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行本公开所述的方法。The
本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein above may be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips system (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor that The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.
用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Program codes for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special purpose computer, or other programmable data processing devices, so that the program codes, when executed by the processor or controller, make the functions/functions specified in the flow diagrams and/or block diagrams Action is implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide for interaction with the user, the systems and techniques described herein can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user. ); and a keyboard and pointing device (eg, a mouse or a trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including acoustic input, voice input, or tactile input) to receive input from the user.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user's computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN) and the Internet.
计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,也可以为分布式系统的服务器,或者是结合了区块链的服务器。A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, a server of a distributed system, or a server combined with a blockchain.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, each step described in the present disclosure may be executed in parallel, sequentially, or in a different order, as long as the desired result of the technical solution disclosed in the present disclosure can be achieved, no limitation is imposed herein.
上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。The specific implementation manners described above do not limit the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present disclosure shall be included within the protection scope of the present disclosure.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111159823.5A CN113961405B (en) | 2021-09-30 | 2021-09-30 | State switching instruction verification method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111159823.5A CN113961405B (en) | 2021-09-30 | 2021-09-30 | State switching instruction verification method and device, electronic equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113961405A CN113961405A (en) | 2022-01-21 |
| CN113961405B true CN113961405B (en) | 2022-10-28 |
Family
ID=79462866
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111159823.5A Active CN113961405B (en) | 2021-09-30 | 2021-09-30 | State switching instruction verification method and device, electronic equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113961405B (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1756960A (en) * | 2003-03-31 | 2006-04-05 | 爱德万测试株式会社 | Test device and test method |
| CN101147206A (en) * | 2005-12-08 | 2008-03-19 | 爱德万测试株式会社 | Test device and test method |
| KR101266601B1 (en) * | 2012-12-21 | 2013-05-22 | 오세경 | Apparatus and method for testing a flash memory card or embedded memory card |
| CN109059198A (en) * | 2018-07-23 | 2018-12-21 | 珠海格力电器股份有限公司 | Automatic engineering debugging method, device and system for equipment and computer equipment |
| CN112703409A (en) * | 2019-01-22 | 2021-04-23 | 爱德万测试公司 | Automatic test equipment for testing one or more devices under test, method for automatically testing one or more devices under test, and computer program using buffer memory |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2012099035A (en) * | 2010-11-05 | 2012-05-24 | Fujitsu Ltd | Operation verification method for processor, operation verification device for processor and operation verification program for processor |
| US9336100B2 (en) * | 2013-12-27 | 2016-05-10 | International Business Machines Corporation | Efficient debugging of memory miscompare failures in post-silicon validation |
| CN111858207B (en) * | 2020-06-30 | 2022-03-22 | 浪潮(北京)电子信息产业有限公司 | SoC chip verification test system and method |
-
2021
- 2021-09-30 CN CN202111159823.5A patent/CN113961405B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1756960A (en) * | 2003-03-31 | 2006-04-05 | 爱德万测试株式会社 | Test device and test method |
| CN101147206A (en) * | 2005-12-08 | 2008-03-19 | 爱德万测试株式会社 | Test device and test method |
| KR101266601B1 (en) * | 2012-12-21 | 2013-05-22 | 오세경 | Apparatus and method for testing a flash memory card or embedded memory card |
| CN109059198A (en) * | 2018-07-23 | 2018-12-21 | 珠海格力电器股份有限公司 | Automatic engineering debugging method, device and system for equipment and computer equipment |
| CN112703409A (en) * | 2019-01-22 | 2021-04-23 | 爱德万测试公司 | Automatic test equipment for testing one or more devices under test, method for automatically testing one or more devices under test, and computer program using buffer memory |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113961405A (en) | 2022-01-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113568821A (en) | A method, device, equipment, and medium for testing AI chip computing performance | |
| CN114417780B (en) | State synchronization method, device, electronic device and storage medium | |
| CN116028605B (en) | Logic expression generation method, model training method, device and medium | |
| CN113961419B (en) | Memory verification method and device, electronic equipment and storage medium | |
| KR20240116667A (en) | Training sample acquisition and large model optimization training methods and devices | |
| CN114924862A (en) | Task processing method, device and medium implemented by integer programming solver | |
| CN114330221B (en) | Scoreboard implementation method, scoreboard, electronic device and storage medium | |
| CN113867634B (en) | Data reading method and device, electronic equipment and storage medium | |
| CN114860614A (en) | Data processing methods, apparatus, equipment, media and products | |
| CN113961405B (en) | State switching instruction verification method and device, electronic equipment and storage medium | |
| CN114743586B (en) | Image storage implementation method, device and storage medium of memory model | |
| CN114118356B (en) | Neural network processor verification method and device, electronic equipment and storage medium | |
| CN118821675A (en) | Chip verification method, device, equipment and medium | |
| CN116301916A (en) | Service deployment method, device, electronic device and storage medium | |
| CN112799642B (en) | Method, apparatus, device and storage medium for processing data | |
| CN113962191B (en) | Sequence randomization method, device, electronic device and storage medium | |
| CN115391517A (en) | Method and apparatus for determining equipment status | |
| US12299767B2 (en) | Information acquisition method and apparatus, electronic device, and storage medium | |
| CN114896114B (en) | Score board implementation method and device, score board, electronic equipment and storage medium | |
| CN114549941B (en) | Model testing method and device and electronic equipment | |
| CN113836021B (en) | Test method, test device, electronic equipment and medium | |
| CN115878461A (en) | Operation log test method, device, equipment and storage medium | |
| CN114238149A (en) | Batch testing method of accounting system, electronic device and storage medium | |
| CN114218026A (en) | Score board generation method and device, electronic equipment and storage medium | |
| CN114237816A (en) | Method, device, equipment and storage medium for acquiring dummy data |
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 |