JP3205564B2 - Memory circuit - Google Patents

Memory circuit

Info

Publication number
JP3205564B2
JP3205564B2 JP00239091A JP239091A JP3205564B2 JP 3205564 B2 JP3205564 B2 JP 3205564B2 JP 00239091 A JP00239091 A JP 00239091A JP 239091 A JP239091 A JP 239091A JP 3205564 B2 JP3205564 B2 JP 3205564B2
Authority
JP
Japan
Prior art keywords
memory
address
signal
circuit
cpu
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 - Fee Related
Application number
JP00239091A
Other languages
Japanese (ja)
Other versions
JPH04239348A (en
Inventor
一博 三品
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works Ltd
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 Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP00239091A priority Critical patent/JP3205564B2/en
Publication of JPH04239348A publication Critical patent/JPH04239348A/en
Application granted granted Critical
Publication of JP3205564B2 publication Critical patent/JP3205564B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、CPUを用いてユーザ
の作成したプログラムを機械語に変換し実行するCPU
システムに用いるメモリ回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a CPU for converting a program created by a user into a machine language by using the CPU and executing the program.
The present invention relates to a memory circuit used in a system.

【0002】[0002]

【従来の技術】従来、CPUにおいて、大容量のデータ
の処理を行うために、メモリ空間(アドレス数)の拡大
を行っていた。図9は従来例を示しており、この従来例
ではエリアレジスタ1、コモンレジスタ2、バンクレジ
スタ3の3つのレジスタを用い、8ビットCPUの64
Kバイトのメモリ空間(論理アドレス)LAを3つのエ
リアに分け、それを1Mバイトメモリ空間(物理空間)
PAに射影している。
2. Description of the Related Art Conventionally, in a CPU, a memory space (number of addresses) has been expanded in order to process a large amount of data. FIG. 9 shows a conventional example. In this conventional example, three registers of an area register 1, a common register 2, and a bank register 3 are used, and 64 registers of an 8-bit CPU are used.
K-byte memory space (logical address) LA is divided into three areas, which are divided into 1-Mbyte memory space (physical space)
Projected to PA.

【0003】[0003]

【発明が解決しようとする課題】この方法によれば、バ
ンクエリアとコモンエリアを1Mバイトの物理空間PA
の任意のアドレスに割り付けることができるが、エリア
レジスタ1が論理アドレスLAの12から15ビット目
を用いてエリアを切り分けているため、4Kバイト単位
でしか分けることができず、また多数のエリアに分けた
場合に、多数のエリアレジスタ1と、バンクベースレジ
スタ2と、比較器4及び加算器5への切り換え回路が必
要となり、回路が複雑で大きなものとなる。
According to this method, the bank area and the common area have a physical space PA of 1 Mbyte.
However, since the area register 1 divides the area using the 12th to 15th bits of the logical address LA, the area can be divided only in units of 4 Kbytes. When divided, a large number of area registers 1, bank base registers 2, and switching circuits for the comparator 4 and the adder 5 are required, and the circuit becomes complicated and large.

【0004】本発明は上述の問題点に鑑みて為されたも
ので、その目的とするところは十分に余裕をもって論理
アドレスに割り付けられた多数のエリアを物理アドレス
の実メモリに最少構成で射影することができるメモリ回
路を提供するにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-described problems, and has as its object to project a large number of areas allocated to logical addresses with a sufficient configuration to a real memory of physical addresses with a minimum configuration. It is to provide a memory circuit that can be used.

【0005】[0005]

【課題を解決するための手段】本発明は、上述の目的を
達成するために、複数のメモリを用いCPUよりデータ
の読み書きを行うメモリ回路において、CPUのアドレ
スをデコードして特定の領域を検出するアドレスデコー
ド回路と、特定の領域を検出したときに出力するアドレ
スデコード回路の領域信号とメモリ内の割り付けを制御
する制御信号よりCPUから出力されたアドレスを実際
のメモリのアドレスに変換するためのオフセット値を生
成するオフセット回路と、上記オフセット回路からの出
力とCPUからのアドレスを加算してメモリのアドレス
を出力する加算回路と、上記領域信号と上記制御信号よ
り実際のメモリをセレクトするセレクト信号を出力する
メモリセレクト回路とを備え、制御信号として、CPU
のアドレス空間の同一のエリアに異なるメモリの異なる
処理を割り付ける第1の制御信号、CPUのアドレス
空間の二つの機能のエリアと対応するメモリの異なる処
理のエリアを入れ替える第2の制御信号とを用いて、C
PUからのアドレスを変換し、任意のメモリの任意のア
ドレスに割り付けるものである。
SUMMARY OF THE INVENTION In order to achieve the above-mentioned object, the present invention provides a memory circuit which reads and writes data from a CPU using a plurality of memories and decodes a CPU address to detect a specific area. And an address decoding circuit for converting an address output from the CPU into an actual memory address based on an area signal of the address decoding circuit output when a specific area is detected and a control signal for controlling allocation in the memory. An offset circuit for generating an offset value, an addition circuit for adding an output from the offset circuit and an address from the CPU to output a memory address, and a select signal for selecting an actual memory from the area signal and the control signal And a memory select circuit that outputs
A first control signal for allocating different processes of different memories to the same area of the address space of the CPU, and a second control signal for exchanging different processing areas of the memory corresponding to the two function areas of the address space of the CPU. Using, C
The address from the PU is converted and assigned to an arbitrary address in an arbitrary memory.

【0006】[0006]

【作用】本発明によれば、CPUからのアドレスをアド
レスデコード回路、オフセット回路、メモリセレクト回
路、加算回路を備え、制御信号として、CPUのアドレ
ス空間の同一のエリアに異なるメモリの異なる処理を割
り付ける第1の制御信号、CPUのアドレス空間の二
つの機能のエリアと対応するメモリの異なる処理のエリ
アを入れ替える第2の制御信号とを用いて、任意のメモ
リの任意のアドレスに割り付けることができ、そのため
複数のメモリマップを持つシステムに対してCPUから
は同一のメモリマップで扱うことができることになる。
According to the present invention, an address decode circuit, an offset circuit, a memory select circuit, and an adder circuit are provided for receiving an address from a CPU, and different processes of different memories are allocated to the same area of the CPU address space as a control signal. Using the first control signal and the second control signal for exchanging two processing areas of the memory corresponding to the two function areas of the address space of the CPU, it is possible to allocate to an arbitrary address of an arbitrary memory. Therefore, a system having a plurality of memory maps can be handled by the CPU with the same memory map.

【0007】[0007]

【実施例】以下本発明を実施例により説明する。図1は
実施例の回路ブロックを示しており、CPUのアドレス
10〜A17をデコードして特定の領域を検出して領域信
号を出力するアドレスデコード回路10と上記領域信号
とメモリ内の割り付けを制御する制御信号により、CP
Uから出力されたアドレスA10〜A17を実際のメモリの
アドレスに変換するためのオフセット値を生成するオフ
セット回路20と、上記オフセット回路20からの出力
OF14〜OF11とCPUからのアドレスA10〜A17を加
算してメモリのアドレスA 11〜A14とを出力する加算回
路30と、上記領域信号と上記制御信号より実際のメモ
リをセレクトするセレクト信号を出力するメモリセレク
ト回路40とを備えている。
The present invention will be described below with reference to examples. Figure 1
4 shows a circuit block of the embodiment, and shows an address of a CPU.
ATen~ A17Decodes a specific area to detect
Decode circuit 10 for outputting a signal and the area signal
And the control signal for controlling the allocation in the memory, the CP
Address A output from UTen~ A17The actual memory
Generate offset value to convert to address off
Set circuit 20 and output from offset circuit 20
OF14~ OF11And address A from CPUTen~ A17Add
Address of memory A 11~ A14Times to output
The path 30, the actual memo from the area signal and the control signal
Memory select that outputs a select signal to select memory
Circuit 40.

【0008】上記制御信号は、実際のメモリ内の配置を
切り換える第1の信号たるタイプ50K/25K信号
(TYPE信号)と、CPUのメモリ配置の特定の領域
を実際のメモリの2つの領域で切り替えて使用するため
の第2の信号たるコンパイル/SYS信号(CS信号)
と、CPUの特定の2つの領域で実際のメモリの2つの
領域を入れ換え使用するための第3の信号たるワークB
/A信号(BA信号)とからなり、第1、第2の信号
が、CPUのアドレス空間の同一のエリアに異なるメモ
リの異なる処理を割り付ける第1の制御信号に相当し、
第3の信号がCPUのアドレス空間の二つの機能のエリ
アと対応するメモリの異なる処理のエリアを入れ替える
第2の制御信号に相当する。
The control signal includes a type 50K / 25K signal (TYPE signal), which is a first signal for switching the actual memory arrangement, and a specific area of the memory arrangement of the CPU which is switched between two areas of the actual memory. Compile / SYS signal (CS signal) as a second signal for use
And a work B as a third signal for exchanging and using two areas of the actual memory with two specific areas of the CPU.
/ A signal (BA signal), and the first and second signals
However, different notes are stored in the same area of the CPU address space.
Corresponding to a first control signal for allocating different processes,
The third signal is an area for two functions in the CPU address space.
Swap different processing areas of memory corresponding to the
This corresponds to a second control signal.

【0009】また上記セレクト信号はCCSY,CSM
0,CSM1,CSM2の4つの信号からなる。図2、
図3、図4は本発明メモリ回路が扱うメモリの異なるメ
モリマップを示しており、図2のメモリマップと図3の
メモリマップとではCPUのシステムROMのエリア
と、コンパイルのエリアの重なりの違いがあり、図3で
はシステムのエリアが62Kバイトに増加している。図
3のメモリマップと、図4のメモリマップとでは図4の
方がSRAMが1個増え、コンパイルのエリアが32K
バイト、ワークエリアが8Kバイト、ユーザROMエリ
アが16Kに増加している。
The select signals are CCSY and CSM.
0, CSM1, and CSM2. FIG.
3 and 4 show different memory maps of the memories handled by the memory circuit of the present invention. The difference between the memory map shown in FIG. 2 and the memory map shown in FIG. In FIG. 3, the area of the system has been increased to 62 Kbytes. And the memory map of FIG. 3, FIG. 4 is a memory map of FIG. 4
It is more one is SRAM, compilation area is 32K
The bytes and work area have increased to 8K bytes, and the user ROM area has increased to 16K.

【0010】ここで上述した特定の領域に相当するメモ
リマップの領域はCPUの08000から0F7Fのエ
リアを示し、CS信号によるよって図3及び図4の前記
エリアをROMに割り付けられたシステムとSRAMに
割り付けられたコンパイルとに切り替えられる。また上
特定の2つの領域とはワークW1、ワークW2の領域
を示し、上記BA信号でSRAM内のワークWAとワー
クWBのエリアを入れ換えて扱うことができる。
Here, the area of the memory map corresponding to the above-mentioned specific area is from 08000 to 0F7F of the CPU.
3 and 4 according to the CS signal.
Area is allocated to the system allocated to ROM and SRAM
Switch to the assigned compilation. The workpiece W 1 and two specific regions of the above, indicates a region of the workpiece W 2, it can be handled by interchanging the area of the work WA and workpiece WB in the SRAM by the BA signal.

【0011】これらのマップではCPUの領域の方がメ
モリの領域より大きくなっているが、メモリの領域内で
はメモリのセレクト信号は出され続けメモリのアドレス
は最大番地を越えると0に戻る。例えば、図2に示すメ
モリマップでCPUの38000番地からアクセスする
とSRAMのコンパイルエリア、ユーザRAM、ワーク
WA,WB、スタックの順に見える。
In these maps, the CPU area is larger than the memory area. However, in the memory area, the memory select signal continues to be output, and the memory address returns to 0 when the address exceeds the maximum address. For example, if access is made from address 38000 of the CPU in the memory map shown in FIG. 2, the compile area of the SRAM, the user RAM, the works WA and WB, and the stack are seen in this order.

【0012】表1にメモリセレクト回路40での制御信
号とCPUアドレスに対するメモリのセレクト信号の表
を、表2にオフセット回路での制御信号とCPUアドレ
スに対するオフセットを示す。尚表2でオフセット値
は16ビットで表記されているが、この内の12〜15
ビットの計4ビットを用いる。
Table 1 shows a control signal in the memory select circuit 40 and a table of a memory select signal for the CPU address. Table 2 shows a control signal in the offset circuit and an offset value for the CPU address. In Table 2, the offset value is represented by 16 bits.
A total of 4 bits are used.

【0013】[0013]

【表1】 上記表1は、図1のメモリセレクト回路でTYPE、C
Sの信号に対して実際のメモリをセレクトする信号CS
SY、CSM0,CSM1,CSM2がどのように出力
されるかを示した表である。CSSYは図2から図4の
コンパイルのみが割り付けられたSRAMをセレクトす
る信号、CSM1は図4のコンパイルのみが割り付けら
れたSRAMをセレクトする信号、CSM2はEPRO
Mをセレクトする信号である。TYPEが0の時が図3
に対応し、CS信号によって08000から0F7FF
のエリアがROM(CSSY)とSRAM(CSMO)
に切り替えられる。またTYPEが0の時が図3に対応
し、CS信号によって08000から0F7FFのエリ
アがROM(CSSY)とコンパイルのみのSRAM
(CSM1)に切り替える。図2は表1でTYPEを
0,CSを1に固定した場合のメモリマップの例を示
す。
[Table 1] Table 1 shows that the memory select circuit of FIG.
A signal CS for selecting an actual memory in response to the signal S
How SY, CSM0, CSM1, CSM2 output
It is a table showing whether or not it is performed. The CSSY of FIGS. 2 to 4
Select an SRAM to which only compilation is assigned
Signal, CSM1 is assigned only to the compilation of Fig. 4.
To select the selected SRAM, CSM2 is EPRO
This signal selects M. Fig. 3 when TYPE is 0
08000 to 0F7FF depending on the CS signal
Area is ROM (CSSY) and SRAM (CSMO)
Can be switched to Also, when TYPE is 0 corresponds to FIG.
The area from 08000 to 0F7FF depends on the CS signal.
A) ROM (CSSY) and compile-only SRAM
(CSM1). Figure 2 shows TYPE in Table 1.
Example of memory map when 0 and CS are fixed at 1
You.

