Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
PSEUDORANDOM THREAD GENERATION
Document Type and Number:
WIPO Patent Application WO/2021/184031
Kind Code:
A2
Abstract:
Implementations are directed to methods, systems, and computer-readable media for scheduling threads for instruction sequence generation. In one aspect, scheduling threads for instruction sequence generation can include obtaining a model of a central processing unit (CPU) that includes a plurality of threads, wherein the model includes a plurality of model threads that correspond to the plurality of threads of the CPU. A seed value can be input into a pseudorandom number generator and in response to the input seed value, a sequence of pseudorandom values can be obtained from the pseudorandom number generator. Using the sequence of pseudorandom values and a thread scheduling algorithm, a thread execution order of the plurality of model can be generated.

Inventors:
WANG JINGLIANG (US)
SHERRILL NOAH (US)
Application Number:
PCT/US2021/035492
Publication Date:
September 16, 2021
Filing Date:
June 02, 2021
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
FUTUREWEI TECHNOLOGIES INC (US)
International Classes:
G06F3/12
Attorney, Agent or Firm:
DALY, Laura A. et al. (US)
Download PDF:
Claims:
CLAIMS

1. A computer-implemented method of scheduling threads for instruction sequence generation comprising: obtaining a model of a central processing unit (CPU) that includes a plurality of threads, wherein the model includes a plurality of model threads that correspond to the plurality of threads of the CPU; inputting, into a pseudorandom number generator, a seed value; obtaining, from the pseudorandom number generator and in response to the input seed value, a sequence of pseudorandom values; and generating, using the sequence of pseudorandom values and a thread scheduling algorithm, a thread execution order of the plurality of model threads.

2. The computer-implemented method of claim 1, further comprising: determining when a currently executing model thread of the plurality of model threads will finish executing and a next model thread will begin executing; and advancing to the next model thread when the currently executing model thread finishes executing.

3. The computer-implemented method of claim 1 or claim 2, wherein obtaining the model includes tracking state information for each of the plurality of model threads.

4. The computer-implemented method of any preceding claim, further comprising: spawning a separate software execution thread for each of the one or more model threads; and maintaining a mapping of software execution threads to each of the one or more model threads using a map data structure.

5. The computer-implemented method of claim 4, further comprising obtaining a list of thread identifiers (IDs) of the plurality of software execution threads.

6. The computer-implemented method of claim 5, further comprising: obtaining a thread ID of the software execution thread currently executing; and obtaining, using the thread ID of the software execution thread and the mapping, the model thread corresponding to the software execution thread.

7. The computer-implemented method of any preceding claim, further comprising: retrieving a state and resources assigned to model thread for executing a model thread in response to a scheduled model thread operation.

8. The computer-implemented method of any of claims 4 to 6, further comprising: requesting for the software execution thread currently executing to continue execution; retrieving, from the map data structure, the model thread corresponding to the software execution thread currently executing; determining whether the model thread is a currently scheduled thread; and controlling execution of the model thread based on whether the model thread is the currently scheduled thread.

9. The computer-implemented method of any preceding claim, further comprising: selecting the instruction scheduling algorithm from among a plurality of instruction scheduling algorithms, wherein the plurality of instruction scheduling algorithms include at least a shuffled round-robin algorithm, a weighted random selection algorithm, a random starvation scheduling algorithm, and a priority scheduling algorithm.

10. The computer-implemented method of any preceding claim, further comprising: selecting the seed value from among a plurality of seed values, wherein the plurality of seed values include the data, the time, and a user-specified seed value.

11. One or more non-transitory computer-readable media coupled to one or more processors and having instructions stored thereon which, when executed by the one or more processors, cause the one or more processors to perform operations comprising: obtaining a model of a central processing unit (CPU) that includes a plurality of threads, wherein the model includes a plurality of model threads that correspond to the plurality of threads of the CPU; inputting, into a pseudorandom number generator, a seed value; obtaining, from the pseudorandom number generator and in response to the input seed value, a sequence of pseudorandom values; and generating, using the sequence of pseudorandom values and a thread scheduling algorithm, a thread execution order of the plurality of model threads.

12. The non-transitory computer-readable media of claim 11, wherein the instructions, when executed by the one or more processors, cause the one or more processors to perform operations further comprising: determining when a currently executing model thread of the plurality of model threads will finish executing and a next model thread will begin executing; and advancing to the next model thread when the currently executing model thread finishes executing.

13. The non-transitory computer-readable media of claim 11 or claim 12, wherein the instructions, when executed by the one or more processors, cause the one or more processors to perform operations further comprising: spawning a separate software execution thread for each of the one or more model threads; and maintaining a mapping of software execution threads to each of the one or more model threads using a map data structure.

14. The non-transitory computer-readable media of any of claims 11-13, wherein the instructions, when executed by the one or more processors, cause the one or more processors to perform operations further comprising: selecting the instruction scheduling algorithm from among a plurality of instruction scheduling algorithms, wherein the plurality of instruction scheduling algorithms include at least shuffled round-robin algorithm, a weighted random selection algorithm, a random starvation scheduling algorithm, and a priority scheduling algorithm.

15. A system, comprising: one or more processors; and anon-transitory computer-readable media device coupled to the one or more processors and having instructions stored thereon which, when executed by the one or more processors, cause the one or more processors to perform operations comprising: obtaining a model of a central processing unit (CPU) that includes a plurality of threads, wherein the model includes a plurality of model threads that correspond to the plurality of threads of the CPU; inputting, into a pseudorandom number generator, a seed value; obtaining, from the pseudorandom number generator and in response to the input seed value, a sequence of pseudorandom values; and generating, using the sequence of pseudorandom values and a thread scheduling algorithm, a thread execution order of the plurality of model threads.

16. The system of claim 15, wherein the instructions, when executed by the one or more processors, cause the one or more processors to perform operations further comprising: determining when a currently executing model thread of the plurality of model threads will finish executing and a next model thread will begin executing; and advancing to the next model thread when the currently executing model thread finishes executing.

17. The system of claim 15 or claim 16, wherein obtaining the model includes tracking state information for each of the plurality of model threads.

18. The system of any preceding claim, wherein the instructions, when executed by the one or more processors, cause the one or more processors to perform operations further comprising: spawning a separate software execution thread for each of the one or more model threads; and maintaining a mapping of software execution threads to each of the one or more model threads using a map data structure.

