[go: up one dir, main page]

JPH05298248A - Data transfer control method - Google Patents

Data transfer control method

Info

Publication number
JPH05298248A
JPH05298248A JP4096352A JP9635292A JPH05298248A JP H05298248 A JPH05298248 A JP H05298248A JP 4096352 A JP4096352 A JP 4096352A JP 9635292 A JP9635292 A JP 9635292A JP H05298248 A JPH05298248 A JP H05298248A
Authority
JP
Japan
Prior art keywords
cpu
access
read
control unit
prohibited area
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.)
Pending
Application number
JP4096352A
Other languages
Japanese (ja)
Inventor
Yuji Yoshitani
裕二 吉谷
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP4096352A priority Critical patent/JPH05298248A/en
Publication of JPH05298248A publication Critical patent/JPH05298248A/en
Pending legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)
  • Executing Machine-Instructions (AREA)
  • Multi Processors (AREA)
  • Information Transfer Systems (AREA)
  • Memory System (AREA)

Abstract

(57)【要約】 【目的】 本発明は、CPUレジスタのデータ転送制御
方式に関し、DSPからの書き込みとCPUからの読み
出しの競合を防止することを目的とする。 【構成】 デジタルシグナルプロセッサ1からCPUリ
ード/ライトレジスタ3へのデータ書き込み時に、デジ
タルシグナルプロセッサ1はデジタルシグナルプロセッ
サ制御部4に対して書き込み許可アクセスを行い、書き
込み許可アクセスを受けて競合制御部6は、デジタルシ
グナルプロセッサ制御部4から出力される制御信号を用
いてCPUアクセス禁止領域を生成し、次にCPU2か
らの読み出し時には、競合制御部6にて生成したアクセ
ス禁止領域の状態をCPU制御部5で調べ、禁止領域発
生時はCPUリード/ライトレジスタ3への読み出しア
クセスを保留し、禁止領域終了時にその読み出しアクセ
スを再開し、禁止領域発生がない時は、通常動作によっ
てCPU2からの読み出しを行うことを特徴とする。
(57) [Summary] [Object] The present invention relates to a data transfer control system of a CPU register, and an object thereof is to prevent contention between writing from a DSP and reading from a CPU. Constitution: When data is written from the digital signal processor 1 to the CPU read / write register 3, the digital signal processor 1 performs write permission access to the digital signal processor control unit 4, and receives the write permission access and receives the competition control unit 6 Generates a CPU access prohibited area using a control signal output from the digital signal processor control unit 4, and then, when reading from the CPU 2, reads the state of the access prohibited area generated by the conflict control unit 6 into the CPU control unit. 5, the read access to the CPU read / write register 3 is suspended when the prohibited area occurs, and the read access is restarted when the prohibited area ends. When the prohibited area does not occur, the normal operation is performed to read from the CPU 2. It is characterized by performing.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、デジタルシグナルプロ
セッサ(以下DSPと呼称する)とCPU間におけるデ
ータ転送制御方式に関し、より詳しくは、DSPとCP
U間のデータ転送時におけるCPUのリード/ライトレ
ジスタへの書き込み手順を用いたDSPとCPU間のデ
ータ転送制御方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transfer control system between a digital signal processor (hereinafter referred to as a DSP) and a CPU, more specifically, a DSP and a CP.
The present invention relates to a data transfer control method between a DSP and a CPU, which uses a write procedure to a read / write register of a CPU when data is transferred between U.

【0002】本発明は、ATM伝送における音声の復号
化処理を行う音声CODECに好適である。ATM伝送にお
いて、一般的にDSPはセルデータに含まれる各種伝送
に関する情報を処理するために用いられ、その処理結
果、例えば伝送のゆらぎやエラー率はCPUのレジスタ
に蓄えられ、装置側はそのレジスタの内容を読みにいく
方式が採用されている。しかしながら、DSPとCPU
間の動作速度は異なっており非同期で動作するため、D
SPとCPU間でデータの転送を行うとき、互いのアク
セスが競合する場合が発生する。アクセスが競合する
と、結果としてデータが変化するため、DSPとCPU
のアクセスの競合を防止する制御方式の実現が要望され
ていた。
The present invention is suitable for a voice CODEC for performing a voice decoding process in ATM transmission. In ATM transmission, DSP is generally used to process various transmission information contained in cell data, and the processing result, for example, transmission fluctuation and error rate are stored in a register of CPU, and the device side registers The method to read the contents of is adopted. However, DSP and CPU
Since the operation speed between the two is different and they operate asynchronously, D
When data is transferred between the SP and the CPU, the access may conflict with each other. When access conflicts, the data changes as a result, so the DSP and CPU
There has been a demand for the realization of a control method that prevents the contention of the access.

