JPH03282667A - Computer device - Google Patents

Computer device

Info

Publication number
JPH03282667A
JPH03282667A JP2082767A JP8276790A JPH03282667A JP H03282667 A JPH03282667 A JP H03282667A JP 2082767 A JP2082767 A JP 2082767A JP 8276790 A JP8276790 A JP 8276790A JP H03282667 A JPH03282667 A JP H03282667A
Authority
JP
Japan
Prior art keywords
data
cpu
memory
instruction
bus
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
JP2082767A
Other languages
Japanese (ja)
Inventor
Hiroyuki Suzuki
鈴木 廣之
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 JP2082767A priority Critical patent/JPH03282667A/en
Publication of JPH03282667A publication Critical patent/JPH03282667A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To evade the extension of an integrated circuit and to prevent the large power consumption by transferring the data between a data memory and a peripheral device in a period when a CPU has no access to the data memory during one instruction of the CPU and via an exclusive data bus not via a data bus. CONSTITUTION:A CPU 1 receives an instruction from an instruction memory 7 via a bus 6 and has an access to a data memory 2 or a peripheral device 3 via a data bus 4 in response to the instruction. Then the data are transferred between the device 3 and the memory 2 via an exclusive data bus 5 in a period when the CPU 1 has no access to the memory 2 during one instruction of the CPU 1. Thus it is possible to transfer a large quantity of data to the device 3 from the memory 2 without deteriorating the executing speed of the CPU 1 nor the processing speed of the device 3. Then the CPU 1 is never expanded and the large power consumption can be prevented.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は中央処理装置(以後CPUと記す)とメモリと
その他周辺装置を有するコンピュータ装置に関し、特に
中央処理装置の命令実行中に周辺装置から独自にCPU
のデータ・メモリにアクセス可能なコンピュータ装置に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a computer device having a central processing unit (hereinafter referred to as CPU), memory, and other peripheral devices. own CPU
The present invention relates to a computer device capable of accessing data memory of a computer.

〔従来の技術〕[Conventional technology]

従来のCPU、メモリ、周辺装置一体型のコンピュータ
装置では図2で示す様に1つのデータ・バスヲCPU 
21 、データ・メモリ221周辺装置23で共用する
。データ・バス24はCPU21からデータ・メモリ2
2をアクセスする場合、CPU21が周辺装置23をア
クセスする場合、周辺装置23がデータ・メモリ22を
アクセスする場合に使用される。CPU21がデータ・
メモリ22をアクセスする場合とCPU21が周辺装置
23をアクセスする場合はCPU21の命令に対応する
。しかし、周辺装置23がデータ・メモリ22をアクセ
スする場合はCPU21の命令に対応する場合と周辺装
置23がその動作上CPU21の命令とは関係せず独自
にデータ・メモリ22のデータを必要とする場合がある
。後者をダイレクト・メモリ・アクセス動作と呼ぶ(以
後DMA動作と記す)。
In a conventional computer device that integrates a CPU, memory, and peripheral devices, one data bus is connected to the CPU as shown in Figure 2.
21, data memory 221 is shared by the peripheral device 23; Data bus 24 is connected from CPU 21 to data memory 2.
2, when the CPU 21 accesses the peripheral device 23, and when the peripheral device 23 accesses the data memory 22. CPU21 is data
The cases in which the memory 22 is accessed and the cases in which the CPU 21 accesses the peripheral device 23 correspond to instructions from the CPU 21. However, when the peripheral device 23 accesses the data memory 22, there are cases where the peripheral device 23 responds to instructions from the CPU 21, and cases where the peripheral device 23 independently requires data from the data memory 22, regardless of the instructions from the CPU 21 for its operation. There are cases. The latter is called a direct memory access operation (hereinafter referred to as a DMA operation).

DMA動作はCPU21の1つの命令でデータ・メモリ
22から周辺装置23へ転送されるブタ量より大量のデ
ータを短時間でデータ・メモリ22から周辺装置23に
転送を必要とされる場合に使用される。
The DMA operation is used when it is necessary to transfer a larger amount of data from the data memory 22 to the peripheral device 23 in a short time than the amount transferred from the data memory 22 to the peripheral device 23 with one command from the CPU 21. Ru.

それは、通常、CPU21を8ビツトCPUとすると1
命令でデータ・メモリ22から周辺装置23に転送でき
るデータ量は8ビット程度である。
Normally, if the CPU 21 is an 8-bit CPU, it is 1
The amount of data that can be transferred from data memory 22 to peripheral device 23 with a command is about 8 bits.

