JPH05210429A - Method for storing non-linear function to rom table - Google Patents

Method for storing non-linear function to rom table

Info

Publication number
JPH05210429A
JPH05210429A JP1562692A JP1562692A JPH05210429A JP H05210429 A JPH05210429 A JP H05210429A JP 1562692 A JP1562692 A JP 1562692A JP 1562692 A JP1562692 A JP 1562692A JP H05210429 A JPH05210429 A JP H05210429A
Authority
JP
Japan
Prior art keywords
data
rom table
linear function
area
rom
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
Application number
JP1562692A
Other languages
Japanese (ja)
Inventor
Toshiyuki Sasaki
俊之 佐々木
Hiroaki Hayashi
寛明 林
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP1562692A priority Critical patent/JPH05210429A/en
Publication of JPH05210429A publication Critical patent/JPH05210429A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the ROM table capacity storing the non-linear function. CONSTITUTION:A ROM table 1 storing the data of non-linear function (inverse proportion function) is divided into a plurarity of areas (R1 to R8). In the area where the high change rate of data, for example, R1 to R3, the number of data is increased. Where the change rate of data is less, for example, R6 to R8, the number of data is reduced, the data amount of the ROM table 1 is reduced thereby.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、非線形な関数データ
をROMテーブルに記憶する方法、特にメモリ容量を縮
小化することが可能な記憶方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for storing non-linear function data in a ROM table, and more particularly to a storage method capable of reducing the memory capacity.

【0002】[0002]

【従来の技術】従来、例えば反比例,放物線または平方
根などの非線形な関数演算を行なうに当たり、これらの
関数をROMテーブルに記憶しておき、必要に応じて読
み出して使用するようにしている。この場合、入力デー
タと出力データとは1対1に対応しており、このため精
度を上げようとすると記憶すべきデータ量が増え、これ
は関数演算の数が増える程顕著となる。また、1つの関
数について見ても、データが殆ど変化しない領域では領
域毎のデータが互いに同じになってしまい、これがメモ
リ容量を増大させる一因ともなっている。
2. Description of the Related Art Conventionally, when performing a non-linear function calculation such as an inverse proportion, a parabola or a square root, these functions are stored in a ROM table and read out and used as needed. In this case, there is a one-to-one correspondence between the input data and the output data, and therefore the amount of data to be stored increases in an attempt to improve the accuracy, which becomes more remarkable as the number of function operations increases. In addition, even in the case of one function, the data in each area becomes the same in the area where the data hardly changes, which is one of the causes of increasing the memory capacity.

【0003】[0003]

【発明が解決しようとする課題】つまり、従来の方法は
入力データと出力データとを1対1に対応付けるだけで
データの変化率を考慮していないため、ROMテーブル
に記憶すべきデータ量が増大するという問題がある。し
たがって、この発明の課題は非線形な関数データを記憶
するROMテーブルの容量を縮小化することにある。
That is, since the conventional method only associates the input data and the output data with one-to-one correspondence and does not consider the rate of change of the data, the amount of data to be stored in the ROM table increases. There is a problem of doing. Therefore, an object of the present invention is to reduce the capacity of a ROM table that stores non-linear function data.

【0004】[0004]

【課題を解決するための手段】このような課題を解決す
るため、この発明では、非線形な関数データをROMテ
ーブルに記憶するに当たり、前記ROMテーブルを複数
の領域に分割し、データの変化率に応じ各領域の分解能
を変えてデータを記憶させることを特徴としている。
In order to solve such a problem, the present invention divides the ROM table into a plurality of areas to store the non-linear function data in the ROM table, and determines the rate of change of the data. It is characterized in that data is stored by changing the resolution of each area.

【0005】[0005]

【作用】ROMテーブルを複数の領域に分割し、データ
の変化率が大きい領域ではデータを多くして分解能を上
げ、変化率の小さい領域ではデータ数を少なくすること
により、精度を落とすことなく記憶容量の低減化を図
る。
By dividing the ROM table into a plurality of areas, increasing the data by increasing the data in the area where the rate of change of data is large, and decreasing the number of data in the area where the rate of change of data is small, the memory is stored without degrading the accuracy. Aim to reduce the capacity.

