JPS6043538B2 - Memory-switching circuit - Google Patents

Memory-switching circuit

Info

Publication number
JPS6043538B2
JPS6043538B2 JP14490481A JP14490481A JPS6043538B2 JP S6043538 B2 JPS6043538 B2 JP S6043538B2 JP 14490481 A JP14490481 A JP 14490481A JP 14490481 A JP14490481 A JP 14490481A JP S6043538 B2 JPS6043538 B2 JP S6043538B2
Authority
JP
Japan
Prior art keywords
rom
starting
ram
memory
power
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
JP14490481A
Other languages
Japanese (ja)
Other versions
JPS5846453A (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 JP14490481A priority Critical patent/JPS6043538B2/en
Publication of JPS5846453A publication Critical patent/JPS5846453A/en
Publication of JPS6043538B2 publication Critical patent/JPS6043538B2/en
Expired legal-status Critical Current

Links

Description

【発明の詳細な説明】 本発明は電源投入後、始動用のROM内のプログラム
の実行を終了した後には、この始動用のROMと同一ア
ドレス空間内に配置されたRAMを使用できるようにし
たメモリー切換回路に関するものである。
[Detailed Description of the Invention] The present invention makes it possible to use the RAM located in the same address space as the startup ROM after the power is turned on and the execution of the program in the startup ROM is completed. This relates to a memory switching circuit.

最近各種産業分野において使用されているCPUのう
ち、例えばインテル社の8080や8085などは、電
源投入時にメモリーの0番地から実行を開示するように
なつている。
Among the CPUs recently used in various industrial fields, Intel's 8080 and 8085, for example, start executing from memory address 0 when the power is turned on.

このためメモリーの0番地から少くとも数バイトは電源
を切つても記憶内容の消えないROMであることが必要
とされるものである。しかるにROMの記憶容量は1チ
ップ当り、小さいもので水バイト程度、大きいものて
庫バイト程度はあるので、仮に夙バイトのROMを用い
たとしても、ル進数で$ 000幡地から$07FF番
地まてのアドレス空間は始動用のROM(いわゆるブー
トROM)が専有することになり、記憶内容を自由に変
更できるRAMや始動用のプログラム以外のプログラム
を記憶したROMはそれ以降のアドレスに配置する必要
があつた。しかるに上述のような始動用のROMは電源
投入時に一回だけしか使用しないので、このような使用
頻度の少ないメモリーに大きなアドレス空間を専有され
ることは頗る不都合てあるという問題があつた。 本発
明は従来例のこのような問題点を解決するために為され
たものであり、電源投入後、始動用のROM内のプログ
ラムの実行を終了した後は、この始動用のROMと同一
のアドレス空間内に配置されたRAMに対して書き込み
や読み込みを行ない得るようにしたメモリー切換回路を
提供する3ことを目的とするものである。
For this reason, it is necessary that the ROM has at least several bytes starting from the 0th address of the memory, and its contents do not disappear even when the power is turned off. However, the storage capacity of ROM per chip is as small as a water byte, and as large as a storage byte, so even if you use a ROM of a few bytes, it will range from $000 to $07FF in binary numbers. The address space before the address will be exclusively occupied by the startup ROM (so-called boot ROM), and RAM whose memory contents can be freely changed and ROM that stores programs other than the startup program will be placed at addresses after that address. I needed to. However, since the startup ROM as described above is used only once when the power is turned on, there is a problem in that it is extremely inconvenient for a large address space to be occupied by such a rarely used memory. The present invention was made to solve these problems of the conventional example, and after the power is turned on and the execution of the program in the starting ROM is completed, the same ROM as this starting ROM is used. 3. It is an object of the present invention to provide a memory switching circuit capable of writing and reading data to and from a RAM arranged in an address space.

千木発明の構成を図示実施例について説明する。 The configuration of the Chigi invention will be described with reference to illustrated embodiments.

第1図a、bは本発明の一実施例の回路図を示すもので
あり、同図において1は始動用のROM(いわゆるブー
トROM)であり、2はデー・夕の読み込みおよび書き
込みを自由に行ない得るRAMである。これらのROM
IおよびRAM2は8ビットのデータ端子と、11ビッ
トのアドレス端子とを有しており、8ビットのデータ端
子はCPU3の8本のデータバスD。−D7に接続され
ており、また11ビットのアドレス端子はCPU3の1
6本のアドレスバスA。−Al5のうちの、AO〜Al
Oに接続されている。ところでこれらのデータバスDO
−D7やアドレスバスA。−Al5にROMlやRAM
2のようなメモリーが二以上同時に接続されるとデータ
の混乱が生じるので、ROMlおよびRAM2にはそれ
ぞれチップセレクト端子?が設けられており、このチッ
プセレクト端子区がLレベルのときにのみメモリーが作
動するようになつている。またRAM2には、データの
書き込みを行なうときにLレベルとなるライト信号端子
W〒が設けられているものである。4は電源投入時に作
動するイニシャルリセット回路であり、電源電圧Vcc
がHレベルとなると、抵抗Rを介してコンデンサCが充
電され、その端子電圧が上昇する。
Figures 1a and 1b show circuit diagrams of an embodiment of the present invention, in which 1 is a starting ROM (so-called boot ROM), and 2 is a ROM in which data can be read and written freely. It is a RAM that can be used for These ROMs
I and RAM2 have an 8-bit data terminal and an 11-bit address terminal, and the 8-bit data terminal is connected to the eight data buses D of the CPU3. -D7, and the 11-bit address terminal is 1 of CPU3.
6 address buses A. -AO~Al of Al5
Connected to O. By the way, these data buses DO
-D7 or address bus A. -ROM1 and RAM in Al5
If two or more memories like 2 are connected at the same time, data will be confused, so ROM1 and RAM2 each have chip select terminals. is provided, and the memory operates only when this chip select terminal is at L level. Further, the RAM 2 is provided with a write signal terminal W which becomes L level when writing data. 4 is an initial reset circuit that operates when the power is turned on, and the power supply voltage Vcc
When becomes H level, capacitor C is charged via resistor R, and its terminal voltage increases.

これによつて電源投入後暫時経過後にインバータ5の出
力がLレベルとなる。したがつてこのLレベルになるま
での間はフリップフロップ6のリセット入力Rは暫時H
レベルとなつているので、フリップフロップ6はリセッ
トされる。これによつてフリップフロップ6のO出力が
HレベルとなるのでNANDゲート7が開き、ROMl
のチップセレクト端子CSにチップセレクト信号が送出
される。このときフリップフロップ6のQ出力はLレベ
ルであるから、NANDゲート8は閉じており、RAM
2のチップセレクト端子区に対してはチップセレクト信
号が送出されない。したがつて電源投入直後の状態にお
いては、始動用のROMlが.選択されており、CPU
3はこのROMl内の0番地から始動用のプログラムを
読み出して実行するものであるが、プログラムの実行が
進行してRAM2にデータを書き込むべくデータ書込信
号WTが出力されると、NANDゲート9を介してフー
リツプフロツプ6のセット端子百にセット入力が入り、
これによつてフリップフロップ6のQ出力がHレベル、
?出力がLレベルとなる。したがつてNANDゲート8
は開き、NANDゲート7は閉じるから、RAM2にの
みチップセレクト信号が送4出され、ROMlに対して
はチップセレクト信号が送出され、ROMlに対しては
チップセレクト信号が送出されなくなる。ところでフリ
ップフロップ6はイニシャルリセット回路4の出力によ
つてのみリセットされるものであるから、リセットボタ
ン(図示せず)を押してイニシャルリセット回路4を再
び動作させるか、あるいは一旦電源を切つてからもう一
度電源を入れるかのいずれかの操作をしない限り始動用
のROMlがCPU3に接続されることはないものであ
る。第2図は上述の動作を示すメモリーマップであり、
同図に示すようにCPU3の全アドレス空間0番地〜$
FFFF番地のうち、0番地付近には始動用のROM(
すなノわちブートROM)1が配置されており、したが
つて電源を投入すると、CPU3は始動用のROMl内
の始動用プログラムをまず実行するものである。しかし
てこのROMlは自己の記憶内容のうち必要な部分を適
宜他のRAM2aにブロック転1送して、このRAM2
a内の特定のアドレスにジャンプしてRAM2aの記憶
内容に応じてCPUを動作せしめるものである。このよ
うにデータのブロック転送を行ないたくない場合には、
始動用ROMlの他に、常時CPUに接続されている他
の・ROMをRAM2aの代わりに設けておくようにす
ればよい。しかしてプログラムの実行が進んでRAM2
に対して書込制御信号W丁が送られると、ROMlはC
PU3から切り離されてRAM2に置き換えられるもの
である。このような書込制御信号WTは一般にRAMに
対してのみ用いられるものであり、ROMに対しては用
いられないので、RAM2を使用する段階になつてから
初めてROMlがRAM2に置き換えられるようになつ
ているものである。また、一旦RAM2に対して書込制
御信号が送出された後には、ROMlのアドレス空間は
RAM2によつて専有され、電源を切るかあるいはリセ
ットをしない限りはROMlは使用できないようになつ
ているものである。本発明は以上のように構成されてお
り、始動用のプログラムを記憶せる始動用のROMと、
この始動用のROMと同一アドレス空間内に配置された
RAMとを、電源投入時にリセットされ、かつ上記RA
Mに対する書込制御信号によつてセットされるフリップ
フロップの出力によりチップセレクトするように構成し
たものであるから、電源を投入して始動用のROM内の
プログラムを実行した後に、この始動用のROMと同一
アドレス空間内のRAMを使用する際には、その最初の
書込制御信号により始動用のROMがCPUから切り離
されてRAMに切り換えられるようになつており、した
がつて始動時に1回しか使用されない始動用のROMが
メモリー内で大きなアドレス空間を専有することを防止
して、限られたアドレス空間を有効に利用し得るという
利点を有するものである。
As a result, the output of the inverter 5 becomes L level some time after the power is turned on. Therefore, until the level reaches this L level, the reset input R of the flip-flop 6 is temporarily at H level.
Since the level is set, the flip-flop 6 is reset. As a result, the O output of the flip-flop 6 becomes H level, so the NAND gate 7 opens and the ROM1
A chip select signal is sent to the chip select terminal CS. At this time, the Q output of the flip-flop 6 is at L level, so the NAND gate 8 is closed and the RAM
No chip select signal is sent to the second chip select terminal section. Therefore, immediately after the power is turned on, the starting ROM1. selected and the CPU
3 reads out a starting program from address 0 in this ROM1 and executes it. When the execution of the program progresses and a data write signal WT is output to write data to the RAM 2, the NAND gate 9 A set input is input to the set terminal 100 of Flipflop 6 through
As a result, the Q output of flip-flop 6 becomes H level.
? The output becomes L level. Therefore, NAND gate 8
is open and the NAND gate 7 is closed, so a chip select signal is sent only to RAM2, a chip select signal is sent to ROM1, and no chip select signal is sent to ROM1. By the way, the flip-flop 6 is reset only by the output of the initial reset circuit 4, so either press the reset button (not shown) to activate the initial reset circuit 4 again, or turn off the power and then reset it again. The starting ROM1 will not be connected to the CPU 3 unless the power is turned on. Figure 2 is a memory map showing the above operation,
As shown in the figure, the entire address space of CPU3 is from address 0 to $
Of the FFFF addresses, a starting ROM (
In other words, a boot ROM 1 is arranged, so that when the power is turned on, the CPU 3 first executes a starting program in the starting ROM 1. However, this ROM1 blocks-transfers the necessary portion of its own memory contents to other RAM2a as appropriate, and this RAM2a
The CPU jumps to a specific address in RAM 2a and operates the CPU according to the contents stored in the RAM 2a. If you do not want to perform block transfers of data in this way,
In addition to the starting ROM1, another ROM that is always connected to the CPU may be provided in place of the RAM2a. However, as the program progresses, RAM2
When a write control signal W is sent to ROM1, ROM1 becomes C
It is separated from PU3 and replaced with RAM2. Since such a write control signal WT is generally used only for RAM and not for ROM, ROM1 is replaced with RAM2 only after RAM2 is used. It is something that Furthermore, once the write control signal is sent to RAM2, the address space of ROMl is exclusively occupied by RAM2, and ROMl cannot be used unless the power is turned off or reset. It is. The present invention is configured as described above, and includes a starting ROM that can store a starting program;
This startup ROM and a RAM located in the same address space are reset when the power is turned on, and the RAM
Since the chip is selected by the output of the flip-flop set by the write control signal for M, after turning on the power and executing the program in the starting ROM, this starting When using RAM in the same address space as ROM, the first write control signal disconnects the starting ROM from the CPU and switches it to RAM. This has the advantage of preventing the startup ROM, which is only used, from occupying a large address space in the memory, and making effective use of the limited address space.

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

第1図A,bは本発明の一実施例の回路図、第2図は同
上の動作説明用のメモリーマップである。 1はROMl2はRAMl3はCPUl6はフリップフ
ロップ、7,8はNANDゲートである。
1A and 1B are circuit diagrams of one embodiment of the present invention, and FIG. 2 is a memory map for explaining the operation of the same. 1 is a ROM12, a RAM13 and a CPU16 are flip-flops, and 7 and 8 are NAND gates.

Claims (1)

【特許請求の範囲】[Claims] 1 電源投入時にメモリー上の特定の番地から命令を読
み出して実行を開始するCPUに接続され、始動用のプ
ログラムを上記特定の番地から書き込まれた始動用のR
OMと、この始動用のROMと同一アドレス空間内に配
置されたRAMと、電源投入時のイニシャルリセット信
号によつてリセットされ、上記RAMに対する書込制御
信号によつてセットされるフリップフロップと、フリッ
プフロップのリセット時には始動用のROMにチップセ
レクト信号を送出し、フリップフロップのセット時には
上記RAMにチップセレクト信号を送出する切換回路と
を設けて成ることを特徴とするメモリー切換回路。
1 When the power is turned on, a starting R is connected to the CPU that reads instructions from a specific address on the memory and starts execution, and a starting program is written from the above specific address.
OM, a RAM arranged in the same address space as the starting ROM, and a flip-flop that is reset by an initial reset signal when the power is turned on and set by a write control signal for the RAM; A memory switching circuit comprising a switching circuit which sends a chip select signal to a starting ROM when resetting a flip-flop, and sends a chip select signal to the RAM when setting a flip-flop.
JP14490481A 1981-09-14 1981-09-14 Memory-switching circuit Expired JPS6043538B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14490481A JPS6043538B2 (en) 1981-09-14 1981-09-14 Memory-switching circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14490481A JPS6043538B2 (en) 1981-09-14 1981-09-14 Memory-switching circuit

Publications (2)

Publication Number Publication Date
JPS5846453A JPS5846453A (en) 1983-03-17
JPS6043538B2 true JPS6043538B2 (en) 1985-09-28

Family

ID=15373002

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14490481A Expired JPS6043538B2 (en) 1981-09-14 1981-09-14 Memory-switching circuit

Country Status (1)

Country Link
JP (1) JPS6043538B2 (en)

Also Published As

Publication number Publication date
JPS5846453A (en) 1983-03-17

Similar Documents

Publication Publication Date Title
JPH03168828A (en) Information processor
JPH0341859B2 (en)
US4649476A (en) Microcomputer having an internal address mapper
EP0239283B1 (en) Microcomputer
JPS6043538B2 (en) Memory-switching circuit
JPS59226958A (en) Memory device
JPH05233834A (en) Single chip microcomputer
JPS6043539B2 (en) Memory-switching circuit
JPH04115337A (en) Semiconductor integrated circuit
JP2687679B2 (en) Program development equipment
JPS5842545B2 (en) Memory card block selection method
JPS58158759A (en) Information processing device
JPH0616303B2 (en) General-purpose high-speed processor
JPH01224853A (en) Memory controller
KR930009061B1 (en) Memory access unit
JPS6348119B2 (en)
KR870002194B1 (en) Memory mapping circuit of video ram
JPH04342013A (en) Memory dumping system
JPH0731632B2 (en) Micro computer
JPS6230660B2 (en)
JPS6226738B2 (en)
JPH03191487A (en) Single chip microcomputer
JPH04330590A (en) Ic card
JPS61139998A (en) Data writing device for writable rom
JPH03211641A (en) Address designation method for memory device