周辺装置23が例えばCPU21の命令実行時間中に3
2ビツト必要の場合はCPU21のデータ・メモリ・ア
クセス動作を介さず直接データ・メモリ22を周辺装置
23がアクセスした方が周辺装置23の独自のタイミン
グでCPU21の1命令中に4度アクセスすれば良いか
らである。
For example, the peripheral device 23
If 2 bits are required, it is better for the peripheral device 23 to directly access the data memory 22 without going through the data memory access operation of the CPU 21, since the peripheral device 23 accesses it four times during one instruction of the CPU 21 at its own timing. Because it's good.

DMA動作を行う場合、CPU21て制御されるデータ
と周辺装置23て制御されるデータがデータ・バス24
上で干渉しあわないようにCPU21の動作を停止しデ
ータ・バス24は周辺装置23に開放される。周辺装置
23はCPU21にDMA動作の要求25をたし、CP
U21はDMA動作が実行できる状態にしデータ・バス
24を開放しDMA許可信号26を周辺装置23に送り
DMA動作解除信号27が周辺装置23から発行される
まで動作を停止する。
When performing a DMA operation, data controlled by the CPU 21 and data controlled by the peripheral device 23 are transferred to the data bus 24.
The operation of the CPU 21 is stopped so as not to interfere with each other, and the data bus 24 is opened to the peripheral devices 23. The peripheral device 23 sends a DMA operation request 25 to the CPU 21, and
U21 puts the DMA operation into a state where it can be executed, releases the data bus 24, sends a DMA enable signal 26 to the peripheral device 23, and stops the operation until a DMA operation cancel signal 27 is issued from the peripheral device 23.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

このようにDMA動作は図2のデータ・バス24を周辺
装置23のデータ転送で使用するため、その間CPU動
作を停止させなげればならず見かげ上のCPU処理速度
が低下する。図3にその様子を示す。
Since the DMA operation uses the data bus 24 in FIG. 2 to transfer data to the peripheral device 23, the CPU operation must be stopped during the DMA operation, which reduces the apparent CPU processing speed. Figure 3 shows the situation.

図3のAはDMA動作の無い場合のCPUの動作タイミ
ングである。図3のBはDMA動作がCPUの1命令お
きに実行された場合である。例えばCPUの命令実行時
間が2μ秒でDMA動作にかかる時間がやはり2μ秒で
あるとすると図3のAではCPUの命令実行時間は2μ
秒であるが図3のBではCPUの命令実行時間は見かけ
上4μ秒になってしまう。
A in FIG. 3 shows the operation timing of the CPU when there is no DMA operation. B in FIG. 3 is a case where a DMA operation is executed every other CPU instruction. For example, if the CPU instruction execution time is 2μ seconds and the time required for DMA operation is also 2μ seconds, then in Figure 3A, the CPU instruction execution time is 2μ seconds.
However, in B of FIG. 3, the instruction execution time of the CPU appears to be 4 microseconds.

また、前記の例ではDMA動作時間がCPUの1命令実
行時間と同じてあったが周辺装置の処理内容によっては
さらに時間がかかる場合も考えられる。つまり、CPU
のデータ処理で使用されるデータ・バスと周辺装置で使
用されるデータ・バスが同一であるため、そのデータ・
バスのビット幅の数倍のデータを周辺装置に転送すると
するとDMA動作期間が増加するためである。
Further, in the above example, the DMA operation time is the same as the execution time of one instruction by the CPU, but it may take even longer depending on the processing content of the peripheral device. In other words, the CPU
Because the data bus used for data processing and the data bus used by peripheral devices are the same,
This is because the DMA operation period increases if data several times the bit width of the bus is transferred to the peripheral device.

さらに、周辺装置の処理内容がCPU動作と非同期の場
合、周辺装置からのDMA動作要求が発行されてもCP
Uの動作状況によっては、すぐにはCPUからDMA動
作許可信号が送られず周辺装置の動作がその間停止して
しまう。
Furthermore, if the processing content of the peripheral device is asynchronous with the CPU operation, even if a DMA operation request is issued from the peripheral device, the CPU
Depending on the operating status of U, the DMA operation permission signal may not be sent from the CPU immediately and the operation of the peripheral devices may stop during that time.

− DMA動作を使用するとCPUの処理速度および周辺装
置の処理速度ともに遅くなるという場合が発生する。
- When using DMA operations, there may be cases where both the processing speed of the CPU and the processing speed of peripheral devices become slow.

