CONTROLLING SIMULATION SYSTEMS
First Claim
1. A method for controlling a simulation system including a plant simulator, an instruction set simulator, a peripheral simulator, and a scheduler that run on a computer, wherein an interrupt signal is input to the instruction set simulator, the instruction set simulator inputs an I/O instruction to the peripheral simulator, the peripheral simulator inputs a pulse signal to the plant simulator, and the scheduler provides an instruction to advance operations of the plant simulator, the instruction set simulator, and the peripheral simulator, the method comprising:
- storing, in a storage device of the computer, a first-stage table in which a value of a predicted time until arrival of an I/O instruction and a type of the I/O instruction are included as entries for each program counter of the instruction set simulator;
storing, in the storage device of the computer, a second-stage table in which a value of an earliest time until an output event from the peripheral simulator is included as an entry for each type of I/O instruction;
the scheduler querying the plant simulator, the instruction set simulator, and the peripheral simulator for a next event time;
the plant simulator returning a pre-calculated next event time in response to the query from the scheduler;
the peripheral simulator returning a pre-calculated next event time in response to the query from the scheduler;
the instruction set simulator, in response to the query from the scheduler, looking up the first-stage table with reference to a value of the program counter to obtain the type of the I/O instruction and the value of the predicted time until arrival of the I/O instruction, looking up the second-stage table with reference to the obtained type of the I/O instruction to obtain the value of the earliest time until the output event from the peripheral simulator, and returning a sum of the value of the predicted time until arrival of the I/O instruction and the value of the earliest time until the output event from the peripheral simulator as a next event time; and
the scheduler advancing a simulation to an earliest event time among the next event times returned from the plant simulator, the instruction set simulator, and the peripheral simulator.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for controlling a simulation system includes storing first-stage and second stage tables in which a value of a predicted time until arrival of an I/O instruction and a type of the instruction are included as entries for each program counter of an instruction set simulator, and in which a value of an earliest time until an output event from a peripheral simulator is included as an entry for each type of instruction; looking up the first-stage table to obtain the type of the instruction and the value of the predicted time until arrival of the instruction, looking up the second-stage table with reference to the obtained type of the instruction to obtain the value of the earliest time until the output event from the peripheral simulator, and returning the predicted time until arrival of the instruction and the earliest time until the output event from the peripheral simulator.
17 Citations
15 Claims
-
1. A method for controlling a simulation system including a plant simulator, an instruction set simulator, a peripheral simulator, and a scheduler that run on a computer, wherein an interrupt signal is input to the instruction set simulator, the instruction set simulator inputs an I/O instruction to the peripheral simulator, the peripheral simulator inputs a pulse signal to the plant simulator, and the scheduler provides an instruction to advance operations of the plant simulator, the instruction set simulator, and the peripheral simulator, the method comprising:
-
storing, in a storage device of the computer, a first-stage table in which a value of a predicted time until arrival of an I/O instruction and a type of the I/O instruction are included as entries for each program counter of the instruction set simulator; storing, in the storage device of the computer, a second-stage table in which a value of an earliest time until an output event from the peripheral simulator is included as an entry for each type of I/O instruction; the scheduler querying the plant simulator, the instruction set simulator, and the peripheral simulator for a next event time; the plant simulator returning a pre-calculated next event time in response to the query from the scheduler; the peripheral simulator returning a pre-calculated next event time in response to the query from the scheduler; the instruction set simulator, in response to the query from the scheduler, looking up the first-stage table with reference to a value of the program counter to obtain the type of the I/O instruction and the value of the predicted time until arrival of the I/O instruction, looking up the second-stage table with reference to the obtained type of the I/O instruction to obtain the value of the earliest time until the output event from the peripheral simulator, and returning a sum of the value of the predicted time until arrival of the I/O instruction and the value of the earliest time until the output event from the peripheral simulator as a next event time; and the scheduler advancing a simulation to an earliest event time among the next event times returned from the plant simulator, the instruction set simulator, and the peripheral simulator. - View Dependent Claims (2, 3)
-
-
4. A non-transitory, computer readable medium containing computer readable instructions stored thereon that, when executed by a computer, implement a method for controlling a simulation system including a plant simulator, an instruction set simulator, a peripheral simulator, and a scheduler that run on a computer, wherein an interrupt signal is input to the instruction set simulator, the instruction set simulator inputs an I/O instruction to the peripheral simulator, the peripheral simulator inputs a pulse signal to the plant simulator, and the scheduler provides an instruction to advance operations of the plant simulator, the instruction set simulator, and the peripheral simulator, wherein the method comprises:
-
storing, in a storage device of the computer, a first-stage table in which a value of a predicted time until arrival of an I/O instruction and a type of the I/O instruction are included as entries for each program counter of the instruction set simulator; storing, in the storage device of the computer, a second-stage table in which a value of an earliest time until an output event from the peripheral simulator is included as an entry for each type of I/O instruction; the scheduler querying the plant simulator, the instruction set simulator, and the peripheral simulator for a next event time; the plant simulator returning a pre-calculated next event time in response to the query from the scheduler; the peripheral simulator returning a pre-calculated next event time in response to the query from the scheduler; the set simulator, in response to the query from the scheduler, looking up the first-stage table with reference to a value of the program counter to obtain the type of the I/O instruction and the value of the predicted time until arrival of the I/O instruction, looking up the second-stage table with reference to the obtained type of the I/O instruction to obtain the value of the earliest time until the output event from the peripheral simulator, and returning a sum of the value of the predicted time until arrival of the I/O instruction and the value of the earliest time until the output event from the peripheral simulator as a next event time; and the scheduler advancing a simulation to an earliest event time among the next event times returned from the plant simulator, the instruction set simulator, and the peripheral simulator. - View Dependent Claims (5, 6)
-
-
7. A simulation system, comprising:
-
a plant simulator, an instruction set simulator, a peripheral simulator, and a scheduler that run on a computer, wherein an interrupt signal is input to the instruction set simulator, the instruction set simulator inputs an I/O instruction to the peripheral simulator, the peripheral simulator inputs a pulse signal to the plant simulator, and the scheduler provides an instruction to advance operations of the plant simulator, the instruction set simulator, and the peripheral simulator; a storage device; a first-stage table stored in the storage device and including a value of a predicted time until arrival of an I/O instruction and a type of the I/O instruction as entries for each program counter of the instruction set simulator; a second-stage table stored in the storage device of the computer and including a value of an earliest time until an output event from the peripheral simulator as an entry for each type of I/O instruction; the scheduler having a function of querying the plant simulator, the instruction set simulator, and the peripheral simulator for a next event time; the plant simulator having a function of returning a pre-calculated next event time in response to the query from the scheduler; the peripheral simulator having a function of returning a pre-calculated next event time in response to the query from the scheduler; and the instruction set simulator having a function of, in response to the query from the scheduler, looking up the first-stage table with reference to a value of the program counter to obtain the type of the I/O instruction and the value of the predicted time until arrival of the I/O instruction, looking up the second-stage table with reference to the obtained type of the I/O instruction to obtain the value of the earliest time until the output event from the peripheral simulator, and returning a sum of the value of the predicted time until arrival of the I/O instruction and the value of the earliest time until the output event from the peripheral simulator as next event time, wherein the scheduler further has a function of advancing a simulation to an earliest event time among the next event times returned from the plant simulator, the instruction set simulator, and the peripheral simulator. - View Dependent Claims (8, 9)
-
-
10. A method for controlling a simulation system including a plant simulator, an instruction set simulator, a peripheral simulator, and a scheduler that run on a computer, wherein an interrupt signal is input to the instruction set simulator, the instruction set simulator inputs an I/O instruction to the peripheral simulator, the peripheral simulator inputs a pulse signal to the plant simulator, and the scheduler provides an instruction to advance operations of the plant simulator, the instruction set simulator, and the peripheral simulator, the method comprising:
-
storing, in a storage device of the computer, an event prediction table in which a value of a predicted time until arrival of an I/O instruction is included as an entry for each program counter of the instruction set simulator; the scheduler querying the plant simulator, the instruction set simulator, and the peripheral simulator for a next event time; the plant simulator returning a pre-calculated next event time in response to the query from the scheduler; the peripheral simulator returning a pre-calculated next event time in response to the query from the scheduler; the instruction set simulator, in response to the query from the scheduler, looking up the event prediction table with reference to a value of the program counter to obtain the value of the predicted time until arrival of the I/O instruction and returning the obtained value as a next event time; and the scheduler advancing a simulation to an earliest event time among the next event times returned from the plant simulator, the instruction set simulator, and the peripheral simulator. - View Dependent Claims (11, 12)
-
-
13. A non-transitory, computer readable medium containing computer readable instructions stored thereon that, when executed by a computer, implement a method for controlling a simulation system including a plant simulator, an instruction set simulator, a peripheral simulator, and a scheduler that run on a computer, wherein an interrupt signal is input to the instruction set simulator, the instruction set simulator inputs an I/O instruction to the peripheral simulator, the peripheral simulator inputs a pulse signal to the plant simulator, and the scheduler provides an instruction to advance operations of the plant simulator, the instruction set simulator, and the peripheral simulator, wherein the method comprises:
-
storing, in storage device of the computer, an event prediction table in which a value of a predicted time until arrival of an I/O instruction is included as an entry for each program counter of the instruction set simulator; the scheduler querying the plant simulator, the instruction set simulator, and the peripheral simulator for a next event time; the plant simulator returning a pre-calculated next event time in response to the query from the scheduler; the peripheral simulator returning a pre-calculated next event time in response to the query from the scheduler; the instruction set simulator, in response to the query from the scheduler, looking up the event prediction table with reference to a value of the program counter to obtain the value of the predicted time until arrival of the I/O instruction and returning the obtained value as a next event time; and the scheduler advancing a simulation to an earliest event time among the next event times returned from the plant simulator, the instruction set simulator, and the peripheral simulator. - View Dependent Claims (14, 15)
-
Specification