JPH05210616A - Computer device - Google Patents

Computer device

Info

Publication number
JPH05210616A
JPH05210616A JP31588091A JP31588091A JPH05210616A JP H05210616 A JPH05210616 A JP H05210616A JP 31588091 A JP31588091 A JP 31588091A JP 31588091 A JP31588091 A JP 31588091A JP H05210616 A JPH05210616 A JP H05210616A
Authority
JP
Japan
Prior art keywords
dma
instruction
bus
transfer
ram
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
JP31588091A
Other languages
Japanese (ja)
Inventor
Masatoshi Ochi
正俊 越智
Kazuhide Kawada
和秀 河田
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP31588091A priority Critical patent/JPH05210616A/en
Publication of JPH05210616A publication Critical patent/JPH05210616A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To transfer a large quantity of data without obstructing an instruction executing speed by executing a DMA transfer at the timing of an instruction fetch in an instruction cycle. CONSTITUTION:When a DMA requesting signal is outputted from an input/ output device 106, a DMA controller 105 is activated, and the bus selection signal of a high level is outputted in an instruction fetch cycle. That is, at the timing of the instruction fetch cycle, multiplexers (MUX) 201-203 select an exclusive address bus 205 from a DMA controller, a read/write signal 212 from the DMA controller, and an exclusive data bus 209 from the input/output device, respectively. Accordingly, in one instruction cycle, at the timing when a CPU does not make access absolutely to a RAM 103, that is, in an instruction fetch cycle 302, the DMA transfer is executed between the RAM 103 and the input/output device 106.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータ装置に関
し、特に読み書き可能な記憶装置と周辺回路と間で、い
わゆるDMA(Direct Memory Acce
ss)によってデータを転送するコンピュータ装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer device, and more particularly to a so-called DMA (Direct Memory Access) between a readable / writable memory device and a peripheral circuit.
ss) to a computer device for transferring data.

【0002】[0002]

【従来の技術】従来のDMA方式による周辺回路とメモ
リー間のデータ転送を、図1を用いて簡単に説明する。
2. Description of the Related Art Data transfer between a peripheral circuit and a memory by a conventional DMA method will be briefly described with reference to FIG.

【0003】図1に示す従来例は、命令を実行し演算お
よび記憶装置や周辺装置の制御を行う中央制御装置(以
下、CPU)101と、命令を格納する読み出し専用記
憶装置(以下、ROM)102と、データを格納する読
み書き可能な記憶装置(以下、RAM)103と、DM
A方式によるデータ転送を制御するDMAコントローラ
105および、大量のデータ転送を必要とする入出力装
置106から構成されている。また、図中のアドレス・
バス107とはCPU101およびDMAコントローラ
105がRAM103およびROM102にアドレスを
送出するバスであり、データ・バスとはROM102か
ら読み出された命令やRAM103に読み書きされるデ
ータをCPU101や入出力装置106とやりとりする
ためのバスである。ここで、DMAコントローラ105
は入出力装置106からDMA要求信号115を受け取
ると活性化し、アドレス・バス107やデータ・バス1
08をCPU101から切り放しRAM103と入出力
装置106の間での高速のデータ転送を制御するコント
ローラである。
In the conventional example shown in FIG. 1, a central control unit (hereinafter referred to as CPU) 101 for executing instructions to control arithmetic operations and storage devices and peripheral devices, and a read-only storage device (hereinafter referred to as ROM) for storing instructions. 102, a readable / writable storage device (hereinafter, RAM) 103 for storing data, and a DM
It is composed of a DMA controller 105 for controlling data transfer according to the A system and an input / output device 106 that requires a large amount of data transfer. Also, the address in the figure
The bus 107 is a bus through which the CPU 101 and the DMA controller 105 send addresses to the RAM 103 and the ROM 102, and the data bus exchanges commands read from the ROM 102 and data read from and written to the RAM 103 with the CPU 101 and the input / output device 106. It is a bus to do. Here, the DMA controller 105
Is activated when it receives the DMA request signal 115 from the I / O device 106, and the address bus 107 or the data bus 1 is activated.
08 is a controller that separates 08 from the CPU 101 and controls high-speed data transfer between the RAM 103 and the input / output device 106.

