JPS61206066A - System for setting memory address - Google Patents
System for setting memory addressInfo
- Publication number
- JPS61206066A JPS61206066A JP4610785A JP4610785A JPS61206066A JP S61206066 A JPS61206066 A JP S61206066A JP 4610785 A JP4610785 A JP 4610785A JP 4610785 A JP4610785 A JP 4610785A JP S61206066 A JPS61206066 A JP S61206066A
- Authority
- JP
- Japan
- Prior art keywords
- cpu
- memory
- address
- area
- common
- 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
Links
Landscapes
- Multi Processors (AREA)
Abstract
Description
【発明の詳細な説明】
技術分野
本発明はメモリアドレス設定方式に関し、特にシステム
CPU、ローカルCPUそれに共有メモリを有するマイ
クロ9コンピユータ応用システムニオイテ、ローカルC
PUが行う共有メモリのメモリアクセス領域を自由に変
更するのに好゛適な□メモリアドレス設定方式に関する
ものである。DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to a memory address setting method, and particularly to a micro9 computer application system having a system CPU, a local CPU and a shared memory, and a local CPU.
This invention relates to a memory address setting method suitable for freely changing the memory access area of a shared memory performed by a PU.
従来技術
従来の高性能化されたマイクロ・コンピュータ応用シス
テムは、第2図に示すように、システム全体に関する処
理を行うシステムCPU1.入出力などの個別的な処理
を行うローカルCPU2、両CPUI、2が共に:使用
する共有メモリ3のそれぞれが共通バス4を通して接続
される構成である。なお、共通バス4はアドレス・バス
、データ・バス、コントロール・バスからなる。BACKGROUND ART A conventional high-performance microcomputer application system, as shown in FIG. 2, has a system CPU 1 . The configuration is such that a local CPU 2 that performs individual processing such as input/output, and a shared memory 3 used by both CPUIs 2 and 2 are connected through a common bus 4. Note that the common bus 4 consists of an address bus, a data bus, and a control bus.
上記システム構成において、システムCPUIとローカ
ルCPU2間のデータ転送は、例えば、ローカルCPU
2が図示してないフロッピーディスク記憶装置などから
読取ったデータを共有メモリ3に転送し、その転送され
たデータをシステムCPUIが共有メモリ3から図示し
てない内部メモリに転送するように行う。In the above system configuration, data transfer between the system CPUI and the local CPU 2 is performed by, for example, the local CPU
2 transfers data read from a floppy disk storage device (not shown) to a shared memory 3, and the system CPUI transfers the transferred data from the shared memory 3 to an internal memory (not shown).
しかし、システムCPUIとローカルCPU2が共通に
リード/ライトすることのできる共有メモリ3のメモリ
領域を、例えば、第3図(a)に示すのように、共有メ
モリ3の全アドレス0000H−FFFFHの中から1
000H−I FFF。However, the memory area of the shared memory 3 that can be commonly read/written by the system CPUI and the local CPU 2 is set within all addresses 0000H-FFFFH of the shared memory 3, for example, as shown in FIG. 3(a). from 1
000H-I FFF.
間のメモリ領域3aと予め固定的に取り決めてしまうの
で、システムCPUIがメモリ領域3aを別の用途に使
用したいときでも容易に変えられなかった。Since the memory area 3a in between is fixedly determined in advance, even if the system CPU wants to use the memory area 3a for another purpose, it cannot be easily changed.
また、もう1つの例として、第3図(b)に示すように
、上記と同様、リード/ライトができるメモリ領域3b
(アドレスC00OH−CFFFH)をローカルCPU
2に示すため、システムCPU1が同共有メモリ3の特
定アドレス0400H。As another example, as shown in FIG. 3(b), a memory area 3b that can be read/written similarly to the above.
(address C00OH-CFFFH) to the local CPU
2, the system CPU 1 accesses the specific address 0400H of the shared memory 3.
0401)(に、それぞれ上記メモリ領域3bの先頭ア
ドレスCOOOHの下位値(00)と上位値(CO)を
設定しておき、それをローカルCPU2が読取って、そ
の先頭アドレス以降をメモリ領域3bと取り決めてしま
うので、上述より自由ではあるが、上記と同様、システ
ムCPUIが特定アドレスの領域を別の用途l;使用し
たいときでも容易に変更できなかった。0401) (, respectively, set the lower value (00) and upper value (CO) of the start address COOOH of the above memory area 3b, the local CPU 2 reads them, and specifies that the area after that start address is the memory area 3b. Therefore, although it is more flexible than the above, it cannot be easily changed even when the system CPU wants to use the area of a specific address for another purpose.
目 的
本発明の目的は、このような従来の問題を解決し、シス
テムCPU、ローカルCPUそれに共有メモリを有して
いるマイクロ・コンピュータ応用システムにおいて、上
記システムCPUとローカルCPUの双方がデータをリ
ード/ライトできる共有メモリの共通領域を決定すると
きに、簡単かつ安価な方法により、システムCPUが共
有メモリの使用状況に合せて任意な領域を自由に設定す
ることのできるメモリアドレス設定方式を提供すること
にある。Purpose The purpose of the present invention is to solve such conventional problems and to enable both the system CPU and the local CPU to read data in a microcomputer application system that has a system CPU, a local CPU, and a shared memory. /To provide a memory address setting method that allows a system CPU to freely set an arbitrary area according to the usage status of the shared memory using a simple and inexpensive method when determining a common area of a shared memory that can be written to. There is a particular thing.
構 成
本発明は上記の目的を達成させるため、システムCPU
、ローカルCPUおよびメモリ部を有しているマイクロ
・コンピュータ応用システムにおいて、上記メモリ部の
アドレスを格納するアドレスラッチ手段と、上記メモリ
部内に上記部CPUが共にリード/ライトできる共通領
域を設け、上記システムCPUが上記アドレスラッチ手
段に上記共通領域の先頭アドレスを設定し、上記ローカ
ルCPUが上記先頭アドレスを読出して上記共通領域に
対するリード/ライト動作を行うことを特徴としたもの
である。Configuration In order to achieve the above object, the present invention has a system CPU
, a microcomputer application system having a local CPU and a memory section, an address latch means for storing the address of the memory section, and a common area in the memory section that can be read/written by both the CPUs of the section; The system CPU sets the start address of the common area in the address latch means, and the local CPU reads the start address and performs read/write operations on the common area.
以下、本発明の一実施例に基づいて具体的に説明する。Hereinafter, a detailed explanation will be given based on one embodiment of the present invention.
第1図は1本発明におけるメモリアドレス設定の一実施
例を示す回路ブロック図である。なお、本実施例のシス
テム構成は前述した第2図と同一構成である。FIG. 1 is a circuit block diagram showing an embodiment of memory address setting according to the present invention. The system configuration of this embodiment is the same as that shown in FIG. 2 described above.
同図において、21はローカルCPU2の1チツプの中
央処理装置であるマイクロ・プロセッサ、22は共有メ
モリ3のアドレスを記憶するアドレスラッチ回路、23
はAND回路であり、これらはローカルCPU2のボー
ドに実装する。In the figure, 21 is a microprocessor that is a one-chip central processing unit of the local CPU 2, 22 is an address latch circuit that stores the address of the shared memory 3, and 23 is an address latch circuit that stores the address of the shared memory 3.
are AND circuits, and these are mounted on the local CPU 2 board.
システムCPU1とローカルCPU2rrRにおいて、
共有メモリ3内に双方がデータをリード/ライトするこ
とのできる共通なメモリ領域を取り決める場合は、先ず
、システムCPUIが共通バス4を介して1例えば、前
述した第3図(b)と同様番;、メモリ領域3bの先頭
アドレス0000 Hを下位値(00)と上位値(CO
)の2度に分けて、アドレスラッチ回路22にラッチす
る。なお、データのラッチは、アドレスラッチ回路22
のストローブ(STB)端子にI10ライト(IOW)
信号を送出して行う。In system CPU1 and local CPU2rrR,
When agreeing on a common memory area in the shared memory 3 where both parties can read/write data, the system CPU 1 must first be connected via the common bus 4 to a memory area similar to the one shown in FIG. ;, the first address 0000H of the memory area 3b is set to the lower value (00) and the upper value (CO
) and latched into the address latch circuit 22. Note that the data is latched by the address latch circuit 22.
I10 light (IOW) to the strobe (STB) terminal of
This is done by sending out a signal.
次に、ローカルCPU2のマイクロ・プロセッサ21が
AND回路23に負のリード(RD)信号と負のチップ
セレクト(CS)信号を出力し、それをAND回路が論
理積した後、アドレスラッチ回路22のアウトプット・
イネーブル(OE)端子に負の信号で送出することによ
り、既に格納されている下位値(OO)と上位値(CO
)を読取って、メモリ領域3bの先頭アドレスCO00
Mを確定し。Next, the microprocessor 21 of the local CPU 2 outputs a negative read (RD) signal and a negative chip select (CS) signal to the AND circuit 23, and after the AND circuit logically ANDs them, the address latch circuit 22 Output·
By sending a negative signal to the enable (OE) terminal, the lower value (OO) and upper value (CO) that have already been stored can be
) and read the start address CO00 of memory area 3b.
Confirm M.
メモリ領域3bに対するデータのリードまたはライト動
作を開始する。A data read or write operation to the memory area 3b is started.
上述した共通なメモリ領域3bの取り決め動作をシステ
ム立上げ時(IPL)またはり−ド/ライトコマンドの
送出ごとに実施する。The above-described common memory area 3b arrangement operation is performed at system startup (IPL) or every time a read/write command is sent.
このように、システムCPUIとローカルCPU2間に
おいて取り決める共通なメモリ領域の先頭アドレスをア
ドレスラッチ回路22に示して報告することで、共有メ
モリ3の内部に前述の特定アドレス(0400H,04
01H)を設ける必要がなくなり、システムCPUIは
共有メモリ3の領域全体を処理上最適にエリア区分して
使用することができる。In this way, by indicating and reporting the start address of the common memory area negotiated between the system CPUI and the local CPU 2 to the address latch circuit 22, the aforementioned specific address (0400H, 04
01H), and the system CPUI can use the entire area of the shared memory 3 by dividing it into areas optimally for processing purposes.
効 果
以上説明したように1本発明によれば、システムCPU
とローカルCPUの双方が共通にデータのリード/ライ
トができる共有メモリの共通領域の先頭アドレスをアド
レスラッチ回路で示して取り決めさせるので、特別なハ
ードウェアを用いることなく、システムCPUは共有メ
モリの使用状況に合せて共通領域を任意に取り決めるこ
とができる。Effects As explained above, according to the present invention, the system CPU
Since the address latch circuit indicates and negotiates the start address of the common area of the shared memory where both the system CPU and the local CPU can commonly read/write data, the system CPU can use the shared memory without using any special hardware. Common areas can be arbitrarily arranged according to the situation.
第1図は本発明におけるメモリアドレス設定の一実施例
を示す回路ブロック図、第2図はマイクロ・コンピュー
タ応用システムの構成ブロック図。
第3図(a)、(b)は従来例における共有メモリ内に
共通メモリ領域を取り決める方法を説明するための図で
ある。
1ニジステムCPU、2:ローカルCPU、3:共有メ
モリ、3a、3b:共通メモリ領域、3−り、3−2:
特定アドレス、4:共通バス、21:マイクロ・プロセ
ッサ、22ニアドレスラッチ回路、23:AND回路。
第 1 図
第 2 図
第 3 図
(a)FIG. 1 is a circuit block diagram showing an embodiment of memory address setting according to the present invention, and FIG. 2 is a block diagram of the configuration of a microcomputer application system. FIGS. 3(a) and 3(b) are diagrams for explaining a method of determining a common memory area in a shared memory in a conventional example. 1 system CPU, 2: local CPU, 3: shared memory, 3a, 3b: common memory area, 3-ri, 3-2:
Specific address, 4: common bus, 21: microprocessor, 22 near address latch circuit, 23: AND circuit. Figure 1 Figure 2 Figure 3 (a)
Claims (1)
を有しているマイクロ・コンピュータ応用システムにお
いて、上記メモリ部のアドレスを格納するアドレスラッ
チ手段と、上記メモリ部内に上記両CPUが共にリード
/ライトできる共通領域を設け、上記システムCPUが
上記アドレスラッチ手段に上記共通領域の先頭アドレス
を設定し、上記ローカルCPUが上記先頭アドレスを読
出して上記共通領域に対するリード/ライト動作を行う
ことを特徴とするメモリアドレス設定方式。(1) In a microcomputer application system having a system CPU, a local CPU, and a memory section, there is an address latch means for storing the address of the memory section, and a common feature that allows both CPUs to read/write data in the memory section. A memory address characterized in that an area is provided, the system CPU sets a start address of the common area in the address latch means, and the local CPU reads the start address and performs a read/write operation with respect to the common area. Setting method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4610785A JPS61206066A (en) | 1985-03-08 | 1985-03-08 | System for setting memory address |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4610785A JPS61206066A (en) | 1985-03-08 | 1985-03-08 | System for setting memory address |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS61206066A true JPS61206066A (en) | 1986-09-12 |
Family
ID=12737766
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP4610785A Pending JPS61206066A (en) | 1985-03-08 | 1985-03-08 | System for setting memory address |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS61206066A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01197864A (en) * | 1988-02-02 | 1989-08-09 | Pfu Ltd | Bus window control system |
-
1985
- 1985-03-08 JP JP4610785A patent/JPS61206066A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01197864A (en) * | 1988-02-02 | 1989-08-09 | Pfu Ltd | Bus window control system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4096572A (en) | Computer system with a memory access arbitrator | |
US5119480A (en) | Bus master interface circuit with transparent preemption of a data transfer operation | |
US6356963B1 (en) | Long latency interrupt handling and input/output write posting | |
JPS5925254B2 (en) | Digital data processing equipment | |
US5467461A (en) | Multiprocessor computer system having bus control circuitry for transferring data between microcomputers | |
US6272583B1 (en) | Microprocessor having built-in DRAM and internal data transfer paths wider and faster than independent external transfer paths | |
US5845130A (en) | Mailbox traffic controller | |
US4799150A (en) | Interface system between a host computer and a peripheral processor with address detection circuitry | |
EP0640229B1 (en) | Enhanced parallel port | |
JPH0746308B2 (en) | Display control device and microcomputer system | |
JPS61206066A (en) | System for setting memory address | |
JPH0287253A (en) | Equipment address setting system | |
JPH02207363A (en) | Data transfer system, device controller, and memory controller | |
JP2768022B2 (en) | Memory controller | |
JPS5851336U (en) | Direct memory access control circuit | |
JPS62127962A (en) | Microcomputer | |
JPH03228163A (en) | Data transfer equipment | |
JPH02211571A (en) | Information processor | |
JPS62187956A (en) | Dma control system | |
JPS61133465A (en) | Switching method of cpu | |
JPS63155351A (en) | Multi-processor system | |
JPS62293365A (en) | Data transfer system | |
JPH04120648A (en) | Common bus connecting device | |
JPH064406A (en) | Data processor having cache memory | |
JPH03233780A (en) | Bus access system |