本コンピュータ装置外部の装置が本コンピュタ装置に要
求する実行処理スピードが速くなればなれほど不利にな
る。また、このような構成で実行処理スピードを上げよ
うとすればCPU自体の処理シピードを上げなくてはな
らない。もし、CPLIが集積回路の場合、内部のトラ
ンジスタの大きさを大きくせねばならす集積回路の拡大
化をまねき、さらに、大電力消費化招く。
The faster the execution processing speed that a device external to the computer requires of the computer, the more disadvantageous it becomes. Furthermore, in order to increase the execution processing speed with such a configuration, it is necessary to increase the processing speed of the CPU itself. If the CPLI is an integrated circuit, the size of the internal transistors must be increased, leading to an enlargement of the integrated circuit, which also results in increased power consumption.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のコンピュータ装置は中央処理装置と命令メモリ
とデータ・メモリと周辺回路を有し該中央処理装置に該
命令メモリに接続されている命令バスと第一のデータ・
バスが接続され、該データ・メモリは第一のデータ、バ
スおよび第二のデータ・バスが接続され、第二のデータ
・バスは該周辺回路に接続され、該周辺回路と該データ
・メモリ間のデータ転送は該中央処理装置の命令サイク
づ ル中で該データ・メモリを該中央処理装置がアクセスし
ていない期間に第二のデータ・バスを介して行う事を特
徴としている。
The computer device of the present invention includes a central processing unit, an instruction memory, a data memory, and a peripheral circuit, and an instruction bus connected to the instruction memory and a first data bus connected to the central processing unit.
a bus is connected to the data memory, a first data bus and a second data bus are connected, the second data bus is connected to the peripheral circuit, and the data memory has a first data bus connected to the peripheral circuit; The data transfer is performed via the second data bus during the period when the central processing unit is not accessing the data memory during the instruction cycle of the central processing unit.

前記の該中央処理装置の命令サイクル中の該データ・メ
モリを該中央処理装置がアクセスしていない期間は該命
令サイクル中に専用に設けた期間である。
The period during the instruction cycle of the central processing unit when the data memory is not accessed by the central processing unit is a dedicated period during the instruction cycle.

〔実施例〕〔Example〕

次に本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例である。CPUIは命令メモ
リ7より命令バス8を介して命令を受取り命令に応じて
データ・バス4を介してデータ・メモリ2又は周辺装置
3をアクセスする。周辺装置3とデータ・メモリ2の間
のデータ転送は専用のデータ・バス5を介して行う。デ
ータ・メモリ2はデータ・バス4用の入出力装置と専用
データ・バス5用の入出力装置を備えている。さらに専
用データ・バス5とデータ・バス4のバス上のデータ・
ビット幅が異なり専用データ・バス5のデータ・ビット
幅の方が大きい。
FIG. 1 shows an embodiment of the present invention. The CPU receives instructions from the instruction memory 7 via the instruction bus 8 and accesses the data memory 2 or the peripheral device 3 via the data bus 4 in accordance with the instructions. Data transfer between peripheral device 3 and data memory 2 takes place via a dedicated data bus 5. The data memory 2 has input/output devices for a data bus 4 and an input/output device for a dedicated data bus 5. In addition, the data on the dedicated data bus 5 and data bus 4
The bit widths are different, and the data bit width of the dedicated data bus 5 is larger.

図5にCPU1の1命令中の動作状況を示す。FIG. 5 shows the operating status of the CPU 1 during one instruction.

CPUIの1命令4つのタイミングに分かれておりそれ
ぞれの1タイミングで1度しかデータ・メモリ2をアク
セスできない。タイミング51中はCPUIはデータ・
メモリ2はアクセスせず、タイミング52,53.54
でCPU1はデータ・メモリ2をアクセスする。
Each CPUI instruction is divided into four timings, and the data memory 2 can only be accessed once at each timing. During timing 51, the CPUI is not connected to data.
Memory 2 is not accessed, timing 52, 53.54
Then, CPU 1 accesses data memory 2.