19. The system of any of claims 15-18, wherein the instructions, when executed by the one or more processors, cause the one or more processors to perform operations further comprising: retrieving a state and resources assigned to model thread for executing a model thread in response to a scheduled model thread operation.

20. The system of claims 18, or claim 19, wherein the instructions, when executed by the one or more processors, cause the one or more processors to perform operations further comprising: requesting for the software execution thread currently executing to continue execution; retrieving, from the map data structure, the model thread corresponding to the software execution thread currently executing; determining whether the model thread is a currently scheduled thread; and controlling execution of the model thread based on whether the model thread is the currently scheduled thread.

Description:
PSEUDORANDOM THREAD GENERATION

CROSS REFERENCE TO RELATED APPLICATION

[0001] This application claims the benefit of U.S. Application Serial No. 63/034,789, filed on June 4, 2020, the entire contents of which are incorporated by reference in their entirety.

TECHNICAL FIELD

[0002] The present disclosure generally relates to instruction sequence generation during central processing unit (CPU) design verification and, more particularly, to pseudorandom thread generation.

BACKGROUND

[0003] Pre-silicon verification of a CPU design is used to test the states and functional correctness of the design, which is modeled typically in a hardware design language, such as VHDL, or Verilog. Verification of the complete design of complex microprocessors and system on chips (SoCs) can be resource intensive, requiring large amounts of memory, and processing power, due to the large number of states and functions in the CPU design space. An instruction sequence generator (ISG) can be used in testing of a CPU design, e.g., by generating test sequences of instructions for simulation during testing of the CPU design. By simulating different sequences of instructions, errors and bugs with the CPU design can be identified and the different functions of the CPU design in all its possible states can be tested.

SUMMARY

[0004] Multiprocessing is a standard feature of a high-performance CPU, which requires significant investment in verification of the CPU’s design. For an instruction sequence generator (ISG) to be used in verifying a multiprocessing CPU design, the ISG should be able to model distinct threads of execution of the CPU and generate instructions for each of those threads. Reproducibility of the instruction sequences and resulting execution paths is advantageous both in single processing and multiprocessing contexts for verification and error correction. In a multiprocessing context, reproducibility is more difficult because thread execution order is typically non-deterministic. Due to the randomness of the instruction sequence generation, each sequence of threads that is generated during verification of the CPU design is different from the previous one. If a given test instruction sequence generates a bug or an error, it can be challenging to isolate the error and reproduce the test instruction sequence. Being able to reproduce the same instruction test sequence enables the bug or error to be rapidly isolated. Furthermore, once the proposed CPU design has been altered to address the bug, the design can be verified using the same test instruction sequence after the alteration to ensure the bug or error no longer appears.

[0005] This specification involves systems, software, and computer-implemented methods for reproducible instruction verification in multithreaded CPU design. In one aspect, a method can include obtaining a model of a central processing unit (CPU) that includes a plurality of threads, wherein the model includes a plurality of model threads that correspond to the plurality of threads of the CPU, inputting, into a pseudorandom number generator, a seed value, obtaining, from the pseudorandom number generator and in response to the input seed value, a sequence of pseudorandom values, and generating, using the sequence of pseudorandom values and a thread scheduling algorithm, a thread execution order of the plurality of model threads.

[0006] Other implementations of this aspect include corresponding systems, apparatus, and computer programs, configured to perform the actions of the methods, encoded on computer storage devices. These and other embodiments can each optionally include one or more of the following features.

[0007] In some implementations, the methods can further include determining when a currently executing model thread of the plurality of model threads will finish executing and a next model thread will begin executing, and advancing to the next model thread when the currently executing model thread finishes executing.

[0008] In some implementations, obtaining the model includes tracking state information for each of the plurality of model threads.

[0009] In some implementation, the methods can further include spawning a separate software execution thread for each of the one or more model threads, and maintaining a mapping of software execution threads to each of the one or more model threads using a map data structure. [0010] In some implementations the methods can further include obtaining a list of thread identifiers (IDs) of the plurality of software execution threads.

[0011] In some implementations, the methods can further include obtaining a thread ID of the software execution thread currently executing and, obtaining, using the thread ID of the software execution thread and the mapping, the model thread corresponding to the software execution thread. [0012] In some implementations, the methods can further include retrieving a state and resources assigned to model thread for executing a model thread in response to a scheduled model thread operation.

[0013] In some implementations, the methods can further include requesting for the software execution thread currently executing to continue execution, retrieving, from the map data structure, the model thread corresponding to the software execution thread currently executing, determining whether the model thread is a currently scheduled thread, and, controlling execution of the model thread based on whether the model thread is the currently scheduled thread.

[0014] In some implementations, the methods can further include selecting the instruction scheduling algorithm from among a plurality of instruction scheduling algorithms, wherein the plurality of instruction scheduling algorithms include at least a shuffled round-robin algorithm, a weighted random selection algorithm, a random starvation scheduling algorithm, and a priority scheduling algorithm.

[0015] In some implementations, the methods can further include selecting the seed value from among a plurality of seed values, wherein the plurality of seed values include the data, the time, and a user-specified seed value.

[0016] The present disclosure also provides non-transitory computer-readable media coupled to one or more processors and having instructions stored thereon which, when executed by the one or more processors, cause the one or more processors to perform operations in accordance with implementations of the methods provided herein.

[0017] The present disclosure further provides a system for implementing the methods provided herein. The system includes one or more processors, and a non-transitory computer- readable media device coupled to the one or more processors having instructions stored thereon which, when executed by the one or more processors, cause the one or more processors to perform operations in accordance with implementations of the methods provided herein. [0018] The subject matter described in this specification can be implemented in particular embodiments to realize one or more of the following advantages. For example, the efficient pseudorandom thread scheduling framework described in this specification enhances the capabilities of an ISG by enabling consistent reproduction of a thread execution sequence, which in some implementations, can be accomplished by specifying a seed value for the pseudorandom number generator. By specifying a seed value for the pseudorandom number generator used to generate a sequence of pseudorandom numbers and using that sequence in generating a test sequence of instructions, the generated sequence of instructions becomes reproducible, e.g., when the same seed value is input, the same sequence of pseudorandom numbers is output and by extension, the same sequence of instructions is obtained. This means that when an error is detected, it is possible to repeat the sequence of generated instructions by inputting the same seed into the pseudorandom number generator.