【0004】DMA転送を行っていない時(以下、非D
MA転送)CPU101は、ROM102から命令を読
み出すインストラクション・フェッチ・サイクル(図3
の302)と、読み出した命令に従ってRAM103や
ROM102をアクセスしたり演算を実行する実行サイ
クル(図3の303)とから成る命令サイクル(図3の
301)を繰り返し順次命令を実行している。この時、
DMAコントローラ105がバスリクエスト104をC
PU101に発行すると、所定のタイミングでデータ・
バス108がCPU101から解放される。これと同時
に、RAM103と入出力装置106はCPU101を
介さないデータ転送(DMA転送)を開始する。この
時、CPU101はデータ・バス108を解放している
ので、DMA転送中は実際には命令の実行を停止してい
る。このためCPUの実質的な命令実行速度が低下す
る。
When DMA transfer is not performed (hereinafter referred to as non-D
MA transfer) CPU 101 has an instruction fetch cycle (see FIG. 3) for reading an instruction from ROM 102.
302) and an execution cycle (303 in FIG. 3) for accessing the RAM 103 or the ROM 102 and executing an operation according to the read instruction (301 in FIG. 3) are repeated to sequentially execute the instructions. At this time,
The DMA controller 105 sends the bus request 104 to C
When issued to PU 101, data
The bus 108 is released from the CPU 101. At the same time, the RAM 103 and the input / output device 106 start data transfer (DMA transfer) not via the CPU 101. At this time, since the CPU 101 releases the data bus 108, the execution of the instruction is actually stopped during the DMA transfer. Therefore, the substantial instruction execution speed of the CPU is reduced.

【0005】ここで、DMAによるデータ転送速度を遅
くして実質的なCPUの命令実行速度を上げることもで
きるが、入出力装置がテレビジョン受像装置に文字を表
示する管面表示装置(イメージ・ディスプレイ・コント
ローラ、以下、IDC)のように画面表示の水平同期信
号に同期してRAMを読み出す必要がありかつ大量のデ
ータを転送する必要がある場合、水平同期信号より遅れ
る訳には行かないので、常時DMA転送をしなければな
らず、DMAによるデータ転送速度を遅くしてCPUの
命令実行速度を上げることもできない。
Here, although it is possible to slow down the data transfer rate by the DMA to substantially increase the instruction execution speed of the CPU, the input / output device displays a character on the television receiver (screen image display device). When it is necessary to read the RAM in synchronization with the horizontal synchronizing signal of the screen display and transfer a large amount of data like a display controller (hereinafter referred to as IDC), it cannot be delayed from the horizontal synchronizing signal. However, the DMA transfer must always be performed, and the data transfer rate by the DMA cannot be slowed to increase the instruction execution speed of the CPU.

【0006】[0006]

【発明が解決しようとする課題】従来のDMA方式によ
るデータ転送では、前述した通りDMA転送によってC
PUの命令の実行が妨げられ実質的なCPUの命令実行
速度が下がるという弊害が起きる。この時RAMとDM
A転送を行う周辺装置が、IDCの様に所定のタイミン
グで常に大量のデータ転送を必要とする場合には、CP
Uの命令実行時間の多くをDMA転送に割かれてしまい
高速処理を必要とする他の周辺装置およびCPUの動作
に影響が出る。
In the conventional data transfer by the DMA system, the C transfer is performed by the DMA transfer as described above.
As a result, the execution of PU instructions is hindered and the actual CPU instruction execution speed decreases. RAM and DM at this time
If the peripheral device that performs A transfer always needs to transfer a large amount of data at a predetermined timing, like IDC, CP
Much of the instruction execution time of U is devoted to DMA transfer, which affects the operation of other peripheral devices and CPUs that require high-speed processing.

【0007】[0007]

【課題を解決するための手段】本発明にかかるコンピュ
ータ装置は、中央処理装置と、命令を記憶する読み出し
専用記憶手段と、データを記憶する読み書き可能な記憶
手段および入出力手段から構成され、前記中央処理装置
が前記読み出し専用記憶手段から命令を読み出す期間
に、前記入出力手段と前記読み書き可能な記憶手段とを
接続することを特徴としている。
A computer system according to the present invention comprises a central processing unit, a read-only storage means for storing instructions, a readable / writable storage means for storing data, and an input / output means. The input / output unit and the readable / writable storage unit are connected during a period in which the central processing unit reads an instruction from the read-only storage unit.

