JP2000242610A - Method for data transmitting of dual-port ram - Google Patents

Method for data transmitting of dual-port ram

Info

Publication number
JP2000242610A
JP2000242610A JP11040859A JP4085999A JP2000242610A JP 2000242610 A JP2000242610 A JP 2000242610A JP 11040859 A JP11040859 A JP 11040859A JP 4085999 A JP4085999 A JP 4085999A JP 2000242610 A JP2000242610 A JP 2000242610A
Authority
JP
Japan
Prior art keywords
cpu
access
access area
slave
asynchronous
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP11040859A
Other languages
Japanese (ja)
Other versions
JP4123315B2 (en
JP2000242610A5 (en
Inventor
Teruaki Yamaguchi
晃明 山口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP04085999A priority Critical patent/JP4123315B2/en
Publication of JP2000242610A publication Critical patent/JP2000242610A/en
Publication of JP2000242610A5 publication Critical patent/JP2000242610A5/ja
Application granted granted Critical
Publication of JP4123315B2 publication Critical patent/JP4123315B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To make a transmitting processing for data efficient by arranging the dual-port RAM between two CPUs and sectioning the RAM into synchronous access areas and asynchronous access areas. SOLUTION: The dual-port RAM 1 is arranged between the two CPUs 2 and 3 and provided with a synchronous access area A1 which is accessed in synchronism with an interruption signal 4 from a master-side CPU 2 to a slave- side CPU 3 and a synchronous access area A2 for access from the slave-side CPU 3 to the master-side CPU. Further, the RAM is provided with an asynchronous access area B1 which is accessed without synchronizing with the interruption signal 4 from the master CPU 2 to the slave CPU and an asynchronous access area B2 which is accessed without synchronizing with the interruption signal 4 from the slave CPU 3 to the master CPU 2. Thus, the area is divided to efficiently transmit data.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はデュアルポートRA
Mおよびそのデータ受け渡し方法に関し、ある周期に同
期する必要のあるデータの受け渡しと、その周期に同期
する必要のないデータ受け渡しとを並行して行うデュア
ルポートRAMのデータ受け渡し方法に関する。
The present invention relates to a dual port RA.
More specifically, the present invention relates to a data transfer method for a dual-port RAM that performs data transfer that needs to be synchronized with a certain period and data transfer that does not need to be synchronized with the certain period in parallel.

【0002】[0002]

【従来の技術】最近、高速シリアル通信を利用したオー
ルデジタルなサーボアンプが増えてきている。その中で
特に上位コントローラとの通信による同期信号に同期し
て動作するサーボアンプがあり、またサーボアンプはよ
り高度な機能・性能が要求されている。高速シリアル通
信により多量のデータを扱えるようになり、サーボアン
プ内部でもマルチCPU化が必要になってきた。そこ
で、高速でCPU間のデータの受け渡しができるように
デュアルポートRAMが採用されている。従来は使用さ
れているCPU処理速度により機能・性能を限定するこ
とにより扱うデータ量は少なく、同期アクセス領域のみ
で使用していた。
2. Description of the Related Art Recently, all digital servo amplifiers utilizing high-speed serial communication have been increasing. Among them, there is a servo amplifier which operates in synchronization with a synchronization signal by communication with a host controller, and the servo amplifier is required to have higher functions and performance. A large amount of data can be handled by high-speed serial communication, and a multi-CPU is required even inside the servo amplifier. Therefore, a dual-port RAM is employed so that data can be transferred between CPUs at high speed. Conventionally, the amount of data to be handled is small by limiting functions and performance according to the CPU processing speed used, and the data is used only in the synchronous access area.

【0003】[0003]

【発明が解決しようとする課題】しかし、機能・性能向
上及び高速で多量のデータの受け渡しを行おうとする
と、デュアルポートRAMのデータ受け渡し処理のみで
時間を費やしてしまい、主要な機能・性能に関する処理
時間がなくなってしまう問題点があった。本発明はデュ
アルポートRAMによるデータの受け渡し処理を効率よ
くする方法を提供することを目的とする。
However, in order to improve the function and performance and to transfer a large amount of data at a high speed, time is consumed only in the data transfer processing of the dual port RAM, and processing relating to the main functions and performance is performed. There was a problem that time was running out. SUMMARY OF THE INVENTION It is an object of the present invention to provide a method for efficiently performing data transfer processing by a dual port RAM.

【0004】[0004]

【課題を解決するための手段】上記問題を解決するた
め、本発明は、2つのCPUの間に配置されたデュアル
ポートRAMのデータ受け渡し方法において、前記デュ
アルポートRAMを、マスタ側CPUからスレーブ側C
PUへの割り込み信号に同期させてアクセスされる同期
アクセス領域と、前記割り込み信号によらずにアクセス
される非同期アクセス領域とに区分けしたことを特徴と
し、前記同期アクセス領域へは前記デュアルポートRA
Mを時間で区切ることにより、前記非同期アクセス領域
へはアクセスすることを表すアクセス権フラグを設定す
ることにより、それぞれ並行してアクセスを行うことを
特徴とする。
In order to solve the above problem, the present invention relates to a method for transferring data of a dual port RAM arranged between two CPUs. C
A synchronous access area which is accessed in synchronization with an interrupt signal to the PU; and an asynchronous access area which is accessed without using the interrupt signal.
M is divided by time, and an access right flag indicating access to the asynchronous access area is set, so that access is performed in parallel with each other.

【0005】[0005]

【発明の実施の形態】本発明の実施形態を図において説
明する。図1は本発明の原理説明図である。1はデュア
ルポートRAM、2はマスタCPU、3はスレーブCP
U、4はマスタCPUからスレーブCPUへの同期割り
込み信号、A1はマスタCPUからスレーブCPUへの
データ受け渡し用の同期アクセス領域、A2はスレーブ
CPUからマスタCPUへのデータ受け渡し用の同期ア
クセス領域、B1はマスタCPUからスレーブCPUへ
のデータ受け渡し用の非同期アクセス領域、B2はスレ
ーブCPUからマスタCPUへのデータ受け渡し用の非
同期アクセス領域である。同期アクセス領域A1、A2
は割り込み信号に同期してデータの受け渡しを時間で区
切って行う。これを同期アクセスと呼ぶ。また、非同期
アクセス領域B1、B2は割り込み信号によらずデータ
の受け渡しを行う。これを非同期アクセスと呼ぶ。図2
は同期アクセスによるデータの受け渡しタイミングを示
した図である。同期アクセスは図2のように割り込み信
号4が一定周期TcでマスタCPUからスレーブCPU
へ出力されることによって行われる。図2において、T
cは割り込み信号周期、T0はスレーブCPUが同期ア
クセス領域A1をアクセスする最大規定時間、T1はス
レーブCPUがA2をアクセスする最大規定時間、M0
はマスタCPUが同期アクセス領域A2をアクセス可能
な時間帯、M1はマスタCPUが同期アクセス領域A1
をアクセス可能な時間帯、S0はスレーブCPUが同期
アクセス領域A1をアクセス可能な時間帯、S1はスレ
ーブCPUが同期アクセス領域A2をアクセス可能な時
間帯である。マスタCPU2、スレーブCPU3の同期
アクセスの処理を以下に示す。マスタCPU2は割り込
み信号4の出力後、同期アクセス領域A2のデータを次
の割り込み信号4の出力する時間T0前までに読み出し
を完了する。その後スレーブCPU3は時間T0の間に
同期アクセス領域A2にデータを書き込む。また、スレ
ーブCPU3は割り込み信号4を受信後、時間T1の間
に同期アクセス領域A1の読み出しを完了する。その
後、マスタCPU2は同期アクセス領域A1への書き込
みを次の割り込み信号4の出力するまでに完了する。図
3は非同期アクセスによるデータ受け渡し手順を説明す
る図である。ステップW11〜14はマスタCPU2の
処理、ステップW21〜24はスレーブCPU3の処理
である。非同期アクセスは図3のようにマスタCPU
2、スレーブCPU3が非同期アクセス領域B1、B2
にアクセスしていることを相手に伝えるためのアクセス
権フラグとしてそれぞれの非同期アクセス領域B1、B
2にFLAG1、FLAG2を割り付けてある。マスタ
CPU2が、非同期アクセス領域B2を読み出しする、
または非同期アクセス領域B1へ書き込みをするための
処理を以下に示す。マスタCPU2は非同期アクセス領
域B1のFLAG1をONし(ステップW11)、非同
期アクセス領域B2のFLAG2を読み出し(ステップ
W12)、ONしていたら非同期アクセス領域B1,B
2の読み書きをしないでFLAG1をOFFする(ステ
ップW14)。FLAG2がOFFしていたら、非同期
アクセス領域B2の読み出し、または非同期アクセス領
域B1へ書き込みを行う(ステップW13)。終了した
らFLAG1をOFFにする(ステップW14)。スレ
ーブCPU3が、非同期アクセス領域B1を読み出す
る、または非同期アクセス領域B2へ書き込みをするた
めの処理を以下に示す。スレーブCPU3は非同期アク
セス領域B2のFLAG2をONし(ステップW2
1)、非同期アクセス領域B1のFLAG1を読み出し
(ステップW22)、ONしていたら非同期アクセス領
域B1,B2の読み書きをしないでFLAG2をOFF
する(ステップW24)。FLAG1がOFFしていた
ら、非同期アクセス領域B1の読み出し、または非同期
アクセス領域B2へ書き込みを行う(ステップW2
3)。終了したらFLAG2をOFFにする(ステップ
W24)。非同期アクセスは同期アクセスの空いた時間
を利用して行う。よって同期アクセス,非同期アクセス
を並行して行うことが可能となる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a diagram illustrating the principle of the present invention. 1 is a dual port RAM, 2 is a master CPU, 3 is a slave CP
U, 4 are synchronous interrupt signals from the master CPU to the slave CPU, A1 is a synchronous access area for data transfer from the master CPU to the slave CPU, A2 is a synchronous access area for data transfer from the slave CPU to the master CPU, B1 Is an asynchronous access area for data transfer from the master CPU to the slave CPU, and B2 is an asynchronous access area for data transfer from the slave CPU to the master CPU. Synchronous access area A1, A2
Performs data transfer in synchronization with an interrupt signal by time. This is called synchronous access. The asynchronous access areas B1 and B2 exchange data regardless of the interrupt signal. This is called asynchronous access. FIG.
FIG. 3 is a diagram showing data transfer timing by synchronous access. In the synchronous access, as shown in FIG.
This is done by being output to In FIG. 2, T
c is the interrupt signal period, T0 is the maximum specified time for the slave CPU to access the synchronous access area A1, T1 is the maximum specified time for the slave CPU to access A2, M0
Is a time zone in which the master CPU can access the synchronous access area A2, and M1 is a time zone in which the master CPU can access the synchronous access area A1.
, S0 is a time zone in which the slave CPU can access the synchronous access area A1, and S1 is a time zone in which the slave CPU can access the synchronous access area A2. The processing of synchronous access by the master CPU 2 and the slave CPU 3 will be described below. After outputting the interrupt signal 4, the master CPU 2 completes reading the data in the synchronous access area A2 before the time T0 when the next interrupt signal 4 is output. Thereafter, the slave CPU 3 writes data in the synchronous access area A2 during the time T0. After receiving the interrupt signal 4, the slave CPU 3 completes reading the synchronous access area A1 during the time T1. Thereafter, the master CPU 2 completes writing to the synchronous access area A1 until the next interrupt signal 4 is output. FIG. 3 is a view for explaining a data transfer procedure by asynchronous access. Steps W11 to W14 are processes of the master CPU 2, and steps W21 to W24 are processes of the slave CPU 3. Asynchronous access is the master CPU as shown in FIG.
2. The slave CPU 3 is in the asynchronous access area B1, B2
As an access right flag for notifying the other party that the user is accessing the
2, FLAG1 and FLAG2 are allocated. The master CPU 2 reads the asynchronous access area B2,
Alternatively, processing for writing to the asynchronous access area B1 will be described below. The master CPU 2 turns on the FLAG 1 of the asynchronous access area B1 (step W11), reads the FLAG 2 of the asynchronous access area B2 (step W12), and if it is on, the asynchronous access areas B1, B
FLAG1 is turned off without reading / writing (Step W14). If the FLAG2 has been turned off, the asynchronous access area B2 is read or the asynchronous access area B1 is written (step W13). When the processing is completed, FLAG1 is turned off (step W14). The process for the slave CPU 3 to read the asynchronous access area B1 or write to the asynchronous access area B2 is described below. The slave CPU 3 turns on the FLAG 2 of the asynchronous access area B2 (step W2).
1), FLAG1 of asynchronous access area B1 is read (step W22), and if ON, FLAG2 is turned OFF without reading / writing of asynchronous access areas B1 and B2.
(Step W24). If the FLAG 1 is OFF, the reading of the asynchronous access area B1 or the writing to the asynchronous access area B2 is performed (step W2).
3). When the processing is completed, FLAG2 is turned off (step W24). Asynchronous access is performed using the vacant time of synchronous access. Therefore, synchronous access and asynchronous access can be performed in parallel.

