JPH0520253A - Data processor - Google Patents

Data processor

Info

Publication number
JPH0520253A
JPH0520253A JP17261991A JP17261991A JPH0520253A JP H0520253 A JPH0520253 A JP H0520253A JP 17261991 A JP17261991 A JP 17261991A JP 17261991 A JP17261991 A JP 17261991A JP H0520253 A JPH0520253 A JP H0520253A
Authority
JP
Japan
Prior art keywords
data
cpu
storage device
ram
mode period
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.)
Withdrawn
Application number
JP17261991A
Other languages
Japanese (ja)
Inventor
Takashi Inoue
隆 井上
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP17261991A priority Critical patent/JPH0520253A/en
Publication of JPH0520253A publication Critical patent/JPH0520253A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To contract hardware and to reduce cost while attaining occasional access from a CPU to a memory in a data processor provided with a function block having a memory access function in addition to the CPU. CONSTITUTION:A RAM 7 is shared by the CPU and the 1st and 2nd function blocks 3, 4 through a data transfer control part 1 and the operation of the control part 1 is executed based upon a time division system consisting of a transfer mode and a CPU mode so that the CPU 5 can occasionally access the RAM 7. The control part 1 is provided with the 1st to 4th holding circuits 31 to 34 for holding data, and when a write request signal 101 or a read request signal 105 is received from the CPU 5 during the period of the transfer mode for transmitting an access from the 1st or 2nd function block 3 or 4 to the RAM 7, returns a wait signal 103 to the CPU 5 to wait the CPU 5 and transmits the access from the CPU 5 to the RAM 7 at the time of switching the transfer mode period to a CPU mode period.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、中央処理装置とは別に
メモリアクセス機能を有する機能ブロックを備えたデー
タ処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing device having a functional block having a memory access function in addition to a central processing unit.

【0002】[0002]

【従来の技術】プログラムの実行のためにRAM等のメ
モリにアクセスする中央処理装置(以下、CPUとい
う。)を備えるとともに、該CPUとは別に同様にメモ
リアクセス機能を有する機能ブロックを備えたデータ処
理装置が知られている。
2. Description of the Related Art Data including a central processing unit (hereinafter referred to as a CPU) for accessing a memory such as a RAM for executing a program, and data including a functional block having a memory access function in addition to the CPU. Processing devices are known.

【0003】図4は、この種の従来のデータ処理装置の
構成を示したブロック図である。同図において、第1の
RAM2はデータを格納するためのメモリであって、デ
ータ転送制御部1は第1のRAM2への第1及び第2の
機能ブロック3,4の各々のアクセスを媒介するもので
ある。第2のRAM6はプログラムやデータを格納する
ための他のメモリであって、CPU5は第2のRAM6
をアクセスしながらプログラムを実行するものである。
ただし、CPU5は、データ転送制御部1並びに第1及
び第2の機能ブロック3,4の各々の動作の制御をも司
る。
FIG. 4 is a block diagram showing the configuration of a conventional data processing apparatus of this type. In the figure, the first RAM 2 is a memory for storing data, and the data transfer control unit 1 mediates each access of the first and second functional blocks 3 and 4 to the first RAM 2. It is a thing. The second RAM 6 is another memory for storing programs and data, and the CPU 5 is the second RAM 6
The program is executed while accessing.
However, the CPU 5 also controls the operations of the data transfer control unit 1 and the first and second functional blocks 3 and 4.

【0004】以上の構成の従来のデータ処理装置の動作
を簡単に説明すると、第1の機能ブロック3から第1の
RAM2へのデータ転送すなわち第1のRAM2へのデ
ータの書き込みを実行する場合は、まず第1の機能ブロ
ック3からデータ転送制御部1にデータが渡される。第
1の機能ブロック3からデータを受けたデータ転送制御
部1は、該データを一時保持し、第1のRAM2に対し
て書き込みアドレスを与えながら保持データを出力する
ことにより該データを第1のRAM2の所定のアドレス
に書き込む。第2の機能ブロック4から第1のRAM2
へのデータの書き込みも同様の手順で実行される。
The operation of the conventional data processing apparatus having the above configuration will be briefly described. In the case of executing data transfer from the first functional block 3 to the first RAM 2, that is, writing of data to the first RAM 2. First, data is passed from the first functional block 3 to the data transfer control unit 1. The data transfer control unit 1, which has received the data from the first functional block 3, temporarily holds the data and outputs the held data while giving the write address to the first RAM 2 to output the first data to the first RAM 2. Write to a predetermined address in RAM2. From the second functional block 4 to the first RAM 2
The writing of data to is executed by the same procedure.

【0005】第1のRAM2から第1の機能ブロック3
又は第2の機能ブロック4へのデータ転送すなわち第1
のRAM2のデータの読み出しを実行する場合は、まず
データ転送制御部1が第1のRAM2の所定のアドレス
のデータを読み出し、該読み出したデータを一時保持す
る。データ転送制御部1は、さらに該保持データを第1
の機能ブロック3又は第2の機能ブロック4へ渡す。
From the first RAM 2 to the first functional block 3
Or data transfer to the second function block 4, that is, the first
When the data of the RAM 2 is read, the data transfer control unit 1 first reads the data of the predetermined address of the first RAM 2 and temporarily holds the read data. The data transfer control unit 1 further stores the held data in the first
To the second functional block 4 or the second functional block 4.

【0006】一方、CPU5は、第1の機能ブロック3
又は第2の機能ブロック4と第1のRAM2との間のデ
ータ転送中であっても、データ転送制御部1の状態とは
無関係に第2のRAM6を随時アクセスできる。
On the other hand, the CPU 5 has the first functional block 3
Alternatively, even during data transfer between the second functional block 4 and the first RAM 2, the second RAM 6 can be accessed at any time regardless of the state of the data transfer control unit 1.

