A kind of bus support plate, data interaction system, data processing method and device
Technical field
The present invention relates to technical field of data transmission, more particularly to a kind of bus support plate, data interaction system, data processing
Method and device.
Background technology
In guidance control system HWIL simulation experiment, to ensure the real-time of data transfer, generally with fiber reflection
Internal memory network is real-time communication network.In the simulation process based on real-time communication network, real-time simulation computer will can be resolved
Data other nodes are sent to by reflective memory plate, the data that other nodes are sent can be also received, so that in kind half
Data real-time, interactive is realized in emulation experiment.
Referring to Fig. 1, be the structural representation of existing analogue system, including real-time simulation computer and physical effect are set
It is standby.Wherein, reflective memory plate is provided with real-time simulation computer and physical effect equipment, every block of reflective memory plate is all connected
Onto fiber reflection memory switch.In HWIL simulation experiment, real-time simulation computer resolves physical effect driving model,
And driving data is sent into the reflective memory set to physical effect equipment, physical effect equipment by it by reflective memory plate
Physical effect exercise data is returned to simulation computer by plate, realizes the real-time, interactive of data.
Because reflective memory plate directly can not be inserted into the cabinet of real-time simulation computer, and real-time simulation computer is total
Line type is usually CPCI, therefore, in the prior art generally by cpci bus interface support plate, in use, first by reflective memory
Plate is installed on cpci bus interface support plate, then the cpci bus interface support plate for being provided with reflective memory plate is inserted into real-time simulation
In computer cabinet.When carrying out the communication of reflective memory plate using cpci bus interface support plate, cpci bus interface support plate is not
Any operation is carried out to reflective memory plate, is simply CPCI interfaces by the interface conversion of reflective memory plate, so as to solve imitative in real time
The problem of genuine computer application reflective memory plate is communicated.However, above-mentioned implementation is only applicable to the conventional bus such as CPCI
The real-time simulation computer of type, is not particularly suited for the real-time simulation computer of special bus type such as PHS bus types.
The content of the invention
In view of this, the invention provides a kind of bus support plate, data interaction system, data processing method and device, use
The real-time simulation computer based on special bus type is not suitable for it to solve cpci bus interface support plate of the prior art
Problem, its technical scheme is as follows:
A kind of bus support plate, reflective memory plate is arranged on the bus support plate, and the bus support plate includes:
Bottom plate;
And, the processor on the bottom plate is arranged at, the processor is used to read the first of the reflective memory plate
First data are sent to real-time simulation computer, also, read the second number of the real-time simulation computer by data
According to by second data write-in reflective memory plate.
Preferably, the bus support plate is provided with the first register and the second register;
First register, the first data for storing the processor write-in, so that the real-time simulated animation
Machine reads first data from first register, and first data are that the processor is read from the reflective memory plate
The first data taken;
Second register, the second data for storing the real-time simulation computer write-in, so that the processing
Device reads second data from second register, and second data are write into the reflective memory plate.
Preferably, carried on the bottom plate:The EBI that is connected with the bus of real-time simulation computer, with it is described total
Bus interface circuit, the peripheral hardware debugging interface being connected with external display and the power supply that is connected with power supply of line interface connection connect
Mouthful.
A kind of data interaction system, including:Above-mentioned bus support plate.
A kind of data processing method, applied to the processor of bus support plate, the bus support plate include the processor and
Bottom plate, the processor is arranged on the bottom plate, and reflective memory plate is arranged on the bus support plate, and methods described includes:
The first data of the reflective memory plate are read, first data are sent toward real-time simulation computer;
The second data of the real-time simulation computer are read, second data are write into the reflective memory plate.
Preferably, the bus support plate is provided with the first register and the second register;
The first data of the reflective memory plate are read, first data are sent toward the real-time simulation computer
Process includes:
The first data are read from the reflective memory plate, first data first register are write into, so that institute
State real-time simulation computer and read first data from first register;
The second data of the real-time simulation computer are read, second data are write to the mistake of the reflective memory plate
Journey includes:
The second data are read from second register, second data are that real-time simulation computer write-in is described
Data in second register;
The second data read from second register are write into the reflective memory plate.
A kind of data processing equipment, applied to the processor of bus support plate, the bus support plate include the processor and
Bottom plate, the processor is arranged on the bottom plate, and reflective memory plate is arranged on the bus support plate, and described device includes:
First data-reading unit, the first data for reading the reflective memory plate;
First data transmission unit, for first data to be sent toward real-time simulation computer;
Second data-reading unit, the second data for reading the real-time simulation computer;
Second data write unit, for second data to be write into the reflective memory plate.
Preferably, first data transmission unit includes:
First data write subelement, for first data to be write into first register, so that described real-time
Simulation computer reads the first data from first register;
Second data write unit includes:
Second digital independent subelement, for reading the second data from second register, second data are institute
State the data that real-time simulation computer is write in second register;
Second data write subelement, for second data to be write into reflective memory plate.
Above-mentioned technical proposal has the advantages that:
Bus support plate, data interaction system, data processing method and device that the present invention is provided, can be read reflective memory plate
Data, and the data of reflective memory plate are supplied to real-time simulation computer by bus, can also obtain real-time simulated animation
The data of machine, and write the data into reflective memory plate.Bus support plate that the present invention is provided, data interaction system, data processing
Method and device realizes read-write operation of the real-time simulation computer to reflective memory plate, so as to solve based on special bus
The problem of real-time simulation computer application reflective memory plate is communicated.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is the structural representation of analogue system in the prior art;
Fig. 2 is the structural representation for the bus support plate that the embodiment of the present invention one is provided;
Fig. 3 is the structural representation for the bus support plate that the embodiment of the present invention two is provided;
Fig. 4 is the message format schematic diagram for the fifo register state that the embodiment of the present invention two is provided;
Fig. 5 is the structural representation for the data interaction system that the embodiment of the present invention three is provided;
Fig. 6 is the schematic flow sheet for the data processing method that the embodiment of the present invention four is provided;
Fig. 7 is the schematic flow sheet for the data processing method that the embodiment of the present invention five is provided;
Fig. 8 is the structural representation for the data processing equipment that the embodiment of the present invention six is provided;
Fig. 9 is the structural representation for the data processing equipment that the embodiment of the present invention seven is provided.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Embodiment one
Referring to Fig. 2, a kind of structural representation of the bus support plate provided for the embodiment of the present invention one, reflective memory plate 10
It is arranged on the bus support plate, the bus support plate includes:Bottom plate 11 and processor 12.
Wherein, processor 12 is arranged on bottom plate 11, the first data for reading reflective memory plate 10, by the first data
Real-time simulation computer is sent to, also, reads the second data of real-time simulation computer, the second data are write into reflective memory
Plate 10.
The processor of bus support plate provided in an embodiment of the present invention can be read the data of reflective memory plate, and by reflective memory
The data of plate are supplied to real-time simulation computer by bus, can also obtain the data of real-time simulation computer, and by the data
Write reflective memory plate.The embodiment of the present invention realizes real-time simulation computer to reflective memory by the processor of bus support plate
The read-write operation of plate, so that solve that the real-time simulation computer application reflective memory plate based on special bus communicated asks
Topic.
Embodiment two
Referring to Fig. 3, a kind of structural representation of the bus support plate provided for the embodiment of the present invention two, reflective memory plate 20
It is arranged on the bus support plate, the bus support plate includes:Bottom plate 21 and processor 22.
Wherein, processor 22 is arranged on bottom plate 21, the first data for reading reflective memory plate 20, by the first data
Real-time simulation computer is sent to, also, reads the second data of real-time simulation computer, the second data are write into reflective memory
Plate 20.
In the present embodiment, bus support plate is provided with the first register 23 and the second register 24, the first register 23
Two registers 24 may be disposed at the inside of processor 22.
Processor 22 reads the first data of reflective memory plate 20, and the first data are sent to the tool of real-time simulation computer
Body mode can be:The first data are read from reflective memory plate 20, the first register 23 is write first data into, so that imitative in real time
Genuine computer reads the first data from the first register 23.
Processor 22 reads the second data of real-time simulation computer, and the second data are write into the specific of reflective memory plate 20
Mode can be:Second data are write the second register 24 by real-time simulation computer, and processor 22 is read from the second register 24
The second data are taken, the second data are write into reflective memory plate 20.
The first register 23 and the second register 24 in the present embodiment are FIFO fifo register.Each FIFO
Register corresponds to register address and buffer status.Processor 22 and real-time simulation computer are realized by register address
The read-write operation of data, the read-write of data is all that the message format defined according to buffer status is carried out.
Referring to Fig. 4, being the message format schematic diagram of fifo register state provided in an embodiment of the present invention.Each message
Length is 32, and the D0 in Fig. 3 is the full up mark of fifo register, and D1 is the half-full mark of fifo register, and D4 deposits for FIFO
The complete empty mark of device, D5 is that fifo register indicates in midair, and D27-D16 is the data amount check in fifo register.
The bottom operation to board can be realized by reading and writing board by double-FIFO register, but needs are packaged into application
Top layer interface module is used for technical staff, and its implementation is:Shown a C language on real-time simulation computer in reflection
The C-SFunction that plate is written and read is deposited, and is encapsulated into SIMULINK modules, the module is then put into SIMULINK moulds
In block storehouse.Wherein, SIMULINK modules include:Reflective memory plate initialization module, reflective memory plate read through model, reflective memory plate
Writing module.When being communicated using reflective memory plate, it is only necessary to build SIMULINK models, pulled from SIMULINK module librarys
Reflective memory communication module, SIMULINK models are compiled and download in real-time simulation machine and run emulation, by right
The operation of fifo register, and then realize the communication of reflective memory plate.
In addition, the bottom plate 21 in the present embodiment is carried:The EBI being connected with the bus of real-time simulation computer, with
The bus interface circuit of EBI connection, the peripheral hardware debugging interface being connected with external display, and the electricity being connected with power supply
Source interface.Wherein, user can be appreciated that processor carries out the situation of reading and writing data by external display, and be debugged.
The devices such as processor, bus interface circuit, peripheral hardware debugging interface preferably, in the present embodiment can be integrated in one piece
On circuit board, be integrated with the circuit boards of the devices such as processor, bus interface circuit, peripheral hardware debugging interface as reflective memory plate with
The physical interface of real-time simulation machine.
The processor of bus support plate provided in an embodiment of the present invention can be read the data of reflective memory plate, and by reflective memory
The data of plate are supplied to real-time simulation computer by bus, can also obtain the data of real-time simulation computer, and by the data
Write reflective memory plate.The embodiment of the present invention realizes real-time simulation computer to reflective memory by the processor of bus support plate
The read-write operation of plate, so that solve that the real-time simulation computer application reflective memory plate based on special bus communicated asks
Topic.
Embodiment three
Referring to Fig. 5, a kind of structural representation of the data interaction system provided for the embodiment of the present invention three, the system can
With including:Reflective memory plate 31, bus support plate 32 and real-time simulation computer 33.Wherein, bus support plate 32 can be embodiment
One or embodiment two provide bus support plate, for realizing read-write operation of the real-time simulation computer 33 to reflective memory plate 31.
In data interaction system provided in an embodiment of the present invention, the number of reflective memory plate can be read in the processor of bus support plate
According to, and the data of reflective memory plate are supplied to real-time simulation computer by bus, it can also obtain real-time simulation computer
Data, and write the data into reflective memory plate.The embodiment of the present invention realizes real-time simulation by the processor of bus support plate
Computer is applied in reflection to the read-write operation of reflective memory plate so as to solve the real-time simulation computer based on special bus
Deposit the problem of plate is communicated.
Example IV
Referring to Fig. 6, a kind of schematic flow sheet of the data processing method provided for the embodiment of the present invention four, this method should
For the processor of bus support plate, bus support plate includes processor and bottom plate, and processor is arranged on bottom plate, and reflective memory plate is set
It is placed on bus support plate, this method can include:
Step S101:The first data of reflective memory plate are read, the first data are sent toward real-time simulation computer.
Step S102:The second data of real-time simulation computer are read, the second data are write into reflective memory plate.
Data processing method provided in an embodiment of the present invention, can be read the data of reflective memory plate, and by reflective memory plate
Data real-time simulation computer is supplied to by bus, can also obtain the data of real-time simulation computer, and the data are write
Enter reflective memory plate.Data processing method provided in an embodiment of the present invention can realize real-time simulation computer to reflective memory plate
Read-write operation, so as to solve the problem of real-time simulation computer application reflective memory plate based on special bus is communicated.
Embodiment five
Referring to Fig. 7, a kind of schematic flow sheet of the data processing method provided for the embodiment of the present invention five, this method should
For the processor of bus support plate, bus support plate includes processor and bottom plate, and processor is internally provided with the first register and the
Two registers, processor is arranged on bottom plate, and reflective memory plate is arranged on bus support plate, and this method can include:
Step S201:Read the first data of reflective memory plate.
Step S202:The first register is write first data into, so that real-time simulation computer is read from the first register
First data.
Step S203:The second data are read from the second register, the second data are that real-time simulation computer write-in second is posted
Data in storage.
Step S204:The second data read from the second register are write into reflective memory plate.
The first register and the second register in the present embodiment are preferably FIFO fifo register.
Data processing method provided in an embodiment of the present invention, can be read the data of reflective memory plate, and by reflective memory plate
Data real-time simulation computer is supplied to by bus, can also obtain the data of real-time simulation computer, and the data are write
Enter reflective memory plate.Data processing method provided in an embodiment of the present invention can realize real-time simulation computer to reflective memory plate
Read-write operation, so as to solve the problem of real-time simulation computer application reflective memory plate based on special bus is communicated.
Embodiment six
Referring to Fig. 8, a kind of structural representation of the data processing equipment provided for the embodiment of the present invention six, the device should
For the processor of bus support plate, bus support plate includes processor and bottom plate, and processor is arranged on bottom plate, and reflective memory plate is set
It is placed on bus support plate, the device can include:First data-reading unit 101, the first data transmission unit 102, second number
According to the data write unit 104 of reading unit 103 and second.Wherein:
First data-reading unit 101, the first data for reading reflective memory plate.
First data transmission unit 102, for the first data to be sent toward real-time simulation computer.
Second data-reading unit 103, the second data for reading real-time simulation computer.
Second data write unit 104, for the second data to be write into reflective memory plate.
Data processing equipment provided in an embodiment of the present invention can be read the data of reflective memory plate, and by reflective memory plate
Data are supplied to real-time simulation computer by bus, can also obtain the data of real-time simulation computer, and write the data into
Reflective memory plate.Data processing equipment provided in an embodiment of the present invention realizes reading of the real-time simulation computer to reflective memory plate
Write operation, so as to solve the problem of real-time simulation computer application reflective memory plate based on special bus is communicated.
Embodiment seven
Referring to Fig. 9, a kind of structural representation of the data processing equipment provided for the embodiment of the present invention seven, the device should
For the processor of bus support plate, bus support plate includes processor and bottom plate, and processor is arranged on bottom plate, set inside processor
The first register and the second register are equipped with, reflective memory plate is arranged on bus support plate, and the device can include:First data
Reading unit 201, the first data transmission unit 202, the second data-reading unit 203 and the second data write unit 204.Its
In:
First data-reading unit 201, the first data for reading reflective memory plate.
First data transmission unit 202, for the first data to be sent toward real-time simulation computer.
Further, the first data transmission unit 202 can include:First data write subelement 2021.Wherein, first
Data write subelement 2021, for writing first data into the first register, so that real-time simulation computer is deposited from first
Device reads the first data.
Second data-reading unit 203, the second data for reading real-time simulation computer.
Second data write unit 204, for the second data to be write into reflective memory plate.
Further, the second data write unit 204 includes:Second digital independent subelement 2041 and the write-in of the second data
Subelement 2042.Wherein, the second digital independent subelement 2041, for reading the second data, the second data from the second register
The data write for real-time simulation computer in the second register;Second data write subelement 2042, for by the second data
Write reflective memory plate.
Data processing equipment provided in an embodiment of the present invention can be read the data of reflective memory plate, and by reflective memory plate
Data are supplied to real-time simulation computer by bus, can also obtain the data of real-time simulation computer, and write the data into
Reflective memory plate.Data processing equipment provided in an embodiment of the present invention realizes reading of the real-time simulation computer to reflective memory plate
Write operation, so as to solve the problem of real-time simulation computer application reflective memory plate based on special bus is communicated.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, this is being implemented
The function of each unit can be realized in same or multiple softwares and/or hardware during invention.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.It is real especially for device
Apply for example, because it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to embodiment of the method
Part explanation.System embodiment described above is only schematical, wherein described illustrate as separating component
Unit can be or may not be physically separate, the part shown as unit can be or may not be
Physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to the actual needs
Some or all of module therein is selected to realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying
In the case of creative work, you can to understand and implement.
The present invention can be used in numerous general or special purpose computing system environments or configuration.For example:Personal computer, service
Device computer, handheld device or portable set, laptop device, multicomputer system, the system based on microprocessor, network
PC, minicom, DCE of mainframe computer including any of the above system or equipment etc..
Directly it can be held with reference to the step of the method or algorithm that the embodiments described herein is described with hardware, processor
Capable software module, or the two combination are implemented.Software module can be placed in random access memory(RAM), internal memory, read-only deposit
Reservoir(ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating
In any this actual relation or order.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or using the present invention.
A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention
The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one
The most wide scope caused.