【0006】[0006]

【発明の効果】以上説明したように本発明では、CPU
間のデータの受け渡し処理を行う媒体であるデュアルポ
ートRAMを、割り込み信号と同期した同期アクセス領
域と割り込み信号によらない非同期アクセス領域に分け
て使用するように構成したので、周期的で高速な処理を
必要とするデータは同期アクセスで行い、任意の周期で
低速な処理でも可能なデータは非同期アクセスで行うこ
とにより、データの区分ができ、CPUの処理速度に応
じて効率よく多量のデータが扱えるようになる。
As described above, according to the present invention, the CPU
The dual-port RAM, which is the medium for transferring data between the two, is configured to be used separately in a synchronous access area synchronized with the interrupt signal and an asynchronous access area not depending on the interrupt signal. Data that needs to be processed by synchronous access, and data that can be processed at a low speed in an arbitrary cycle can be separated by performing asynchronous access, so that a large amount of data can be handled efficiently according to the processing speed of the CPU. Become like

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本発明のデュアルポートRAMデータ受け渡
し方法の原理を説明する図である。
FIG. 1 is a diagram illustrating the principle of a dual port RAM data transfer method according to the present invention.

【図2】 同期アクセスによるデータ受け渡しタイミン
グを示す図である。
FIG. 2 is a diagram showing data transfer timing by synchronous access.