[0019] Furthermore, the scheduling algorithm is interchangeable, allowing testing of different thread scheduling scenarios. CPU verification attempts to test all processor functions, states, and state transitions. Using one scheduling algorithm may simulate some functions and states of a CPU design, whereas using a different scheduling algorithm may simulate other functions and states of the CPU design. The ability to switch between different scheduling algorithms increases efficiency by enabling a verification engineer to generate test cases that more comprehensively test more functions and states of the CPU design.

[0020] The details of one or more embodiments of the subject matter of this specification are set forth in the accompanying drawings and the description below. Other features, aspects, and advantages of the subject matter will become apparent from the description, the drawings, and the claims.

BRIEF DESCRIPTION OF THE FIGURES

[0021] FIG. 1 is a block diagram illustrating an example system for CPU verification.

[0022] FIG. 2 is a swim-lane diagram of an example process implemented in an instruction sequence generator.

[0023] FIG. 3 is a flow diagram of an example process of pseudorandom thread generation. [0024] FIG. 4 is a schematic of an example microprocessor based computing device on which a CPU verification tool can be implemented.

[0025] FIG. 5 is a schematic of a general purpose network component or computer system. [0026] Like reference numbers and designations in the various drawings indicate like elements.

DETAILED DESCRIPTION

[0027] FIG. 1 is a block diagram illustrating an example system for CPU verification. Specifically, the illustrated system 100 includes or is communicably coupled with a CPU verification server 140, an end-user client device 102, and a network 108 (which can include a local area network (LAN), a wide area network (WAN), the Internet, or a combination thereof). Although shown separately, in some implementations, functionality of two or more systems, devices, or servers (e.g., the end user client device 102 and the CPU verification server 140) may be provided by a single system or server. In some implementations, the functionality of one illustrated system, server, or engine may be provided by multiple systems, servers, or engines, respectively.

[0028] An end-user client device 102 (also referred to herein as client device 102 or device 102) is an electronic device that is capable of requesting and receiving content over the network 108. The end-user client device 102 can include any client computing device such as a laptop/notebook computer, wireless data port, smart phone, personal data assistant (PDA), tablet computing device, one or more processors within these devices, or any other suitable processing device that can send and receive data over the network 108. For example, the end- user client device 102 can include, e.g., a computer that includes an input device, such as a keypad, touch screen, or other device that can accept user information, and an output device that conveys information, e.g., associated with the operation of the CPU verification 140, or the client device itself, including digital data, visual information, or the GUI 112.

[0029] The end-user client device 102 typically includes one or more applications, such as a browser 170 or a native application 110, to facilitate sending and receiving of content over the network 108. Examples of content presented at a client device 102 include compilers, interpreters, source code editors, integrated development environments (IDEs), webpages, word processing documents, portable document format (PDF) documents, images, and videos. [0030] As described further with reference to FIGS. 2-3, an end user of the end-user client device 102 may desire to use CPU verification tool 150 located at CPU verification server 140 to carry out one or more tasks associated with a verification of a CPU design, for example, instruction sequence generation. To do that, the end user of the client device 102 can launch a CPU verification application on the client device 102 that interfaces with and accesses the CPU verification tool 150 located at the CPU verification server 140. The end user client device 102 provides the CPU verification application 120 for display within graphical user interface (GUI) 112

[0031] Within the CPU verification application 120, the end user can input user input 118. The user input may specify one or more aspects of a CPU model 148, e.g., a software model of a CPU coded in Verilog or other hardware description language. The user input may also specify a pseudorandom number seed (as further described below). Once the end user enters and submits the user input 118, the CPU verification tool 150 of the CPU verification server 140 receives this data. CPU verification tool 150 can be used to find design bugs in a relatively stable but not yet mature CPU designs, for example a CPU design implemented in Verilog, or HDL,. The CPU verification tool 150 processes the user input 118 to determine one or more aspects of the CPU model, for example, a thread execution order 152 (as further described below with reference to FIGS. 2-3), and provides this data (also referred to as CPU verification data) to the CPU verification application executing on the client device 102. For example, the CPU verification data may be a generated thread execution order used to test a CPU model for bugs and comer cases that may cause errors or other issues when the CPU model is implemented in hardware. That is, the output of the CPU verification tool 150 can be a binary encoding of instructions and data to be loaded in the memory in the simulation of the CPU design. The thread execution order determined by the CPU verification tool influences the instructions and data contained in the binary encoding. The encoded instructions and data do not impose an execution order on the CPU model itself, however, the sequence order is reproducible as described herein.

[0032] In some implementations, the end user of the client device 102 can store the received CPU verification data 122 in the client device 102’s memory 114 (along with the other user files 116 that may already be stored in the memory 114).

[0033] In more detail, CPU verification tool 150 at the CPU verification server 140 may receive user input 118 and use the user input 118 to execute one or more CPU verification operations, as performed by the software components of the CPU verification tool 150. For example, CPU verification tool 150 includes at least two software components: an Instruction Sequence Generator (ISG) 160 and a Pseudorandom Number Generator 175.

[0034] The ISG 160 is used for processor design verification and validation. For example, the ISG 160 can be used to explore the design space of thread-execution order of the CPU. The pseudorandom number generator 175 generates a pseudorandom number based on an input seed value, as specified in the user input (and as further described below). In an example, user- input may include a pseudorandom number input seed for input into pseudorandom number generator 175.

[0035] As depicted in FIG. 1, in some implementations, the ISG 160 includes at least the following software components: front-end 162, back-end 164, thread scheduler 166, thread dispatcher 168, and scheduling strategy 170. Each of these software components is summarized below and described in additional detail with reference to FIGS. 2 and 3.

[0036] User input may be received at a front-end software component 162 of the ISG 160. The front-end 162 is linked to a back-end software component 164 of the ISG 160. In an example, a front-end 162 can be a Python layer presented via an interactive development environment (IDE) at GUI 112 that is linked to a C++ back-end 164. In an implementation, the GUI 112 may be linked to the C++ back-end 164 utilizing a framework called pybind or another appropriate framework (e.g., Boost Python Library, SWIG, etc.). Pybind allows a thread context (as described below) to be implemented by the user without having to explicitly construct it. The thread context is a software object that ensures that appropriate execution control calls are made. For example, the thread context determines and instructs release of any locks held by a thread are released upon determining that execution of a task has terminated due to an exception. Calls within Pybind generate thread contexts. In another example, the thread context may be explicitly constructed by invocation of a C++ constructor in the ISG back-end 164.

[0037] A thread context can be created by the user via front-end 162 issued to invoke the thread-scheduler 166. For example, the thread context may be a context manager invoked in Python to allocate and release resources for the thread.

