Simulation system, method and program for controlling simulation system
The simulation system addresses data loss in high-speed serial communication by inserting dummy data at controlled intervals and using error correction, ensuring real-time performance and data integrity in HIL simulators.
Patent Information
- Application Number
- JP2021051899
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-03-25
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-03-25
AI Technical Summary
Existing high-speed serial communication methods in HIL simulators for ECUs result in data loss due to clock precision differences between the transmitting and receiving sides, especially in real-time simulations where dummy data insertion disrupts the transmission of intended data.
A simulation system and method that inserts dummy data at a controlled ratio into calculation result data, transmitting it at a cycle shorter than the model execution cycle, using FIFO buffers and communication control units to manage data flow and error correction with CRC data.
Enables high real-time performance by inserting dummy data without losing original data, maintaining synchronization and allowing for error detection and correction, even in real-time simulations.
Smart Images

Figure 0007575322000001 
Figure 0007575322000002 
Figure 0007575322000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a simulation system, a control method and a program for a simulation system, and more particularly to a simulation system that performs high-speed serial communication in real time, and a control method and a program for a simulation system. [Background technology]
[0002] For example, in the automotive industry, Hardware In the Loop Simulation (HILS) is used when developing electronic control units (Electrical Control Units, ECUs) that control vehicles. In HILS, communication between hardware circuit models such as FPGAs and ASICs is basically parallel communication at the model execution cycle, but due to a shortage of physical pins on FPGAs, etc., it is not possible to ensure the amount of communication data. To address this, optimization methods require high-speed serial communication between hardware circuit models.
[0003] In high-speed serial communication between hardware circuit models, the sender and receiver do not share a clock. Therefore, even if the sender and receiver have the same clock specifications, data overflow and / or underflow occurs due to the difference in clock accuracy between the sender and receiver. Patent Document 1 discloses a technique for inserting dummy data into transmission data in serial communication in which the sender and receiver do not share a clock, in order to absorb the difference between the receiver clock and the sender clock. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Patent No. 6289147 Summary of the Invention [Problem to be solved by the invention]
[0005] According to the method disclosed in Patent Document 1, while dummy data is being transmitted, the data that is actually to be transmitted cannot be transmitted. If the data communication does not require real-time performance, the data that is actually to be transmitted can be transmitted after waiting for the end of the dummy data transmission. However, in a situation that requires high real-time performance, such as a real-time simulation, when the transmission of the dummy data ends, it is necessary to send the latest data at the time of the end of the transmission, not the data at the start of the transmission of the dummy data. Therefore, when the method disclosed in Patent Document 1 is applied to a real-time simulation, a problem occurs in that the data that is actually to be transmitted and transmitted in real time while the dummy data is being transmitted is lost.
[0006] In view of the above problems, the present invention aims to provide a simulation system, a control method for a simulation system, and a program that can insert dummy data without losing data even in situations where high real-time performance is required. [Means for solving the problem]
[0007] The first aspect is a simulation system including: a transmitting FIFO buffer; a first model calculation unit that generates calculation result data and writes the calculation result data to the transmitting FIFO buffer one sample at a time every period T; a communication unit; a transmitting communication control unit that reads the calculation result data from the transmitting FIFO buffer, inserts dummy data into the calculation result data of N samples at a rate of K samples (where K is an integer greater than or equal to 1) to generate transmission data, and passes the transmission data to the communication unit one sample at a time in a period (N×T) / (N+K); a receiving FIFO buffer; a receiving communication control unit that receives one sample of transmission data from the communication unit every period (N×T) / (N+K), extracts the dummy data from the transmission data, and writes the calculation result data with the dummy data removed to the receiving FIFO buffer; and a second model calculation unit that reads the calculation result data from the receiving FIFO buffer in a period T.
[0008] In the first aspect, the dummy data may be partly, but not entirely, data for error correction.
[0009] In a first aspect, the communication device further includes a CRC calculation unit and a communication error check unit, the error correction data being CRC data, the CRC data being data that is inserted into the calculation result data every predetermined number of times that dummy data is inserted, the CRC calculation unit receives the calculation result data from the transmitting communication control unit, and based on the received calculation result data, calculates a CRC value of the calculation result data that is to be transmitted between the time the CRC data is inserted into the calculation result data and the time the CRC data is next inserted into the calculation result data, and transmits the CRC value to the transmitting communication control unit as CRC data, and the communication error check unit may extract the calculation result data and CRC data from the transmission data received by the receiving communication control unit, and check for communication errors based on the calculation result data and CRC data.
[0010] A second aspect is a control method for a simulation system, and is summarized by executing the steps of: generating calculation result data and writing the calculation result data into a transmitting FIFO buffer one sample at a time every period T; generating transmission data by inserting dummy data into N samples of calculation result data at a rate of K samples (where K is an integer greater than or equal to 1); transmitting the transmission data one sample at a time to a transmitting unit with a period (N×T) / (N+K); receiving one sample of transmission data every period (N×T) / (N+K) and writing the calculation result data with the dummy data removed from the transmission data into a receiving FIFO buffer; and extracting the calculation result data from the receiving FIFO buffer with a period T.
[0011] In the second embodiment, the dummy data may be partly, but not entirely, error correction data.
[0012] In a second aspect, the data for error correction is CRC data, and the CRC data is data that is inserted into the calculation result data every predetermined number of times that dummy data is inserted. In the step of inserting dummy data into the calculation result data to generate transmission data, a CRC value of the calculation result data that is transmitted between the time the CRC data is inserted into the calculation result data and the time the CRC data is next inserted into the calculation result data is calculated, and the CRC value is inserted into the calculation result data as CRC data. Furthermore, a step of extracting the calculation result data and the CRC data from the transmission data, and checking for communication errors based on the calculation result data and the CRC data may be executed.
[0013] The third aspect is a control program for a simulation system, which causes a computer to realize a first model calculation function of generating calculation result data and writing the calculation result data into a transmitting side FIFO buffer one sample at a time every period T, a transmission data generation function of generating transmission data by inserting dummy data into N samples of calculation result data at a rate of K samples (where K is an integer greater than or equal to 1), a transmitting side communication control function of transmitting the transmission data one sample at a time in a period (N×T) / (N+K), a transmitting function of receiving the transmission data from the transmitting side communication control function and transmitting it to a receiving side communication control function, a receiving side communication control function of receiving the transmission data from the transmitting function and writing the calculation result data with the dummy data removed from the transmission data into the receiving side FIFO buffer, and a second model calculation function of extracting one sample of the calculation result data from the receiving side FIFO buffer every period T.
[0014] In the third aspect, the dummy data may be partly, but not entirely, error correction data.
[0015] In a third aspect, the data for error correction is CRC data, the CRC data is data that is inserted into the calculation result data every predetermined number of times that dummy data is inserted, and the device further has a CRC data generation function that generates CRC data including a CRC value of the calculation result data generated from the timing when the CRC data is inserted into the calculation result data to the timing when the CRC data is next inserted into the calculation result data, and further has a communication error check function that extracts the calculation result data and CRC data from the transmission data received by the receiving communication control function, and checks for communication errors based on the calculation result data and CRC data. Effect of the Invention
[0016] According to the present invention, it is possible to provide a simulation system, a control method for a simulation system, and a program that can insert dummy data without losing data even in situations where high real-time performance is required by transmitting data at a period shorter than the model execution period. [Brief description of the drawings]
[0017] [Figure 1] 1 is a block diagram showing an example of a configuration of a simulation system according to a first embodiment of the present invention. [Diagram 2] FIG. 1 is a diagram showing an example of a structure of transmitted and received data in a conventional control method for a simulation system. [Diagram 3] 4 is a diagram showing an example of a structure of transmitted and received data in accordance with the control method of the simulation system according to the first embodiment; FIG. [Figure 4] 4 is a flowchart illustrating a control method for the simulation system according to the first embodiment. [Diagram 5] FIG. 11 is a block diagram showing an example of a configuration of a simulation system according to a second embodiment. [Figure 6] FIG. 11 is a diagram showing an example of a structure of transmitted and received data in accordance with a control method of a simulation system according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0018] Next, an embodiment of the present invention will be described with reference to the drawings. In the description of the drawings relating to the embodiment, the same or similar parts are given the same or similar reference numerals. However, it should be noted that the drawings are schematic, and the relationship with the planar dimensions is different from the actual one. Therefore, the specific dimensions should be determined with reference to the following description. In addition, it goes without saying that the drawings include parts with different dimensional relationships and ratios.
[0019] Furthermore, the embodiments are merely examples of devices and methods for embodying the technical idea of the present invention, and the technical idea of the present invention does not specify the configuration, arrangement, layout, etc. of each component to those described below. The technical idea of the present invention can be modified in various ways within the technical scope defined by the claims.
[0020] (First embodiment) An example of the configuration of a simulation system according to a first embodiment of the present invention is shown in Fig. 1. The simulation system 10 shown in Fig. 1 is composed of a first model calculation unit 101, a transmitting FIFO buffer 102, a first clock generation unit 103, a transmitting communication control unit 104, a communication unit 105, a receiving communication control unit 106, a receiving FIFO buffer 107, a second model calculation unit 108, and a second clock generation unit 109.
[0021] The first clock generation unit 103 generates a clock signal for executing the calculation of the first model in the first model calculation unit 101, an input clock signal to the transmitting FIFO buffer 102, and an output clock signal from the transmitting FIFO buffer 102, and transmits the clock signal for executing the calculation of the first model to the first model calculation unit 101, and the input clock signal and the output clock signal to the transmitting FIFO buffer 102. Similarly, the second clock generation unit 109 generates an input clock signal to the receiving FIFO buffer 107, an output clock signal from the receiving FIFO buffer 107, and a clock signal for executing the calculation of the second model in the second model calculation unit 109, and transmits them to the receiving FIFO buffer 107 and the second model calculation unit 108, respectively.
[0022] As for the frequencies of the clocks supplied to each unit, for example, the clock signal for executing the calculation of the first model in the first model calculation unit 101 and the clock signal for executing the calculation of the second model in the second model calculation unit 108 are 100 MHz, the input clock signal to the transmitting side FIFO buffer 102 and the output clock signal from the receiving side FIFO buffer 105 are 100 MHz, and the output clock signal from the transmitting side FIFO buffer 102 and the input clock signal to the receiving side FIFO buffer 107 are 125 MHz.
[0023] The first model calculation unit 101 and the transmitting side FIFO buffer 102 operate according to a clock signal generated by a first clock generation unit 103, and the receiving side FIFO buffer 107 and the second model calculation unit 108 operate according to a clock signal generated by a second clock generation unit 109. The first model calculation unit 101 and the transmitting side FIFO buffer 102, and the receiving side FIFO buffer 107 and the second model calculation unit 108 use serial communication without sharing a clock. Therefore, when calculation result data is transmitted from the first model calculation unit 101 to the second model calculation unit 108 via the transmitting side FIFO buffer 102 and the receiving side FIFO buffer 107, dummy data is inserted into the calculation result data as described below.
[0024] As an example, the first model calculation unit 101 is a single calculation model configured on an FPGA. The same is true for the second model calculation unit 108. However, neither the first model calculation unit 101 nor the second model calculation unit 108 is limited to a circuit configured on an FPGA.
[0025] The first model calculation unit 101 generates calculation result data and writes it to the transmission side FIFO buffer 102. The transmission side communication control unit 104 generates transmission data by inserting dummy data at predetermined intervals into the calculation result data retrieved from the transmission side FIFO buffer 102, and passes the transmission data to the communication unit 105. Next, the communication unit 105 passes the transmission data received from the transmission side communication control unit 104 to the reception side communication control unit 106. The reception side communication control unit 106 removes the dummy data from the transmission data received from the communication unit 105, and writes the calculation result data to the reception side FIFO buffer 107. The second model calculation unit 108 retrieves the calculation result data from the reception side FIFO buffer 107.
[0026] In a real-time simulation, if dummy data is inserted into the calculation result data to generate the transmission data, and the transmission data is transmitted by serial communication in the same period as the model execution period, the calculation result data will be missing while the dummy data is being transmitted. The missing data will be described below with reference to FIG. 2. FIG. 2 shows an example of the structure of transmission and reception data when data is transmitted and received while inserting dummy data according to a conventional method when a real-time simulation is performed in a system as shown in FIG. 1. The first model calculation unit 101 writes one sample of data to the transmission side FIFO buffer 102 as the calculation result data every period T. In FIG. 2, each of D0, D1, D2, . . . is one sample of the calculation result data written to the transmission side FIFO buffer 102 every period T. The transmission side communication control unit 104 inserts dummy data (CC, Clock Correction) at a rate of K samples (where K is an integer greater than or equal to 1) into the calculation result data of N samples to generate the transmission data. In the example shown in FIG. 2, one sample of dummy data is inserted into the transmission data of four samples of the calculation result data. If an attempt is made to transmit data in a manner that does not impair real-time performance, sample data D3 and D7 will be lost, as shown in FIG.
[0027] According to the simulation system of this embodiment, by transmitting data at a period shorter than the model execution period, it is possible to insert dummy data without causing data loss even in a real-time simulation. An example of the structure of transmitted and received data by the simulation system of this embodiment is shown in Fig. 3. The first model calculation unit 101 writes one sample of data every period T to the transmission side FIFO buffer 102 as calculation result data.
[0028] The transmitting communication control unit 104 takes out the calculation result data one sample at a time from the transmitting FIFO buffer 102, and inserts dummy data (CC) into the calculation result data of N samples at a rate of K samples (where K is an integer equal to or greater than 1) to generate transmission data. Furthermore, the transmission data is passed to the communication unit 105 one sample at a time in a cycle of (N×T) / (N+K). In the example shown in FIG. 3, one sample of dummy data is inserted into the transmission data for every four samples of calculation result data, and the cycle of one sample of the transmission data is (N×T) / (N+K)=4×T / 5.
[0029] A specific example is described below. For example, one sample of dummy data is inserted into four samples of calculation result data. If the period of one sample of the calculation result data is 10 ns, the period of one sample of the transmission data is 8 ns. When the transmission side communication control unit 104 inserts dummy data into the calculation result data and passes it to the communication unit 105, first, the process of taking out one sample of the calculation result data from the transmission side FIFO buffer 102 and passing it to the communication unit 105 is performed four times in a period of 8 ns. Next, the process of generating one sample of dummy data and passing it to the communication unit 105 is performed once in a period of 8 ns. By repeating the above cycle, the transmission side communication control unit 104 passes five samples in 40 ns, that is, four samples of the calculation result data and one sample of dummy data, to the communication unit 105 one sample at a time in a period of 8 ns.
[0030] The communication unit 105 receives transmission data from the transmission-side communication control unit 104 and passes it to the reception-side communication control unit 106. The reception-side communication control unit 106 writes the calculation result data, which is the transmission data with dummy data removed, into the reception-side FIFO buffer 107. Specifically, the reception-side communication control unit 106 receives the transmission data from the communication unit 105, one sample at a time, every period (N×T) / (N+K). Then, if the received data is dummy data, it is discarded, and if the received data is calculation result data, it is written into the reception-side FIFO buffer 107. The second model calculation unit 108 takes out one sample of the calculation result data from the reception-side FIFO buffer 107 every period T, and returns the period to T.
[0031] Here, when K≧2, the transmitting communication control unit 104 may insert dummy data at a ratio of K samples into the calculation result data of N samples to generate the transmission data, but by dividing the dummy data of K samples and increasing the frequency of inserting the dummy data, the accuracy of synchronization is improved. For example, the accuracy of synchronization is improved and real-time performance can be maintained by inserting 1 clk of dummy data every 999 clk of calculation result data rather than inserting 6 clk of dummy data every 5000 clk of calculation result data.
[0032] Next, a control method for the simulation system according to this embodiment will be described with reference to the flowchart shown in FIG.
[0033] In step S401, the first model calculation unit 101 writes one sample of data for each period T into the transmission FIFO buffer 102 as calculation result data.
[0034] In step S402, the transmitting-side communication control unit 104 extracts the calculation result data one sample at a time from the transmitting-side FIFO buffer 102 and passes it to the communication unit 105 at a period of (N×T) / (N+K) (where K and N are integers ≧1). Step S402 is repeated N times.
[0035] In step S403, the transmitting-side communication control unit 104 generates dummy data and passes it to the communication unit 105 as received data in a cycle of (N×T) / (N+K). Step S402 is repeated K times. Through steps S402 and S403, the transmitting-side communication control unit 104 generates transmission data by inserting dummy data (CC) at a ratio of K samples into the calculation result data of N samples, and passes it to the communication unit 105 in a cycle of (N×T) / (N+K).
[0036] In step S404, the communication unit 105 passes the received transmission data to the reception side communication control unit 106 sample by sample at a period of (N×T) / (N+K).
[0037] In step S 405 , the receiving communication control unit 106 writes the calculation result data obtained by removing the dummy data from the transmission data into the receiving FIFO buffer 107 .
[0038] In step S406, the second model calculation unit 108 retrieves one sample of calculation result data from the receiving-side FIFO buffer 107 for each period T, and resets the period to T. In this way, dummy data can be inserted without losing data even in a situation where high real-time performance is required.
[0039] Second embodiment In the simulation system according to the present embodiment, when the transmitting communication control unit 104 generates transmission data by inserting dummy data (CC) at a rate of K samples (where K is an integer ≥ 1) into the calculation result data of N samples in the simulation system according to the first embodiment, it performs a Cyclic Redundancy Check (CRC) calculation on the calculation result data for the transmission data of a section of length L, and inserts the obtained CRC data into the calculation result data as dummy data. By performing the CRC calculation, it is possible to check for communication errors.
[0040] FIG. 5 shows an example of the configuration of a simulation system according to this embodiment. In comparison with the simulation system 10 shown in FIG. 1, the simulation system 50 shown in FIG. 5 has a CRC calculation unit 501 connected to the transmission side communication control unit 104 and a communication error check unit 502 connected to the reception side communication control unit 106. When the transmission side communication control unit 104 writes the transmission data one sample at a time to the communication unit 105, it simultaneously transmits the transmission data to the CRC calculation unit 501. The CRC calculation unit 501 performs a CRC calculation. The calculation result data and the CRC data are included in the transmission data. The transmission data is transmitted from the transmission side communication control unit 104 to the reception side communication control unit 106 via the communication unit 105. The communication error check unit 502 extracts the calculation result data and the CRC data from the transmission data received by the reception side communication control unit 106, and checks for a communication error based on the calculation result data and the CRC data.
[0041] 6 shows an example of the structure of transmission and reception data by the simulation system according to this embodiment. When the transmitting communication control unit 104 generates transmission data by inserting dummy data (CC) at a rate of K samples (where K is an integer 1 or more) into the calculation result data of N samples, it calculates a cyclic redundancy check (CRC) of the transmission data of a section A of length L to generate CRC data, and inserts the CRC data into the calculation result data every predetermined number of times that the dummy data is inserted. Here, the CRC calculation of the transmission data of section A refers to the CRC calculation of the calculation result data transmitted from the timing when the previous CRC data was inserted into the calculation result data until the next CRC data is inserted into the calculation result data while the transmitting communication control unit 104 generates the transmission data, that is, the transmission data excluding the dummy data.
[0042] It is not possible to replace all dummy data with CRC data, but as shown in Fig. 6, dummy data may be replaced with CRC data once for every predetermined number of dummy data insertions.
[0043] As described above, in the second embodiment, when the transmitting-side communication control unit 104 writes the transmission data one sample at a time to the communication unit 105, it simultaneously transmits the transmission data to the CRC calculation unit 501. However, the dummy data included in the transmission data does not necessarily have to be transmitted from the transmitting-side communication control unit to the CRC calculation unit. This is because the dummy data is not necessary for the CRC calculation. In other words, when the transmitting-side communication control unit 104 writes the transmission data to the communication unit 105, it may transmit only the calculation result data to the CRC calculation unit 501.
[0044] As described above, the simulation system, the control method and the program for the simulation system according to the first and second embodiments of the present invention make it possible to insert dummy data without losing data even in situations where high real-time performance is required by transmitting data at a cycle shorter than the model execution cycle. Furthermore, by performing a CRC calculation and inserting it into the data instead of the dummy data, it becomes possible to detect and correct errors without losing data.
[0045] As described above, the present invention naturally includes various embodiments not described here. Therefore, the technical scope of the present invention is defined only by the invention-specifying matters related to the scope of the claims appropriate from the above description. [Explanation of symbols]
[0046] 101 First Model Calculation Section 102 Transmit FIFO buffer 103 First clock generating unit 104 Transmission side communication control unit 105 Communications Department 106 Receiving side communication control unit 107 Receiver FIFO buffer 108 Second Model Calculation Section 109 Second Clock Generator 501 CRC calculation section 502 Communication error check section
Claims
1. A transmission side FIFO buffer; a first model calculation unit that generates calculation result data and writes the calculation result data into the transmission side FIFO buffer one sample at a time for each period T; The Communications Department and a transmission side communication control unit which reads the calculation result data from the transmission side FIFO buffer, divides the calculation result data of N samples into dummy data of K samples (where K is an integer equal to or greater than 2), and when inserting the dummy data divided at a sample ratio into the calculation result data of N samples, inserts the dummy data at an increased frequency compared to when the dummy data is inserted at a ratio of K samples into the calculation result data of N samples to generate transmission data, and passes the transmission data to the communication unit one sample at a time in a cycle of (N×T) / (N+K); A receiving FIFO buffer; a receiving-side communication control unit that receives one sample of the transmission data from the communication unit every period (N×T) / (N+K), extracts the dummy data from the transmission data, and writes the calculation result data from which the dummy data has been removed into the receiving-side FIFO buffer; a second model calculation unit that reads out the calculation result data from the receiving FIFO buffer at a period T; A simulation system comprising:
2. 2. The simulation system according to claim 1, wherein a part of the dummy data is data for error correction, but not all of the dummy data.
3. 3. The simulation system according to claim 2, A CRC calculation unit; A communication error check unit; Further equipped with the error correction data is CRC data, the CRC data being data that is inserted into the calculation result data every predetermined number of times that the dummy data is inserted, the CRC calculation unit receives the calculation result data from the transmission-side communication control unit, calculates a CRC value of the calculation result data to be transmitted from the timing when the previous CRC data was inserted into the calculation result data until the timing when the next CRC data is inserted into the calculation result data based on the received calculation result data, and transmits the CRC value to the transmission-side communication control unit as the CRC data; A simulation system characterized in that the communication error check unit extracts the calculation result data and the CRC data from the transmission data received by the receiving side communication control unit, and checks for communication errors based on the calculation result data and the CRC data.
4. The computer generating calculation result data, and writing the calculation result data into a transmission side FIFO buffer one sample at a time for each period T; a step of dividing the calculation result data of N samples into K samples (where K is an integer equal to or greater than 2) of dummy data, and inserting the divided dummy data at a ratio of the divided samples of the K samples into the calculation result data of N samples at a frequency of insertion that is higher than that of inserting the dummy data at a ratio of K samples into the calculation result data of N samples, thereby generating transmission data; transmitting the transmission data to a communication unit one sample at a time in a cycle of (N×T) / (N+K); receiving one sample of the transmission data every period (N×T) / (N+K), and writing the calculation result data obtained by removing the dummy data from the transmission data into a receiving FIFO buffer; extracting the calculation result data from the receiving FIFO buffer at a period T; 13. A method for controlling a simulation system, comprising:
5. 5. The method for controlling a simulation system according to claim 4, A method for controlling a simulation system, wherein the dummy data is data for error correction, not entirely but partially.
6. 6. The method for controlling a simulation system according to claim 5, the error correction data is CRC data, the CRC data being data that is inserted into the calculation result data every predetermined number of times that the dummy data is inserted, In the step of generating the transmission data by inserting the dummy data into the calculation result data, a CRC value of the calculation result data to be transmitted during the period from the timing at which the previous CRC data was inserted into the calculation result data until the timing at which the next CRC data is inserted into the calculation result data is calculated, and the CRC value is inserted into the calculation result data as the CRC data; The method for controlling a simulation system further comprises the steps of extracting the calculation result data and the CRC data from the transmission data, and checking for a communication error based on the calculation result data and the CRC data.
7. On the computer, a first model calculation function that generates calculation result data and writes the calculation result data into a transmission side FIFO buffer one sample at a time for each period T; a transmission data generation function for dividing the calculation result data of N samples into K samples (where K is an integer equal to or greater than 2) of dummy data, and inserting the dummy data divided at a ratio of the K samples into the calculation result data of N samples at a frequency higher than that of inserting the dummy data at a ratio of K samples into the calculation result data of N samples, thereby generating transmission data; a transmission side communication control function for transmitting the transmission data one sample at a time in a period (N×T) / (N+K); a transmitting function that receives the transmission data from the transmitting side communication control function and transmits the transmission data to a receiving side communication control function; a receiving-side communication control function that receives one sample of the transmission data from the transmitting function every period (N×T) / (N+K) and writes the calculation result data obtained by removing the dummy data from the transmission data into a receiving-side FIFO buffer; a second model calculation function for extracting one sample of the calculation result data from the receiving FIFO buffer every period T; A control program for a simulation system that realizes the above.
8. 8. The control program for a simulation system according to claim 7, A control program for a simulation system, wherein the dummy data is partly but not entirely data for error correction.
9. 9. The control program for a simulation system according to claim 8, the error correction data is CRC data, the CRC data being data that is inserted into the calculation result data every predetermined number of times that the dummy data is inserted, The method further includes a CRC data generating function for generating CRC data including a CRC value of the calculation result data to be transmitted from the timing when the previous CRC data was inserted into the calculation result data until the timing when the next CRC data is inserted into the calculation result data, A control program for a simulation system, further comprising a communication error check function for extracting the calculation result data and the CRC data from the transmission data received by the receiving communication control function, and checking for communication errors based on the calculation result data and the CRC data.
Citation Information
Patent Citations
Microcomputer runaway detecting circuit
JP1987089147A
Destuff circuit
JP1995023015A
Speed converting circuit and method for controlling the same
JP2001251281A
Data transmission device, data transmission system, calibration method, and program
JP2015154233A