【0003】[0003]

【従来の技術】従来のDSPとCPUのデータ転送を行
うシステム構成を図6に示す。まず、DSPからCPU
のリード/ライトレジスタへのデータ書き込み手順を説
明すると、DSP1からCPUのリード/ライトレジス
タ部3へのデータの書き込みは、DSP制御部4によ
り、DSP1から出力された制御信号を用いてリード/
ライトレジスタ部3への書き込みを可能としている。
2. Description of the Related Art FIG. 6 shows a conventional system configuration for transferring data between a DSP and a CPU. First, DSP to CPU
The data writing procedure from the DSP 1 to the read / write register section 3 of the CPU will be described by using the control signal output from the DSP 1 by the DSP control section 4.
Writing to the write register unit 3 is possible.

【0004】次に、CPU2からCPUのリード/ライ
トレジスタ部3へのデータの読み出し手順を説明する
と、CPU2からCPUのリード/ライトレジスタ部3
に格納されているデータを読み出す場合は、CPU制御
部5により出力された制御信号を用いてCPUのリード
/ライトレジスタ部3からの読み出しを可能にしてい
る。
Next, the procedure of reading data from the CPU 2 to the read / write register section 3 of the CPU will be described. The CPU 2 reads / write register section 3 of the CPU.
When the data stored in the CPU is read, the control signal output from the CPU control unit 5 is used to enable reading from the read / write register unit 3 of the CPU.

【0005】以上のように、DSP制御部4およびCP
U制御部5は、それぞれ独自にCPUのリード/ライト
レジスタ部3を制御しているため、DSP1からの書き
込みとCPU2からの読み出しとが競合する場合が発生
し、その場合には読み出しデータが変化していた。した
がって、従来のデータ転送制御方式では、CPU2は数
回連続してアクセスを行い、読み出しデータを比較し、
同一データのみを正常データとすることにより、競合に
起因するデータの変化を防止していた。図7に示すフロ
ーチャート参照。
As described above, the DSP controller 4 and the CP
Since the U control unit 5 independently controls the read / write register unit 3 of the CPU, writing from the DSP 1 and reading from the CPU 2 may conflict with each other, in which case the read data changes. Was. Therefore, in the conventional data transfer control method, the CPU 2 makes continuous accesses several times to compare read data,
By changing only the same data to normal data, changes in data due to competition were prevented. See the flowchart shown in FIG.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、従来の
データ転送制御方式では、上記したようにDSPからの
データ書き込みと、CPUからのデータ読み出しの競合
によるデータの変化を防止するために、読み出し側で数
回、連続アクセスを行わなければならず、さらに、デー
タの比較作業も行わなければならないため、CPUの処
理手順が複雑になり処理速度も低下するという問題があ
った。本発明は以上の事情を考慮してなされたもので、
CPUからCPUのリード/ライトレジスタの読み出し
アクセス時に、DSPからの書き込みアクセスが発生し
ても、読み出しデータの変化を防止することのできるデ
ータ転送制御方式を提供するものである。
However, in the conventional data transfer control method, as described above, in order to prevent the change of data due to the conflict between the data writing from the DSP and the data reading from the CPU, the data is read on the reading side. Since continuous access must be performed several times and data comparison work must also be performed, there is a problem that the processing procedure of the CPU becomes complicated and the processing speed also decreases. The present invention has been made in consideration of the above circumstances,
A data transfer control method capable of preventing a change in read data even when a write access from a DSP occurs during a read access from a CPU to a read / write register of the CPU.

【0007】[0007]