[0038] The thread scheduler 166 is a software object that determines which threads to execute and when to switch between thread contexts based on the thread scheduling strategy. This helps to provide reproducibility and can be fault tolerant. In other words, the thread scheduler 166 determines a thread execution order. The thread scheduler 166 allows for switching to different scheduling strategies 170 without requiring any modification to the thread scheduler 166 itself. A sequence of pseudorandom numbers generated by pseudorandom number generator 175 (e.g., using a seed that is provided to the pseudorandom number generator 175) can be used by the thread scheduler 166, together with the one or more scheduling strategies 170, to generate a sequence of threads in a thread execution order 152. As described previously, using the same seed that results in generation of the same sequence of pseudorandom numbers enables consistent generation of a same sequence of threads in each iteration of the design verification. [0039] Thread dispatcher 168 is a software object that coordinates with the thread scheduler 166 to execute a currently scheduled thread and advance to the thread to be executed next (e.g., according to the thread execution order determined by the thread scheduler 166). In an implementation, the thread context notifies the thread dispatcher 168 that a thread is requesting permission to execute when the thread context is entered. The thread dispatcher 168 queries the thread scheduler 166 to determine the currently active thread. The thread dispatcher 168 then pauses or halts the thread’s execution until it becomes the currently active thread. The thread is not paused or halted in the case where it already is the currently active thread.

[0040] When the thread terminates its operation, whether because it is completed or due to an error, the thread context is exited. Exiting the thread context triggers a call to notify the thread dispatcher 168 that the currently executing thread has finished execution. That is, the thread dispatcher 168 determines when a currently executing model thread of the plurality of model threads will finish executing and a next model thread will begin executing The thread dispatcher 168 in turn notifies the thread scheduler 166 to advance to the next thread.

[0041] In an implementation, the ISG 160 schedules threads without the user needing to be actively aware of such thread scheduling. The ISG 160 generates a stream of instructions for a CPU model. The CPU model has one or more threads in which to execute the instructions issued to it. The ISG 160 models these threads by tracking various state information for each of them, these threads are described herein as generator model threads (also simply referred to as model threads). When any software application executes (e.g., the ISG 160), it has one or more threads of execution in which to execute its instructions. These are referred to as software execution threads.

[0042] In an implementation, the ISG 160 spawns a separate software execution thread for each of the CPU model threads it is modeling, so each CPU model thread’s instructions are generated within a separate software execution thread of the ISG application. The thread scheduler 166 constructs a one-to-one mapping between software execution threads and model threads. The mapping between the two is stored in the ISG memory using a map data structure and the mapping is maintained/managed by the thread dispatcher. The ISG can query the operating system for the ID of the software execution thread currently executing. It can then use that ID of the software execution thread to look up the ID of the model thread that corresponds to it in the map data structure.

[0043] On an incoming request to the back-end 164, the thread scheduler 166 identifies the current software execution thread and maps it to the generator model thread. It then retrieves the necessary state and resources assigned to that generator model thread for executing the request, e.g., by the thread context 162. All of this can happen without any intervention from the user.

[0044] In an implementation, the thread scheduler 166 constrains the execution of model threads such that only one model thread is permitted to execute at a time. The sequence in which the model threads execute is determined by scheduling strategy 170, which can be configurable. For example, scheduling strategy 170 can be implemented using different scheduling algorithms. The thread scheduling strategy 170 relies on pseudorandom number generator 175 in order to vary its behavior, e.g., by generating a thread execution order based on the scheduling strategy 170 and the sequence of pseudorandom numbers. In an example, a user can provide, as user input, a seed value to the pseudorandom number generator to provide a mechanism so that the thread execution order issued by the scheduling strategy 170 will be consistent from one run to the next (as further described with reference to FIGS. 2 and 3). That is, if the same seed is used, the same sequence of numbers will be generated each time. The sequence of numbers are used to generate a thread execution order based on the thread scheduling strategy (e.g. shuffled round robin or other strategy).

[0045] Interfaces 104 and 142 are used by the end-user client device 102 and the CPU verification server 140, respectively, for communicating with other systems in a distributed environment - including within the system 100 connected to the network 108. Generally, each of the interfaces 104 and 142 include logic encoded in software and/or hardware in a suitable combination and operable to communicate with the network 108. More specifically, these interfaces can each include software supporting one or more communication protocols associated with communications such that the network 108 or interface's hardware is operable to communicate physical signals within and outside of the illustrated system 100.

[0046] The CPU verification server 140 includes one or more processors 180. Each processor 180 may be a central processing unit (CPU), a blade, an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or another suitable component. Generally, each processor 180 executes instructions and manipulates data to perform the operations of the CPU verification server 140. Specifically, each processor 180 executes the functionality required to receive and respond to requests from the end-user client device 102, for example. [0047] The CPU verification server 140 includes memory 144. In some implementations, the CPU verification server 140 includes multiple memories. The memory 144 may include any type of memory or database module and may take the form of volatile and/or non-volatile memory including, without limitation, magnetic media, optical media, random access memory (RAM), read-only memory (ROM), removable media, or any other suitable local or remote memory component. The memory 144 may store various objects or data, including video files, metadata, caches, classes, frameworks, applications, backup data, business objects, jobs, web pages, web page templates, database tables, database queries, repositories storing business and/or dynamic information, and any other appropriate information including any parameters, variables, algorithms, instructions, rules, constraints, or references thereto associated with the purposes of the CPU verification server 140.

[0048] In general, the end-user client device 102 is an electronic computer device operable to receive, transmit, process, and store any appropriate data associated with the system 100 of FIG. 1. The end-user client device 102 can include one or more client applications (as described above). A client application is any type of application that allows the end-user client device 102 to request and view content on a respective client device. In some implementations, a client application can use parameters, metadata, and other information received at launch to access a particular set of data from the CPU verification server 140. In some instances, a client application may be an agent or client-side version of the one or more applications running on the CPU Verification Server 140 or another server (not shown).

[0049] The client device 102 include one or more processor(s) 106. The processor 106 can be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field- programmable gate array (FPGA), or another suitable component. Generally, processor 106 included in the end-user client device 102 executes instructions and manipulates data to perform the operations of the end-user client device 102. Specifically, processor 106 included in the end-user client device 102 executes the functionality, e.g., for sending requests, to the CPU verification server 140 and to receive and process responses from the CPU verification server 140.