【0006】[0006]

【実施例】図1はこの発明によるテーブル分割方法例を
説明するための説明図、図2はこの発明によるテーブル
の分割方法と分解能との関係を説明するための説明図で
ある。すなわち、図1のような反比例関数を記憶するR
OMテーブル1があったとすると、この発明ではその領
域を同図のように、例えばR1〜R8の8つの領域に分
割する。データの変化率は領域R1が1番高く、次いで
R2,R3…の順となっている。そこで、図2のように
領域R1をテーブル0、領域R2をテーブル1、以下領
域R3〜R8をそれぞれテーブル2〜7に対応させ、テ
ーブル0では分解能を例えば64、テーブル1では3
2、以下同様にテーブル2,3,4,5,6,7では1
6,8,8,4,4,4の如く、データの変化率が大き
い領域ではデータ数を多くして分解能を上げ、データの
変化率が小さい領域ではデータ数を少なくする。全体的
にデータ数が減ることになるが、必要分解能に応じて減
らすので、実用上も全く問題はない。
1 is an explanatory diagram for explaining an example of a table dividing method according to the present invention, and FIG. 2 is an explanatory diagram for explaining a relationship between a table dividing method according to the present invention and resolution. That is, R that stores the inverse proportional function as shown in FIG.
If there is the OM table 1, in the present invention, the area is divided into, for example, eight areas R1 to R8 as shown in FIG. The rate of change of data is highest in the region R1, then R2, R3 ... Therefore, as shown in FIG. 2, the region R1 corresponds to the table 0, the region R2 corresponds to the table 1, and the regions R3 to R8 correspond to the tables 2 to 7, respectively.
2 and so on 1 in table 2, 3, 4, 5, 6, 7
6, 8, 8, 4, 4, 4, 4 increases the resolution by increasing the number of data in the area where the change rate of data is large, and decreases the number of data in the area where the change rate of data is small. Although the number of data will be reduced as a whole, it is reduced according to the required resolution, so there is no problem in practical use.

【0007】上記のようにした場合のデータ読み出し方
法の1例を図3に示す。ここでは、10ビットの入力デ
ータのうち、上位3ビットを領域の指定用として用い、
まずステップS1で上位3ビットが「0」かどうかを判
断する。イエス(Yes)ならば、残る7ビットのデー
タを1ビットだけ右にシフトさせることにより(ステッ
プS4)、データ数(分解能)を64にすることができ
るので、これによりテーブル0を参照するようにする
(ステップS7)。ステップS1でノー(No)のとき
はステップS2に進み、ここで上位3ビットが「1」か
どうかを判断する。Yesならば、残る7ビットのデー
タを2ビットだけ右にシフトさせることにより(ステッ
プS5)、データ数(分解能)を32にすることができ
るので、これによりテーブル1を参照するようにする
(ステップS8)。以下同様にしてテーブルを参照し、
必要なデータを読み出すことが可能となる。なお、上記
では反比例関数の例につき説明したが、他の非線形関数
についても同様にして、ROMデータを記憶させること
ができる。
FIG. 3 shows an example of the data reading method in the above case. Here, among the 10-bit input data, the upper 3 bits are used for specifying the area,
First, in step S1, it is determined whether the upper 3 bits are "0". If Yes, the number of data (resolution) can be set to 64 by shifting the remaining 7-bit data by 1 bit to the right (step S4). Yes (step S7). If the answer is No in step S1, the process proceeds to step S2, in which it is determined whether the upper 3 bits are "1". If Yes, the number of data (resolution) can be set to 32 by shifting the remaining 7-bit data to the right by 2 bits (step S5), so that the table 1 is referred to (step S5). S8). Similarly, refer to the table below,
It becomes possible to read out the necessary data. Although an example of the inverse proportional function has been described above, ROM data can be similarly stored for other non-linear functions.

【0008】[0008]