【課題を解決するための手段】図1は本発明の原理構成
を示すブロック図である。同図において本発明は、デジ
タルシグナルプロセッサ1からCPUリード/ライトレ
ジスタ3へのデータ書き込み時に、デジタルシグナルプ
ロセッサ1はデジタルシグナルプロセッサ制御部4に対
して書き込み許可アクセスを行い、書き込み許可アクセ
スを受けて競合制御部6は、デジタルシグナルプロセッ
サ制御部4から出力される制御信号を用いてCPUアク
セス禁止領域を生成し、次にCPU2からの読み出し時
には、競合制御部6にて生成したアクセス禁止領域の状
態をCPU制御部5で調べ、禁止領域発生時はCPUリ
ード/ライトレジスタ3への読み出しアクセスを保留
し、禁止領域終了時にその読み出しアクセスを再開し、
禁止領域発生がない時は、通常動作によってCPU2か
らの読み出しを行うことを特徴とするデータ転送制御方
式である。
FIG. 1 is a block diagram showing the principle configuration of the present invention. In the figure, according to the present invention, when data is written from the digital signal processor 1 to the CPU read / write register 3, the digital signal processor 1 performs write permission access to the digital signal processor control unit 4 and receives the write permission access. The contention control unit 6 uses the control signal output from the digital signal processor control unit 4 to generate the CPU access prohibited area, and when reading from the CPU 2 next time, the state of the access prohibited area generated by the contention control unit 6 Is checked by the CPU control unit 5, and when the prohibited area occurs, the read access to the CPU read / write register 3 is suspended, and when the prohibited area ends, the read access is restarted,
The data transfer control method is characterized in that when no prohibited area is generated, the CPU 2 reads out data by a normal operation.

【0008】[0008]

【作用】本発明に従えば、競合制御部6で生成されたC
PUアクセス禁止領域を用いて、CPU2からの読み出
しを制御することにより、DSP1からの書き込みとC
PU2からの読み出しの競合が防止され、CPU2読み
出し側において、数回の連続アクセス作業およびデータ
の比較作業からなる煩雑な処理をそれぞれ解消すること
ができる。
According to the present invention, the C generated by the competition control unit 6
By controlling reading from the CPU 2 using the PU access prohibited area, writing from the DSP 1 and C
Contention of reading from the PU 2 is prevented, and the CPU 2 reading side can eliminate complicated processing including several continuous access operations and data comparison operations.

【0009】[0009]

【実施例】以下、図に示す実施例に基づいて本発明を詳
述する。なお、これによって本発明は限定されるもので
はない。図2は本発明のデータ転送制御方式を実施する
ための装置の構成図であり、CPU68000およびD
SP87064からなる構成である。このような構成に
おいてDSP1からCPUのリード/ライトレジスタ3
へのデータ書き込み手順を以下に説明する。
The present invention will be described in detail below based on the embodiments shown in the drawings. The present invention is not limited to this. FIG. 2 is a block diagram of an apparatus for carrying out the data transfer control system of the present invention.
This is a configuration including SP87064. In such a configuration, the DSP 1 to the CPU read / write register 3
The procedure for writing data to the memory will be described below.

【0010】まずDSP1は、DSP制御部4に対して
書き込み許可アクセスを行う。DSP制御部4は、書き
込み許可アクセスを検出し、書き込み許可信号Aをアク
セス禁止領域生成部6へ転送する。
First, the DSP 1 makes write permission access to the DSP control section 4. The DSP control unit 4 detects the write permission access and transfers the write permission signal A to the access prohibited area generation unit 6.

【0011】次いでアクセス禁止領域生成部6は、書き
込み許可信号Aを用いて禁止領域信号Bを生成し、生成
された禁止領域信号Bをさらに競合制御部7へ転送す
る。次に、DSP1は、書き込みアクセスをDSP制御
部4に対して行い、データ保持部8へデータの書き込み
を行う。また、DSP制御部4は同時に書き込みアクセ
ス完了を検出し、書き込み許可信号Aを解除し、アクセ
ス禁止領域生成部6へ転送する。アクセス禁止領域生成
部6では、禁止領域信号Bを解除し競合制御部7へ転送
する。
Next, the access prohibition area generator 6 generates a prohibition area signal B using the write permission signal A, and further transfers the generated prohibition area signal B to the competition controller 7. Next, the DSP 1 performs write access to the DSP control unit 4 and writes data in the data holding unit 8. Further, the DSP control unit 4 simultaneously detects the completion of the write access, releases the write permission signal A, and transfers it to the access prohibited area generation unit 6. The access prohibited area generator 6 releases the prohibited area signal B and transfers it to the conflict controller 7.

