JPH0120781B2 - - Google Patents

Info

Publication number
JPH0120781B2
JPH0120781B2 JP4350084A JP4350084A JPH0120781B2 JP H0120781 B2 JPH0120781 B2 JP H0120781B2 JP 4350084 A JP4350084 A JP 4350084A JP 4350084 A JP4350084 A JP 4350084A JP H0120781 B2 JPH0120781 B2 JP H0120781B2
Authority
JP
Japan
Prior art keywords
memory
byte
signal
bus
control circuit
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.)
Expired
Application number
JP4350084A
Other languages
Japanese (ja)
Other versions
JPS60189052A (en
Inventor
Nobuo Karaki
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP4350084A priority Critical patent/JPS60189052A/en
Publication of JPS60189052A publication Critical patent/JPS60189052A/en
Publication of JPH0120781B2 publication Critical patent/JPH0120781B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
    • G06F13/285Halt processor DMA
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4009Coupling between buses with data restructuring
    • G06F13/4018Coupling between buses with data restructuring with data-width conversion

Description

【発明の詳細な説明】 (技術分野) 本発明は、メモリ・アクセス制御装置に関し、
さらに詳しくはワード単位でもバイト単位でも随
時選択的にメモリをアクセスするメモリ・アクセ
ス制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Technical Field) The present invention relates to a memory access control device,
More specifically, the present invention relates to a memory access control device that selectively accesses memory at any time, either in word units or byte units.

(従来技術) 1バイト分のバス幅を持つ入出力制御ポートと
2バイト分のバス幅を持つ入出力制御ポートを同
一構成にして1バイトデータ転送でも2バイトデ
ータ転送でもどちらでも可能にした従来技術とし
ては、例えば特公昭58−46727号公報に示される
技術がある。そしてその内容は、メモリとメイン
バスの間にバス切り換え装置を配置し、その装置
が2バイト転送なのか、1バイト転送の上位バイ
ト側転送なのか、1バイト転送の下位バイト側転
送なのかによつてメモリとメインバスとの接続の
仕方を制御し、そのことによつて2バイト転送
(ワード単位のメモリアクセス)でも1バイト転
送(バイト単位のメモリアクセス)でもどちらで
も可能にしているといつものである。
(Prior art) Conventional technology has an input/output control port with a bus width of 1 byte and an input/output control port with a bus width of 2 bytes in the same configuration to enable either 1-byte data transfer or 2-byte data transfer. As a technique, for example, there is a technique disclosed in Japanese Patent Publication No. 58-46727. The contents are as follows: A bus switching device is placed between the memory and the main bus, and whether the device transfers 2 bytes, the upper byte of 1 byte, or the lower byte of 1 byte. Therefore, we control the way the memory is connected to the main bus, thereby enabling either 2-byte transfers (word-by-word memory access) or 1-byte transfers (byte-by-byte memory access). It is.

しかし、この場合、メモリモジユールを増設し
ようとすると、その分だけバス切り換え装置を増
設せねばならず、システム全体が大規模なものに
なつてしまうという欠点があつた。
However, in this case, if an attempt was made to add more memory modules, a bus switching device would have to be added correspondingly, resulting in a disadvantage that the entire system would become larger.

(目的) 本発明の目的は、上記の欠点を除去し、メモリ
モジユールを増設した場合でもシステムが大型化
しない2バイト転送、1バイトデータ転送のどち
らをも実行するメモリアクセス制御装置を提供す
ることにある。
(Objective) An object of the present invention is to provide a memory access control device that eliminates the above-mentioned drawbacks and performs both 2-byte data transfer and 1-byte data transfer without increasing the size of the system even when memory modules are added. There is a particular thing.

(実施例) 本発明は、中央処理装置などより成る制御回路
部とメインバスの間に前記制御回路部がメモリを
ワード単位でもバイト単位でも随時選択的にアク
セスするバス切り換え装置を配設し構成される。
(Embodiment) The present invention has a configuration in which a bus switching device is disposed between a control circuit section consisting of a central processing unit, etc., and a main bus, so that the control circuit section selectively accesses memory in units of words or bytes at any time. be done.