【0008】[0008]

【実施例】次に、図2と図3を用いて、本発明の具体的
な実施例について説明する。ここで図2は、本発明のコ
ンピュータ装置の具体的な動作を示すブロック図、ま
た、図3は本発明にかかる基本的なバスのタイミングチ
ャートである。尚、図1と同一のブロックについては同
一の番号を付し詳しい説明を省略する。
EXAMPLES Next, specific examples of the present invention will be described with reference to FIGS. 2 is a block diagram showing a specific operation of the computer apparatus of the present invention, and FIG. 3 is a basic bus timing chart according to the present invention. The same blocks as those in FIG. 1 are designated by the same reference numerals and detailed description thereof will be omitted.

【0009】本実施例は、従来のDMA動作を示した図
1の構成に加えて、DMAコントローラから出力される
バス・セレクト信号204と、このバス・セレクト信号
204が高レベルの時すなわちDMA転送時にDMAコ
ントローラ105からの専用アドレス・バス205を、
バス・セレクト信号204が低レベルの時すなわち非D
MA転送時にアドレス・バス107からのバス206を
それぞれRAM103へのアドレス・バス207に接続
するマルチプレクサ(以下、MUX)201と、同様に
してDMA転送時に入出力装置106からの専用データ
・バス209を、非DMA転送時にデータ・バス108
からのバス210をRAM103へのデータ・バス20
8に接続するMUX203と、DMA転送時にDMAコ
ントローラ105からのリード・ライト信号212を、
非DMA転送時にCPUからのリード・ライト信号21
1をRAM103へのリード・ライト信号213に出力
するMUX202から構成されている。
In addition to the structure of FIG. 1 showing the conventional DMA operation, the present embodiment has a bus select signal 204 output from a DMA controller and a high level of the bus select signal 204, that is, a DMA transfer. Sometimes the dedicated address bus 205 from the DMA controller 105
When the bus select signal 204 is low level, that is, non-D
A multiplexer (hereinafter referred to as MUX) 201 that connects the bus 206 from the address bus 107 to the address bus 207 to the RAM 103 during MA transfer, and a dedicated data bus 209 from the input / output device 106 during DMA transfer similarly. , Data bus 108 during non-DMA transfers
Data bus 20 from RAM 210 to RAM 103
8 and the read / write signal 212 from the DMA controller 105 during DMA transfer,
Read / write signal 21 from CPU during non-DMA transfer
The MUX 202 outputs 1 as a read / write signal 213 to the RAM 103.

【0010】ここで、1命令サイクル301は、インス
トラクション・フェッチ・サイクル302とRAM,R
OMへのアクセスや演算を行う実行サイクル303から
成っている。ここでインストラクション・フェッチ・サ
イクル302の時は、データ・バス108はROM10
2しかアクセスしない。
Here, one instruction cycle 301 is an instruction fetch cycle 302 and RAM, R
It consists of an execution cycle 303 for accessing the OM and performing operations. Here, in the instruction fetch cycle 302, the data bus 108 is the ROM 10
Access only 2.