【0007】[0007]

【発明が解決しようとする課題】上記従来のデータ処理
装置は、第1の機能ブロック3又は第2の機能ブロック
4がアクセスするデータ格納用メモリ(第1のRAM
2)と、CPU5がアクセスするプログラムやデータを
格納するためのメモリ(第2のRAM6)とが別々にな
っていたので、メモリのハードウェアが大きくなると同
時にコスト高になるという問題を有していた。
SUMMARY OF THE INVENTION In the conventional data processing apparatus, the data storage memory (first RAM) accessed by the first functional block 3 or the second functional block 4 is used.
Since 2) and the memory (second RAM 6) for storing the program and data accessed by the CPU 5 are separate, there is a problem that the hardware of the memory becomes large and at the same time the cost becomes high. It was

【0008】本発明の目的は、CPUとは別にメモリア
クセス機能を有する機能ブロックを備えたデータ処理装
置において、CPUによるメモリの随時アクセスを実現
しながらハードウェアの縮小化と低コスト化を図ること
にある。
An object of the present invention is to reduce the hardware and reduce the cost in a data processing device provided with a functional block having a memory access function in addition to the CPU, while realizing the occasional access to the memory by the CPU. It is in.

【0009】[0009]

【課題を解決するための手段】上記課題を解決するため
に本発明は、データ転送制御部を介してCPUと機能ブ
ロックとにメモリを共用させ、CPUがメモリに随時ア
クセスできるようにデータ転送制御部の動作モードを時
分割方式としたものである。
SUMMARY OF THE INVENTION In order to solve the above problems, the present invention allows a CPU and a functional block to share a memory via a data transfer control unit so that the CPU can access the memory at any time. The operation mode of the unit is a time division method.

【0010】具体的に説明すると、請求項1の発明は、
プログラムやデータを格納するための記憶装置と、該記
憶装置へのアクセスを媒介するためのデータ転送制御部
と、このデータ転送制御部を介して前記記憶装置にアク
セスするCPUと、同じく該データ転送制御部を介して
前記記憶装置にアクセスするCPUとは別の機能ブロッ
クとを備え、データ転送制御部は、前記機能ブロックに
よる記憶装置へのアクセスを媒介するための1つの時分
割動作モード期間としての転送モード期間中にCPUか
らアクセス要求信号を受けた場合は、該転送モード期間
から他の時分割動作モード期間としてのCPUモード期
間に切り替わった時点でCPUによる記憶装置へのアク
セスを媒介する機能を有する構成を採用したものであ
る。
More specifically, the invention of claim 1 is
A storage device for storing programs and data, a data transfer control unit for mediating access to the storage device, a CPU for accessing the storage device via the data transfer control unit, and the data transfer The data transfer control unit includes a functional block different from the CPU that accesses the storage device via the control unit, and the data transfer control unit sets one time division operation mode period for mediating access to the storage device by the functional block. When the access request signal is received from the CPU during the transfer mode period, the function of mediating access to the storage device by the CPU at the time of switching from the transfer mode period to the CPU mode period as another time division operation mode period It adopts a configuration having.

【0011】請求項2の発明は、請求項1の発明におい
て、前記データ転送制御部を次に説明する第1〜第3の
保持回路とデータ転送制御回路とにより構成したもので
ある。すなわち、第1の保持回路は、CPU又は機能ブ
ロックへ渡すために記憶装置から読み出したデータを保
持するものである。第2の保持回路は、記憶装置へ書き
込むためにCPUから与えられたデータを保持するもの
である。第3の保持回路は、記憶装置へ書き込むために
機能ブロックから与えられたデータを保持するものであ
る。そして、データ転送制御回路は、CPUによる記憶
装置へのアクセスを媒介するために第1及び第2の保持
回路の動作を制御するとともに、前記機能ブロックによ
る記憶装置へのアクセスを媒介するために第1及び第3
の保持回路の動作を制御するものであって、転送モード
期間中にCPUからのアクセス要求信号として書き込み
要求信号を受けた場合は、該CPUから与えられたデー
タを第2の保持回路に保持させるとともにCPUによる
書き込み要求信号の再出力を禁止するために該CPUに
ウェイト信号を返しておき、転送モード期間からCPU
モード期間に切り替わるのを待って該第2の保持回路に
保持されたデータを前記記憶装置へ書き込む機能を有
し、転送モード期間中にCPUからアクセス要求信号と
して読み出し要求信号を受けた場合は、CPUによる読
み出し要求信号の再出力を禁止するために該CPUにウ
ェイト信号を返しておき、転送モード期間からCPUモ
ード期間に切り替わるのを待って記憶装置からデータを
読み出し、該読み出したデータを第1の保持回路に保持
させ、該第1の保持回路に保持されたデータをCPUへ
渡す機能を有するものである。
According to a second aspect of the present invention, in the first aspect of the present invention, the data transfer control section is composed of first to third holding circuits and a data transfer control circuit described below. That is, the first holding circuit holds the data read from the storage device for passing to the CPU or the functional block. The second holding circuit holds the data given from the CPU for writing to the storage device. The third holding circuit holds the data given from the functional block for writing to the storage device. The data transfer control circuit controls the operations of the first and second holding circuits to mediate access to the storage device by the CPU, and the first to mediate access to the storage device by the functional block. 1 and 3
Control the operation of the holding circuit, and when the write request signal is received as the access request signal from the CPU during the transfer mode, the data held by the CPU is held in the second holding circuit. At the same time, a wait signal is returned to the CPU in order to prohibit the CPU from re-outputting the write request signal.
When a read request signal is received from the CPU as an access request signal during the transfer mode, it has a function of writing the data held in the second holding circuit to the storage device after waiting for switching to the mode period. A wait signal is returned to the CPU in order to prohibit re-output of the read request signal by the CPU, data is read from the storage device after waiting for switching from the transfer mode period to the CPU mode period, and the read data is read as the first data. The holding circuit holds the data and the data held in the first holding circuit is transferred to the CPU.