本発明は、たとえば、中央処理装置とダイレク
トメモリアクセス制御装置と入出力制御ポートと
ワード指定、バイト指定可能なメモリとがメイン
バスにつながるデータ処理装置において、前記中
央処理装置と前記ダイレクトメモリアクセス制御
信号により選択的に機能し、該バス制御信号のう
ちの前記ワード指定、バイト指定どちらも可能な
メモリのうちの上位バイトより成る第1のメモリ
部分を指示する信号と下位バイトより成る第2の
メモリ部分を指示する信号のうち少なくとも一方
を参照し、さらに前記制御回路部と前記メインバ
スの間に配設されて前記中央処理装置及び前記ダ
イレクトメモリアクセス制御装置の各々が前記メ
モリをワード単位でもバイト単位でも随時選択的
にアクセスするバス切り換え装置から構成され
る。
The present invention provides, for example, a data processing device in which a central processing unit, a direct memory access control device, an input/output control port, and a memory capable of specifying words and bytes are connected to a main bus. A signal indicating a first memory portion consisting of the upper byte of the memory capable of both word specification and byte specification of the bus control signal, and a second memory portion consisting of the lower byte. Referring to at least one of the signals instructing the memory portion, each of the central processing unit and the direct memory access control device disposed between the control circuit unit and the main bus may access the memory in units of words. It consists of a bus switching device that selectively accesses byte units at any time.

第1図は、本発明の一実施例の概略を示すブロ
ツク図である。
FIG. 1 is a block diagram schematically showing an embodiment of the present invention.

1は16ビツトのメイン中央処理装置(以下、
CPUと略す。)であり、ダイレクトメモリアクセ
ス(以下、DMAと略す。)制御回路2は、メイ
ンバス21,22につながるメモリ5、メモリ6
(増設されたメモリ)、8ビツト入出力ポート7、
16ビツト入出力ポート8相互間のDMA転送を制
御する回路である。又、バス切り換え装置4は、
内部バス23,24とメインバス21,22の接
続をする制御装置である。又、51,61は、ワ
ード(2バイト)単位で構成されるメモリ5,6
のうちの上位側バイトより成るメモリであり、5
2,62は下位側バイトより成るメモリである。
1 is a 16-bit main central processing unit (hereinafter referred to as
Abbreviated as CPU. ), and the direct memory access (hereinafter abbreviated as DMA) control circuit 2 has memory 5 and memory 6 connected to main buses 21 and 22.
(added memory), 8-bit input/output port 7,
This circuit controls DMA transfer between 8 16-bit input/output ports. Further, the bus switching device 4
This is a control device that connects internal buses 23, 24 and main buses 21, 22. Further, 51 and 61 are memories 5 and 6 configured in word (2 byte) units.
The memory consists of the upper bytes of 5
2 and 62 are memories consisting of lower bytes.

次に本発明の動作を第1図を用いて説明する。
今、8ビツト入出力ポート7から2バイト(1ワ
ード)がメモリ5に転送される場合について説明
する。まず、以下の説明で使用されることになる
各信号について説明する。
Next, the operation of the present invention will be explained using FIG.
Now, the case where 2 bytes (1 word) are transferred from the 8-bit input/output port 7 to the memory 5 will be explained. First, each signal that will be used in the following explanation will be explained.

(DMA転送要求信号) 入出力ポート7、又は8において送出するデ
ータの準備ができた時に、ポートからDMA制
御回路2に送出される信号である。
(DMA transfer request signal) This is a signal sent from the input/output port 7 or 8 to the DMA control circuit 2 when the data to be sent is ready.

(DMA転送許可信号) に対する許可信号であり、DMA制御
回路2よりポートに送出される。そしてこれが
ポートに受け取られるとポートはデータの送出
にかかる。
(DMA transfer permission signal) This is a permission signal for (DMA transfer permission signal) and is sent from the DMA control circuit 2 to the port. When this is received by the port, the port begins to send the data.

(データ転送許可信号) DMAの転送サイクルにおいて、メモリから
DMA制御回路2に送出される信号でありメモ
リーのスピードに応じて同期をとるための信号
である。
(Data transfer permission signal) In the DMA transfer cycle, the
This is a signal sent to the DMA control circuit 2, and is a signal for synchronizing according to the speed of the memory.

(アドレスストローブ信号) アドレスバス線A1〜A23(図示せず)によつ
て示されているアドレスが確定したものである
ことを示す。
(Address strobe signal) Indicates that the address indicated by address bus lines A 1 to A 23 (not shown) has been determined.

(ローバイトデータストローブ信号) 下位側バイトのメモリ52,62がアクセス
されていることを示す。
(Low byte data strobe signal) Indicates that the lower byte memories 52 and 62 are being accessed.

(アツパーデータストローブ信号) 上位側バイトのメモリ51,61がアクセス
されていることを示す。
(Upper data strobe signal) Indicates that the upper byte memories 51 and 61 are being accessed.

(上位バイト指示信号) DMA制御回路2より出力される信号であ
り、ポートから、あるいはポートへのDMA転
送において、メモリの上位バイト側に相当する
データの転送を意味する信号である。
(Upper byte instruction signal) This is a signal output from the DMA control circuit 2, which indicates the transfer of data corresponding to the upper byte side of the memory in DMA transfer from or to a port.

R/(ラードライト信号) メインバスが、リード状態とライト状態のど
ちらの状態で使用されているのかを示す。
R/ (Lard write signal) Indicates whether the main bus is used in a read state or a write state.