例えば、データ・バス4を8ビツトとし、専用データ・
バス5を32ビツトとし、CPU1の1命令ザイクルを
2μ秒とする。いま、CPU 1が動作中、周辺装置3
がCPU1と非同期に動作している。周辺装置3はその
動作内容上2μ秒毎に32ビツトのデータを必要である
とする。周辺装置3はCPU1命令ザイクル中のタイミ
ング52の期間にデータ・メモリ2を専用データ・バス
5を介してアクセスする。専用データ・バス5はデータ
・バス4と異なりビット幅32ビツトであるため、1回
てデータ・メモリ2より32ビツトのデータが転送でき
、タイミング51はCPUIが動作している間は常時周
辺装置3とデータ・メモリ2間のデータ転送の為に確保
されているため、1度データ・メモリ2にアクセスする
たけである。
For example, if data bus 4 is 8 bits, the dedicated data
The bus 5 is assumed to be 32 bits, and the cycle of one instruction of the CPU 1 is assumed to be 2 μsec. Currently, CPU 1 is operating, peripheral device 3
is operating asynchronously with CPU1. It is assumed that the peripheral device 3 requires 32 bits of data every 2 microseconds due to its operation. Peripheral device 3 accesses data memory 2 via dedicated data bus 5 during timing 52 during the CPU 1 instruction cycle. Unlike the data bus 4, the dedicated data bus 5 has a bit width of 32 bits, so 32 bits of data can be transferred from the data memory 2 at a time, and at timing 51, peripheral devices are always transferred while the CPU is operating. 3 and data memory 2, the data memory 2 only needs to be accessed once.

また、周辺装置3がわざわざデータ・メモリ2からデー
タ転送するときにCPU1に許可を受ける必要もない。
Furthermore, there is no need for the peripheral device 3 to obtain permission from the CPU 1 when transferring data from the data memory 2.

第4図は本発明の他の実施例である。前記実施例と異な
るところはデータ・メモリ42には2つのデータの入出
力装置しかなく、専用データ・バス45とデータ・バス
44のどちらかをデータ・メモリ42の入出力装置に接
続するかを切り替えるバス切り替え装置48があること
である。ブタ・メモリ420入出力装置のデータのビッ
ト幅は専用データ・バスのビット幅と同一である。バス
・切り替え装置48は切り替え制御信号49によって制
御され、切り替え制御信号49がハイ・レベルになると
データ・メモリ42のデータ入出力装置に専用データ・
バス45に接続され、ロー・レベルになるとデータ・バ
ス44に接続される。
FIG. 4 shows another embodiment of the invention. The difference from the previous embodiment is that the data memory 42 has only two data input/output devices, and it is determined whether either the dedicated data bus 45 or the data bus 44 is connected to the input/output device of the data memory 42. There is a bus switching device 48 for switching. The bit width of the data in the pig memory 420 input/output device is the same as the bit width of the dedicated data bus. The bus switching device 48 is controlled by a switching control signal 49, and when the switching control signal 49 goes high, the data input/output device of the data memory 42 receives dedicated data.
It is connected to the bus 45, and when it goes low, it is connected to the data bus 44.

図5のCにその切り替え制御信号48のタイミングをし
めす。
FIG. 5C shows the timing of the switching control signal 48.

9 切り替え制御信号49はタイミング51でノ\イ・レベ
ルになりタイミング52,53.54でロー・レベルに
なるためその他の動作としては前記実施例と同一になる
9. The switching control signal 49 goes to no level at timing 51 and goes to low level at timings 52, 53, and 54, so other operations are the same as in the previous embodiment.

〔発明の効果〕〔Effect of the invention〕

このようにデータ・メモリと周辺装置のデータ転送をC
PUの1命令中のCPUがデータ・メモリをアクセスし
ない期間にデータ・バスでなく専用データ・バスを介し
て行うことにより、CPUの実行速度は低下することな
く、また、周辺装置も処理速度を低下させずに大量デー
タを周辺装置にデータ・メモリから転送可能となりCP
Uの拡大化、大電力消費を防ぐことができる。
In this way, data transfer between data memory and peripheral devices is
By using the dedicated data bus instead of the data bus during the period when the CPU does not access data memory during one instruction of the PU, the execution speed of the CPU does not decrease, and the processing speed of peripheral devices also increases. Large amounts of data can be transferred from data memory to peripheral devices without deteriorating the CP.
Expansion of U and large power consumption can be prevented.

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

第1図は本発明の一実施例のブロック図、第2図は従来
技術のブロック図、第3図は従来技術のタイミング説明
、第4図は本発明の他の実施例のブロック図、第5図は
第1図の実施例と第4図の実施例のタイミング説明であ
る。 0 28・ ・命令バス、 ・・命令メモリ、 46・ ・・命令バス、 7 ・・命令メモリ。
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a block diagram of the prior art, FIG. 3 is a timing explanation of the prior art, FIG. 4 is a block diagram of another embodiment of the present invention, and FIG. FIG. 5 is a timing explanation of the embodiment of FIG. 1 and the embodiment of FIG. 4. 0 28...Instruction bus,...Instruction memory, 46...Instruction bus, 7...Instruction memory.