【発明の効果】この発明によれば、データの変化率に応
じ分解能を変えてデータを記憶させるようにしたので、
精度を落とさずに非線形関数のROMメモリへの記憶容
量を低減化し得る利点が得られる。さらには、その読み
出しに当たってビットシフト演算を行なうようにすれ
ば、演算時間を短縮し得るという利点も得られる。
According to the present invention, the data is stored by changing the resolution according to the rate of change of the data.
There is an advantage that the storage capacity of the non-linear function in the ROM memory can be reduced without lowering the accuracy. Further, if the bit shift operation is performed for the reading, the advantage that the operation time can be shortened can be obtained.

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

【図1】この発明によるテーブル分割方法例を説明する
ための説明図である。
FIG. 1 is an explanatory diagram for explaining an example of a table dividing method according to the present invention.

【図2】この発明によるテーブルの分割方法と分解能と
の関係を説明するための説明図である。
FIG. 2 is an explanatory diagram for explaining a relationship between a table division method and resolution according to the present invention.

【図3】ROMテーブルの読み出し方法の1例を示すフ
ローチャートである。
FIG. 3 is a flowchart showing an example of a ROM table reading method.

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

1…ROMテーブル、R1〜R8…領域。 1 ... ROM table, R1 to R8 ... area.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 非線形な関数データをROMテーブルに
記憶するに当たり、前記ROMテーブルを複数の領域に
分割し、データの変化率に応じ各領域の分解能を変えて
データを記憶させることを特徴とする非線形な関数のR
OMテーブルへの記憶方法。
1. When storing non-linear function data in a ROM table, the ROM table is divided into a plurality of areas, and the resolution of each area is changed according to the rate of change of the data to store the data. R of a non-linear function
How to store in OM table.
JP1562692A 1992-01-31 1992-01-31 Method for storing non-linear function to rom table Pending JPH05210429A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1562692A JPH05210429A (en) 1992-01-31 1992-01-31 Method for storing non-linear function to rom table

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1562692A JPH05210429A (en) 1992-01-31 1992-01-31 Method for storing non-linear function to rom table

Publications (1)

Publication Number Publication Date
JPH05210429A true JPH05210429A (en) 1993-08-20

Family

ID=11893923

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1562692A Pending JPH05210429A (en) 1992-01-31 1992-01-31 Method for storing non-linear function to rom table

Country Status (1)

Country Link
JP (1) JPH05210429A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6516001B1 (en) 1998-06-05 2003-02-04 Nec Corporation Device for converting sonet data input into DS-N data output
WO2005013105A1 (en) * 2003-08-04 2005-02-10 Fujitsu Limited Lookup table and data acquisition method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6516001B1 (en) 1998-06-05 2003-02-04 Nec Corporation Device for converting sonet data input into DS-N data output
WO2005013105A1 (en) * 2003-08-04 2005-02-10 Fujitsu Limited Lookup table and data acquisition method
US7620676B2 (en) 2003-08-04 2009-11-17 Fujitsu Limited Lookup table and data acquisition method

Similar Documents

Publication Publication Date Title
US4648050A (en) Color index conversion system in graphic display device
US4908779A (en) Display pattern processing apparatus
JPS6312297B2 (en)
JPH05210429A (en) Method for storing non-linear function to rom table
EP1162546B1 (en) In-place memory management for FFT
US4516219A (en) Address designating method of memory and apparatus therefor
KR100652434B1 (en) The method and apparatus for modulating data of optical disk recording/reproducing apparatus
JP2972916B2 (en) Document editing device with ruled line output function
JP3045222B2 (en) Graphic display device
JPH0756805A (en) Memory access method
JPS6245493A (en) Optical scanning device
JPH0643845A (en) Font data forming method
JPH0643846A (en) Font data forming method
JPH02104190A (en) Storage device
JPH0314038A (en) State transition table converter
JPH0578840B2 (en)
JPS63149773A (en) Color pallet circuit in computer
JPS6061849A (en) Storage circuit for input and output history information
JPS5897084A (en) Font memory access circuit
JPS63229538A (en) Access control system for memory element of electronic computer
JPH09231051A (en) Lookup table device and signal conversion method
JPH04273544A (en) Inputting and outputting device for non-procedural data
JPS60153550A (en) Data storage device
JPH04195895A (en) Ic memory
JPH08147269A (en) Orthogonal transformer