【0011】DMA要求信号117が低レベルの時(図
3の307)、DMAコントローラは活性化していない
のでバス・セレクト信号は低レベルになっている。した
がってMUX201〜203は、インストラクション・
フェッチ・サイクル302でも実行サイクル303の時
も、それぞれアドレス・バス107からのバス206、
CPUからのリード・ライト信号211そしてデータ・
バス108からのバス210を選択している。次に、入
出力装置106からDMA要求信号が出力されると(図
3の308)DMAコントローラ105は活性化し、イ
ンストラクション・フェッチ・サイクル302で高レベ
ルのバス・セレクト信号を出力する。すなわち、このイ
ンストラクション・フェッチ・サイクル302のタイミ
ングではMUX201〜203はそれぞれDMAコント
ローラからの専用アドレス・バス205、DMAコント
ローラからのリード・ライト信号212そして入出力装
置からの専用データ・バス209を選択する(図3の3
06)。これによって1命令サイクル中でCPUがRA
M103を絶対にアクセスしないタイミングすなわちイ
ンストラクション・フェッチ・サイクル302で、RA
M103と入出力装置106間のDMA転送が行われ
る。この時CPU101はその実質的な命令実行速度を
妨げられていない。
When the DMA request signal 117 is at a low level (307 in FIG. 3), the DMA controller is not activated, so the bus select signal is at a low level. Therefore, MUX 201-203
During the fetch cycle 302 and the execution cycle 303, the bus 206 from the address bus 107,
Read / write signal 211 and data from CPU
Bus 210 from bus 108 is selected. Next, when the DMA request signal is output from the input / output device 106 (308 in FIG. 3), the DMA controller 105 is activated and outputs a high level bus select signal in the instruction fetch cycle 302. That is, at the timing of this instruction fetch cycle 302, the MUXs 201 to 203 respectively select the dedicated address bus 205 from the DMA controller, the read / write signal 212 from the DMA controller, and the dedicated data bus 209 from the input / output device. (3 in FIG. 3
06). This will cause the CPU to RA in one instruction cycle.
At the timing of never accessing M103, that is, at the instruction fetch cycle 302, RA
DMA transfer between the M103 and the input / output device 106 is performed. At this time, the CPU 101 is not hindering its substantial instruction execution speed.

【0012】次に図4を用いて本発明の第2の実施例を
示す。
Next, a second embodiment of the present invention will be described with reference to FIG.

【0013】本実施例は、実施例1において、RAMの
代わりにデュアル・ポートRAMを用いており図2にお
けるMUX201〜203が存在しない。また、基本的
な動作は図3に示すタイミングで行われる。
In this embodiment, a dual port RAM is used instead of the RAM in the first embodiment, and the MUXs 201 to 203 in FIG. 2 do not exist. The basic operation is performed at the timing shown in FIG.

【0014】ここで、1命令サイクル301は、インス
トラクション・フェッチ・サイクル302とRAM,R
OMへのアクセスや演算を行う実行サイクル303から
成っている。ここでインストラクション・フェッチ・サ
イクル302の時は、データ・バス108はROM10
2しかアクセスしない。
Here, one instruction cycle 301 is an instruction fetch cycle 302 and RAM, R
It consists of an execution cycle 303 for accessing the OM and performing operations. Here, in the instruction fetch cycle 302, the data bus 108 is the ROM 10
Access only 2.

【0015】DMA要求信号117が高レベルの時(図
3の308)すなわちDMAコントローラ105が活性
化している時、DMAコントローラ105からインスト
ラクション・フェッチ・サイクル302で高レベルのバ
ス・セレクト信号204が出力された時、このタイミン
グではCPU101は絶対にデュアル・ポートRAM4
01をアクセスしないのでDMAコントローラ105か
らのリード・ライト信号212を受付けデュアル・ポー
トRAM401は、専用アドレス・バス402と、専用
データ・バスを介してDMAコントローラと入出力装置
とアクセスし、DMA転送を行う。非DMA転送時はC
PUからのリード・ライト信号を受付け、バス403と
バス405を介して通常動作を行う。以上のようにDM
A動作のタイミングとCPU101がデュアル・ポート
RAM401をアクセスするタイミングは1命令サイク
ル301中で完全に時分割されているため、RAMの競
合は発生しなくなる。
When the DMA request signal 117 is at a high level (308 in FIG. 3), that is, when the DMA controller 105 is active, the DMA controller 105 outputs a high level bus select signal 204 in the instruction fetch cycle 302. At this timing, the CPU 101 absolutely operates the dual port RAM 4
01 is not accessed, the dual port RAM 401 receives the read / write signal 212 from the DMA controller 105, accesses the DMA controller and the input / output device through the dedicated address bus 402 and the dedicated data bus, and performs the DMA transfer. To do. C for non-DMA transfer
It receives a read / write signal from the PU and performs a normal operation via the bus 403 and the bus 405. DM as above
Since the timing of the A operation and the timing of the CPU 101 accessing the dual port RAM 401 are completely time-shared in one instruction cycle 301, RAM contention does not occur.

【0016】[0016]