以上の信号は、簡略化のため第1図では省略し
た。
The above signals are omitted in FIG. 1 for simplicity.

さて、データの準備ができると8ビツト入出力
ポート7からDMA転送、要求信号が
DMA制御回路2に入力される。するとDMA制
制回路2は、メインCPU1にメインバス獲得要
求信号(図示せず)を出力し、メインバス21,
22を獲得する。その後DMA制御回路2より、
アドレスバス線A1〜A23、アツパーデータストロ
ーブ信号、アドレスストローブ信号、リ
ードライト信号R/(この場合、ライト状態)、
上位バイト指示信号が出力され、さら
にDMA転送許可信号が8ビツト入出力ポ
ート7に返されDMA転送サイクルが始まる。
Now, when the data is ready, a DMA transfer and request signal is sent from 8-bit input/output port 7.
The signal is input to the DMA control circuit 2. Then, the DMA control circuit 2 outputs a main bus acquisition request signal (not shown) to the main CPU 1, and the main bus 21,
Get 22. After that, from the DMA control circuit 2,
Address bus lines A1 to A23 , upper data strobe signal, address strobe signal, read/write signal R/ (in this case, write state),
An upper byte instruction signal is output, and a DMA transfer permission signal is returned to the 8-bit input/output port 7, starting a DMA transfer cycle.

この時、アツパーデータストローブ信号
がアクテイブになつているためメモリ51がアク
セスされ、さらに上位バイト指示信号
もアクテイブになつているためバス切り換え装置
4が作動し内部バス23,24とメインバス21
を接続する。
At this time, since the upper data strobe signal is active, the memory 51 is accessed, and since the upper byte instruction signal is also active, the bus switching device 4 is activated, and the internal buses 23, 24 and the main bus 21 are accessed.
Connect.

又、リードライト信号R/によつてメモリへ
の書き込みであることが指示されるから、8ビツ
ト入出力ポート7よりのデータは、第1図の点線
30で示される経路をたどつて上位バイト側メモ
リリ51に格納される。この時、メモリのスピー
ドに応じて同期をとるために、データ転送許可信
号がメモリより、DMA制御回路2に送
出される。
Also, since the read/write signal R/ indicates that the data is to be written to the memory, the data from the 8-bit input/output port 7 follows the path indicated by the dotted line 30 in FIG. 1 to the upper byte. The data is stored in the side memory 51. At this time, a data transfer permission signal is sent from the memory to the DMA control circuit 2 in order to synchronize according to the speed of the memory.

次の2バイトめのデータ転送も同様なシーケン
スとなるが、この場合、先に述べた1バイトめの
データと違つて下位側バイトのメモリ52へ転送
するため、アツパーデータストローブ信号
はアクテイブにならず、そのかわりローバイトデ
ータストローブ信号がアクテイブになり、
又、上位バイト指示信号もアクテイブ
にならない。したがつてバス切り換え装置4は動
作しない。この場合、8ビツト入出力ポート7か
らのデータは、第1図の点線31で示される経路
を経て下位バイト側メモリ52に格納される。こ
の時にはバス切り換え装置4は作動する必要はな
いのである。
The next 2nd byte data transfer follows a similar sequence, but in this case, unlike the 1st byte data mentioned above, it is transferred to the lower byte memory 52, so the upper data strobe signal is not active. Instead, the low byte data strobe signal becomes active.
Also, the upper byte instruction signal does not become active. Therefore, the bus switching device 4 does not operate. In this case, data from the 8-bit input/output port 7 is stored in the lower byte side memory 52 via the path indicated by the dotted line 31 in FIG. At this time, the bus switching device 4 does not need to operate.

以上、8ビツト入出力ポート7からメモリ5へ
のデータの転送を説明したが、この逆のメモリ5
から8ビツト入出力ポート7へのデータの転送も
リードライト信号R/が変わるだけで、基本的
には全く同じシーケンスとなる。さらに16ビツト
入出力ポート8とメモリ5との間のデータ転送に
ついては、第1図より明らかなようにメインバス
21,22を同時に使いワード単位で行なう。こ
の点については自明のことである。
The above describes the transfer of data from the 8-bit input/output port 7 to the memory 5.
Transfer of data from 8-bit input/output port 7 to 8-bit input/output port 7 is basically the same sequence except that the read/write signal R/ is changed. Furthermore, data transfer between the 16-bit input/output port 8 and the memory 5 is carried out in word units using the main buses 21 and 22 simultaneously, as is clear from FIG. This point is self-evident.