【0012】[0012]

【作用】請求項1の発明によれば、CPUと、該CPU
とは別のメモリアクセス機能を有する機能ブロックとが
データ転送制御部を介して1つの記憶装置を共有する。
ただし、機能ブロックによる記憶装置へのアクセスはデ
ータ転送制御部の全動作期間のうちの転送モード期間に
限られ、データ転送制御部は、転送モード期間中にCP
Uからアクセス要求信号を受けた場合は転送モード期間
からCPUモード期間に切り替わった時点でCPUによ
る記憶装置へのアクセスを媒介する。これにより、機能
ブロックと記憶装置との間で大量のデータを連続的に転
送しようとする場合であって該データ転送に長時間を要
するときでも、CPUは記憶装置に随時アクセスでき
る。
According to the invention of claim 1, a CPU and the CPU
Another storage device and a functional block having a memory access function share one storage device via the data transfer control unit.
However, the access to the storage device by the functional block is limited to the transfer mode period of the entire operation period of the data transfer control unit, and the data transfer control unit may operate during the transfer mode period.
When the access request signal is received from U, the access to the storage device by the CPU is mediated when the transfer mode period is switched to the CPU mode period. As a result, even when a large amount of data is continuously transferred between the functional block and the storage device and the data transfer requires a long time, the CPU can access the storage device at any time.

【0013】また、請求項2の発明によれば、機能ブロ
ックから記憶装置へのデータ転送すなわち該記憶装置へ
のデータの書き込みを実行する場合は、まず機能ブロッ
クから与えられたデータが第3の保持回路に一時保持さ
れる。該保持データは、データ転送制御回路の制御のも
とで転送モード期間内に第3の保持回路から記憶装置へ
転送され、該記憶装置に書き込まれる。
According to the second aspect of the invention, when the data transfer from the functional block to the storage device, that is, the writing of the data to the storage device is executed, the data given from the functional block is the third data. It is temporarily held in the holding circuit. Under the control of the data transfer control circuit, the held data is transferred from the third holding circuit to the storage device and written in the storage device within the transfer mode period.

【0014】記憶装置から機能ブロックへのデータ転送
すなわち該記憶装置のデータの読み出しを実行する場合
は、転送モード期間内に記憶装置からデータが読み出さ
れ、該読み出しデータが第1の保持回路に一時保持さ
れ、該保持データがデータ転送制御回路の制御のもとで
該第1の保持回路から機能ブロックへ渡される。
When data transfer from the storage device to the functional block, that is, reading of data from the storage device is executed, data is read from the storage device within the transfer mode period, and the read data is stored in the first holding circuit. The data is temporarily held, and the held data is passed from the first holding circuit to the functional block under the control of the data transfer control circuit.

【0015】一方、データ転送制御回路は、転送モード
期間中にCPUから記憶装置に対する書き込み要求信号
を受けた場合は、まず該CPUから与えられたデータを
第2の保持回路に保持させるとともに、該保持データの
消失を防止するためにCPUにウェイト信号を返すこと
によって該CPUを待機状態にさせ、該CPUによる書
き込み要求信号の再出力を禁止しておく。そして、転送
モード期間からCPUモード期間に切り替わるのを待っ
て、該第2の保持回路に保持されていたデータを前記記
憶装置へ書き込む。
On the other hand, when the data transfer control circuit receives the write request signal for the storage device from the CPU during the transfer mode, the data transfer control circuit first holds the data given from the CPU in the second holding circuit, and In order to prevent loss of stored data, a wait signal is returned to the CPU to put the CPU in a standby state, and re-output of the write request signal by the CPU is prohibited. Then, after waiting for switching from the transfer mode period to the CPU mode period, the data held in the second holding circuit is written in the storage device.

【0016】さらにデータ転送制御回路は、転送モード
期間中にCPUから記憶装置に対する読み出し要求信号
を受けた場合は、まずCPUによる読み出し要求信号の
再出力を禁止するために該CPUにウェイト信号を返し
ておく。そして、転送モード期間からCPUモード期間
に切り替わるのを待って記憶装置からデータを読み出
し、該読み出したデータを第1の保持回路に保持させ、
該第1の保持回路に保持されたデータをCPUへ渡す。
Further, when the data transfer control circuit receives a read request signal for the storage device from the CPU during the transfer mode period, it first returns a wait signal to the CPU to prohibit re-output of the read request signal by the CPU. Keep it. Then, after waiting for the switching from the transfer mode period to the CPU mode period, the data is read from the storage device, and the read data is held in the first holding circuit,
The data held in the first holding circuit is passed to the CPU.

【0017】[0017]