【図3】 非同期アクセスによるデータ受け渡し手順を
説明する図である。
FIG. 3 is a diagram illustrating a data transfer procedure by asynchronous access.

【符号の説明】[Explanation of symbols]

1 デュアルポートRAM 2 マスタCPU 3 スレーブCPU 4 マスタCPUからCPUスレーブへの同期割り込み
信号 A1 同期アクセス領域(マスタからスレーブへのデー
タ領域) A2 同期アクセス領域(スレーブからマスタへのデー
タ領域) B1 非同期アクセス領域(マスタからスレーブへのデ
ータ領域) B2 非同期アクセス領域(スレーブからマスタへのデ
ータ領域) Tc 割り込み信号周期 T0 スレーブCPUがA1をアクセスする最大規定時
間 T1 スレーブCPUがA2をアクセスする最大規定時
間 M0 マスタCPUがA2をアクセス可能な時間帯 M1 マスタCPUがA1をアクセス可能な時間帯 S0 スレーブCPUがA1をアクセス可能な時間帯 S1 スレーブCPUがA2をアクセス可能な時間帯 W11〜14 マスタCPUの処理ステップ W21〜24 スレーブCPUの処理ステップ
Reference Signs List 1 dual port RAM 2 master CPU 3 slave CPU 4 synchronous interrupt signal from master CPU to CPU slave A1 synchronous access area (data area from master to slave) A2 synchronous access area (data area from slave to master) B1 asynchronous access Area (data area from master to slave) B2 Asynchronous access area (data area from slave to master) Tc Interrupt signal period T0 Maximum specified time for slave CPU to access A1 T1 Maximum specified time for slave CPU to access A2 M0 Time zone during which the master CPU can access A2 M1 Time zone during which the master CPU can access A1 S0 Time zone during which the slave CPU can access A1 S1 Time zone during which the slave CPU can access A2 W11-14 Processing steps of master CPU W21-24 Processing steps of slave CPU

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 2つのCPUの間に配置されたデュアル
ポートRAMのデータ受け渡し方法において、前記デュ
アルポートRAMを、マスタ側CPUからスレーブ側C
PUへの割り込み信号に同期させてアクセスされる同期
アクセス領域と、前記割り込み信号によらずにアクセス
される非同期アクセス領域とに区分けしたことを特徴と
するデュアルポートRAMのデータの受け渡し方法。
1. A data transfer method for a dual port RAM disposed between two CPUs, wherein the dual port RAM is transferred from a master CPU to a slave C
A data transfer method for a dual-port RAM, wherein the data is divided into a synchronous access area accessed in synchronization with an interrupt signal to a PU and an asynchronous access area accessed without using the interrupt signal.
【請求項2】 前記同期アクセス領域へは前記デュアル
ポートRAMを時間で区切ることにより、前記非同期ア
クセス領域へはアクセスすることを表すアクセス権フラ
グを設定することにより、それぞれ並行してアクセスを
行うことを特徴とする請求項1記載のデュアルポートR
AMのデータ受け渡し方法。
2. Accessing the synchronous access area in parallel by dividing the dual port RAM by time, and setting an access right flag indicating access to the asynchronous access area. The dual port R according to claim 1, wherein
AM data transfer method.
JP04085999A 1999-02-19 1999-02-19 Data transfer apparatus and method for dual port RAM Expired - Fee Related JP4123315B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04085999A JP4123315B2 (en) 1999-02-19 1999-02-19 Data transfer apparatus and method for dual port RAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04085999A JP4123315B2 (en) 1999-02-19 1999-02-19 Data transfer apparatus and method for dual port RAM