又、以上の説明はメモリ5への読み出し書き込
みについてであつたが、増設されたメモリ6につ
いても全く同様なシーケンスがあてはまるのは当
然のことである。又、今DMA転送を例にして本
発明を説明したが、16ビツトメインCPU1と8
ビツトスレーブCPU3よりなるデユアルプロセ
ツサシステムにおいてもバス切り換え装置4の働
きによつて、各々のCPUが共通メモリ5あるい
は6をアクセスするのは言うまでもない。
Further, although the above explanation has been about reading and writing to the memory 5, it goes without saying that the completely similar sequence applies to the expanded memory 6 as well. Also, although the present invention has been explained using DMA transfer as an example, 16-bit main CPUs 1 and 8
Needless to say, even in a dual processor system consisting of a bit slave CPU 3, each CPU accesses the common memory 5 or 6 through the action of the bus switching device 4.

(効果) 以上説明したように本発明は、中央処理装置と
ダイレクトメモリアクセス制御装置とから成る制
御回路部とメインバスの間にバス切り換え装置を
配設した構成を有するので、メモリを増設した場
合でも何ら他のハードウエアを付加することなし
にワード単位のメモリアクセスとバイト単位のメ
モリアクセスを随時選択的に実現でき、システム
のコンパクト化を計ることができるという効果を
有するものである。
(Effects) As explained above, the present invention has a configuration in which a bus switching device is disposed between the main bus and the control circuit section consisting of a central processing unit and a direct memory access control device. However, it is possible to selectively implement word-based memory access and byte-based memory access at any time without adding any other hardware, and has the effect of making the system more compact.

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

第1図は、本発明の一実施例を示す概略ブロツ
ク図である。 1……16ビツトメインCPU、2……DMA制御
回路、3……8ビツトスレーブCPU、4……バ
ス切り換え装置、5,6……メモリ、7……8ビ
ツト入出力ポート、8……16ビツト入出力ポー
ト。
FIG. 1 is a schematic block diagram showing one embodiment of the present invention. 1... 16-bit main CPU, 2... DMA control circuit, 3... 8-bit slave CPU, 4... Bus switching device, 5, 6... Memory, 7... 8-bit input/output port, 8... 16-bit Input/output port.

Claims (1)

【特許請求の範囲】[Claims] 1 中央処理装置とダイレクトメモリアクセス制
御装置より成る制御回路部とメインバスの間に配
設され、前記制御回路部がメモリをワード単位
と、バイト単位の一方を随時選択してアクセスす
るためのバス切り換え装置を備えることを特徴と
するメモリアクセス制御装置。
1 A bus disposed between a control circuit section consisting of a central processing unit and a direct memory access control device and a main bus, through which the control circuit section selectively accesses memory either in word units or byte units at any time. A memory access control device comprising a switching device.
JP4350084A 1984-03-07 1984-03-07 Memory access controller Granted JPS60189052A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4350084A JPS60189052A (en) 1984-03-07 1984-03-07 Memory access controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4350084A JPS60189052A (en) 1984-03-07 1984-03-07 Memory access controller

Publications (2)

Publication Number Publication Date
JPS60189052A JPS60189052A (en) 1985-09-26
JPH0120781B2 true JPH0120781B2 (en) 1989-04-18

Family

ID=12665432

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4350084A Granted JPS60189052A (en) 1984-03-07 1984-03-07 Memory access controller

Country Status (1)

Country Link
JP (1) JPS60189052A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4788693A (en) * 1985-09-30 1988-11-29 American Telephone And Telegraph Company, At&T Bell Laboratories Data communication replicator
JPS62276655A (en) * 1986-05-26 1987-12-01 Pfu Ltd Dma transfer system

Also Published As

Publication number Publication date
JPS60189052A (en) 1985-09-26

Similar Documents

Publication Publication Date Title
JP3418968B2 (en) High performance high bandwidth memory and system using SDRAM
KR20010013743A (en) Method and system for storing and processing multiple memory addresses
JPH0636313B2 (en) Dual Access Single Chip Integrated Circuit Digital Storage
US5146572A (en) Multiple data format interface
JPH0146946B2 (en)
TW425508B (en) Narrow data width dram with low latency page-hit operations
JPH0120781B2 (en)
US6483753B1 (en) Endianess independent memory interface
JPH0447920B2 (en)
EP0568678B1 (en) Device for transmission of data
JPS6217879Y2 (en)
JPS63129438A (en) Memory controller
JPH11232180A (en) Data processor
JPS59135684A (en) Data bypass system between buffer memories
JPS61288261A (en) Multiprocessor system
JPH02211571A (en) Information processor
JPH0642266B2 (en) Memory access circuit
JPS6381689A (en) Semiconductor memory device
JPH039453A (en) Data transfer controller
JPS63217458A (en) Direct memory access system
JPH0638249B2 (en) Microcomputer
JPH02255931A (en) Shared memory system
JPS63201810A (en) Time system for information processing system
JPH024024B2 (en)
JPS61237158A (en) Shared memory device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term