[0050] GUI 112 interfaces with at least a portion of the system 100 for any suitable purpose, including generating and/or displaying a visual representation (or data that provides a visual representation) provided by the CPU verification server 140. Generally, the GUI 112 provides a user with an efficient and user-friendly presentation of data provided by or communicated within the system 100. The GUI 112 may have a plurality of customizable frames or views having interactive fields, pull-down lists, and buttons operated by the user. The GUI 112 contemplates any suitable graphical user interface, such as a combination of a generic web browser, intelligent engine, and command line interface (CLI) that processes information and efficiently presents the results to the user visually.

[0051] Memory 114 included in the end-user client device 102 may include any memory or database module and may take the form of volatile or non-volatile memory including, without limitation, magnetic media, optical media, random access memory (RAM), read-only memory (ROM), removable media, or any other suitable local or remote memory component. The memory 114 may each store various objects or data, including video files, metadata, data structures, user selections, caches, classes, frameworks, applications, backup data, business objects, jobs, web pages, web page templates, database tables, repositories storing business and/or dynamic information, and any other appropriate information including any parameters, variables, algorithms, instructions, rules, constraints, or references thereto associated with the purposes of the associated client device.

[0052] There may be any number of end-user client devices 102 associated with, or external to, the system 100. For example, while the illustrated system 100 includes one end-user client device 102, alternative implementations of the system 100 may include multiple end-user client devices 102 communicably coupled to the CPU verification server 140 and/or the network 108, or any other number suitable to the purposes of the system 100. Additionally, there may also be one or more additional end-user client devices 102 external to the illustrated portion of system 100 that are capable of interacting with the system 100 via the network 108. Further, the term “client,” “client device,” and “user” may be used interchangeably as appropriate without departing from the scope of this disclosure. Moreover, while the end-user client device 102 may be described in terms of being used by a single user, this specification contemplates that many users may use one computer, or that one user may use multiple computers.

[0053] FIG. 2 is a swim-lane diagram of an example process 200 implemented in an instruction sequence generator. Operations of process 200 are described below as being performed by the components of the system described and depicted in FIG. 1. Operations of the process 200 are described below for illustration purposes only. Operations of the process 200 can be performed by any appropriate device or system, e.g., any appropriate data processing apparatus. Operations of the process 200 can also be implemented as instructions stored on a non- transitory computer readable medium. Execution of the instructions causes one or more data processing apparatus to perform operations of the process 200.

[0054] As described above with reference to FIG. 1 an ISG includes front-end 162, back-end 164, thread scheduler 166, thread dispatcher 168, and scheduling strategy 170.

[0055] A user requests 212 a thread scheduling operation to be executed via the front end 162. In an implementation, the pybind framework described with reference to FIG. 1 links a front- end 162 Python layer with a C++ back-end 164. Pybind is a lightweight framework that exposes C++ types in Python and vice versa, to create Python bindings of existing C++ code to minimize boilerplate code in traditional extension modules by inferring type information using compile-time introspection.

[0056] Back-end 164 creates 214 the thread context object in response to the user requesting the thread scheduling operation. In an example, the pybind call guard function allows a thread context object to be declared without having to explicitly construct it in all instances. The function call guard constructs the thread context object. However, in another implementation, the thread context object can be explicitly constructed, e.g., by invocation of a C++ constructor in the ISG back-end 164. As described with reference to FIG. 1 the thread scheduler 16 constructs a one-to-one mapping between software execution threads and model threads. The mapping between the two is maintained in the ISG application’s memory using a map data structure.

[0057] The thread dispatcher 168 notifies the thread scheduler 166 to advance to the next software execution thread 216 from the currently executing software execution thread. The thread dispatcher 168 obtains a list of thread identifiers (IDs) of the software execution threads by querying the operating system for the IDs of the software executions thread currently executing. The thread dispatcher 168 identifies the currently scheduled model thread by determining 218, using the thread ID of the software execution thread and the mapping, the model thread corresponding to the currently executing software execution thread.

[0058] A software execution thread can request execution. The thread dispatcher 208 maps this software execution thread to the model thread and determines if that model thread is the currently scheduled thread (e.g., as described in the previous paragraph). If the model thread is not the currently scheduled thread, the thread dispatcher 208 will periodically check for an update to the currently scheduled thread until it determines that the model thread corresponding to the requesting software execution thread is the currently scheduled thread. At that point, the requesting thread is permitted, by the thread dispatcher, to proceed with its operation.

[0059] If the model thread is scheduled 224, the thread dispatcher 168 requests that the back end 164 retrieve 226 a state and resources assigned to model thread for executing a model thread in response to a scheduled model thread operation.

[0060] If the requesting model thread is not scheduled 224, the thread dispatcher 164 repeatedly queries the thread scheduler 166 to determine if there is an update to the currently scheduled model thread (which may be the existing model thread that is currently scheduled or another, new model thread that is scheduled after the existing model thread completes its operation)

[0061] Once the requesting thread is scheduled 224 and the resources to execute the thread are retrieved 226, the thread operation is executed 228. Once the operation is complete, the thread dispatcher 168 notifies 230 the thread scheduler 162 and requests 232 scheduling of the next model thread. The scheduling strategy 170 is advanced 234. That is, the thread context is switched to the new thread context. As described further with reference to FIG. 3, the thread context is switched to the new thread context based on the order of threads scheduled using the thread scheduling strategy 170 and the sequence of random numbers generated by the pseudorandom number generator. As described further with reference to FIG. 3, using a pseudorandom number generator in conjunction with the thread scheduling algorithm allows for a given model thread execution sequence to be consistently reproducible.

[0062] The results of the thread execution are returned to the back-end 164 (e.g., C++ back end). The results are dependent on the specific operation executed by the model thread. In some examples, the result may be a value of a register in the CPU model, the number of times a specific exception has occurred or the generation of a load instruction. [0063] FIG. 3 is a flow diagram of an example process 300 for pseudorandom thread generation 300. Operations of process 300 are described below as being performed by the components of the system described and depicted in FIG. 1. It should be understood that the operations of FIG. 3, as well as FIG. 2, illustrates various details of the methods associated with the system of FIG.1 and such details in FIGs 2 and 3 may readily be intermingled in the embodiment of the invention. Operations of the process 300 are described below for illustration purposes only. Operations of the process 300 can be performed by any appropriate device or system, e.g., any appropriate data processing apparatus. Operations of the process 300 can also be implemented as instructions stored on a non-transitory computer readable medium. Execution of the instructions causes one or more data processing apparatus to perform operations of the process 300.