【0014】[0014]

【表2】 表2は、オフセット回路20でTYPE,CS及ぴBA
信号仁よってCPUアドレスに対し実際のメモリに供給
されるアドレスがどうなるかを示した表で、上記表1と
あわせて図2から図4のCPUアドレス空間の各エリア
が実際のメモリとどのように対応するかを示している。
表中斜線部はCPUからのアドレスがそのままメモリに
供給されることを示している。例えばTYPEが0,C
Sが0,BAが0の時は、図3でCPUアドレス空間の
00000〜0F7FFがROM(CSSY)の000
0〜F7FFに対応しCPUアドレス空間の0F800
〜0F8FFがSRAM(CSM0)の3800〜3B
FFに対応するといった具合になっている。BAが0の
時はCPUアドレス空間のワークW 1 がSRAM(CS
M0)のワークWAにCPUアドレス空間のワークW 2
がSRAM(CSM0)のワークWBに対応している
が、BAを1にするとCPUアドレス空間のワークW 1
がSRAM(CSM0)のワークWBにCPUアドレス
空間のワークW 2 がSRAM(CSM0)のワークWA
に対応し、BA信号でエリアを入れ替えることができ
る。表2中の括弧内の数値は上述の対応を行うためオフ
セット回路20で生成され るオフセット値で、16進数
4桁の16ビットで表している。この値が図1の加算回
路30でCPUのアドレスと加算されメモリに供給され
る。表2の斜線部ではオフセット値は0でCPUからの
アドレスがそのままメモリに供給される。表2のオフセ
ット値でわかるようにA 0 からA 10 に対するオフセット
は常に0で、A 15 は実施例の場合32Kバイトより大き
い領域を扱うのがROM(システム)のみで、表2のよ
うにCS信号が0でシステムを選択の時はCPUのアド
レスをそのまま供給すればよいので、A 11 からA 14 のみ
オフセット値の加算をすれぱよく、その具体的回路は図
8に示す回路となる。そして個々の信号線の動作は省略
しているが具体的アドドレス及び制御信号を用いた複数
のケースは上述の表1、表2によって示される通りであ
る。尚上記TYPE信号は物理的に1または0レベルに
固定して供給され、システムの電源投入時から確定し、
CS,BAの信号はCPUの出カポートから必要に応じ
ソフト処理によって出力される。またTYPE信号はオ
フセット回路20及び加算回路30により、CPUから
はメモリ容量の違ったシステムを同一に扱え、複数のハ
ードに対して複数のソフトを開発する必要がなく、例え
ばプログラム容量の違う系列商品の開発期間を短縮で
き、またソフトの変更があった場合の系列全体の展開や
不具合の修正などのメンテナンス性も大幅に改善でき
る。CS信号は信号出力のみでCPUの同じアドレス空
間に対し違った処理を実現でき、特に8ビット系のCP
U等の場合64kバイトでメモリ空間の切り替えが必要
で、従来のように複雑な回路と複雑なソフト処理を行う
ため本来の処理速度の低下及ぴ不具合の原因となってい
たが、処理速度の向上及び信頼性の向上が図れる。BA
信号は同一機能で別処理、例えば2チャンネルの通信で
異なる通信プロトコルを扱う場合に有効である。例えば
CPUのアドレス空間のW 1 はチャンネル1の通信エリ
ア、W 2 はチャンネル2の通信エリアまたSRAMのW
AはプロトコルAの処理エリア、WBはプロトコルBの
処理エリアなどと割り付けて使用され、チャンネルと処
理が明確に分離され且つ瞬時に切り替えられるので通信
の応答(処理)速度の向上がはかれる。
[Table 2] Table 2 shows that the offset circuit 20 uses TYPE, CS and BA
Supply to actual memory for CPU address by signal signal
Table 1 shows what happens to the addresses to be
In addition, each area of the CPU address space in FIGS. 2 to 4
Shows how it corresponds to the actual memory.
The shaded area in the table indicates that the address from the CPU is stored in memory as it is.
Indicates that it will be supplied. For example, if TYPE is 0, C
When S is 0 and BA is 0, the CPU address space in FIG.
0000-0F7FF is 000 of ROM (CSSY)
0F800 of CPU address space corresponding to 0 to F7FF
0F8FF is 3800-3B of SRAM (CSM0)
It corresponds to FF. BA is 0
When the work W 1 of the CPU address space is SRAM (CS
Of CPU address space to work WA of M0) work W 2
Corresponds to the work WB of the SRAM (CSM0)
However, if BA is set to 1, the work W 1 in the CPU address space
Is the CPU address to the work WB of the SRAM (CSM0)
Work WA work W 2 is a SRAM (CSM0) of space
Can be replaced by BA signal.
You. Numeric values in parentheses in Table 2 are turned off to perform the above-mentioned actions.
An offset value that will be generated by the set circuit 20, hexadecimal
It is represented by four digits of 16 bits. This value is the number of times
Is added to the address of the CPU in the path 30 and supplied to the memory.
You. In the shaded portion in Table 2, the offset value is 0, and
The address is directly supplied to the memory. Offset of Table 2
Offset against the A 10 from A 0 As can be seen in Tsu bet value
In always 0, A 15 is larger than the case 32K bytes of Example
ROM (system) is the only area that handles
When the CS signal is 0 and the system is selected,
Since it may be supplied less, from A 11 A 14 only
It is good to add the offset value.
The circuit shown in FIG. And the operation of each signal line is omitted
But using specific address and control signals
Are as shown in Tables 1 and 2 above.
You. The TYPE signal is physically at 1 or 0 level.
It is supplied fixedly and determined from the time the system is turned on.
CS and BA signals are output from CPU output port as needed
Output by software processing. The TYPE signal is off.
From the CPU by the offset circuit 20 and the addition circuit 30
Can handle systems with different memory capacities in the same way,
There is no need to develop multiple software for
By shortening the development period of affiliated products with different program capacities
When the software changes,
Maintainability such as fixing bugs can be greatly improved
You. CS signal is only signal output and the same address of CPU is empty.
Different processing can be realized between
In case of U etc., switching of memory space is required at 64k bytes
Performs complicated circuits and complicated software processing as before
This causes a reduction in the original processing speed and causes malfunctions.
However, the processing speed and the reliability can be improved. BA
Signals are processed separately by the same function, for example, by two-channel communication.
This is effective when handling different communication protocols. For example
Communication area of the W 1 of the CPU address space channel 1
A, W 2 is the communication area of channel 2 or W of SRAM
A is the processing area of protocol A, WB is the processing area of protocol B
Used by assigning it to a processing area, etc.
Communication is clearly separated and instantly switched
Response (processing) speed is improved.

【0015】図5、図6、図7、図8はアドレスデコー
ド回路10、メモリセレクト回路40、オフセット回路
20、加算回路30の具体回路を夫々示しており、この
アドレスデコード回路10はアドレスA17、A16、A15
の否定論理積値をコンパイル領域を示すCOMP信号と
し、またアドレスA17、A16と、アドレスA15の反転信
号NA15との否定論理積値をROM領域を示すROM信
号とし、、またアドレスA17の反転信号NA17とアドレ
スA16、A15との否定論理積値と、アドレスA 14、A13
との論理和値をワークW1を示すWRK1信号としてい
る。更にアドレスA17の反転信号NA17とアドレス
16、A15との否定論理積値と、アドレスA 13の反転信
号NA13と、アドレスA14との論理和値をワークW2
示すWRK2信号としている。更に反転信号NA17とア
ドレスA16の反転信号NA16とアドレスA15の否定論理
積値と、アドレスA14〜A11との論理積値の反転信号
と、アドレスA10との論理和値でスタック領域を示すS
TCK信号を作成する。更に上記の反転信号NA17、N
15、アドレスA16でユーザ領域を識別するUSER信
号を、また反転信号NA17、NA16とアドレスA15の否
定論理積値と、上記アドレスA14〜A11の論理積値との
論理和値をシステムのコンパイル領域を識別するSYC
P信号を、また反転信号NA17〜NA15の否定論理積
で、システム領域を示すSYST信号を夫々作成する。
FIGS. 5, 6, 7 and 8 show address decoding.
Circuit 10, memory select circuit 40, offset circuit
20 and a specific circuit of the adder circuit 30, respectively.
The address decode circuit 1017, A16, AFifteen
And the COMP signal indicating the compilation area
Address A17, A16And address AFifteenInversion of
No.NAFifteenThe logical AND value of
And address A17Inverted signal NA of17And address
A16, AFifteenAND with the address A 14, A13
The logical sum of1WRK indicating1Signal
You. Address A17Inverted signal NA of17And address
A16, AFifteenAND with the address A 13Inversion of
No.NA13And address A14The logical sum ofTwoTo
WRK shownTwoSignal. Further, the inverted signal NA17And a
Dress A16Inverted signal NA of16And address AFifteenNegation logic
Product value and address A14~ A11Inverted signal of AND value with
And address ATenS indicating the stack area by the logical sum of
Create a TCK signal. Further, the above inverted signal NA17, N
AFifteen, Address A16USER signal to identify user area by
Signal and inverted signal NA17, NA16And address AFifteenNo
Constant AND value and the address A14~ A11With the logical product value of
The OR value is used to identify the compile area of the system.
P signal and inverted signal NA17~ NAFifteenNegation of
Then, a SYST signal indicating the system area is generated.

【0016】オフセット回路20は上記のアドレスデコ
ーダ回路10からの5つの領域を示すSYCP信号、S
TCK信号、WRK1信号、WRK2信号、COMP信号
と、制御信号のTYPE信号と、CS信号と、BA信号
とを用いてオフセット信号OF11〜OF14を作成する論
理回路を構成する。メモリセレクト回路は、上記のSY
CP信号、STCK信号、WRK1信号、WRK2信号、
COMP信号の各反転信号NSYC信号、NSTC信
号、NCOM信号、NWK1信号、NWK2信号、更にT
YPE信号及びその反転信号NTYP、コンパイル/S
YS信号及びその反転信号NCS、更にアドレスコード
回路10からのUSER信号の反転信号NUSE、SY
ST信号の反転信号NSYSを用いてCCSY、CSM
0、CSM1、CSM2の各メモリセレクト信号を作成
する。
The offset circuit 20 has a SYCP signal indicating the five areas from the address decoder circuit 10,
TCK signal, WRK 1 signal, constituting WRK 2 signal, and the COMP signal, and TYPE signal of the control signal, and the CS signal, a logic circuit for generating an offset signal OF 11 ~OF 14 by using the BA signal. The memory select circuit uses the SY
CP signal, STCK signal, WRK 1 signal, WRK 2 signal,
Each inverted signal of the COMP signal NSYC signal, NSTC signal, NCOM signal, NWK 1 signal, NWK 2 signal, and T
YPE signal and its inverted signal NTYP, compile / S
The YS signal and its inverted signal NCS, and the inverted signals NUSE and SY of the USER signal from the address code circuit 10
CCSY, CSM using the inverted signal NSYS of the ST signal
0, CSM1, and CSM2 are generated.

【0017】加算回路30は、アドレスA11〜A14と、
オフセット信号OF11〜OF14とを用いてメモリのアド
レス出力A11〜A14を得るのである。以上の具体回路で
示すように実施例では全体の回路、特にオフセット回路
30がオフセットテーブルを参照する形式ではなく、論
理積、論理和の論理回路で構成できるためIC化が容易
である。
The adder circuit 30 includes addresses A 11 to A 14 ,
It is to obtain an address output A 11 to A 14 of the memory by using the offset signal OF 11 ~OF 14. As shown in the specific circuit described above, in the embodiment, the entire circuit, particularly, the offset circuit 30 does not refer to the offset table but can be configured by a logical circuit of a logical product and a logical sum.

【0018】本発明は、複数のメモリを用いCPUより
データの読み書きを行うメモリ回路において、CPUの
アドレスをデコードして特定の領域を検出するアドレス
デコード回路と、特定の領域を検出したときに出力する
アドレスデコード回路の領域信号とメモリ内の割り付け
を制御する制御信号よりCPUから出力されたアドレス
を実際のメモリのアドレスに変換するためのオフセット
値を生成するオフセット回路と、上記オフセット回路か
らの出力とCPUからのアドレスを加算してメモリのア
ドレスを出力する加算回路と、上記領域信号と上記制御
信号より実際のメモリをセレクトするセレクト信号を出
力するメモリセレクト回路とを備え、制御信号として、
CPUのアドレス空間の同一のエリアに異なるメモリの
異なる処理を割り付ける第1の制御信号、CPUのア
ドレス空間の二つの機能のエリアと対応するメモリの異
なる処理のエリアを入れ替える第2の制御信号とを用い
て、CPUからのアドレスを変換し、任意のメモリの任
意のアドレスに割り付けるので、十分に余裕をもって論
理アドレスに割り付けられた多数のエリアを物理アドレ
スの実メモリに最少構成で射影することができるもので
あって、複数のメモリマップを持つシステムに対してC
PUからは同一のメモリマップで扱うことができ、しか
もシステムが処理し易いように特定のエリアに対して特
別な扱いが可能となるため、システムソフトの開発の効
率が上がるとともに、CPUの機能を最大限に引き出さ
せるという効果があり、その上メモリに対しては最小容
量で構成できるため、システムのコストダウンも図れる
という効果がある。
According to the present invention, in a memory circuit for reading and writing data from a CPU using a plurality of memories, an address decode circuit for decoding a CPU address and detecting a specific area, and outputting a signal when a specific area is detected. An offset circuit for generating an offset value for converting an address output from the CPU into an actual memory address based on a region signal of an address decode circuit to be executed and a control signal for controlling allocation in the memory; and an output from the offset circuit. And an adder circuit for adding an address from the CPU to output an address of the memory, and a memory select circuit for outputting a select signal for selecting an actual memory from the area signal and the control signal.
A first control signal to allocate the different processing of different memories in the same area CPU address space, and a second control signal to switch the area of the different processing of the memory corresponding to the area of the two functions of the CPU address space Is used to convert the address from the CPU and assign it to any address in any memory.Therefore, it is possible to project a large number of areas assigned to logical addresses with sufficient margin onto the real memory of physical addresses with the minimum configuration. For systems with multiple memory maps
The PU can handle the same memory map, and special handling can be performed for a specific area so that the system can be easily processed. This increases the efficiency of system software development and enhances the functions of the CPU. This has the effect of maximizing the draw-out, and also has the effect of reducing the cost of the system since the memory can be configured with a minimum capacity.

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

【図1】本発明の実施例の回路ブロック図FIG. 1 is a circuit block diagram of an embodiment of the present invention.

【図2】同上のメモリマップと実メモリとの第1の対応
説明図である。
FIG. 2 is a first correspondence between a memory map and a real memory according to the first embodiment;
FIG.

【図3】同上のメモリマップと実メモリとの第2の対応
説明図である。
FIG. 3 is a second correspondence between the above memory map and the real memory.
FIG.

【図4】同上のメモリマップと実メモリとの第3の対応
説明図である。
FIG. 4 is a third correspondence between the memory map and the real memory according to the first embodiment;
FIG.

【図5】図1のアドレスデコード回路の具体的回路図で
ある。
FIG. 5 is a specific circuit diagram of the address decode circuit of FIG. 1;

【図6】図1のオフセット回路の具体的回路図である。FIG. 6 is a specific circuit diagram of the offset circuit of FIG. 1;

【図7】図1のメモリセレクト回路の具体回路図であ
る。
FIG. 7 is a specific circuit diagram of the memory select circuit of FIG. 1;

【図8】図1の加算回路の具体回路図である。FIG. 8 is a specific circuit diagram of the addition circuit of FIG. 1;

【図9】従来例の回路ブロック図である。FIG. 9 is a circuit block diagram of a conventional example.

【符号の説明】[Explanation of symbols]

10 アドレスデコード回路 20 オフセット回路 30 加算回路 40 メモリセレクト回路 Reference Signs List 10 address decode circuit 20 offset circuit 30 adder circuit 40 memory select circuit

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 12/00 - 12/06 G06F 13/16 - 13/18 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int. Cl. 7 , DB name) G06F 12/00-12/06 G06F 13/16-13/18

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数のメモリを用いCPUよりデータの読
み書きを行うメモリ回路において、CPUのアドレスを
デコードして特定の領域を検出するアドレスデコード回
路と、特定の領域を検出したときに出力するアドレスデ
コード回路の領域信号とメモリ内の割り付けを制御する
制御信号よりCPUから出力されたアドレスを実際のメ
モリのアドレスに変換するためのオフセット値を生成す
るオフセット回路と、上記オフセット回路からの出力と
CPUからのアドレスを加算してメモリのアドレスを出
力する加算回路と、上記領域信号と上記制御信号より実
際のメモリをセレクトするセレクト信号を出力するメモ
リセレクト回路とを備え、制御信号として、CPUのア
ドレス空間の同一のエリアに異なるメモリの異なる処理
を割り付ける第1の制御信号、CPUのアドレス空間
の二つの機能のエリアと対応するメモリの異なる処理の
エリアを入れ替える第2の制御信号とを用いて、CPU
からのアドレスを変換し、任意のメモリの任意のアドレ
スに割り付けることを特徴とするメモリ回路。
1. A memory circuit for reading and writing data from a CPU using a plurality of memories, an address decoding circuit for decoding a CPU address to detect a specific area, and an address output when a specific area is detected. An offset circuit for generating an offset value for converting an address output from the CPU into an actual memory address based on a region signal of the decode circuit and a control signal for controlling allocation in the memory; and an output from the offset circuit and the CPU. An adder circuit for adding an address from the memory and outputting a memory address; and a memory select circuit for outputting a select signal for selecting an actual memory based on the area signal and the control signal. The first to allocate different processes of different memories to the same area of space Using a control signal, a second control signal to switch the area of the different processing of the memory corresponding to the area of the two functions of the address space of the CPU, CPU
A memory circuit, which converts an address from a memory and assigns it to an arbitrary address of an arbitrary memory.
JP00239091A 1991-01-14 1991-01-14 Memory circuit Expired - Fee Related JP3205564B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP00239091A JP3205564B2 (en) 1991-01-14 1991-01-14 Memory circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP00239091A JP3205564B2 (en) 1991-01-14 1991-01-14 Memory circuit

Publications (2)

Publication Number Publication Date
JPH04239348A JPH04239348A (en) 1992-08-27
JP3205564B2 true JP3205564B2 (en) 2001-09-04

Family

ID=11527909

Family Applications (1)

Application Number Title Priority Date Filing Date
JP00239091A Expired - Fee Related JP3205564B2 (en) 1991-01-14 1991-01-14 Memory circuit

Country Status (1)

Country Link
JP (1) JP3205564B2 (en)

Also Published As

Publication number Publication date
JPH04239348A (en) 1992-08-27

Similar Documents

Publication Publication Date Title
US4835734A (en) Address translation apparatus
CA1324835C (en) Modular crossbar interconnection network for data transaction between system units in a multi-processor system
US5077654A (en) Virtual machine system which translates virtual address from a selected virtual machine into real address of main storage
JP2501874B2 (en) IC card
KR890002469B1 (en) Memory paging system in a micro computer
US3982231A (en) Prefixing in a multiprocessing system
JP3205564B2 (en) Memory circuit
US4984150A (en) Virtual memory control management system
JPH0148570B2 (en)
JP3182906B2 (en) Microcomputer
JPS6371736A (en) System for allocating parity bit area on rom
JP2001134449A (en) Data processor and its control method
JPH08241264A (en) Option device and information processor connected therewith
JPS60129854A (en) Address bus controller
JPS5913766B2 (en) Address control method
JPS6318439A (en) Information processor
JPS6126699B2 (en)
JPS61267149A (en) Data processor
JPH05128327A (en) Ic card
JPS63271567A (en) Asymmetric closely-coupled multiprocessor system
KR20010082982A (en) Interrupt Management System and Interrupt Management Method using Expanded Interrupt Vectors
JPS581250A (en) Discriminating system of information code
JPH1165983A (en) Address space allocating system
JPH07168756A (en) Memory access controller
JPS6159560A (en) I/o expansion device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010619

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090629

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees