JPH06250922A - Storage device - Google Patents
Storage deviceInfo
- Publication number
- JPH06250922A JPH06250922A JP3640793A JP3640793A JPH06250922A JP H06250922 A JPH06250922 A JP H06250922A JP 3640793 A JP3640793 A JP 3640793A JP 3640793 A JP3640793 A JP 3640793A JP H06250922 A JPH06250922 A JP H06250922A
- Authority
- JP
- Japan
- Prior art keywords
- data
- storage device
- address
- logic circuit
- code
- 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
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、計算機をはじめとする
電子機器に使用されるROM、RAM等の記憶装置に関
するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a storage device such as a ROM or a RAM used in electronic equipment such as a computer.
【0002】[0002]
【従来の技術】一般に、ROM、RAM等の記憶装置
(以下「メモリ」とも云う)は、メモリセルと呼ばれる
基本回路の繰り返し構造で形成されている。通常、この
メモリセル1個につき1ビットの情報が記憶される。従
って、メモリセルの個数によって記憶装置の容量が決定
される。昨今、機器の多機能化などに伴なって、情報量
の多量化やデータそのもののビット数の増加の傾向が顕
著であり、より大きな記憶容量のメモリが必要とされつ
つある。2. Description of the Related Art Generally, a storage device such as a ROM or a RAM (hereinafter also referred to as a "memory") is formed by a repeating structure of a basic circuit called a memory cell. Normally, one bit of information is stored for each memory cell. Therefore, the capacity of the storage device is determined by the number of memory cells. In recent years, along with the multi-functionalization of devices, the tendency of increasing the amount of information and increasing the number of bits of data itself is remarkable, and a memory having a larger storage capacity is required.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、記憶容
量を大きくすること、具体的にはメモリセルの増加のた
めには、半導体としてメモリセルの増加分チップ面積を
大きくするか、もしくはメモリセル回路及び周辺回路の
微細化以外に手段がなく、いずれの方法も著しいコスト
の増大という問題を生じるものであった。However, in order to increase the storage capacity, specifically, to increase the number of memory cells, the chip area must be increased as the number of memory cells increases as a semiconductor, or the memory cell circuit and There is no means other than miniaturization of the peripheral circuit, and any of these methods causes a problem of significant cost increase.
【0004】本発明は、このような問題を解決し、メモ
リセルの個数より多量の情報を記憶できる記憶装置を提
供することを目的とする。It is an object of the present invention to solve such a problem and to provide a memory device capable of storing a larger amount of information than the number of memory cells.
【0005】[0005]
【課題を解決するための手段】上記目的を達成するた
め、本発明の記憶装置は、主記憶装置と、少なくとも圧
縮前のデータ1区画分の容量を有するバッファ記憶装置
と、前記バッファ記憶装置内のデータを前記主記憶装置
に圧縮する符号圧縮用論理回路と、前記主記憶装置内の
データを前記バッファ記憶装置に展開する符号展開用論
理回路と、から成っている。To achieve the above object, a storage device of the present invention comprises a main storage device, a buffer storage device having a capacity of at least one partition of uncompressed data, and a buffer storage device in the buffer storage device. And a code expansion logic circuit for expanding the data in the main storage device into the buffer storage device.
【0006】[0006]
【作用】このようにすると、情報を圧縮して書き込み、
展開して読み出すことができるため、もとの情報量に比
べて少ない個数のメモリセルしか必要としない。従っ
て、メモリセルの個数以上の情報を記憶することが可能
となる。[Operation] In this way, information is compressed and written,
Since the data can be developed and read, only a small number of memory cells are needed compared to the original amount of information. Therefore, it is possible to store more information than the number of memory cells.
【0007】[0007]
【実施例】以下、本発明の実施例を図面を参照しつつ、
説明する。図1に、1Mビット(8ビット×128K)
のROMに2Mビットのデータを書き込む場合の圧縮前
後のデータマップを示す。同図(a)は、圧縮前の2M
ビットのデータマップである。この2Mビットデータを
1Kバイトずつの256区画に区切り、それぞれをハフ
マン法やレンペル・ジフ法等の手法で符号圧縮する。圧
縮後のデータ(b)は、辞書、インデックス及び各区画
の圧縮データから成り、1Mビット以内のデータとなっ
ている。辞書は、符号変換表である。また、インデック
スは圧縮後の各区画がどのアドレスから始まっているか
を示すもので、圧縮後の1区画のサイズがまちまちであ
るので必要となる。この圧縮後のデータを1Mビットの
ROMに書き込めば、実際には2Mビットの情報が書き
込まれたことになる。Embodiments of the present invention will now be described with reference to the drawings.
explain. Figure 1 shows 1M bits (8 bits x 128K)
2 shows a data map before and after compression when writing 2 Mbit data to the ROM of FIG. The same figure (a) is 2M before compression.
It is a data map of bits. This 2M-bit data is divided into 256 sections of 1K bytes each, and each is code-compressed by a method such as the Huffman method or the Lempel-Ziff method. The compressed data (b) is composed of a dictionary, an index, and compressed data of each section, and is data of 1 M bits or less. The dictionary is a code conversion table. The index indicates from which address each section after compression starts, and is necessary because the size of one section after compression varies. If this compressed data is written in the 1 Mbit ROM, it means that 2 Mbit information is actually written.
【0008】図1のように圧縮されたデータを読み出す
方法について、以下で説明する。図2は、本発明をPR
OM(Programable−ROM)に適応した場合のブロック図
である。PROM10は、主メモリであるROM11、符号
展開用論理回路12、バッファメモリ13、選択回路14、ア
ドレス信号線15及びデータ信号線16により構成されてい
る。ROM10は、8ビット×128Kの1Mビットで、
2Mビットのデータを図1で示したように圧縮して書き
込んである。また、バッファメモリ13は8キロビットの
RAM17、18、19及び20を有しており、1個のRAMに
圧縮前の1区画のデータが格納できる。アドレス信号線
15は1Mビット分のアドレス指定ができるように17ビ
ットであり、データ信号線16は8ビットである。A method for reading the data compressed as shown in FIG. 1 will be described below. FIG. 2 shows the present invention as PR.
It is a block diagram at the time of adapting to OM (Programable-ROM). The PROM 10 is composed of a ROM 11 which is a main memory, a code expansion logic circuit 12, a buffer memory 13, a selection circuit 14, an address signal line 15 and a data signal line 16. ROM10 is 1M bit of 8 bits x 128K,
2M-bit data is compressed and written as shown in FIG. Further, the buffer memory 13 has RAMs 17, 18, 19 and 20 of 8 kilobits, and one RAM can store data of one section before compression. Address signal line
15 is 17 bits so that 1 M bits can be addressed, and the data signal line 16 is 8 bits.
【0009】このPROM10からデータを読み出す場合
には、まずアドレス信号線15を介して符号展開用論理回
路12にアドレスが与えられる。符号展開用論理回路12
は、そのアドレスを含む区画がバッファメモリ13の4個
のRAMのいずれかに展開されているかどうかを判断す
る。例えばRAM17に展開されていれば、RAM17に出
力命令を、また選択回路14に選択命令を送る。これによ
り、RAM17の中の1バイトが選択回路14を通ってデー
タ信号線16に出力されて読み出しが終了する。一方、指
定されたアドレスを含む区画がバッファメモリ13に展開
されていなければ、符号展開用論理回路12はバッファメ
モリ13の4個のRAMのいずれかに指定アドレスを含む
区画をROM11から展開して、そのRAMに対して上述
のように出力命令、選択命令を送り、データを出力す
る。When reading data from the PROM 10, first, an address is given to the code expanding logic circuit 12 via the address signal line 15. Code expansion logic circuit 12
Determines whether the partition including the address is expanded in any of the four RAMs of the buffer memory 13. For example, if it is expanded in the RAM 17, the output command is sent to the RAM 17 and the selection command is sent to the selection circuit 14. As a result, one byte in the RAM 17 is output to the data signal line 16 through the selection circuit 14 and the reading is completed. On the other hand, if the partition containing the specified address is not expanded in the buffer memory 13, the code expansion logic circuit 12 expands the partition containing the specified address from the ROM 11 in any of the four RAMs of the buffer memory 13. The output command and the selection command are sent to the RAM as described above, and the data is output.
【0010】図2に示したバッファメモリはRAM4個
で構成されているが、バッファメモリは圧縮前の1区画
が展開できる記憶容量以上であればよい。図2のような
PROMでなく、1チップマイコンのROM部に本発明
を適応した場合は、符号展開を専用の論理回路で行なう
のではなく、マイコンのCPUで符号展開用プログラム
を実行するようにすれば、符号展開用論理回路分のチッ
プサイズの増加は生じない。この場合、CPUがROM
からの読み出しを行なう際、当該アドレスに対応するデ
ータがバッファメモリ上にないとき、メモリ制御部から
割り込みを発生させる。この割り込みによって、CPU
は処理を中断して符号展開用プログラムを実行し、展開
の終了後割り込みを発生させた読み出し命令を再試行し
た上で、元のプログラムの実行を再開する。Although the buffer memory shown in FIG. 2 is composed of four RAMs, the buffer memory may have a storage capacity larger than that of one partition before compression. When the present invention is applied to the ROM section of a one-chip microcomputer instead of the PROM as shown in FIG. 2, the code expansion program is executed by the CPU of the microcomputer instead of executing the code expansion by a dedicated logic circuit. Then, the chip size does not increase by the code expansion logic circuit. In this case, CPU is ROM
When the data corresponding to the address is not read from the buffer memory when reading from the memory, an interrupt is generated from the memory control unit. This interrupt causes the CPU
Restarts the execution of the original program after interrupting the processing, executing the code expansion program, retrying the read instruction that generated the interrupt after the expansion is completed.
【0011】図2では、ROMからの読み出しについて
説明したため、符号展開用論理回路のみを有するブロッ
ク図であったが、主メモリがRAMの場合には符号圧縮
用論理回路が必要なのは言うまでもない。その場合は、
RAMへの書き込みのときにバッファメモリ内のデータ
を符号圧縮用論理回路で圧縮後、書き込むようにすれば
よい。Since FIG. 2 is a block diagram having only the code expansion logic circuit because the reading from the ROM has been described, it goes without saying that the code compression logic circuit is necessary when the main memory is a RAM. In that case,
When writing to the RAM, the data in the buffer memory may be compressed by the logic circuit for code compression and then written.
【0012】[0012]
【発明の効果】以上説明したように、本発明によれば、
データを圧縮して格納しておくことができるため、メモ
リセル数より大きなビット数を記憶することが可能とな
る。従って、同容量の記憶装置に比較して非常にチップ
サイズが小さくでき、大幅なコストダウンが図れる。As described above, according to the present invention,
Since the data can be compressed and stored, it is possible to store a number of bits larger than the number of memory cells. Therefore, the chip size can be made extremely smaller than that of a storage device having the same capacity, and a significant cost reduction can be achieved.
【図1】 圧縮前後のデータマップを示す図。FIG. 1 is a diagram showing a data map before and after compression.
【図2】 本発明をPROMに適応した場合のブロック
図。FIG. 2 is a block diagram when the present invention is applied to a PROM.
10 PROM 11 ROM 12 符号展開用論理回路 13 バッファメモリ 14 選択回路 15 アドレス信号線 16 データ信号線 17、18、19、20 RAM 10 PROM 11 ROM 12 Code expansion logic circuit 13 Buffer memory 14 Selection circuit 15 Address signal line 16 Data signal line 17, 18, 19, 20 RAM
Claims (1)
ファ記憶装置と、 前記バッファ記憶装置内のデータを前記主記憶装置に圧
縮する符号圧縮用論理回路と、 前記主記憶装置内のデータを前記バッファ記憶装置に展
開する符号展開用論理回路と、から成ることを特徴とす
る記憶装置。1. A main storage device, a buffer storage device having a capacity of at least one division of uncompressed data, a code compression logic circuit for compressing data in the buffer storage device into the main storage device, A storage device comprising a code expansion logic circuit for expanding data in a main storage device into the buffer storage device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3640793A JPH06250922A (en) | 1993-02-25 | 1993-02-25 | Storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3640793A JPH06250922A (en) | 1993-02-25 | 1993-02-25 | Storage device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH06250922A true JPH06250922A (en) | 1994-09-09 |
Family
ID=12468990
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3640793A Pending JPH06250922A (en) | 1993-02-25 | 1993-02-25 | Storage device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH06250922A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6330712B1 (en) * | 1997-11-12 | 2001-12-11 | Nec Corporation | Compressed data patch system |
-
1993
- 1993-02-25 JP JP3640793A patent/JPH06250922A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6330712B1 (en) * | 1997-11-12 | 2001-12-11 | Nec Corporation | Compressed data patch system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6658549B2 (en) | Method and system allowing a single entity to manage memory comprising compressed and uncompressed data | |
US5632024A (en) | Microcomputer executing compressed program and generating compressed branch addresses | |
US20050198471A1 (en) | Micro-controller for reading out compressed instruction code and program memory for compressing instruction code and storing therein | |
US20030105927A1 (en) | Method for use of stack | |
US6158046A (en) | Computer device and method for processing data utilizing pseudoinstruction words | |
US6134640A (en) | Method for transforming flash memory storage format based on average data length | |
JPH06250922A (en) | Storage device | |
US7676651B2 (en) | Micro controller for decompressing and compressing variable length codes via a compressed code dictionary | |
JP2004246889A (en) | Computer system for incorporating sequential buffer and improving dsp data access performance, and access method therefor | |
US7441254B1 (en) | Simulation of memory-mapped I/O | |
JP3051014B2 (en) | Data storage device and data system | |
KR100388612B1 (en) | Method of Compressing Packing In Switching System | |
JPH0628150A (en) | Method for compressing program capacity | |
JP2001166945A (en) | Semiconductor device and method for generating compressed program | |
JP2000347929A (en) | Memory ic | |
KR930005477Y1 (en) | Data processor with a piggy board of cache memory | |
JP3146197B2 (en) | Data transfer device and storage device | |
JP2000163264A (en) | Program storage device for cpu | |
JPH1040165A (en) | Data read method and read buffer | |
JP3031581B2 (en) | Random access memory and information processing device | |
EP0755000A2 (en) | Microcomputer and address generation method | |
JPH06105442B2 (en) | Micro computer | |
JP2000200173A (en) | Data compression circuit | |
JPS62279449A (en) | Data transfer equipment | |
JPH05334074A (en) | Microprocessor |