【実施例】以下、本発明の実施例について図面を参照し
ながら説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0018】図1は、本発明の実施例におけるデータ処
理装置の構成の概要を示したブロック図である。同図に
おいて、RAM7はプログラムやデータを格納するため
のメモリであって、第1及び第2の機能ブロック3,4
並びにCPU5がいずれもデータ転送制御部1を介して
アクセスできるものである。ただし、第1の機能ブロッ
ク3又は第2の機能ブロック4とRAM7との間でデー
タ転送が行われている間でもCPU5が速やかにRAM
7にアクセスできるように、データ転送制御部1の動作
モードは、図2に示したように第1の機能ブロック3又
は第2の機能ブロック4によるRAM7へのアクセスを
媒介するための転送モードと、CPU5によるRAM7
へのアクセスを媒介するためのCPUモードとの2つの
時分割モードに分けられている。なお、データ転送制御
部1並びに第1及び第2の機能ブロック3,4は、CP
U5の制御を受ける。
FIG. 1 is a block diagram showing an outline of the configuration of a data processing device in an embodiment of the present invention. In the figure, a RAM 7 is a memory for storing programs and data, and includes first and second functional blocks 3 and 4.
In addition, the CPU 5 can be accessed via the data transfer control unit 1. However, even while data transfer is being performed between the first functional block 3 or the second functional block 4 and the RAM 7, the CPU 5 promptly operates the RAM.
7, the operation mode of the data transfer control unit 1 is the transfer mode for mediating access to the RAM 7 by the first functional block 3 or the second functional block 4 as shown in FIG. RAM7 by CPU5
It is divided into two time division modes, a CPU mode for mediating access to the. The data transfer control unit 1 and the first and second functional blocks 3 and 4 are
Under the control of U5.

【0019】以上の構成の本実施例のデータ処理装置の
動作を説明すると、第1の機能ブロック3からRAM7
へのデータ転送すなわちRAM7へのデータの書き込み
を実行する場合は、まず第1の機能ブロック3からデー
タ転送制御部1にデータが渡される。第1の機能ブロッ
ク3からデータを受けたデータ転送制御部1は、該デー
タを一時保持し、転送モード期間に切り替わるのを待っ
てRAM7に対して書き込みアドレスを与えながら保持
データを出力することにより該データをRAM7の所定
のアドレスに書き込む。第2の機能ブロック4からRA
M7へのデータの書き込みも同様の手順で実行される。
The operation of the data processing apparatus of this embodiment having the above configuration will be described below. The first functional block 3 to the RAM 7
When data is transferred to the RAM 7, that is, data is written to the RAM 7, the data is first passed from the first functional block 3 to the data transfer control unit 1. By receiving the data from the first functional block 3, the data transfer control unit 1 temporarily holds the data, waits for switching to the transfer mode period, and outputs the held data while giving the write address to the RAM 7. The data is written in a predetermined address of RAM 7. RA from the second functional block 4
The writing of data to M7 is executed in the same procedure.

【0020】RAM7から第1の機能ブロック3又は第
2の機能ブロック4へのデータ転送すなわちRAM7の
データの読み出しを実行する場合は、データ転送制御部
1は、転送モード期間内にまずRAM7の所定のアドレ
スのデータを読み出し、該読み出したデータを一時保持
し、さらに該保持データを第1の機能ブロック3又は第
2の機能ブロック4へ転送する。
When the data transfer from the RAM 7 to the first functional block 3 or the second functional block 4, that is, the reading of the data of the RAM 7 is executed, the data transfer control unit 1 first determines the predetermined value of the RAM 7 within the transfer mode period. The data of the address is read, the read data is temporarily held, and the held data is transferred to the first functional block 3 or the second functional block 4.

【0021】一方、データ転送制御部1は、転送モード
期間中にCPU5からアクセス要求信号を受けた場合
は、CPUモード期間に切り替わった時点でCPU5に
よるRAM7へのアクセスを媒介する。つまり、CPU
5は、第1の機能ブロック3又は第2の機能ブロック4
とRAM7との間のデータ転送中であっても、データ転
送制御部1の動作モードがCPUモードに切り替わった
時点でRAM7をアクセスできるのである。
On the other hand, when the data transfer control unit 1 receives an access request signal from the CPU 5 during the transfer mode period, it mediates access to the RAM 7 by the CPU 5 at the time of switching to the CPU mode period. That is, CPU
5 is the first functional block 3 or the second functional block 4
Even during the data transfer between the RAM 7 and the RAM 7, the RAM 7 can be accessed when the operation mode of the data transfer control unit 1 is switched to the CPU mode.

【0022】図3は、上記データ転送制御部1の内部詳
細構成を該データ処理装置の他の構成要素である第1及
び第2の機能ブロック3,4、CPU5並びにRAM7
とともに示したブロック図である。ただし、CPU5か
ら第1及び第2の機能ブロック3,4への制御線は図示
を省略している。
FIG. 3 shows the detailed internal structure of the data transfer control unit 1 as first and second functional blocks 3 and 4, the CPU 5 and the RAM 7, which are other components of the data processing apparatus.
It is the block diagram shown together with. However, illustration of control lines from the CPU 5 to the first and second functional blocks 3 and 4 is omitted.

【0023】同図中のデータ転送制御部1において、3
1はRAM7から読み出したデータを保持するための第
1の保持回路であって、該第1の保持回路31に保持さ
れたデータは第1の制御信号100により選択された第
1の機能ブロック3、第2の機能ブロック4又はCPU
5のうちのいずれかへ渡される。32はRAM7へ書き
込むためにCPU5から与えられたデータを保持するた
めの第2の保持回路、33は第1の機能ブロック3から
与えられたデータを保持するための第3の保持回路、3
4は第2の機能ブロック4から与えられたデータを保持
するための第4の保持回路である。35はRAM7の書
き込み及び読み出しを制御するためのRAM制御回路、
36はCPU5からRAM7に対する書き込み要求があ
ったことを記憶するためのフラグ回路、37はタイミン
グ調整のためのウェイト制御回路である。RAM制御回
路35、フラグ回路36及びウェイト制御回路37は、
第1の機能ブロック3又は第2の機能ブロック4による
RAM7へのアクセスとCPU5によるRAM7へのア
クセスとの間の協調をとるためのデータ転送制御回路3
8を構成する。
In the data transfer control unit 1 shown in FIG.
Reference numeral 1 is a first holding circuit for holding the data read from the RAM 7, and the data held in the first holding circuit 31 is the first functional block 3 selected by the first control signal 100. , Second functional block 4 or CPU
Passed to any of the five. 32 is a second holding circuit for holding the data given from the CPU 5 for writing to the RAM 7, 33 is a third holding circuit for holding the data given from the first functional block 3, 3
Reference numeral 4 is a fourth holding circuit for holding the data given from the second functional block 4. 35 is a RAM control circuit for controlling writing and reading of the RAM 7,
Reference numeral 36 is a flag circuit for storing that there is a write request from the CPU 5 to the RAM 7, and 37 is a wait control circuit for timing adjustment. The RAM control circuit 35, the flag circuit 36, and the wait control circuit 37 are
A data transfer control circuit 3 for coordinating access to the RAM 7 by the first function block 3 or the second function block 4 and access by the CPU 5 to the RAM 7.
Make up 8.

