IP Library Granted Patent US 9,032,115
Granted Patent B2
US 9,032,115 · App. 14/006,030 · Granted May 12, 2015

Method and device for passing parameters between processors

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,032,115
App. No.
14/006,030
Granted
May 12, 2015
Kind
B2
Abstract

The disclosure provides a method for passing a parameter between processors. The method comprises the following steps: in a source program of a slave processor, directly introducing a static configuration parameter to be passed; obtaining a relative address of the static configuration parameter when converting the source program of the slave processor into a target program of the slave processor; and configuring directly, by a master processor, a parameter value of the static configuration parameter in the target program of the slave processor according to the obtained relative address of the static configuration parameter. The disclosure also provides a system for passing a parameter between processors. The system has no need to use external hardware such as a dual-port Random Access Memory (RAM) and a register, thus, the requirement of parameter transmission on the external hardware is reduced, and further the area and static power consumption of a chip are reduced. The disclosure reduces the cycle delay of the slave processor in accessing the dual-port RAM and the register, thereby effectively reducing the dynamic power consumption of the chip, improving the processing capability of the slave processor and enhancing the effective performance of the slave processor.

Claims (29)

1. A method for passing a parameter between processors, comprising:

in a source program of a slave processor, directly introducing a static configuration parameter to be passed;

obtaining a relative address of the static configuration parameter when converting the source program of the slave processor into a target program of the slave processor;

configuring directly, by a master processor, a parameter value of the static configuration parameter in the target program of the slave processor according to the obtained relative address of the static configuration parameter,

wherein the obtaining the relative address of the static configuration parameter comprises:

converting the source program of the slave processor into the target program of the slave processor through a compiling program; scanning, by the compiling program, out various static configuration parameters from the source program of the slave processor; extracting the relative address of each static configuration parameter; and generating a configuration parameter address list containing the extracted relative address of each static configuration parameter.

2. The method for passing a parameter between processors according to claim 1 , wherein the directly introducing the static configuration parameter to be passed comprises:

directly introducing the static configuration parameter to be passed in an immediate operand mode which can be identified by a compiling program.

3. The method for passing a parameter between processors according to claim 2 , further comprising:

when a parameter is to be exported, exporting, by the slave processor, the parameter to be passed to the master processor in a Direct Memory Access (DMA) mode.

4. The method for passing a parameter between processors according to claim 1 , further comprising: after obtaining the relative address of the static configuration parameter, storing the configuration parameter address list and the target program of the slave processor;

the configuring directly, by the master processor, the parameter value of the static configuration parameter in the target program of the slave processor according to the obtained relative address of the static configuration parameter comprises: searching, by the master processor, the stored configuration parameter address list for the relative address of the static configuration parameter currently to be passed, and configuring directly the parameter value of the static configuration parameter currently to be passed to an instruction in a corresponding position in the stored target program of the slave processor according to the searched relative address.

5. The method for passing a parameter between processors according to claim 4 , further comprising:

when a parameter is to be exported, exporting, by the slave processor, the parameter to be passed to the master processor in a Direct Memory Access (DMA) mode.

6. The method for passing a parameter between processors according to claim 1 , further comprising:

when a parameter is to be exported, exporting, by the slave processor, the parameter to be passed to the master processor in a Direct Memory Access (DMA) mode.

7. A system for passing a parameter between processors, comprising: a master processor, a slave processor, and a Personal Computer (PC) equipped with a compiling program, wherein

the slave processor is configured to directly introduce a static configuration parameter to be passed in a source program of the slave processor;

the PC is configured to obtain a relative address of the static configuration parameter when converting the source program of the slave processor processed by the slave processor into a target program of the slave processor; and

the master processor is configured to directly configure a parameter value of the static configuration parameter in the target program of the slave processor obtained by the PC according to the relative address of the static configuration parameter obtained by the PC,

wherein the PC is further configured, when converting the source program of the slave processor processed by the slave processor into a target program of the slave processor through a compiling program, to scan out various static configuration parameters from the source program of the slave processor, to extract the relative address of each static configuration parameter, and to generate a configuration parameter address list containing the extracted relative address of each static configuration parameter.

8. The system for passing a parameter between processors according to claim 7 , further comprising: a memory, which is configured to store the configuration parameter address list generated by the PC and the target program of the slave processor obtained by the PC; and

the master processor is further configured to search the memory for the relative address of the static configuration parameter currently to be passed, and to directly configure the parameter value of the static configuration parameter currently to be passed to an instruction in a corresponding position in the target program of the slave processor stored in the memory according to the searched relative address.

9. The system for passing a parameter between processors according to claim 8 , the slave processor is further configured to export a parameter to be passed in the slave processor to the master processor in a Direct Memory Access (DMA) mode.

10. The system for passing a parameter between processors according to claim 9 , wherein the slave processor is further configured to store the parameter to be passed in the slave processor to a DMA memory; and

the master processor is further configured to read the parameter to be passed from the DMA memory.

11. The system for passing a parameter between processors according to claim 7 , the slave processor is further configured to export a parameter to be passed in the slave processor to the master processor in a Direct Memory Access (DMA) mode.

12. The system for passing a parameter between processors according to claim 11 , wherein the slave processor is further configured to store the parameter to be passed in the slave processor to a DMA memory; and

the master processor is further configured to read the parameter to be passed from the DMA memory.

Assignments (3)
CHANGE OF NAME Recorded Apr 24, 2017
From: ZTE MICROELECTRONICS TECHNOLOGY CO., LTD.
To: SANECHIPS TECHNOLOGY CO., LTD.
Reel/Frame 042320/0285 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 28, 2016
From: ZTE CORPORATION
To: ZTE MICROELECTRONICS TECHNOLOGY CO.,LTD
Reel/Frame 037602/0602 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 7, 2014
From: MO, ZHIWEI; CHEN, NING; WANG, HAO
To: ZTE CORPORATION
Reel/Frame 032372/0465 →