Publications (3)

Publication Number Publication Date
JP2000242610A true JP2000242610A (en) 2000-09-08
JP2000242610A5 JP2000242610A5 (en) 2006-04-06
JP4123315B2 JP4123315B2 (en) 2008-07-23

Family

ID=12592283

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04085999A Expired - Fee Related JP4123315B2 (en) 1999-02-19 1999-02-19 Data transfer apparatus and method for dual port RAM

Country Status (1)

Country Link
JP (1) JP4123315B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7882344B2 (en) 2005-12-06 2011-02-01 Samsung Electronics Co., Ltd. Memory system having a communication channel between a first processor and a second processor and memory management method that uses the communication channel
JP4940436B2 (en) * 2005-11-08 2012-05-30 エスティー‐エリクソン、ソシエテ、アノニム Control device having flag register for synchronization of inter-core communication
US8209527B2 (en) 2006-10-26 2012-06-26 Samsung Electronics Co., Ltd. Memory system and memory management method including the same
US9032120B2 (en) 2012-10-24 2015-05-12 Stmicroelectronics S.R.L. Device and method for writing/reading a memory register shared by a plurality of peripherals
KR101660022B1 (en) * 2015-09-10 2016-09-27 아둘람테크 주식회사 Apparatus and method for improving efficiency of bus interface

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4940436B2 (en) * 2005-11-08 2012-05-30 エスティー‐エリクソン、ソシエテ、アノニム Control device having flag register for synchronization of inter-core communication
US7882344B2 (en) 2005-12-06 2011-02-01 Samsung Electronics Co., Ltd. Memory system having a communication channel between a first processor and a second processor and memory management method that uses the communication channel
US8209527B2 (en) 2006-10-26 2012-06-26 Samsung Electronics Co., Ltd. Memory system and memory management method including the same
US9032120B2 (en) 2012-10-24 2015-05-12 Stmicroelectronics S.R.L. Device and method for writing/reading a memory register shared by a plurality of peripherals
KR101660022B1 (en) * 2015-09-10 2016-09-27 아둘람테크 주식회사 Apparatus and method for improving efficiency of bus interface