【0024】以上に説明したデータ転送制御部1の内部
動作を説明すると、第1の機能ブロック3からRAM7
へのデータ転送すなわちRAM7へのデータの書き込み
を実行する場合は、まず第1の機能ブロック3から与え
られたデータが第3の保持回路33に一時保持される。
この第3の保持回路33は、CPU5との共用ではなく
て第1の機能ブロック3の専用であるので、CPUモー
ド期間内であっても直ちにデータ保持を実行することが
できる。そして、該第3の保持回路33に保持されたデ
ータは、転送モード期間内は直ちにCPUモードでは転
送モード期間に切り替わるのを待ってRAM制御回路3
5から出力される第1の制御信号100によりRAM7
に対して出力され、同じくRAM制御回路35から出力
される書き込み信号104によりRAM7へ書き込まれ
る。第2の機能ブロック4からRAM7へのデータの書
き込みは、第4の保持回路34を用いて同様の手順で実
行される。
The internal operation of the data transfer control unit 1 described above will be described. From the first functional block 3 to the RAM 7
When the data transfer to the RAM 7, that is, the writing of the data to the RAM 7 is executed, the data given from the first functional block 3 is temporarily held in the third holding circuit 33.
Since the third holding circuit 33 is not shared with the CPU 5 but dedicated to the first functional block 3, it is possible to immediately hold data even during the CPU mode period. Then, the data held in the third holding circuit 33 waits for switching to the transfer mode period in the CPU mode immediately during the transfer mode period, and then the RAM control circuit 3
RAM 7 by the first control signal 100 output from
To the RAM 7 by the write signal 104 which is also output from the RAM control circuit 35. The writing of data from the second functional block 4 to the RAM 7 is executed by the same procedure using the fourth holding circuit 34.

【0025】RAM7から第1の機能ブロック3へのデ
ータ転送すなわちRAM7のデータの読み出しを実行す
る場合は、まずRAM制御回路35から出力される読み
出し信号107によりRAM7からデータが読み出さ
れ、該RAM7から読み出されたデータは、同じくRA
M制御回路35から出力される第1の制御信号100に
より第1の保持回路31に一時保持される。ただし、第
1の保持回路31はCPU5と第1及び第2の機能ブロ
ック3,4との共用になっているので、RAM7のデー
タの読み出し及び保持は、転送モード期間内は直ちに実
行されるが、CPUモードでは転送モード期間に切り替
わるのを待って実行される。このようにして第1の保持
回路31に保持されたデータは、同じく第1の制御信号
100により選択された第1の機能ブロック3へ渡され
る。RAM7から第2の機能ブロック4へのデータの読
み出しは、同じく第1の保持回路31を介して同様の手
順で実行される。
When data transfer from the RAM 7 to the first functional block 3, that is, reading of data from the RAM 7 is executed, data is first read from the RAM 7 by the read signal 107 output from the RAM control circuit 35, and the RAM 7 is read. The data read from the
It is temporarily held in the first holding circuit 31 by the first control signal 100 output from the M control circuit 35. However, since the first holding circuit 31 is shared by the CPU 5 and the first and second functional blocks 3 and 4, the reading and holding of the data of the RAM 7 is executed immediately during the transfer mode period. In the CPU mode, it is executed after waiting for switching to the transfer mode period. The data held in the first holding circuit 31 in this manner is passed to the first functional block 3 which is also selected by the first control signal 100. The reading of data from the RAM 7 to the second functional block 4 is also executed in the same procedure via the first holding circuit 31.

