Dual-processor data exchange method

A dual-processor, data exchange technology, applied in the field of data communication, can solve the problems of complex software processing and low serial bus data throughput, and achieve the effect of reliable exchange

Active Publication Date: 2019-08-16
XIAN AVIATION COMPUTING TECH RES INST OF AVIATION IND CORP OF CHINA
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the data throughput of these serial buses is low; traditionally, the busy signal of the dual-port RAM address is used to judge the data conflict at the access address, and there are abnormal problems such as conflict address data recovery, and the software processing is complicated.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Dual-processor data exchange method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] Such as figure 1 As shown, a simple, reliable and effective dual-processor data exchange method is provided.

[0033] The technical solution of the present invention is: the processor accesses the semaphore state of the dual-port RAM, and accesses the corresponding dual-port RAM data space according to the semaphore state; Whether the read data area is valid; the processor then accesses the semaphore state of the dual-port RAM, and judges whether the read operation or the write operation is faulty according to the semaphore state;

[0034] Described double processor data exchange method, its specific process is as follows:

[0035] Step 1: Configure the dual-port RAM data space and semaphore address

[0036] The dual-port RAM data space is divided into at least one non-zero block data area according to the same port address, and the non-zero block data area has a semaphore address and a semaphore state.

[0037] Step 2: Generation of semaphore state

[0038] When th...

Embodiment 2

[0051] Below in conjunction with accompanying drawing and embodiment the present invention will be further described:

[0052] The processor of the present invention accesses the corresponding dual-port RAM data space according to the semaphore state, and then accesses the data at the corresponding semaphore address to judge whether the data area is valid. Both processors can access the semaphore status of the same data area, realizing the reliable exchange of data between the two processors.

[0053] see figure 1 , the specific process of the dual-processor data exchange method is as follows:

[0054] Step 1: Configure the dual-port RAM data space and semaphore address

[0055]Before the processor exchanges data, determine the number of data areas and the size of the data area required by the processor according to the system input and output functions, and divide the dual-port RAM storage space into different data areas corresponding to positive integer blocks according to...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a dual-processor data exchange method, which is applied to a dual processor, the dual processor comprises a sending processor and a receiving processor, and the method comprisesthe following steps: the dual processor configures a dual-port RAM data space and a semaphore address; the dual-processor operates the semaphore address to obtain a semaphore state; and the dual processor accesses the dual-port RAM data space according to the semaphore state.

Description

technical field [0001] The invention belongs to data communication technology, and in particular relates to a dual-processor data exchange method. Background technique [0002] In the fields of aviation and industrial control, it is generally necessary for the main and auxiliary processors to jointly complete the I / O input and output control. The main processor is used for the realization of the control strategy of the controller, and the auxiliary processor is used for the collection and output control of I / O input data. The auxiliary processor transmits the collected input data to the main processor after being processed by a specific method, and participates in control decision-making; the main processor transmits the output control information to the auxiliary processor, and the auxiliary processor controls the action of the actuator according to the output control information. This kind of application itself requires that the control has high reliability, the data has ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F15/17G06F13/12
CPCG06F15/17G06F13/126Y02D10/00
Inventor 孙东亚毛宁阎景波黄新阳冯浩
Owner XIAN AVIATION COMPUTING TECH RES INST OF AVIATION IND CORP OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products