[0064] Pseudorandom thread generation comprises obtaining 302, by a CPU verification tool (such as instruction sequence generator 160), a central processing unit (CPU) model. The CPU model includes a plurality of model threads that correspond to the plurality of software execution threads of the CPU. In an implementation, the model enables testing of the states and functional correctness of a CPU design. In an implementation, the CPU model can be written in a hardware design language such as VHDL, HDL, or Verilog. For an instruction sequence generator (ISG) 160 to be useful in verifying a CPU design, the ISG 160 models distinct threads of execution and generates instructions for each of those model threads.

[0065] The model includes tracking state information for each of the plurality of model threads. That is, the ISG 160 maintains software objects corresponding to the CPU architecture, such as register names, widths and values and memory addresses and values. In some implementations, a co-simulation library can be built on top of an instruction set simulator (e.g., ISG 160) to execute generated instructions and update the state according to the results of instruction execution.

[0066] One or more seed values are input 304 into a pseudorandom number generator, for example, pseudorandom number generator 175 shown in FIG. 1 above. In some implementations, the user input 118 received from the client device 102 can include one or more seed values. The user can determine a seed value to select from among a plurality of seed values. In an example, the plurality of seed values include the data, the time, and a user- specified seed value e.g. any appropriate number selected by the user.

[0067] In some implementations, the CPU verification tool 150 parses the one or more seed values from the received user input 118, and provides the one or more seed values as input to the pseudorandom number generator 175. Using the input seed value(s), the pseudorandom number generator 175 generates a sequence of pseudorandom numbers 146, which can be stored (e.g., in memory 144).

[0068] The thread scheduler 166 uses the sequence of pseudorandom values and a thread scheduling algorithm to generate 306 a thread execution order of the plurality of model threads. In some implementations, the thread scheduler 166 selects the thread scheduling algorithm from among multiple thread scheduling algorithms. For example, the thread scheduler 166 can select a thread scheduling algorithm that has been previously specified by the user or select a predefined default scheduling algorithm as the thread scheduling algorithm. In some implementations, the scheduling algorithm is interchangeable, allowing testing of different thread scheduling scenarios.

[0069] Examples of thread scheduling algorithms include shuffled round-robin algorithm, a weighted random selection algorithm, a random starvation scheduling algorithm, and a priority scheduling algorithm. Each of these example scheduling algorithms is briefly described below. [0070] The random starvation scheduling algorithm chooses an initial random order for the model threads to execute, it then proceeds to execute the model threads in that order, starting again with the first model thread after the last model thread has executed. At each model thread’s turn to execute a pseudorandom number is compared against a threshold. If the number exceeds the threshold, the model thread is selected for starvation and is skipped for a constrained random number of cycles.

[0071] The priority scheduling algorithms assign a priority to each model thread. The priority values can be explicitly specified by the user or randomly selected. The model thread with the highest priority is always scheduled. If there are multiple model threads with the highest priority value, one is selected at random.

[0072] The shuffled round robin scheduling algorithm schedules threads so that for each scheduling round, every model thread is permitted one chance to execute. The order of the model threads is randomly determined at the beginning of each round based on the sequence of pseudorandom numbers generated by the pseudorandom number generator. That is, the model thread order is reproducible with a known seed value input to the pseudorandom number generator.

[0073] Weighted random selection scheduling algorithms schedule model threads such that the next model thread to execute is randomly chosen using different probability weights associated with each model thread. This approach favors certain model threads with higher probability weights executing over those with lower probability weights. [0074] As described above, the thread scheduler 166 uses the sequence of pseudorandom values and a thread scheduling algorithm to generate 306 a thread execution order of the plurality of model threads. This thread execution order is randomly determined at the beginning of each round based on the sequence of pseudorandom numbers generated by the pseudorandom number generator. The thread scheduler 166 uses a deterministic function that accepts, as input, a list of model thread IDs and one or more pseudorandom values, and outputs a list of model thread IDs. By repeating this process (e.g., by providing the same input to the deterministic function) results in generating the same output list of model thread IDs. This is illustrated using the following example.

[0075] In an example, the deterministic function used by the thread scheduler accepts a list of model thread IDs and a list of pseudorandom values equal in length to the list of model thread IDs. In one example implementation the deterministic function can comprise the following sequence: 1) accept a list of model thread IDs and a list of pseudorandom values equal in length to the list of model thread IDs, 2) begin with index equal to the last index in the list of model thread IDs, 3) while index is greater than 0 a) calculate the modulus with respect to index of the indexth pseudorandom value, i.e. pseudorandom values [index] % index b) swap the indexth model thread ID with the thread ID at the index represented by the calculated modulus,

1.e. swap(thread_ids [index], thread ids [modulus] d) decrement index. In an example the implementation can be from the standard C++ library.

[0076] In another example, the same number of pseudorandom values as model thread IDs can be used (e.g., four pseudorandom values for four model thread IDs). In this example, the pseudorandom values can be mapped to the model thread IDs and then the pseudorandom values can be sorted, e.g., in ascending order, to yield a corresponding list of model thread IDs (that represents the thread execution order). For example, assuming four model thread IDs 1,

2, 3, 4 and four pseudorandom values 25, 12, 87, 16, the pseudorandom values can be mapped to the model thread IDs according to list placement, e.g. 25- l, 12- 2, 87- 3, and 16- 4. Sorting pseudorandom values in ascending order results in obtaining 12, 16, 25, 87, which in turn indicates a model thread ID output sequence of 2, 4, 1, 3. Re-running the same process with the same number of threads and the same seed value (which yields the same sequence of pseudorandom numbers) results in outputting the same model thread ID sequence.

[0077] In this manner, by using a pseudorandom number generator in conjunction with the thread scheduling algorithm, a given model thread execution sequence is consistently reproducible during generation with the specification of a specific seed value for the pseudorandom number generator. [0078] The following paragraphs provide additional embodiments for implementing the thread scheduling during instruction sequence generation, as described previously with reference to FIGS. 1-3.

[0079] In one embodiment, a computer-implemented method is provided for scheduling threads. The method can include at least the following steps: obtaining a model of a central processing unit (CPU) that includes a plurality of threads, wherein the model includes a plurality of model threads that correspond to the plurality of threads of the CPU; inputting, into a pseudorandom number generator, a seed value; obtaining, from the pseudorandom number generator and in response to the input seed value, a sequence of pseudorandom values; and generating, using the sequence of pseudorandom values and a thread scheduling algorithm, a thread execution order of the plurality of model threads.