Also Published As

Publication number Publication date
JP4123315B2 (en) 2008-07-23

Similar Documents

Publication Publication Date Title
JP3418968B2 (en) High performance high bandwidth memory and system using SDRAM
EP0135879B1 (en) Interface circuit and method for connecting a memory controller with a synchronous or an asynchronous bus system
EP1769361B1 (en) Method and system for terminating write commands in a hub-based memory system
JP2004171209A (en) Shared memory data transfer device
JP2000242610A (en) Method for data transmitting of dual-port ram
JPH10143466A (en) Bus communication system
JPH01272247A (en) Packet data generating device
JP2000242610A5 (en)
CN110008162A (en) A kind of buffer interface circuit and the methods and applications based on the circuit transmission data
JPH0222748A (en) Non-volatile memory control circuit
JPH1131133A (en) Intra-module synchronization method
JPH02226454A (en) Computer system and transfer of data
JP2687716B2 (en) Information processing device
JPS622348B2 (en)
JPH02211571A (en) Information processor
JP2713204B2 (en) Information processing system
JPS63133252A (en) Bus control system
JP3399776B2 (en) Computer and method for transferring peripheral device control data in computer
JP2002189704A (en) Shared memory with block transfer function
JPH06149749A (en) Data transfer system among plural processors
JPS63216161A (en) Data transfer system
JPH0555908B2 (en)
JPH02270432A (en) D-channel protocol multiplex processing system for isdn
JPS61153770A (en) Image processor
JPH0581185A (en) Inter-cpu communication system

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060216

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060216

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070330

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070419

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070614

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070614

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080409

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080422

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110516

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130516

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140516

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees