JPS6375852A - Memory access system - Google Patents
Memory access systemInfo
- Publication number
- JPS6375852A JPS6375852A JP22027786A JP22027786A JPS6375852A JP S6375852 A JPS6375852 A JP S6375852A JP 22027786 A JP22027786 A JP 22027786A JP 22027786 A JP22027786 A JP 22027786A JP S6375852 A JPS6375852 A JP S6375852A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- signal
- cycle
- instruction data
- work data
- 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
- 238000001514 detection method Methods 0.000 claims abstract description 11
- 238000000034 method Methods 0.000 claims description 4
- 238000013500 data storage Methods 0.000 abstract description 3
- 210000004556 brain Anatomy 0.000 description 8
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Landscapes
- Executing Machine-Instructions (AREA)
Abstract
Description
【発明の詳細な説明】 [産業上の利用分野] 本発明はメモリアクセス方式に関するものである。[Detailed description of the invention] [Industrial application field] The present invention relates to a memory access method.
[従来の技術]
周知のように、マイクロプロセッサ等のストアードプロ
ダラム式のプロセッサでは、命令データあるいは作業デ
ータを記憶したメモリをアクセスするに際しては、所望
のアドレスを指定するアドレス信号をアドレスバスを通
じてメモリに与えることによってアドレス指定を行って
いる。そして、指定したアドレスに対してデータを書込
む場合はデータバスを通じて書込みデータを与え、逆に
読出す場合はデータバスを通じて読出しデータをプロセ
ッサ側に入力するように構成している。[Prior Art] As is well known, in a stored program processor such as a microprocessor, when accessing a memory storing instruction data or work data, an address signal specifying a desired address is sent to the memory via an address bus. Addressing is done by giving . When data is to be written to a specified address, write data is provided through the data bus, and when data is to be read, read data is input to the processor through the data bus.
従って、メモリとの間で送受するデータが命令に関する
データであるのか、作業用のデータであるのかは回答区
別されることな(同じ経路で送受される。Therefore, it does not matter whether the data sent to and received from the memory is instruction-related data or work data (they are sent and received through the same route).
[発明が解決しようとする問題点]
ところが、通常、プロセッサから出力するアドレス信号
のビット数は16ビツトないし20ビツトに限定されて
いるため、命令データの必要記憶容量が多くなると作業
用データの記憶容量が制限され、逆の場合には命令デー
タの記憶容量が制限されてしまう。このため、システム
設計が困難となり、場合によっては2つのプロセッサを
設けてアドレス信号で指定し得るアドレス空間を実質的
に拡張しなければならないという問題があった。[Problems to be Solved by the Invention] However, since the number of bits of the address signal output from the processor is normally limited to 16 to 20 bits, when the storage capacity required for instruction data increases, it becomes difficult to store work data. The capacity is limited, and in the opposite case, the storage capacity of instruction data is limited. This makes system design difficult and, in some cases, requires two processors to substantially expand the address space that can be designated by address signals.
本発明の目的は、簡単な構成で所定ビット数のアドレス
信号で指定し得るアドレス空間を拡張することができる
メモリアクセス方式を提供することにある。SUMMARY OF THE INVENTION An object of the present invention is to provide a memory access method capable of expanding an address space that can be specified by an address signal of a predetermined number of bits with a simple configuration.
[問題点を解決するための手段]
本発明は、メモリサイクルにおいて命令データのフェッ
チサイクルか作業データの7エツチサイクルかの区別を
示すステータス信号がプロセッサから出力されているこ
とに看目し、前記ステータス信号によって現在のメモリ
サイクルが命令データのフェッチサイクルか作業データ
のフェッチサイクルかを検出するデコーダを設け、それ
ぞれのフェッチサイクルの検出信号によって命令データ
のみが格納されたメモリおよび作業データのみが格納さ
れたメモリを独立してアクセスするようにしたものであ
る。[Means for Solving the Problems] The present invention takes into account that a status signal is output from the processor to indicate whether the memory cycle is an instruction data fetch cycle or a work data 7 fetch cycle. A decoder is provided that detects whether the current memory cycle is an instruction data fetch cycle or a work data fetch cycle based on a status signal, and a memory storing only instruction data or a memory storing only work data is provided depending on the detection signal of each fetch cycle. This allows memory to be accessed independently.
[作用]
命令データのフェッチサイクルでは命令データのみを記
憶したメモリがアクセスされ、また作業データの7エツ
チサイクルでは作業データを記憶したメモリがアクセス
される。従って、1つのアドレスバスで指定し得るアド
レス空間は2倍になり、システム全体のデータ記憶容i
を2倍にすることができる。[Operation] In the command data fetch cycle, the memory storing only command data is accessed, and in the 7 work data fetch cycles, the memory storing work data is accessed. Therefore, the address space that can be specified by one address bus is doubled, and the data storage capacity of the entire system i
can be doubled.
[実施例]
図は本発明の一実施例を示すブロック図であり、マイク
ロプロセッサ1は命令データメモリ群2または作業デー
タメモリ群3をアクセスするとき、現在のメモリサイク
ルが命令データのフェッチサイクルか作業データのフェ
ッチサイクルかの区別を示すステータス信号STを出力
し、検出回路4に入力する。またマイクロプロセッサ1
はステータス信号STと同期してメモリアドレスを指定
するアドレス信号ADRを送出する。[Embodiment] The figure is a block diagram showing an embodiment of the present invention. When the microprocessor 1 accesses the instruction data memory group 2 or the work data memory group 3, it determines whether the current memory cycle is an instruction data fetch cycle or not. A status signal ST indicating whether it is a work data fetch cycle is output and input to the detection circuit 4. Also, microprocessor 1
sends out an address signal ADR specifying a memory address in synchronization with the status signal ST.
すると、ステータス信号STは検出回路4のデコーダ4
1で解読され、命令データステータス検出信号COMま
たは作業データステータス検出信号DATとなり、さら
にタイミング回路42でアドレス信号ADRと同期がと
られてタイミング信号TCOMまたはTDATとなる。Then, the status signal ST is sent to the decoder 4 of the detection circuit 4.
1 and becomes the instruction data status detection signal COM or the work data status detection signal DAT, and is further synchronized with the address signal ADR in the timing circuit 42 to become the timing signal TCOM or TDAT.
一方、アドレス信号ADRは、そのうち上位ビットがデ
コーダ5に入力され、残りの下位ビットがメモリ群2お
よび3をそれぞれ構成するメモリブレーン21〜2n、
31〜3nのアドレス入力に並列に入力される。On the other hand, the upper bits of the address signal ADR are input to the decoder 5, and the remaining lower bits are input to the memory brains 21 to 2n constituting memory groups 2 and 3, respectively.
It is input in parallel to address inputs 31 to 3n.
デコーダ5に入力された上位ビットアドレス信号は、メ
モリ群2,3の各メモリブレーン21〜2n、31〜3
nのそれぞれを選択するチップセレクト信号5ELI〜
5ELnに変換される。The upper bit address signal input to the decoder 5 is applied to each memory brain 21 to 2n, 31 to 3 of the memory groups 2 and 3.
Chip select signal 5ELI to select each of n
5ELn.
このチップセレクト信号5EL1〜5ELnはメモリ群
2.3にそれぞれ対応して設けられたゲート回路群6,
7に入力される。ゲート回路群6゜7はn個のメモリブ
レーンに対応してn個のナントゲートで構成され、ゲー
ト回路群6を構成する各ナントゲートの一方の入力には
タイミング信号TCOMが共通に入力され、他方の入力
にはチップセレクト信号5EL1〜5ELnが1つずつ
入力されている。また、ゲート回路群7を構成する各ナ
ントゲートの一方の入力にはタイミング信号TDATが
共通に入力され、他方の入力にはチップセレクト信号5
EL1〜5ELnが1つずつ入力されている。These chip select signals 5EL1 to 5ELn are applied to the gate circuit groups 6 and 6 provided corresponding to the memory groups 2 and 3, respectively.
7 is input. The gate circuit group 6 7 is composed of n Nant gates corresponding to the n memory brains, and a timing signal TCOM is commonly input to one input of each Nant gate constituting the gate circuit group 6. Chip select signals 5EL1 to 5ELn are input to the other input one by one. Furthermore, the timing signal TDAT is commonly input to one input of each Nant gate constituting the gate circuit group 7, and the chip select signal 5 is input to the other input.
EL1 to 5ELn are input one by one.
メモリ群2および3をそれぞれ構成するメモリブレーン
はチップセレクト入力信号O8が“0”の時に読み書き
可能状態になるものである。The memory brains constituting the memory groups 2 and 3 are in a read/write state when the chip select input signal O8 is "0".
従って、マイクロプロセッサ1が例えばチップセレクト
信号5ELIをデコーダ5から出力するようなアドレス
信号ADRを出力し、かつ命令データのフェッチサイク
ルであることを示すステータス信号STを出力したもの
とすると、タイミング回路42からタイミング信号TC
OMが出力されるようになるため、ゲート回路群6のみ
が能動状態となり、チップセレクト信号5EL1がこの
ゲート回路群6を通じて命令データメモリ群2のメモリ
ブレーン21のチップセレクト入力信号CSとして入力
される。Therefore, if the microprocessor 1 outputs the address signal ADR such that the decoder 5 outputs the chip select signal 5ELI, and also outputs the status signal ST indicating that it is an instruction data fetch cycle, the timing circuit 42 timing signal TC from
Since OM is output, only the gate circuit group 6 becomes active, and the chip select signal 5EL1 is inputted as the chip select input signal CS of the memory brain 21 of the instruction data memory group 2 through the gate circuit group 6. .
これによって、メモリブレーン21が読み書き可能状態
となり、このメモリブレーン21内の下位ビット側アド
レス信号で指定されるアドレスがアクセスされる。As a result, the memory brain 21 becomes readable/writable, and the address specified by the lower bit side address signal in this memory brain 21 is accessed.
逆に、作業データのフェッチサイクルであることを示す
ステータス信号STがプロセッサ1から出力された場合
、ゲート回路群7が能動状態となり、作業データメモリ
群3の中のメモリプレーン31〜3nのうち1つが上位
ビット側アドレス信号で指定され、さらにそのメモリブ
レーン内のアドレスが下位ビット側アドレス信号で指定
される。Conversely, when the status signal ST indicating that it is a work data fetch cycle is output from the processor 1, the gate circuit group 7 becomes active and one of the memory planes 31 to 3n in the work data memory group 3 is output. is designated by an address signal on the upper bit side, and an address within that memory brain is designated by an address signal on the lower bit side.
このような構成によれば、メモリ群2.3のうちいずれ
をアクセスするかは検出回路4とゲート回路群6,7の
動作によって自動的に決定されるため、システム設計は
命令データと作業データの記憶場所の違いを意識するこ
とな〈従来と同様の手法で行うことができる。また、ア
ドレス信号へ〇Rで指定し得るアドレス空間が2倍に拡
張されるため、システム設計も容易になる。According to such a configuration, which memory group 2.3 is accessed is automatically determined by the operation of the detection circuit 4 and the gate circuit groups 6, 7, so the system design is based on instruction data and work data. This can be done using the same method as before, without having to be aware of the difference in the storage location. Furthermore, since the address space that can be designated by 〇R for the address signal is doubled, system design becomes easier.
[発明の効果1
以上説明したように本発明によれば、極めて簡単な構成
で所定ビット数のアドレス信号で指定し得るメモリのア
ドレス空間を拡張することができる。この結果、システ
ム設計が容易になるなどの効果がある。[Effect of the Invention 1] As explained above, according to the present invention, the address space of a memory that can be specified by an address signal of a predetermined number of bits can be expanded with an extremely simple configuration. As a result, system design becomes easier.
図は本発明の一実施例を示すブロック図である。
1・・・マイクロプロセッサ、2・・・命令データメモ
リ群、3・・・作業データメモリ群、4・・・検出回路
、6.7・・・ゲート回路群、41・・・デコーダ。The figure is a block diagram showing one embodiment of the present invention. DESCRIPTION OF SYMBOLS 1... Microprocessor, 2... Instruction data memory group, 3... Work data memory group, 4... Detection circuit, 6.7... Gate circuit group, 41... Decoder.
Claims (1)
サイクルか作業データのフェッチサイクルかの区別を示
すステータス信号を出力するプロセッサと、このプロセ
ッサによつてアクセスされるメモリとを備えたシステム
において、 前記ステータス信号によつて現在のメモリサイクルが命
令データのフェッチサイクルか作業データのフェッチサ
イクルかを検出するデコーダを設け、それぞれのフェッ
チサイクルの検出信号によって命令データのみが格納さ
れたメモリおよび作業データのみが格納されたメモリを
独立してアクセスすることを特徴とするメモリアクセス
方式。[Scope of Claims] A system comprising a processor that outputs a status signal indicating whether a memory access cycle is an instruction data fetch cycle or a work data fetch cycle, and a memory accessed by the processor, A decoder is provided which detects whether the current memory cycle is an instruction data fetch cycle or a work data fetch cycle based on the status signal, and the memory storing only instruction data and the memory storing only work data are provided depending on the detection signal of each fetch cycle. A memory access method characterized by independently accessing memory in which .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP22027786A JPS6375852A (en) | 1986-09-18 | 1986-09-18 | Memory access system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP22027786A JPS6375852A (en) | 1986-09-18 | 1986-09-18 | Memory access system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS6375852A true JPS6375852A (en) | 1988-04-06 |
Family
ID=16748650
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP22027786A Pending JPS6375852A (en) | 1986-09-18 | 1986-09-18 | Memory access system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6375852A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02183331A (en) * | 1989-01-09 | 1990-07-17 | Matsushita Electric Ind Co Ltd | Microcomputer |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS59167753A (en) * | 1983-03-14 | 1984-09-21 | Toshiba Corp | Microprocessor |
-
1986
- 1986-09-18 JP JP22027786A patent/JPS6375852A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS59167753A (en) * | 1983-03-14 | 1984-09-21 | Toshiba Corp | Microprocessor |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02183331A (en) * | 1989-01-09 | 1990-07-17 | Matsushita Electric Ind Co Ltd | Microcomputer |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5201036A (en) | Data processor having wait state control unit | |
US4949242A (en) | Microcomputer capable of accessing continuous addresses for a short time | |
JPS5824954A (en) | Address controlling system | |
JPS6375852A (en) | Memory access system | |
JP2002358232A (en) | Memory access device | |
JPH0916468A (en) | Memory access system | |
JP3180877B2 (en) | Memory interface circuit | |
JPH09312094A (en) | Refresh control system | |
JPH09311812A (en) | Microcomputer | |
JPS6244352B2 (en) | ||
JPS61214039A (en) | Cache memory | |
JPH0612622B2 (en) | Dynamic memory refresh method | |
JPS6126701B2 (en) | ||
JP2845746B2 (en) | Micro program controller | |
JPH0667994A (en) | Memory control circuit | |
JPH01318127A (en) | System for switching memory bank | |
JPS61161560A (en) | Memory device | |
JPH01223529A (en) | Semiconductor disk device | |
JPH11167519A (en) | Memory refresh control circuit, memory, memory module, and digital device | |
JPH01290193A (en) | DRAM refresh control method | |
JPS63237143A (en) | Programmable controller | |
JPS6231382B2 (en) | ||
JPH06124226A (en) | Access conversion control device | |
JPH1196070A (en) | Memory control circuit, its controlling method and recording medium recording control program | |
JPS63177237A (en) | Data access method |