JPH04338859A - Computer device - Google Patents

Computer device

Info

Publication number
JPH04338859A
JPH04338859A JP3111362A JP11136291A JPH04338859A JP H04338859 A JPH04338859 A JP H04338859A JP 3111362 A JP3111362 A JP 3111362A JP 11136291 A JP11136291 A JP 11136291A JP H04338859 A JPH04338859 A JP H04338859A
Authority
JP
Japan
Prior art keywords
data
cpu
memory
instruction
processing unit
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
JP3111362A
Other languages
Japanese (ja)
Inventor
Hiroyuki Suzuki
鈴木 廣之
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 JP3111362A priority Critical patent/JPH04338859A/en
Publication of JPH04338859A publication Critical patent/JPH04338859A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To perform the peripheral operation without waiting for the processing of a CPU at the time of accessing a memory by a peripheral device by providing the CPU, memories, and the peripheral device and connecting data busses from memories independently of each other. CONSTITUTION:An instruction bus 46 and a first data bus 44 connected to an instruction memory 47 are connected to a CPU 41, and the bus 44 and a second data bus 45 are connected to a data memory 42, and the bus 45 is connected to a peripheral circuit 43. Data is transferred between the peripheral circuit 43 and the data memory 42 through the bus 45 in the period when the CPU 41 does not access the data memory 42 in the instruction cycle of the CPU 41. Preferably, this period is the period privately provided in the instruction cycle or the period of an instruction which does not access the data memory 42.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は中央処理装置(以降CP
Uと記す)とメモリとその他周辺装置を有するコンピュ
ータ装置に関し、特に中央処理装置の命令実行中に周辺
装置から独自にCPUのデータ・メモリにアクセス可能
なコンピュータ装置に関する。
[Industrial Application Field] The present invention relates to a central processing unit (hereinafter referred to as CP).
The present invention relates to a computer device having a memory (denoted as U), a memory, and other peripheral devices, and particularly relates to a computer device in which data and memory of a CPU can be independently accessed from a peripheral device during execution of an instruction by a central processing unit.

【0002】0002

【従来の技術】従来のCPU、メモリ、周辺装置一体型
のコンピュータ装置では図2で示す様に1つのデータ・
バスをCPU21、データ・メモリ22、周辺装置23
で共用する。データ・バス24はCPU21からデータ
・メモリ22をアクセスする場合、CPU21が周辺装
置23をアクセスする場合、周辺装置23がデータ・メ
モリ22をアクセスする場合に使用される。CPU21
がデータ・メモリ22をアクセスする場合とCPU21
が周辺装置23をアクセスする場合はCPU21の命令
に対応する。しかし、周辺装置23がデータ・メモリ2
2をアクセスする場合はCPU21の命令に対応する場
合と周辺装置23がその動作上CPUの命令とは関係せ
ず独自にデータ・メモリ22のデータを必要とする場合
がある。後者をダイレクト・メモリ・アクセス動作と呼
ぶ(以後DMA動作と記す)。
[Prior Art] In a conventional computer device that integrates a CPU, memory, and peripheral devices, one data
bus to CPU 21, data memory 22, peripheral devices 23
Share with. The data bus 24 is used when the CPU 21 accesses the data memory 22, when the CPU 21 accesses the peripheral device 23, and when the peripheral device 23 accesses the data memory 22. CPU21
accesses the data memory 22 and the CPU 21
When accessing the peripheral device 23, it corresponds to an instruction from the CPU 21. However, the peripheral device 23
2 may be accessed in response to instructions from the CPU 21, or the peripheral device 23 may require the data in the data memory 22 independently for its operation, regardless of the instructions from the CPU. The latter is called a direct memory access operation (hereinafter referred to as a DMA operation).

【0003】DMA動作CPU21の1つの命令でデー
タ・メモリ22から周辺装置23へ転送されるデータ量
より大量のデータを短時間でデータ・メモリ22から周
辺装置23に転送を必要とされる場合に使用される。
DMA operation 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 of data transferred from the data memory 22 to the peripheral device 23 by one command of the CPU 21, used.

【0004】それは、通常、CPU21を8bitsC
PUとすると1命令でデータ・メモリ22から周辺装置
23に転送できるデータ量は8bits程度である。周
辺装置23が例えばCPU21の1命令実行時間中に3
2bits必要の場合はCPU21のデータ・メモリ・
アクセス動作を介さず直接データ・メモリ22を周辺装
置23がアクセスした方が周辺装置23の独自のタイミ
ングでCPU21の1命令中に4度アクセスすれば良い
からである。
[0004] Normally, the CPU 21 is
In the case of a PU, the amount of data that can be transferred from the data memory 22 to the peripheral device 23 with one instruction is about 8 bits. For example, when the peripheral device 23 executes 3 instructions during one instruction execution time of the CPU 21,
If 2 bits are required, the data/memory of the CPU21
This is because if the peripheral device 23 directly accesses the data memory 22 without any access operation, the peripheral device 23 only needs to access it four times during one instruction of the CPU 21 at its own timing.

【0005】DMA動作を行う場合、CPU21で制御
されるデータと周辺装置23で制御されるデータがデー
タ・バス24上で干渉しあわないようにCPU21の動
作を停止しデータ・バス24は周辺装置23に解放され
る。
When performing a DMA operation, the operation of the CPU 21 is stopped so that the data controlled by the CPU 21 and the data controlled by the peripheral device 23 do not interfere with each other on the data bus 24, and the data bus 24 is connected to the peripheral device. Released on the 23rd.

【0006】周辺装置23はCPU21にDMA動作の
要求25をだし、CPU21はDMA動作が実行できる
状態にしデータ・バス24を解放しDMA許可信号26
を周辺装置23に送りDMA動作解除信号27が周辺装
置23から発行されるまで動作を停止する。
The peripheral device 23 issues a DMA operation request 25 to the CPU 21, and the CPU 21 puts the DMA operation into a state where it can be executed, releases the data bus 24, and issues a DMA permission signal 26.
is sent to the peripheral device 23, and the operation is stopped until a DMA operation cancellation signal 27 is issued from the peripheral device 23.

【0007】[0007]

【発明が解決しようとする課題】このようにDMA動作
は図2のデータ・バス24を周辺装置23のデータ転送
で使用するため、その間CPU動作を停止させるなけれ
ばならず見かけ上のCPU処理速度が低下する。図3に
その様子を示す。
[Problems to be Solved by the Invention] Since the DMA operation uses the data bus 24 in FIG. 2 for data transfer to the peripheral device 23, the CPU operation must be stopped during that time, which reduces the apparent CPU processing speed. decreases. Figure 3 shows the situation.

【0008】図3のAはDMA動作の無い場合のCPU
の動作タイミングである。図3のBはDMA動作がCP
Uの1命令おきに実行された場合である。例えばCPU
の命令実行時間が2μ秒でDMA動作にかかる時間がや
はり2μ秒であるとすると図3のAではCPU命令実行
時間は2μ秒であるが図3のBではCPUの命令実行時
間は見かけ上4μ秒になってしまう。
A in FIG. 3 shows the CPU when there is no DMA operation.
This is the operation timing. B in Figure 3 shows that the DMA operation is CP.
This is a case where every other instruction of U is executed. For example, CPU
If the 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, but in Figure 3B, the CPU instruction execution time is apparently 4μ seconds. It becomes seconds.

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

【0010】さらに、周辺装置の処理内容がCPU動作
と非同期の場合、周辺装置からのDMA動作要求が発行
されてもCPUの動作状況によっては、すぐには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, depending on the CPU operation status, the CPU
A DMA operation permission signal is not sent from the peripheral device, and the operation of the peripheral device stops during that time.

【0011】DMA動作を使用するとCPUの処理速度
および周辺装置の処理速度ともに遅くなるという場合が
発生する。
[0011] When DMA operations are used, there are cases in which both the processing speed of the CPU and the processing speed of peripheral devices become slow.

【0012】本コンピュータ装置外部の装置が本コンピ
ュータ装置に要求する実行処理スピードが速くなればな
るほど不利になる。また、このような構成で実行処理ス
ピードを上げようとすればCPU自体の処理スピードを
上げなくてはならない。もし、CPUが集積回路の場合
、内部のトランジスタの大きさを大きくせねばならず集
積回路の拡大化をまねき、さらに、大電力消費化招く。
[0012] The faster the execution processing speed that a device external to the computer system requires of the computer system, 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 CPU is an integrated circuit, the size of the internal transistors must be increased, leading to an enlargement of the integrated circuit and further resulting in large power consumption.

【0013】[0013]

【課題を解決するための手段】本発明のコンピュータ装
置は中央処理装置と命令メモリとデータ・メモリと周辺
回路を有し該中央処理装置に該命令メモリに接続されて
いる命令バスと第一のデータ・バスが接続され、該デー
タ・メモリは第一のデータ・バスおよび第二のデータ・
バスが接続され、第二のデータ・バスは該周辺回路に接
続され、該周辺回路と該データ・メモリ間のデータ転送
は該中央処理装置の命令サイクル中で該データ・メモリ
を該中央処理装置がアクセスしていない期間に第二のデ
ータ・バスを介して行う事を特徴としている。
A computer device of the present invention has a central processing unit, an instruction memory, a data memory, and a peripheral circuit, and the central processing unit has an instruction bus connected to the instruction memory, and a first A data bus is connected, and the data memory is connected to a first data bus and a second data bus.
a second data bus is connected to the peripheral circuit, and data transfer between the peripheral circuit and the data memory transfers the data memory to the central processing unit during an instruction cycle of the central processing unit. It is characterized in that it is performed via the second data bus during periods when the data bus is not being accessed.