【0012】次に、CPU2からCPUのリード/ライ
トレジスタ3へのデータ読み出し手順を説明する。CP
U2は、CPU制御部5に対して読み出しアクセスを行
い、CPU制御部5はその読み出しアクセスを検出し、
競合制御部7へ読み出し信号Cを転送する。競合制御部
7は、上記した禁止領域信号Bと読み出し信号Cを用い
て競合防止の制御を行う。すなわち、禁止領域信号Bと
読み出し信号Cが重なっている間はCPU2へのデータ
転送終了信号XACTの転送を保持し、重なりが解除さ
れるとデータ転送終了信号XACTをCPU2へ転送
し、CPU2は読み出しアクセスが完了する。
Next, the procedure for reading data from the CPU 2 to the read / write register 3 of the CPU will be described. CP
U2 makes a read access to the CPU control unit 5, and the CPU control unit 5 detects the read access,
The read signal C is transferred to the competition control unit 7. The competition controller 7 controls the competition by using the prohibited area signal B and the read signal C described above. That is, while the prohibited area signal B and the read signal C overlap, the transfer of the data transfer end signal XACT to the CPU 2 is held, and when the overlap is released, the data transfer end signal XACT is transferred to the CPU 2, and the CPU 2 reads the data. Access is complete.

【0013】CPU2は、データ転送終了信号XACT
の“Low”パルスを受信し、データを確定する。なお、
“High”パルスの時は、“Low”パルスを受信するまで
待機状態となる。
The CPU 2 sends a data transfer end signal XACT.
Confirm the data by receiving the “Low” pulse of. In addition,
When it is a "High" pulse, it stands by until it receives a "Low" pulse.

【0014】図3から図5は上記した動作をタイムチャ
ートで示したものである。図3はCPU2とDSP1と
の間に重なりがない場合を示し、図中DSPライトにお
ける記号“A”は図2のDSP制御部から出力される信
号Aを示し、また、図中“B”は図2のアクセス禁止領
域生成部6から出力される信号Bを示している。図4お
よび図5はCPU2とDSP1からのアクセスに重なり
がある場合を示している。
3 to 5 are time charts showing the above operation. FIG. 3 shows the case where there is no overlap between the CPU 2 and the DSP 1, the symbol “A” in the DSP write in the figure indicates the signal A output from the DSP control section in FIG. 2, and the symbol “B” in the figure. The signal B output from the access-prohibited area generation unit 6 in FIG. 2 is shown. 4 and 5 show a case where the accesses from the CPU 2 and the DSP 1 overlap.

【0015】[0015]

【発明の効果】以上説明したように、本発明によればC
PUからCPUのリード/ライトレジスタの読み出しア
クセス最中に、DSPからの書き込みアクセスが発生し
ても、DSPからの書き込みアクセスが終了するまで、
CPUのリードアクセスを保持し続けることにより、読
み出しデータが変化することを防止することができる。
また、読み出しの連続アクセスとデータ比較の作業をそ
れぞれ削除することができ、CPUの処理手順を簡略化
することができる。
As described above, according to the present invention, C
Even if a write access from the DSP occurs during a read access to the read / write register of the CPU from the PU, until the write access from the DSP ends.
By keeping the read access of the CPU, it is possible to prevent the read data from changing.
Further, the operations of continuous read access and data comparison can be deleted, respectively, and the processing procedure of the CPU can be simplified.

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

【図1】本発明の原理構成図である。FIG. 1 is a principle configuration diagram of the present invention.

【図2】本発明の実施例の構成を示すブロック図であ
る。
FIG. 2 is a block diagram showing a configuration of an exemplary embodiment of the present invention.

【図3】実施例の動作を示すタイムチャートである。FIG. 3 is a time chart showing the operation of the embodiment.

【図4】実施例の動作を示すタイムチャートである。FIG. 4 is a time chart showing the operation of the embodiment.