Claims (1)

【特許請求の範囲】 1、中央処理装置と命令メモリとデータ・メモリと周辺
回路を有するコンピュータ装置に於いて、該中央処理装
置に該命令メモリに接続されている命令バスと第一のデ
ータ・バスが接続され、該データ・メモリは第一のデー
タ・バスおよび第二のデータ・バスが接続され、第二の
データ・バスは該周辺回路に接続され、該周辺回路と該
データ・メモリの間のデータ転送は該中央処理装置の命
令サイクル中で該データ・メモリを該中央処理装置がア
クセスしていない期間に第二のデータ・バスを介して行
う事を特徴とするコンピュータ装置。 2、前記第1項の該中央処理装置の命令サイクル中の該
データ・メモリを該中央処理装置がアクススしていない
期間とは命令サイクル中に専用に設けられた期間である
事を特徴とするコンピュータ装置。
[Claims] 1. In a computer device having a central processing unit, an instruction memory, a data memory, and a peripheral circuit, the central processing unit has an instruction bus connected to the instruction memory, and a first data bus connected to the instruction memory. a first data bus and a second data bus are connected to the data memory, the second data bus is connected to the peripheral circuit, and the data memory is connected to the peripheral circuit; A computer device characterized in that data transfer between the central processing unit and the data memory is performed via a second data bus during a period when the central processing unit is not accessing the data memory during an instruction cycle of the central processing unit. 2. The period in which the central processing unit is not accessing the data memory during the instruction cycle of the central processing unit as set forth in item 1 above is a period provided exclusively during the instruction cycle. computer equipment.
JP2082767A 1990-03-29 1990-03-29 Computer device Pending JPH03282667A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2082767A JPH03282667A (en) 1990-03-29 1990-03-29 Computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2082767A JPH03282667A (en) 1990-03-29 1990-03-29 Computer device

Publications (1)

Publication Number Publication Date
JPH03282667A true JPH03282667A (en) 1991-12-12

Family

ID=13783589

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2082767A Pending JPH03282667A (en) 1990-03-29 1990-03-29 Computer device

Country Status (1)

Country Link
JP (1) JPH03282667A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100343461B1 (en) * 1999-12-06 2002-07-11 박종섭 Low power bus apparatus
WO2004073252A1 (en) * 2003-02-14 2004-08-26 Sony Corporation Authentication processing device and security processing method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5884333A (en) * 1981-11-13 1983-05-20 Ricoh Co Ltd Memory controlling system
JPS62231367A (en) * 1986-04-01 1987-10-09 Meidensha Electric Mfg Co Ltd Dma data transfer system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5884333A (en) * 1981-11-13 1983-05-20 Ricoh Co Ltd Memory controlling system
JPS62231367A (en) * 1986-04-01 1987-10-09 Meidensha Electric Mfg Co Ltd Dma data transfer system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100343461B1 (en) * 1999-12-06 2002-07-11 박종섭 Low power bus apparatus
WO2004073252A1 (en) * 2003-02-14 2004-08-26 Sony Corporation Authentication processing device and security processing method
US7739506B2 (en) 2003-02-14 2010-06-15 Sony Corporation Authentication processing device and security processing method

Similar Documents

Publication Publication Date Title
US5287486A (en) DMA controller using a programmable timer, a transfer counter and an or logic gate to control data transfer interrupts
JPH05324348A (en) Single chip microcomputer
JPH01124031A (en) Microcomputer
US6504854B1 (en) Multiple frequency communications
JPH03282667A (en) Computer device
US6954873B2 (en) Implementation of wait-states
JPH0789346B2 (en) DMA controller
US5561818A (en) Microprocessor and data processing system for data transfer using a register file
US4628450A (en) Data processing system having a local memory which does not use a directory device with distributed resident programs and a method therefor
JPH04211854A (en) Computer device
JPH04338859A (en) Computer device
JPH06149722A (en) Computer device
JPS59229662A (en) Common memory control circuit
JP2722908B2 (en) Single chip microcomputer
JPH0333934A (en) Register saving/recovering system
JPH05165541A (en) Electronic circuit
KR930000670B1 (en) Interface circuit of common ram between main cpu and sub-cpu
JPH02307123A (en) Computer
JPH05210616A (en) Computer device
JPS62150459A (en) Single chip microcomputer
JPS59133629A (en) Dma transfer control system
JPS61286956A (en) Data processor
JPH0512183A (en) Data transfer system
JPH0293971A (en) Memory access circuit
JPS62152056A (en) Information processor