【0014】前記の該中央処理装置の命令サイクル中の
該データ・メモリを該中央処理装置がアクセスしていな
い期間は該命令サイクル中に専用に設けられた期間また
は、該データ・メモリをアクセスしない命令の期間であ
る。
[0014] The period during which the central processing unit does not access the data memory during the instruction cycle of the central processing unit is a period provided exclusively during the instruction cycle, or a period during which the data memory is not accessed. This is the period of instruction.

【0015】[0015]

【実施例】次に本発明について図面を参照して説明する
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained with reference to the drawings.

【0016】図1は本発明の一実施例である。CPU1
は命令メモリ7より命令バス8を介して命令を受取り命
令に応じてデータ・バス4を介してデータ・メモリ2又
は周辺装置3をアクセスする。周辺装置3とデータ・メ
モリ2の間のデータ転送は専用のデータ・バス5を介し
て行う。図5にCPU1の1命令中の動作状況を示す。 CPU1の1命令4つのタイミングに分かれておりそれ
ぞれの1タイミングで1度しかデータ・メモリ2をアク
セスできない。タイミング51中はCPU1はデータ・
メモリ2はアクセスせず、タイミング52、53、54
でCPU1はデータ・メモリ2をアクセスする。
FIG. 1 shows an embodiment of the present invention. CPU1
receives instructions from instruction memory 7 via instruction bus 8 and accesses data memory 2 or peripheral device 3 via data bus 4 in accordance with the instruction. Data transfer between peripheral device 3 and data memory 2 takes place via a dedicated data bus 5. FIG. 5 shows the operating status of the CPU 1 during one instruction. One instruction of the CPU 1 is divided into four timings, and the data memory 2 can only be accessed once at each timing. During timing 51, CPU1 receives data.
Memory 2 is not accessed, timings 52, 53, 54
Then, CPU 1 accesses data memory 2.

【0017】例えばデータ・バス4を8bitsとし、
専用データ・バス5を32bitsとし、CPU1の1
命令サイクルを2μ秒とする。いま、CPU1が動作中
、周辺装置3がCPU1と非同期に動作している。周辺
装置3はその動作内容上2μ秒毎に32bitsのデー
タを必要であるとする。周辺装置3はCPU1命令サイ
クル中のタイミング52の期間にデータ・メモリ2を専
用データ・バス5を介してアクセスする。専用データ・
バス5はデータ・バス4と異なりbit幅が32bit
sであるため1回でデータ・メモリ2より32bits
のデータが転送でき、タイミング51はCPU1が動作
している間は常時周辺装置とデータ・メモリ2間のデー
タ転送の為に確保されているため、周辺装置3がわざわ
ざCPU1に許可を受ける必要もない。
For example, if the data bus 4 is 8 bits,
The dedicated data bus 5 is 32 bits, and the CPU 1 is
The instruction cycle is assumed to be 2 μsec. Now, while the CPU 1 is operating, the peripheral device 3 is operating asynchronously with the CPU 1. It is assumed that the peripheral device 3 requires 32 bits of data every 2 μsec 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. Dedicated data/
Unlike data bus 4, bus 5 has a bit width of 32 bits.
s, 32 bits from data memory 2 at one time
Since the timing 51 is always reserved for data transfer between the peripheral device and the data memory 2 while the CPU 1 is operating, the peripheral device 3 does not need to take the trouble to request permission from the CPU 1. do not have.

【0018】図4は本発明の実施例2である。実施例1
と異なるところはデータ・メモリ2がCPU41と種辺
装置43と独立にアクセスできることである。
FIG. 4 shows a second embodiment of the present invention. Example 1
The difference is that the data memory 2 can be accessed independently by the CPU 41 and the seed device 43.

【0019】[0019]

【発明の効果】周辺装置がメモリをアクセスするときに
CPUの処理を待つ事無く周辺動作させる事ができる。
Effects of the Invention When a peripheral device accesses a memory, the peripheral device can operate without waiting for CPU processing.

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

【図1】本発明の一実施例図である。FIG. 1 is a diagram showing an embodiment of the present invention.

【図2】従来例回路図である。FIG. 2 is a circuit diagram of a conventional example.