【図5】実施例の動作を示すタイムチャートである。FIG. 5 is a time chart showing the operation of the embodiment.

【図6】従来のシステム構成図である。FIG. 6 is a conventional system configuration diagram.

【図7】従来のCPUリードアクセスを示すフローチャ
ートである。
FIG. 7 is a flowchart showing a conventional CPU read access.

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

1 DSP 2 CPU 3 CPUリード/ライトレジスタ 4 DSP制御部 5 CPU制御部 6 競合制御部 1 DSP 2 CPU 3 CPU read / write register 4 DSP control unit 5 CPU control unit 6 Competition control unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 デジタルシグナルプロセッサ(1)からC
PUリード/ライトレジスタ(3)へのデータ書き込み時
に、デジタルシグナルプロセッサ(1)はデジタルシグナ
ルプロセッサ制御部(4)に対して書き込み許可アクセス
を行い、書き込み許可アクセスを受けて競合制御部(6)
は、デジタルシグナルプロセッサ制御部(4)から出力さ
れる制御信号を用いてCPUアクセス禁止領域を生成
し、次にCPU(2)からの読み出し時には、競合制御部
(6)にて生成したアクセス禁止領域の状態をCPU制御
部(5)で調べ、禁止領域発生時はCPUリード/ライト
レジスタ(3)への読み出しアクセスを保留し、禁止領域
終了時にその読み出しアクセスを再開し、禁止領域発生
がない時は、通常動作によってCPU(2)からの読み出
しを行うことを特徴とするデータ転送制御方式。
1. Digital signal processor (1) to C
When writing data to the PU read / write register (3), the digital signal processor (1) performs write permission access to the digital signal processor control unit (4), and upon receiving the write permission access, the contention control unit (6)
Generates a CPU access prohibited area by using the control signal output from the digital signal processor control unit (4), and then, when reading from the CPU (2), the conflict control unit
The state of the access prohibited area generated in (6) is checked by the CPU control unit (5), when the prohibited area occurs, the read access to the CPU read / write register (3) is suspended, and when the prohibited area ends, the read access is suspended. And a read operation from the CPU (2) is performed by normal operation when the prohibited area is not generated.
JP4096352A 1992-04-16 1992-04-16 Data transfer control method Pending JPH05298248A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4096352A JPH05298248A (en) 1992-04-16 1992-04-16 Data transfer control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4096352A JPH05298248A (en) 1992-04-16 1992-04-16 Data transfer control method

Publications (1)

Publication Number Publication Date
JPH05298248A true JPH05298248A (en) 1993-11-12

Family

ID=14162608

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4096352A Pending JPH05298248A (en) 1992-04-16 1992-04-16 Data transfer control method

Country Status (1)

Country Link
JP (1) JPH05298248A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6154830A (en) * 1997-11-14 2000-11-28 Matsushita Electric Industrial Co., Ltd. Microprocessor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6154830A (en) * 1997-11-14 2000-11-28 Matsushita Electric Industrial Co., Ltd. Microprocessor

Similar Documents

Publication Publication Date Title
EP0969384B1 (en) Method and apparatus for processing information, and providing medium
JPH05298248A (en) Data transfer control method
JPH0140432B2 (en)
WO1985003372A1 (en) Data transmitting/receiving system for transmitting data to and from auxiliary memory device
JPH05108275A (en) Stream tape device
JP2581144B2 (en) Bus control device
JP2982611B2 (en) Image processing device
JP2888062B2 (en) Information processing device
JPH02166548A (en) Common bus control method
JPH04333950A (en) Information processing system
JP2524620B2 (en) Input / output control method
JP2002132702A (en) Memory control system
JPS6039265A (en) Data transfer system
JPS60123944A (en) Buffer memory control method in information processing equipment
JPH0318144A (en) LAN adapter
JPH09259074A (en) Memory access circuit
JPS6222165A (en) Control system for access to main storage device
JPH064488A (en) Command transfer method
JPH0535658A (en) Information processor
JPH04192055A (en) DMA transfer control device
JPH02307149A (en) Direct memory access control method
JPH0675905A (en) Bus conversion system
JPH06175967A (en) Dma controller
JPH03144739A (en) Data transfer control system for duplexed storage device
JP2000207371A (en) Memory write system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20030708