【0026】一方、転送モード期間中にCPU5からR
AM7に対する書き込み要求信号101が出力された場
合は、まずCPU5から与えられたデータが該書き込み
要求信号101により第2の保持回路32に一時保持さ
れる。この第2の保持回路32は、第1及び第2の機能
ブロック3,4との共用ではなくてCPU5の専用であ
るので、転送モード期間内であっても直ちにデータ保持
を実行することができる。書き込み要求信号101はフ
ラグ回路36にも与えられ、該フラグ回路36はCPU
5から書き込み要求があったことを記憶する。この結
果、フラグ回路36の出力であるフラグ信号102がセ
ットされる。セットされたフラグ信号102を受けたウ
ェイト制御回路37は、該フラグ信号102を受けたこ
とを第2の制御信号106を通してRAM制御回路35
に伝えるとともに、第2の保持回路32の保持データの
消失を防止するために、該フラグ信号102がリセット
されるまでCPU5にウェイト信号103を返すことに
よって該CPU5による書き込み要求信号101の再出
力を禁止しておく。一方、第2の保持回路32に保持さ
れたデータは、CPUモード期間から転送モード期間に
切り替わるのを待ってRAM制御回路35から出力され
る第1の制御信号100により第2の保持回路32から
RAM7に対して出力され、同じくRAM制御回路35
から出力される書き込み信号104によりRAM7へ書
き込まれる。この書き込み信号104はフラグ回路36
にも与えられてフラグ信号102がリセットされる。こ
の結果、ウェイト信号103が解除され、CPU5の待
機状態が終了する。
On the other hand, during the transfer mode period, the CPU 5 sends R
When the write request signal 101 for the AM 7 is output, first, the data given from the CPU 5 is temporarily held in the second holding circuit 32 by the write request signal 101. Since the second holding circuit 32 is not shared with the first and second functional blocks 3 and 4 but dedicated to the CPU 5, it is possible to immediately hold data even during the transfer mode period. . The write request signal 101 is also given to the flag circuit 36, and the flag circuit 36 outputs the CPU
The fact that there is a write request from 5 is stored. As a result, the flag signal 102 which is the output of the flag circuit 36 is set. The wait control circuit 37 that has received the flag signal 102 that has been set informs the RAM control circuit 35 that it has received the flag signal 102 through the second control signal 106.
In addition, the wait signal 103 is returned to the CPU 5 until the flag signal 102 is reset in order to prevent the loss of the data held in the second holding circuit 32, and the re-output of the write request signal 101 by the CPU 5 is performed. Prohibit. On the other hand, the data held in the second holding circuit 32 is output from the second holding circuit 32 by the first control signal 100 output from the RAM control circuit 35 after waiting for switching from the CPU mode period to the transfer mode period. The data is output to the RAM 7, and the RAM control circuit 35 is also provided.
It is written in the RAM 7 by the write signal 104 output from. The write signal 104 is the flag circuit 36.
Is also given to reset the flag signal 102. As a result, the wait signal 103 is released and the standby state of the CPU 5 ends.

【0027】CPU5の読み出し要求信号105は、ウ
ェイト制御回路37に与えられる。転送モード期間中に
CPU5からRAM7に対する読み出し要求信号105
が出力された場合は、直ちにCPU5に対してデータを
渡すことはできないので、まずCPU5にウェイト信号
103を返すことによって該CPUに該読み出し要求信
号105の出力を継続させ、その再出力を禁止してお
く。ウェイト制御回路37は、CPU5から読み出し要
求信号105を受けたことを第2の制御信号106を通
してRAM制御回路35に伝える。一方、転送モード期
間からCPUモード期間に切り替わるのを待ってRAM
制御回路35から出力される読み出し信号107により
RAM7からデータが読み出され、該RAM7から読み
出されたデータは、同じくRAM制御回路35から出力
される第1の制御信号100により第1の保持回路31
に一時保持される。このようにして第1の保持回路31
に保持されたデータは、同じく第1の制御信号100に
より選択されたCPU5へ渡される。ただし、ウェイト
制御回路37は、動作モードがCPUモードに切り替わ
った時点でウェイト信号103を解除する。
The read request signal 105 of the CPU 5 is given to the wait control circuit 37. Read request signal 105 from CPU 5 to RAM 7 during the transfer mode period
Is output, the data cannot be passed to the CPU 5 immediately, so that the wait signal 103 is first returned to the CPU 5 to continue the output of the read request signal 105 to the CPU 5, and the re-output is prohibited. Keep it. The wait control circuit 37 notifies the RAM control circuit 35 through the second control signal 106 that the read request signal 105 has been received from the CPU 5. On the other hand, wait for the transfer mode period to switch to the CPU mode period
Data is read from the RAM 7 by the read signal 107 output from the control circuit 35, and the data read from the RAM 7 is stored in the first holding circuit by the first control signal 100 also output from the RAM control circuit 35. 31
Temporarily held in. In this way, the first holding circuit 31
The data held in the same is passed to the CPU 5 similarly selected by the first control signal 100. However, the wait control circuit 37 releases the wait signal 103 when the operation mode is switched to the CPU mode.

【0028】なお、CPUモード期間中にCPU5から
RAM7に対する書き込み要求信号101が出力された
場合は、CPU5から与えられたデータが該書き込み要
求信号101により第2の保持回路32に直ちに一時保
持されるだけでなく、該第2の保持回路32に保持され
たデータは、RAM制御回路35から直ちに出力される
第1の制御信号100と書き込み信号104とによりR
AM7へ直ちに書き込まれる。また、CPUモード期間
中にCPU5からRAM7に対する読み出し要求信号1
05が出力された場合は、ウェイト制御回路37がCP
U5へウェイト信号103を返すことはなく、RAM制
御回路35から直ちに出力される読み出し信号107と
第1の制御信号100とによりRAM7の読み出しデー
タが第1の保持回路31を介してCPU5へ直ちに渡さ
れる。
When the CPU 5 outputs the write request signal 101 to the RAM 7 during the CPU mode period, the data supplied from the CPU 5 is temporarily held in the second holding circuit 32 by the write request signal 101. In addition to the data held in the second holding circuit 32, R data is generated by the first control signal 100 and the write signal 104 immediately output from the RAM control circuit 35.
Immediately written to AM7. Further, during the CPU mode period, the read request signal 1 from the CPU 5 to the RAM 7
If 05 is output, the wait control circuit 37 sends CP
The wait signal 103 is not returned to U5, and the read signal 107 output immediately from the RAM control circuit 35 and the first control signal 100 cause the read data of the RAM 7 to be immediately passed to the CPU 5 via the first holding circuit 31. Be done.

【0029】[0029]

