# US 2013/0159677 A1 · Instruction generation

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0159677 A1
- Document ID: US20130159677A1
- Status: Published application
- Kind: A1
- Application number: 13/666,081
- Filed: 2012-11-01
- Published: 2013-06-20
- Earliest claimed: 2011-12-14
- Assignees: International Business Machines Corporation
- Inventors: Joerg Deutschle; Ursel Hahn; Joerg Walter; Ernst-Dieter Weissenberger
- Web page: https://patentgrep.com/patent/US20130159677A1

## CPC

- G06F 11/263: Generation of test inputs, e.g. test vectors, patterns or sequences {; with adaptation of the tested hardware for testability with external testers}
- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 11/3698: Environments for analysis, debugging or testing of software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Generating instructions, in particular for mailbox verification in a simulation environment. A sequence of instructions is received, as well as selection data representative of a plurality of commands including a special command. Repeatedly selecting one of the plurality of commands and outputting an instruction based on the selected command. The outputting of an instruction includes outputting a next instruction in the sequence of instructions if the selected command is the special command, and outputting an instruction associated with the command if the selected command is not the special command.

## Claims

### Claim 1

A method of generating instructions, comprising:
receiving a sequence of instructions;
receiving selection data representative of a plurality of commands including a special command; and
repeatedly selecting one of said plurality of commands and outputting an instruction based on said selected command, wherein
said outputting of an instruction comprises:
outputting a next instruction in said sequence of instructions based on said selected command being said special command; and
outputting an instruction associated with said command based on said selected command not being said special command.

### Claim 2 (depends on 1)

The method of claim 1, wherein said selecting comprises:
obtaining a random number; and
selecting said one of said plurality of commands based on said random number.

### Claim 3 (depends on 1)

The method of claim 1, wherein
said selection data is representative, for each of said plurality of commands, of a weight associated with the respective command; and
said selecting comprises:
obtaining a random number; and
selecting said one of said plurality of commands based on said random number and said weights.

### Claim 4 (depends on 1)

The method of claim 1, wherein said sequence of instructions includes mailbox commands.

### Claim 5 (depends on 1)

The method of claim 1, wherein said instruction associated with said command is not a mailbox instruction.

### Claim 6

An instruction generating system, comprising:
an instruction receiving component to receive a sequence of instructions;
a selection data receiving component to receive selection data representative of a plurality of commands including a special command; and
a repetition component to repeatedly select one of said plurality of commands and output an instruction based on said selected command, wherein
said outputting of an instruction comprises:
outputting a next instruction in said sequence of instructions based on said selected command being said special command; and
outputting an instruction associated with said command based on said selected command not being said special command.

### Claim 7 (depends on 6)

The system of claim 6, wherein to select comprises:
obtaining a random number; and
selecting said one of said plurality of commands based on said random number.

### Claim 8 (depends on 6)

The system of claim 6, wherein
said selection data is representative, for each of said plurality of commands, of a weight associated with the respective command; and
to select comprises:
obtaining a random number; and
selecting said one of said plurality of commands based on said random number and said weights.

### Claim 9 (depends on 6)

The system of claim 6, wherein said sequence of instructions includes mailbox commands.

### Claim 10 (depends on 6)

The system of claim 6, wherein said instruction associated with said command is not a mailbox instruction.

### Claim 11

A computer program product for generating instructions, the computer program product comprising:
a computer readable storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising:
receiving a sequence of instructions;
receiving selection data representative of a plurality of commands including a special command; and
repeatedly selecting one of said plurality of commands and outputting an instruction based on said selected command, wherein
said outputting of an instruction comprises:
outputting a next instruction in said sequence of instructions based on said selected command being said special command; and
outputting an instruction associated with said command based on said selected command not being said special command.

### Claim 12 (depends on 11)

The computer program product of claim 11, wherein said selecting comprises:
obtaining a random number; and
selecting said one of said plurality of commands based on said random number.

### Claim 13 (depends on 11)

The computer program product of claim 11, wherein
said selection data is representative, for each of said plurality of commands, of a weight associated with the respective command; and
said selecting comprises:
obtaining a random number; and
selecting said one of said plurality of commands based on said random number and said weights.

### Claim 14 (depends on 11)

The computer program product of claim 11, wherein said sequence of instructions includes mailbox commands.

### Claim 15 (depends on 11)

The computer program product of claim 11, wherein said instruction associated with said command is not a mailbox instruction.