[0080] The computer implemented method can further include determining when a currently executing model thread of the plurality of model threads will finish executing and a next model thread will begin executing; and advancing to the next model thread when the currently executing model thread finishes executing.

[0081] In some embodiments, obtaining the model includes tracking state information for each of the plurality of model threads.

[0082] The computer-implemented method can further include spawning a separate software execution thread for each of the one or more model threads; and maintaining a mapping of software execution threads to each of the one or more model threads using a map data structure. [0083] The computer-implemented method can further include obtaining a list of thread identifiers (IDs) of the plurality of software execution threads.

[0084] The computer-implemented method can further include obtaining a thread ID of the software execution thread currently executing; and obtaining, using the thread ID of the software execution thread and the mapping, the model thread corresponding to the software execution thread.

[0085] The computer-implemented method can further include retrieving a state and resources assigned to model thread for executing a model thread in response to a scheduled model thread operation.

[0086] In some implementations, the The computer-implemented method can further include requesting for the software execution thread currently executing to continue execution; retrieving, from the map data structure, the model thread corresponding to the software execution thread currently executing; determining whether the model thread is a currently scheduled thread; and controlling execution of the model thread based on whether the model thread is the currently scheduled thread.

[0087] The computer-implemented method can further include selecting the instruction scheduling algorithm from among a plurality of instruction scheduling algorithms, wherein the plurality of instruction scheduling algorithms include at least a shuffled round-robin algorithm, a weighted random selection algorithm, a random starvation scheduling algorithm, and a priority scheduling algorithm.

[0088] The computer-implemented method can further include selecting the seed value from among a plurality of seed values, wherein the plurality of seed values include the data, the time, and a user-specified seed value.

[0089] For one embodiment for implementing the thread scheduling during instruction sequence generation, one or more non-transitory computer-readable media are provided that are coupled to one or more processors and have instructions stored thereon which, when executed by the one or more processors, cause the one or more processors to perform at least the following operations comprising: obtaining a model of a central processing unit (CPU) that includes a plurality of threads, wherein the model includes a plurality of model threads that correspond to the plurality of threads of the CPU; inputting, into a pseudorandom number generator, a seed value; obtaining, from the pseudorandom number generator and in response to the input seed value, a sequence of pseudorandom values; and generating, using the sequence of pseudorandom values and a thread scheduling algorithm, a thread execution order of the plurality of model threads.

[0090] The non-transitory computer-readable media can be provided with instructions, that when executed by the one or more processors, cause the one or more processors to perform at least the following further additional operations: determining when a currently executing model thread of the plurality of model threads will finish executing and a next model thread will begin executing; and advancing to the next model thread when the currently executing model thread finishes executing.

[0091] The non-transitory computer-readable media can be provided with instructions, that when executed by the one or more processors, cause the one or more processors to perform at least the following further additional operations: spawning a separate software execution thread for each of the one or more model threads; and maintaining a mapping of software execution threads to each of the one or more model threads using a map data structure.

[0092] The non-transitory computer-readable media can be provided with instructions, that when executed by the one or more processors, cause the one or more processors to perform at least the following further additional operations: selecting the instruction scheduling algorithm from among a plurality of instruction scheduling algorithms, wherein the plurality of instruction scheduling algorithms include at least shuffled round-robin algorithm, a weighted random selection algorithm, a random starvation scheduling algorithm, and a priority scheduling algorithm.

[0093] In another embodiment for implementing the thread scheduling during instruction sequence generation, a system is provided that includes one or more processors and a non- transitory computer-readable media device coupled to the one or more processors and having instructions stored thereon which, when executed by the one or more processors, cause the one or more processors to perform at least the following operations: obtaining a model of a central processing unit (CPU) that includes a plurality of threads, wherein the model includes a plurality of model threads that correspond to the plurality of threads of the CPU; inputting, into a pseudorandom number generator, a seed value; obtaining, from the pseudorandom number generator and in response to the input seed value, a sequence of pseudorandom values; and generating, using the sequence of pseudorandom values and a thread scheduling algorithm, a thread execution order of the plurality of model threads.

[0094] The system’s non-transitory computer-readable media can be provided with instructions, that when executed by the one or more processors, cause the one or more processors to perform at least the following additional operations: determining when a currently executing model thread of the plurality of model threads will finish executing and a next model thread will begin executing; and advancing to the next model thread when the currently executing model thread finishes executing.

[0095] The system’s non-transitory computer-readable media can be provided with instructions, that when executed by the one or more processors, cause the one or more processors to perform at least the following additional operation: tracking state information for each of the plurality of model threads.

[0096] The system’s non-transitory computer-readable media can be provided with instructions, that when executed by the one or more processors, cause the one or more processors to perform at least the following additional operations: spawning a separate software execution thread for each of the one or more model threads; and maintaining a mapping of software execution threads to each of the one or more model threads using a map data structure.

[0097] The system’s non-transitory computer-readable media can be provided with instructions, that when executed by the one or more processors, cause the one or more processors to perform at least the following additional operation: retrieving a state and resources assigned to model thread for executing a model thread in response to a scheduled model thread operation.

[0098] The system’s non-transitory computer-readable media can be provided with instructions, that when executed by the one or more processors, cause the one or more processors to perform at least the following additional operations: requesting for the software execution thread currently executing to continue execution; retrieving, from the map data structure, the model thread corresponding to the software execution thread currently executing; determining whether the model thread is a currently scheduled thread; and controlling execution of the model thread based on whether the model thread is the currently scheduled thread.

[0099] FIG. 4 shows an example of a computing system that contains a microprocessor. The techniques described in this specification can be implemented to run on the computing system to verify the functional correctness of the same or another microprocessor design. The computing system 400 includes at least one processor 402, which could be a single central processing unit (CPU) or an arrangement of multiple processor cores of a multi-core architecture.

[00100] In the depicted example, the processor 402 includes a pipeline 404, an instruction cache 406, and a data cache 408 (and other circuitry, not shown). The processor 402 is connected to a processor bus 410, which enables communication with an external memory system 412 and an input/output (I/O) bridge 414. The I/O bridge 414 enables communication over an I/O bus 416, with various different I/O devices 418A-418D (e.g., disk controller, network interface, display adapter, and/or user input devices such as a keyboard or mouse). [00101] The external memory system 412 is part of a hierarchical memory system that includes multi-level caches, including the first level (LI) instruction cache 406 and data cache 408, and any number of higher level (L2, L3, etc.) caches within the external memory system 412. Other circuitry (not shown) in the processor 402 supporting the caches 406 and 408 includes a translation lookaside buffer (TLB), various other circuitry for handling a miss in the TLB or the caches 406 and 408. For example, the TLB is used to translate an address of an instruction being fetched or data being referenced from a virtual address to a physical address, and to determine whether a copy of that address is in the instruction cache 406 or data cache 408, respectively. If so, that instruction or data can be obtained from the LI cache. If not, that miss is handled by miss circuitry so that it may be executed from the external memory system 412. It is appreciated that the division between which level caches are within the processor 402 and which are in the external memory system 412 can differ in various examples. For example, an LI cache and an L2 cache may both be internal and an L3 (and higher) cache could be external. The external memory system 412 also includes a main memory interface 420, which is connected to any number of memory modules (not shown) serving as main memory (e.g., Dynamic Random Access Memory modules).

[00102] FIG. 5 illustrates a schematic diagram of a general-purpose network component or computer system. The general-purpose network component or computer system 500 includes a processor 502 (which may be referred to as a central processor unit or CPU) that is in communication with memory devices including secondary storage 504, and memory, such as ROM 506 and RAM 508, input/output (I/O) devices 510, and a network 512, such as the Internet or any other well-known type of network, that may include network connectivity devices, such as a network interface. Although illustrated as a single processor, the processor 502 is not so limited and may comprise multiple processors. The processor 502 may be implemented as one or more CPU chips, cores (e.g., a multi-core processor), FPGAs, ASICs, and/or DSPs, and/or may be part of one or more ASICs. The processor 502 may be configured to implement any of the schemes described herein. The processor 502 may be implemented using hardware, software, or both.

[00103] The secondary storage 504 is typically comprised of one or more disk drives or tape drives and is used for non-volatile storage of data and as an over-flow data storage device if the RAM 708 is not large enough to hold all working data. The secondary storage 504 may be used to store programs that are loaded into the RAM 508 when such programs are selected for execution. The ROM 506 is used to store instructions and perhaps data that are read during program execution. The ROM 506 is a non-volatile memory device that typically has a small memory capacity relative to the larger memory capacity of the secondary storage 504. The RAM 508 is used to store volatile data and perhaps to store instructions. Access to both the ROM 506 and the RAM 508 is typically faster than to the secondary storage 504. At least one of the secondary storage 504 or RAM 508 may be configured to store routing tables, forwarding tables, or other tables or information disclosed herein.

[00104] It is understood that by programming and/or loading executable instructions onto the node 500, at least one of the processor 502 or the memory (e.g. ROM 506, RAM 508) are changed, transforming the node 500 in part into a particular machine or apparatus, e.g., a router, having the novel functionality taught by the present disclosure. Similarly, it is understood that by programming and/or loading executable instructions onto the node 500, at least one of the processor 502, the ROM 506, and the RAM 508 are changed, transforming the node 500 in part into a particular machine or apparatus, e.g., a router, having the novel functionality taught by the present disclosure. It is fundamental to the electrical engineering and software engineering arts that functionality that can be implemented by loading executable software into a computer can be converted to a hardware implementation by well-known design rules. Decisions between implementing a concept in software versus hardware typically hinge on considerations of stability of the design and numbers of units to be produced rather than any issues involved in translating from the software domain to the hardware domain. Generally, a design that is still subject to frequent change may be preferred to be implemented in software, because re-spinning a hardware implementation is more expensive than re-spinning a software design. Generally, a design that is stable that will be produced in large volume may be preferred to be implemented in hardware, for example in an ASIC, because for large production runs the hardware implementation may be less expensive than the software implementation. Often a design may be developed and tested in a software form and later transformed, by well-known design rules, to an equivalent hardware implementation in an application specific integrated circuit that hardwires the instructions of the software. In the same manner as a machine controlled by a new ASIC is a particular machine or apparatus, likewise a computer that has been programmed and/or loaded with executable instructions may be viewed as a particular machine or apparatus.

[00105] The technology described herein can be implemented using hardware, firmware, software, or a combination of these. The software used is stored on one or more of the processor readable storage devices described above to program one or more of the processors to perform the functions described herein. The processor readable storage devices can include computer readable media such as volatile and non-volatile media, removable and non-removable media. By way of example, and not limitation, computer readable media may comprise computer readable storage media and communication media. Computer readable storage media may be implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Examples of computer readable storage media include RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. A computer readable medium or media does (do) not include propagated, modulated or transitory signals.

[00106] Communication media typically embodies computer readable instructions, data structures, program modules or other data in a propagated, modulated or transitory data signal such as a carrier wave or other transport mechanism and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as RF and other wireless media. Combinations of any of the above are also included within the scope of computer readable media.

[00107] In alternative embodiments, some or all of the software can be replaced by dedicated hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Application-specific Integrated Circuits (ASICs), Application-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), special purpose computers, etc. In one embodiment, software (stored on a storage device) implementing one or more embodiments is used to program one or more processors. The one or more processors can be in communication with one or more computer readable media/ storage devices, peripherals and/or communication interfaces.

[00108] It is understood that the present subject matter may be embodied in many different forms and should not be construed as being limited to the embodiments set forth herein. Rather, these embodiments are provided so that this subject matter will be thorough and complete and will fully convey the disclosure to those skilled in the art. Indeed, the subject matter is intended to cover alternatives, modifications and equivalents of these embodiments, which are included within the scope and spirit of the subject matter as defined by the appended claims. Furthermore, in the following detailed description of the present subject matter, numerous specific details are set forth in order to provide a thorough understanding of the present subject matter. However, it will be clear to those of ordinary skill in the art that the present subject matter may be practiced without such specific details.

[00109] Aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatuses (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations 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, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable instruction execution apparatus, create a mechanism for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.

[00110] The description of the present disclosure has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the disclosure in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the disclosure. The aspects of the disclosure herein were chosen and described in order to best explain the principles of the disclosure and the practical application, and to enable others of ordinary skill in the art to understand the disclosure with various modifications as are suited to the particular use contemplated.

[00111] For purposes of this document, each process associated with the disclosed technology may be performed continuously and by one or more computing devices. Each step in a process may be performed by the same or different computing devices as those used in other steps, and each step need not necessarily be performed by a single computing device. [00112] Although the subj ect matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.