【図3】従来回路のタイミング・チャートである。FIG. 3 is a timing chart of a conventional circuit.

【図4】本発明の第二の実施例図である。FIG. 4 is a diagram of a second embodiment of the present invention.

【図5】本発明のタイミング・チャートである。FIG. 5 is a timing chart of the present invention.

【図6】本発明の実施例図である。FIG. 6 is an embodiment diagram of the present invention.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】  中央処理装置と命令メモリとデータ・
メモリと周辺回路を有するコンピュータ装置に於いて、
該中央処理装置に該命令メモリに接続されている命令バ
スと第一のデータ・バスが接続され、該データ・メモリ
は第一のデータ・バスおよび第二のデータ・バスが接続
され、第二のデータ・バスは該周辺回路に接続され、該
周辺回路と該データ・メモリ間のデータ転送は該中央処
理装置の命令サイクル中で該データ・メモリを該中央処
理装置がアクセスしていない期間に第二のデータ・バス
を介して行う事を特徴とするコンピュータ装置。
[Claim 1] A central processing unit, an instruction memory, and a data
In a computer device having memory and peripheral circuits,
An instruction bus connected to the instruction memory and a first data bus are connected to the central processing unit; the data memory is connected to the first data bus and a second data bus; A data bus is connected to the peripheral circuit, and data transfer between the peripheral circuit and the data memory is performed during a period when the data memory is not being accessed by the central processing unit during an instruction cycle of the central processing unit. A computer device characterized in that it operates via a second data bus.
【請求項2】  前記該中央処理装置の命令サイクル中
の該データ・メモリを該中央処理装置がアクセスしてい
ない期間とは命令サイクル中に専用に設けられた期間で
ある事を特徴とする請求項1記載のコンピュータ装置。
2. A claim characterized in that a period in which the central processing unit does not access the data memory during an instruction cycle of the central processing unit is a period exclusively provided during the instruction cycle. The computer device according to item 1.
【請求項3】  前記中央処理装置の命令サイクル中の
該データ・メモリを該中央処理装置がアクセスしていな
い期間とはデータ・メモリをアクセスしない命令の期間
であることを特徴とする請求項1記載のコンピュータ装
置。
3. A period during an instruction cycle of the central processing unit in which the data memory is not accessed by the central processing unit is a period of an instruction in which the data memory is not accessed. Computer equipment as described.
【請求項4】  前記中央処理装置がデータ・メモリを
アクセスしている期間に該中央処理装置がアクセスして
いない領域は該周辺装置がアクセスする事が可能である
ことを特徴とする請求項1記載のコンピュータ装置。
4. An area that is not accessed by the central processing unit during a period when the central processing unit is accessing the data memory can be accessed by the peripheral device. Computer equipment as described.
JP3111362A 1991-05-16 1991-05-16 Computer device Pending JPH04338859A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3111362A JPH04338859A (en) 1991-05-16 1991-05-16 Computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3111362A JPH04338859A (en) 1991-05-16 1991-05-16 Computer device

Publications (1)

Publication Number Publication Date
JPH04338859A true JPH04338859A (en) 1992-11-26

Family

ID=14559274

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3111362A Pending JPH04338859A (en) 1991-05-16 1991-05-16 Computer device

Country Status (1)

Country Link
JP (1) JPH04338859A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004073252A1 (en) * 2003-02-14 2004-08-26 Sony Corporation Authentication processing device and security processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
US4935868A (en) Multiple port bus interface controller with slave bus
US5119480A (en) Bus master interface circuit with transparent preemption of a data transfer operation
US5014247A (en) System for accessing the same memory location by two different devices
KR19990076908A (en) Power Management Device and Method
EP0242879B1 (en) Data processor with wait control allowing high speed access
JPH05324348A (en) Single chip microcomputer
JPH04338859A (en) Computer device
JPH0343804A (en) Sequence controller
JPH03282667A (en) Computer device
US5060138A (en) Apparatus for use with a computing device for generating a substitute acknowledgement to an input when the computing device is in an operational hiatus
JPH04211854A (en) Computer device
JP2565916B2 (en) Memory access controller
JPH06149722A (en) Computer device
JPH0222748A (en) Non-volatile memory control circuit
JP2722908B2 (en) Single chip microcomputer
US5134613A (en) Two parety memory access arbitrator
JPS63155254A (en) Information processor
JPS6292050A (en) input/output control device
JPH05298241A (en) Burst transfer system
JPH0575140B2 (en)
JPH06208541A (en) Bus controller of multitask system
JPH02211571A (en) Information processor
JPH02260059A (en) Bus control system for computer
JPS6215903B2 (en)
JPS62127962A (en) Microcomputer

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20000208