【発明の効果】以上説明してきたように請求項1の発明
によれば、CPUとは別にメモリアクセス機能を有する
機能ブロックを備えたデータ処理装置において、データ
転送制御部を介してCPUと機能ブロックとにメモリを
共用させ、データ転送制御部の動作モードをCPUによ
るアクセスを媒介するためのCPUモードと機能ブロッ
クによるアクセスを媒介するための転送モードとの時分
割方式とした構成を採用したので、CPUによる随時メ
モリアクセスを実現しながらハードウェアの縮小化と低
コスト化を図ることができる。
As described above, according to the first aspect of the invention, in the data processing device having the functional block having the memory access function in addition to the CPU, the CPU and the functional block are connected via the data transfer control unit. Since the memory is shared by and, the operation mode of the data transfer control unit is a time-division system of a CPU mode for mediating access by the CPU and a transfer mode for mediating access by the functional block. The hardware can be reduced and the cost can be reduced while realizing the memory access by the CPU at any time.

【0030】また、請求項2の発明によれば、データ保
持のための第1〜第3の保持回路と、転送モード期間中
にCPUからアクセス要求信号を受けた場合はCPUを
待機させながらCPUモード期間に切り替わった時点で
CPUによるアクセスを媒介するように該3つの保持回
路の動作を制御するためのデータ転送制御回路とを設け
たデータ転送制御部の構成を採用したので、機能ブロッ
クのメモリアクセスとCPUのメモリアクセスとの間の
協調をうまくとることができる。しかも、メモリデータ
の読み出し時に用いられる第1の保持回路をCPUと機
能ブロックとの共用としているので、データ転送制御部
のハードウェアの縮小化とコスト低減を図ることができ
る。また、メモリへのデータの書き込み時に用いられる
第2の保持回路と第3の保持回路とをCPUと機能ブロ
ックとのために個別に設けているので、転送モード期間
中であってもCPUから与えられたデータをCPUモー
ドに切り替わる前に予め第2の保持回路に保持させるこ
とができ、メモリへのデータの書き込みを高速化するこ
とができる。
According to the second aspect of the present invention, the first to third holding circuits for holding data, and when the access request signal is received from the CPU during the transfer mode period, the CPU is put on standby while the CPU is waiting. Since the structure of the data transfer control unit provided with the data transfer control circuit for controlling the operation of the three holding circuits so as to mediate the access by the CPU at the time of switching to the mode period is adopted, the memory of the functional block is adopted. A good coordination between the access and the memory access of the CPU can be achieved. Moreover, since the first holding circuit used when reading the memory data is shared by the CPU and the functional block, the hardware of the data transfer control unit can be downsized and the cost can be reduced. In addition, since the second holding circuit and the third holding circuit used when writing data to the memory are separately provided for the CPU and the functional block, even if they are provided from the CPU even during the transfer mode period. The stored data can be held in the second holding circuit in advance before being switched to the CPU mode, so that data writing to the memory can be speeded up.

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

【図1】 本発明の実施例におけるデータ処理装置の構
成の概要を示したブロック図である。
FIG. 1 is a block diagram showing an outline of a configuration of a data processing device according to an embodiment of the present invention.

【図2】 図1中のデータ転送制御部の動作モードを示
したタイミングチャート図である。
2 is a timing chart showing an operation mode of a data transfer control unit in FIG.

【図3】 図1中のデータ転送制御部の内部詳細構成を
当該データ処理装置の他の構成要素とともに示したブロ
ック図である。
FIG. 3 is a block diagram showing an internal detailed configuration of a data transfer control unit in FIG. 1 together with other components of the data processing device.

【図4】 従来のデータ処理装置の構成を示したブロッ
ク図である。
FIG. 4 is a block diagram showing a configuration of a conventional data processing device.

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

1…データ転送制御部 2…第1のRAM 3…第1の機能ブロック 4…第2の機能ブロック 5…CPU(中央処理装置) 6…第2のRAM 7…RAM(記憶装置) 31…第1の保持回路 32…第2の保持回路 33…第3の保持回路 34…第4の保持回路 35…RAM制御回路 36…フラグ回路 37…ウェイト制御回路 38…データ転送制御回路 100…第1の制御信号 101…書き込み要求信号(アクセス要求信号) 102…フラグ信号 103…ウェイト信号 104…書き込み信号 105…読み出し要求信号(アクセス要求信号) 106…第2の制御信号 107…読み出し信号 1 ... Data transfer control unit 2 ... First RAM 3 ... First functional block 4 ... Second functional block 5 ... CPU (central processing unit) 6 ... second RAM 7 ... RAM (storage device) 31 ... First holding circuit 32 ... Second holding circuit 33 ... Third holding circuit 34 ... Fourth holding circuit 35 ... RAM control circuit 36 ... Flag circuit 37 ... Weight control circuit 38 ... Data transfer control circuit 100 ... First control signal 101 ... Write request signal (access request signal) 102 ... Flag signal 103 ... Wait signal 104 ... Write signal 105 ... Read request signal (access request signal) 106 ... Second control signal 107 ... Read signal

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 プログラムやデータを格納するための記
憶装置と、 該記憶装置へのアクセスを媒介するためのデータ転送制
御部と、 該データ転送制御部を介して前記記憶装置にアクセスす
る中央処理装置と、 前記データ転送制御部を介して前記記憶装置にアクセス
する前記中央処理装置とは別の機能ブロックとを備え、 前記データ転送制御部は、前記機能ブロックによる前記
記憶装置へのアクセスを媒介するための1つの時分割動
作モード期間としての転送モード期間中に前記中央処理
装置からアクセス要求信号を受けた場合は、該転送モー
ド期間から他の時分割動作モード期間としてのCPUモ
ード期間に切り替わった時点で前記中央処理装置による
前記記憶装置へのアクセスを媒介する機能を有すること
を特徴とするデータ処理装置。
1. A storage device for storing programs and data, a data transfer control unit for mediating access to the storage device, and a central processing for accessing the storage device via the data transfer control unit. An apparatus and a functional block different from the central processing unit that accesses the storage device via the data transfer control unit, wherein the data transfer control unit mediates access to the storage device by the functional block. In the case where an access request signal is received from the central processing unit during the transfer mode period as one time division operation mode period, the transfer mode period is switched to another CPU mode period as the time division operation mode period. A data processing device having a function of mediating access to the storage device by the central processing unit at a point of time.
【請求項2】 請求項1記載のデータ処理装置におい
て、 前記データ転送制御部は、 前記中央処理装置又は前記機能ブロックへ渡すために前
記記憶装置から読み出したデータを保持するための第1
の保持回路と、 前記記憶装置へ書き込むために前記中央処理装置から与
えられたデータを保持するための第2の保持回路と、 前記記憶装置へ書き込むために前記機能ブロックから与
えられたデータを保持するための第3の保持回路と、 前記中央処理装置による前記記憶装置へのアクセスを媒
介するために前記第1及び第2の保持回路の動作を制御
するとともに、前記機能ブロックによる前記記憶装置へ
のアクセスを媒介するために前記第1及び第3の保持回
路の動作を制御するためのデータ転送制御回路とを備
え、 該データ転送制御回路は、 前記転送モード期間中に前記中央処理装置からのアクセ
ス要求信号として書き込み要求信号を受けた場合は、該
中央処理装置から与えられたデータを前記第2の保持回
路に保持させるとともに該中央処理装置による書き込み
要求信号の再出力を禁止するために該中央処理装置にウ
ェイト信号を返しておき、該転送モード期間から前記C
PUモード期間に切り替わるのを待って該第2の保持回
路に保持されたデータを前記記憶装置へ書き込み、 前記転送モード期間中に前記中央処理装置からのアクセ
ス要求信号として読み出し要求信号を受けた場合は、該
中央処理装置による読み出し要求信号の再出力を禁止す
るために該中央処理装置にウェイト信号を返しておき、
該転送モード期間から前記CPUモード期間に切り替わ
るのを待って前記記憶装置からデータを読み出し、該読
み出したデータを前記第1の保持回路に保持させ、該第
1の保持回路に保持されたデータを前記中央処理装置へ
渡す機能を有することを特徴とするデータ処理装置。
2. The data processing device according to claim 1, wherein the data transfer control unit holds data read from the storage device for passing to the central processing unit or the functional block.
Holding circuit, a second holding circuit for holding data given from the central processing unit for writing to the storage device, and holding data given from the functional block for writing to the storage device A third holding circuit for controlling the operation of the first and second holding circuits to mediate access to the storage device by the central processing unit, and to the storage device by the functional block. A data transfer control circuit for controlling the operations of the first and third holding circuits to mediate the access of the data transfer control circuit from the central processing unit during the transfer mode period. When the write request signal is received as the access request signal, the data given from the central processing unit is held in the second holding circuit and Processor advance returns a wait signal to the central processing unit in order to prohibit the re-output of the write request signal by the C from the transfer mode period
When the data held in the second holding circuit is written to the storage device after waiting for switching to the PU mode period and a read request signal is received as an access request signal from the central processing unit during the transfer mode period Returns a wait signal to the central processing unit in order to prohibit re-output of the read request signal by the central processing unit,
Waiting for switching from the transfer mode period to the CPU mode period, data is read from the storage device, the read data is held in the first holding circuit, and the data held in the first holding circuit is read. A data processing device having a function of passing the data to the central processing unit.
JP17261991A 1991-07-12 1991-07-12 Data processor Withdrawn JPH0520253A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17261991A JPH0520253A (en) 1991-07-12 1991-07-12 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17261991A JPH0520253A (en) 1991-07-12 1991-07-12 Data processor

Publications (1)

Publication Number Publication Date
JPH0520253A true JPH0520253A (en) 1993-01-29

Family

ID=15945236

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17261991A Withdrawn JPH0520253A (en) 1991-07-12 1991-07-12 Data processor

Country Status (1)

Country Link
JP (1) JPH0520253A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07295921A (en) * 1994-04-26 1995-11-10 Nec Ic Microcomput Syst Ltd Data processor
US6587932B2 (en) 1997-10-09 2003-07-01 Stmicroelectronics S.A. Processor and system for controlling shared access to a memory

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07295921A (en) * 1994-04-26 1995-11-10 Nec Ic Microcomput Syst Ltd Data processor
US6587932B2 (en) 1997-10-09 2003-07-01 Stmicroelectronics S.A. Processor and system for controlling shared access to a memory

Similar Documents

Publication Publication Date Title
JPH0520253A (en) Data processor
JP2618223B2 (en) Single chip microcomputer
JPS61165170A (en) Bus controlling system
JP2522412B2 (en) Communication method between programmable controller and input / output device
JPS6239792B2 (en)
JPH0115900B2 (en)
JP2837698B2 (en) Direct memory access controller
JPH09198298A (en) Memory controller
JPS609295B2 (en) Split main storage
JPS6031646A (en) Data processor
JPS63251851A (en) Constitution of dma memory
JPS5836380B2 (en) Direct memory access method in multiprocessor systems
JPH10134013A (en) Multi-cpu system
JPH0460729A (en) Information processor
JPH0685154B2 (en) Intermediate buffer control method
JPS62114043A (en) Information processing system
JPH05120195A (en) Input/output processor
JPS6383854A (en) Data transfer circuit
JPS60153556A (en) Common memory device
JPH039431A (en) Interruption processing system
JPH04311232A (en) System for accessing shared memory of information processor
JPS63733A (en) Program execution processing system
JPS6326744A (en) Memory bank switching circuit for microprocessor
JPS62174844A (en) Switching system for memory priority
JPH047740A (en) Controller for transfer of operand data

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19981008