【発明の効果】以上説明したように、本発明によるコン
ピュータ装置においては、命令サイクル中のインストラ
クション・フェッチのタイミングにDMA転送を行うこ
とにより、DMA転送中にCPUの命令実行時間が長く
なったり、RAMとしてデュアル・ポートRAMを使用
した場合にRAMの競合が起きたりすると言う問題を解
決することができ、CPUの実質的な命令実行速度を妨
げることなくRAMと入出力装置間で大量のデータの転
送が可能になるという効果がある。
As described above, in the computer device according to the present invention, by performing the DMA transfer at the instruction fetch timing in the instruction cycle, the instruction execution time of the CPU becomes long during the DMA transfer, It is possible to solve the problem that the contention of the RAM occurs when the dual port RAM is used as the RAM, and a large amount of data is transferred between the RAM and the input / output device without impeding the substantial instruction execution speed of the CPU. The effect is that transfer is possible.

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

【図1】従来の技術を示すブロック図である。FIG. 1 is a block diagram showing a conventional technique.

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

【図3】本発明におけるタイミングチャートである。FIG. 3 is a timing chart in the present invention.

【図4】図2においてRAMをデュアル・ポートRAM
に置き換えたときのブロック図である。
FIG. 4 shows a dual port RAM in FIG.
It is a block diagram when it replaces with.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 中央処理装置と、命令を記憶する読み出
し専用記憶手段と、データを記憶する読み書き可能な記
憶手段および入出力手段を有するコンピュータ装置にお
いて、前記中央処理装置が前記読み出し専用記憶手段か
ら命令を読み出す期間に、前記入出力手段と前記読み書
き可能な記憶手段とを接続することを特徴としたコンピ
ュータ装置。
1. A computer device having a central processing unit, a read-only storage unit for storing instructions, a readable / writable storage unit for storing data, and an input / output unit, wherein the central processing unit is from the read-only storage unit. A computer device, wherein the input / output unit and the readable / writable storage unit are connected during a period for reading out an instruction.
JP31588091A 1991-11-29 1991-11-29 Computer device Pending JPH05210616A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31588091A JPH05210616A (en) 1991-11-29 1991-11-29 Computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31588091A JPH05210616A (en) 1991-11-29 1991-11-29 Computer device

Publications (1)

Publication Number Publication Date
JPH05210616A true JPH05210616A (en) 1993-08-20

Family

ID=18070715

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31588091A Pending JPH05210616A (en) 1991-11-29 1991-11-29 Computer device

Country Status (1)

Country Link
JP (1) JPH05210616A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06161948A (en) * 1992-11-18 1994-06-10 Matsushita Electric Ind Co Ltd Data transfer device
US7240138B2 (en) 2003-04-14 2007-07-03 Renesas Technology Corp. Data transfer control apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06161948A (en) * 1992-11-18 1994-06-10 Matsushita Electric Ind Co Ltd Data transfer device
US7240138B2 (en) 2003-04-14 2007-07-03 Renesas Technology Corp. Data transfer control apparatus
US7395364B2 (en) 2003-04-14 2008-07-01 Renesas Technology Corp. Data transfer control apparatus

Similar Documents

Publication Publication Date Title
US5608881A (en) Microcomputer system for accessing hierarchical buses
JPH0348370A (en) Memory access control circuit
JPS5987569A (en) Automatic continuous processing circuit of data
KR100288177B1 (en) Memory access control circuit
US5471672A (en) Method for implementing a high speed computer graphics bus
JPH05210616A (en) Computer device
JP2000227895A (en) Device and method for transferring image data
JP2003281083A (en) Bus control circuit
JP2522412B2 (en) Communication method between programmable controller and input / output device
JP3077807B2 (en) Microcomputer system
JPS5952292A (en) Video ram writing controller
JPS6054065A (en) Synchronous controller
KR100690597B1 (en) Single mode direct memory access application method using cpu applying dual mode direct memory access
JPH06103026A (en) Memory system
JP2000172553A (en) Data processor
JP3070454B2 (en) Memory access control circuit
JP3264316B2 (en) Direct memory access controller
JPH06208539A (en) High-speed data transfer system
JP2008198119A (en) Data transfer device, data transfer system, and data transfer method
JPH0728990A (en) Graphic memory access circuit
JPH02188856A (en) Memory access circuit
JPH0212440A (en) Main memory device with fifo cache memory
JPH06324940A (en) Method and device for controlling memory
JPH0217544A (en) Information processor
JPH1063565A (en) Data processor

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20000509