[go: up one dir, main page]

JPS617934A - General purpose bit operating system - Google Patents

General purpose bit operating system

Info

Publication number
JPS617934A
JPS617934A JP12890184A JP12890184A JPS617934A JP S617934 A JPS617934 A JP S617934A JP 12890184 A JP12890184 A JP 12890184A JP 12890184 A JP12890184 A JP 12890184A JP S617934 A JPS617934 A JP S617934A
Authority
JP
Japan
Prior art keywords
data
bits
bit
bit data
input 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
Application number
JP12890184A
Other languages
Japanese (ja)
Inventor
Makoto Yamamoto
誠 山本
Takashi Watanabe
孝 渡辺
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP12890184A priority Critical patent/JPS617934A/en
Publication of JPS617934A publication Critical patent/JPS617934A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、複数ビットデータ群を他の複数ビットデータ
群に変換するシフト等の汎用ビット操作方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a general-purpose bit manipulation method such as a shift for converting a multi-bit data group into another multi-bit data group.

〔従来の技術〕[Conventional technology]

8ビツトつまり1バイトのマシンで6ビツトデータを扱
う場合、該6ビツトデータに無効ビット例えば0を2ビ
ット加えて8ビツトにしてもよいが、詰めて8ビア)に
する、他の表現をとれば6ビツトデータ群を8ビツトず
つに区切り直してもよく、後者の方がデータ記憶などで
は記憶容量が節減できるという利点がある。8ビツトへ
の変更は、8ビツトデータではあるが上位2ビツトは0
、つまり無効、無意味であるからその無効部を除いて有
効部のみの8ビツトデータにする、等においても発生す
る。この場合も有効部に着目すれば複数N=6ビツトデ
ータ群を他の複数M=8 (M>N)ビットデータ群に
変換する処理になる。
When handling 6-bit data on an 8-bit or 1-byte machine, it is possible to add two invalid bits, such as 0, to the 6-bit data to make it 8 bits, but it is also possible to use other representations such as compressing the data into 8 vias. For example, a 6-bit data group may be redivided into 8-bit data, and the latter method has the advantage that storage capacity can be reduced when storing data. Changing to 8 bits means that the data is 8 bits, but the upper 2 bits are 0.
, that is, it is invalid or meaningless, so it also occurs when the invalid part is removed and 8-bit data is made up of only the valid part. In this case as well, if we focus on the effective part, it is a process of converting a plurality of N=6 bit data groups into another plurality of M=8 (M>N) bit data groups.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

6ビツトデータを8ビツトデータに変換するという処理
はプログラムで実行することができるが、プログラムで
あると固定されてしまい、上記6ビツトが4ビツトにな
り、8ビツトが16ビツトになるとつまり前記N、Mが
変るとその都度プログラムを全面的に作り直さねばなら
ず、融通性が欠け、種々の対応がとれない。また処理速
度が遅く、CPUの負担が大きいという問題がある。
Although the process of converting 6-bit data to 8-bit data can be executed by a program, it is fixed in the program, and when the above 6 bits become 4 bits and 8 bits become 16 bits, the above N , M changes, the program must be completely rewritten each time, and flexibility is lacking, making it impossible to take various measures. Further, there is a problem that the processing speed is slow and the load on the CPU is large.

それ数本発明はN、 Mの値が変っても容易にNビット
データをMビットデータに変換でき、また高速処理可能
な汎用ビット操作方式を提供しようとするものである。
The present invention aims to provide a general-purpose bit manipulation method that can easily convert N-bit data to M-bit data even if the values of N and M change, and that can perform high-speed processing.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は複数ビットの入力データ群を他の複数ビットの
出力データ群に変換するシフト等の汎用操作方式におい
て、出力データに取り込まれる入力データのシフト位置
等を各ケース毎にそして入力データの全ての値につき示
し、かつ当該入力データ以外の部分は無効ビットとした
ルックアップテーブルと、各出力データはどの入力デー
タを用いかつどれとどれのルックアンプテーブルで該入
力データを変換すべきかを示すアドレステーブルを用い
、各出力データにつきアドレステーブルを参照し、その
結果に従ってルックアンプテーブルをアクセスし、その
読出しデータの論理和をとって出力データを求めること
を特徴とするが、次に実施例を参照しながら構成、作用
を説明する。
In a general-purpose operation method such as a shift that converts a multi-bit input data group into another multi-bit output data group, the present invention allows the shift position of input data to be incorporated into output data to be changed for each case and for all of the input data. A lookup table that indicates the value of , with invalid bits for parts other than the input data, and an address that indicates which input data should be used for each output data and which look amplifier table should convert the input data. The feature is that the table is used, the address table is referred to for each output data, the look amplifier table is accessed according to the result, and the output data is obtained by logically ORing the read data.Please refer to the following embodiments. The structure and function will be explained.

〔実施例〕〔Example〕

第1図は本発明の実施例を示し、10はルックアップテ
ーブル(LUT)で、複数個のテーブルTI、T2. 
・・・・・・からなる。12はアドレステーブルで、サ
ンプリング用Sl、S2及びルックアップ用Ll、L2
からなる。16は入力データ群で本例では有効部6ビツ
ト、無効部2ビットのデータAI、A2.・・・・・・
からなる。18は求める出力データ群で、本例では有効
部8ビットのデータ群であり、各々は6ビソトデータA
1とデータA2の先頭2ビツト、データA2の残り4ビ
ツトとデータA3の先頭4ビツト、・・・・・・からな
る。ルックアップテーブル10は第2図に示す内容を持
つ。
FIG. 1 shows an embodiment of the present invention, in which 10 is a lookup table (LUT), and a plurality of tables TI, T2 .
It consists of... 12 is an address table for sampling SL, S2 and for lookup Ll, L2.
Consisting of 16 is a group of input data, in this example, data AI, A2 .・・・・・・
Consisting of 18 is a group of output data to be sought, in this example, it is a data group of 8 bits in the effective part, each of which is 6-bit data A.
1, the first two bits of data A2, the remaining four bits of data A2, and the first four bits of data A3, etc. Lookup table 10 has the contents shown in FIG.

即ちテーブルT1は64個の8ビツトデータを持つが、
その下位2ビツトは0に固定され、上位6ビツトが図示
のような即ち10進数で言えば0゜1.2.・・・・・
・63と変る内容を持つ。入力データは8ビツトではあ
るが上位2ビツトは0であるから実質6ビツトであり、
2進6ビツトの値はθ〜63のいずれかである。従って
入力データA+の値に従ってテーブルT+を読出すと、
同じ値を上位6ビソトに持つ8ビツトデータが得られ、
これは入力データAiを2ビツト左へシフト(空いた下
位2ビツトは0)したのと同じになる。
In other words, table T1 has 64 pieces of 8-bit data, but
The lower 2 bits are fixed to 0, and the upper 6 bits are as shown in the figure, that is, in decimal notation, 0°1.2.・・・・・・
・It has contents that change from 63. Although the input data is 8 bits, the upper 2 bits are 0, so it is actually 6 bits.
The value of 6 binary bits is any one of θ to 63. Therefore, when reading table T+ according to the value of input data A+,
8-bit data with the same value in the top 6 bits is obtained,
This is the same as shifting the input data Ai by 2 bits to the left (the empty lower 2 bits are set to 0).

テーブルT2も8ビツトデータ64個からなるが、これ
らのデータの上位6ビツトは0に固定され、下位2ビツ
トが0〜15に対し00.16〜31に対し01.32
〜47に対し10.48〜63に対し11と変る。これ
は入力6ビツトデータの上位2ビツトのみに着目したも
ので、2ビツトなら00〜11のいずれか、そして下位
4ビツトを無視するのであるから0〜15.16〜31
゜・・・・・・の間は不変であり、テーブルT2の如く
なる。
Table T2 also consists of 64 pieces of 8-bit data, but the upper 6 bits of these data are fixed to 0, and the lower 2 bits are 0 to 15, 00.16 to 31, and 01.32.
-47 to 10.48 to 63 to 11. This focuses only on the upper 2 bits of the input 6-bit data; if it is 2 bits, it is either 00 to 11, and the lower 4 bits are ignored, so it is 0 to 15.16 to 31.
. . . are unchanged, and the table becomes as shown in table T2.

これは後続6ビソトデークの上位2ビツトを先行6ビツ
トデータの下位2ビツトに加える、という処理に用いら
れるものである。テーブルT3も64個の8ビツトデー
タからなるが、その下位4ビツトは0に固定、上位4ビ
ツトが10進で言って0〜15の範囲で変る。これは、
6ビソトデータの下位4ビツトに着目したものであって
、上位2ビツトを無視するので6ビソトデータの値は0
〜63であっても下位4ビツトに限れば0〜15の繰り
返しになる。このテーブルT3は6ビツトデータの下位
4ビツトを8ビツトデータの上位4ビツトにシフトする
操作をするものである。
This is used to add the upper 2 bits of the subsequent 6-bit data to the lower 2 bits of the preceding 6-bit data. Table T3 also consists of 64 pieces of 8-bit data, but the lower 4 bits are fixed at 0, and the upper 4 bits change in the range of 0 to 15 in decimal. this is,
This method focuses on the lower 4 bits of 6-bit data, and ignores the upper 2 bits, so the value of 6-bit data is 0.
Even if it is 63, if it is limited to the lower 4 bits, 0 to 15 will be repeated. This table T3 is used to shift the lower 4 bits of 6-bit data to the upper 4 bits of 8-bit data.

テーブルT4はやはり8ビツトデータ64個からなるが
、その上位4ビツトは0に固定され、下位4ビツトが6
ビツトデータの値θ〜3に対して0.4〜7に対して1
.8〜11に対して2.・・・・・・と変化する。これ
は6ビツトデータの上位4ビツトを8ビツトデータの下
位4ビツトにシフトするものである。またテーブルT5
はやばり8ビツトデータ64個からなるが、その下位6
ビソトは0に固定され、上位2ビツトが、6ビットデー
タの値が0〜3.4〜7.・・・・・・と変るのに対応
して0〜3,0〜3.・・・・・・と変る。これは6ビ
ソトデ□−夕の下位2ビツトを8ビツトデータの上位2
ビツトに加える操作をするものである。テーブルT6も
同様に8ビツトデータ64個からなるが、その上位2ビ
ツトは0に固定され、下位6ビツトが、6ビツトデータ
の値がO〜63と変るのに対応して0〜63と変る。こ
れは6ビツトデータを8ビツトデータの下位6ビソトに
シフトする操作をするものである。
Table T4 also consists of 64 pieces of 8-bit data, but the upper 4 bits are fixed to 0 and the lower 4 bits are fixed to 6.
1 for 0.4 to 7 for bit data value θ~3
.. 2 for 8-11. It changes as... This shifts the upper 4 bits of 6-bit data to the lower 4 bits of 8-bit data. Also table T5
It consists of 64 pieces of 8-bit data, but the lower 6
The bit is fixed to 0, and the upper 2 bits are 6-bit data values of 0 to 3.4 to 7. 0-3, 0-3. It changes to... This converts the lower 2 bits of the 6-bit data into the upper 2 bits of the 8-bit data.
It performs operations that add to bits. Table T6 similarly consists of 64 pieces of 8-bit data, but the upper 2 bits are fixed to 0, and the lower 6 bits change from 0 to 63 in response to the value of the 6-bit data changing from 0 to 63. . This is an operation for shifting 6-bit data to the lower 6 bits of 8-bit data.

このようなルックアンプテーブルを用意しておき、そし
てデータ変換に当ってはとのルックアップテーブルを参
照するかを指示するアドレステーブル12を用意してお
くと、6ビツトデータを8ビツトデータへ簡単に変換で
きる。即ちアドレステーブル12の左端の1. 2. 
3. 4.・・・・・・は8ビツト出力データのナンバ
ーを示しており、各ナンバーのSl、Ll、32.L2
は次のようなことを指示している。即ち、ナンバー1に
ついては、51=1.L1=1であるが、これは入力デ
ータA1についてはテーブルT直で変換せよ、を示して
おり、更に52=2.L2=2とあるから、入力データ
A2も取出してこれはテーブルT2で変換せよ、を示し
ている。出力データのナンバー2にツイテは、51=2
.L1=3.か−’)S2’=3゜L2=4であるから
、入力データA2をテーブルT3で変換せよ、かつ入力
データA3をテーブルT4で変換せよ、を示している。
If you prepare such a look-up table and also prepare an address table 12 that instructs whether to refer to the look-up table when converting data, you can easily convert 6-bit data to 8-bit data. It can be converted to . That is, 1. at the left end of the address table 12. 2.
3. 4. . . . indicates the number of 8-bit output data, and each number is SL, Ll, 32 . L2
indicates the following: That is, for number 1, 51=1. L1=1, which indicates that input data A1 should be converted directly using table T, and furthermore, 52=2. Since L2=2, it indicates that input data A2 should also be taken out and converted using table T2. Tweet number 2 in the output data is 51=2
.. L1=3. Since S2'=3°L2=4, this indicates that input data A2 should be converted using table T3, and input data A3 should be converted using table T4.

以下これに準する。The following shall apply accordingly.

処理部14はカミる処理を行ない、そして第1ステツプ
と第2ステツプの結果の論理和をとる。
The processing unit 14 performs calculation processing and takes the logical sum of the results of the first step and the second step.

本例ではA1をテーブルTIで変換すると第2図のT1
から明らかなようにA+全ビットOoとなり(第1ステ
ツプ)、またA2をテーブルT2で変換すると0000
00 A 2の先頭2ビツトとなり(第2ステツプ)、
これらのステップの結果の論理和をとるとA1全ビット
、A2の上位2ビツト、となり、8ビツト出力データの
ナンバー1が得られる。同様にA2をT3で変換すると
A2下位4ビツトooooとなり、A3をT4で変換す
ると0000A3上位4ビットとなり、これらの論理和
をとるとA2下位4ビツト、A3上位4ビツト、となり
、8ビツト出力データのナンバー2が得られる。以下同
様である。
In this example, when A1 is converted using table TI, T1 in Fig. 2
As is clear from the above, A + all bits Oo (first step), and when A2 is converted using table T2, it becomes 0000.
The first 2 bits of 00A2 (second step),
When the results of these steps are logically summed, all bits of A1 and the upper two bits of A2 are obtained, and number 1 of the 8-bit output data is obtained. Similarly, when A2 is converted with T3, the lower 4 bits of A2 become oooo, when A3 is converted with T4, the upper 4 bits of A3 become 0000, and when these are logically summed, the lower 4 bits of A2 and the upper 4 bits of A3 are obtained, resulting in 8-bit output data. The number 2 is obtained. The same applies below.

本例では6ビツトー8ビツト変換なのでサンプリング用
及びルックアップ用アドレステーブル12はSlとLl
、S2とL2の2ステツプを用意したものでよいが、3
ビツトデータを8ビツトデータに変換する場合は、出力
8ビツトデータには3個の入力データが入ることになる
ので、更にS3とL3を加えて3ステツプ用意する必要
があり、ルックアンプテーブルT + 、 、 T 2
 、・・・・・・も変更する必要がある。−級化すると
、出力データに含まれる入力データの数をjとすれば、
アドレステーブル12はjステップ(SiとLiの対が
j個)用意することになる。各アドレステーブルの大き
さmは出力データ数mに等しい。ルックアンプテーブル
TI、T2.・・・・・・の数は、出力データに含まれ
る入力データの組合せ数(これはシフトの種類の数でも
ある)に等しい。本例では出力データ群18を見れば明
らかなように組合せ数は6であり、あとはこの繰り返し
になる。入力データをシフト及び又は分割し自己以外の
ビットは0としたルックアップテーブルを3個アクセス
してその出力の論理和をとれば出力データが求まるがら
、この操作は次のように表現できる。
In this example, since 6-bit to 8-bit conversion is performed, the sampling and lookup address tables 12 are S1 and L1.
, 2 steps S2 and L2 may be used, but 3 steps may be sufficient.
When converting bit data to 8-bit data, the output 8-bit data will contain 3 pieces of input data, so it is necessary to prepare 3 steps by adding S3 and L3, and the look amplifier table T + , , T2
,... also need to be changed. − class, if the number of input data included in the output data is j, then
The address table 12 is prepared in j steps (j pairs of Si and Li). The size m of each address table is equal to the number m of output data. Look amplifier table TI, T2. The number of ... is equal to the number of combinations of input data included in the output data (this is also the number of types of shifts). In this example, as is clear from the output data group 18, the number of combinations is six, and this is repeated. Output data can be found by shifting and/or dividing input data, accessing three look-up tables with bits other than the self set to 0, and logically ORing the outputs. This operation can be expressed as follows.

TLl(IN(Sl(1)))U・・・・・・TLJ(
IN(sjo)))→OU T (11・・・・・・[
1)こ\でt−t、2.・・・・・・mであり、Uは論
理和を示す。上記の例でi=lの場合はI N (S 
+ (11)=00A+、Tl−1 =TI%またj−
2であってIN (Sj(11)=00A2、T、、、
=T2である。
TLl(IN(Sl(1)))U...TLJ(
IN(sjo)))→OUT(11・・・・・・[
1) Here t-t, 2. ...m, and U indicates a logical sum. In the above example, if i=l, I N (S
+ (11) = 00A+, Tl-1 = TI% or j-
2 and IN (Sj(11)=00A2,T,...
= T2.

以下これに準する。ルックアップテーブル10の個々の
テーブルTI、T2.・・・・・・はナンバー1゜2、
・・・・・・で表わす代りに各々のメモリ上アドレスで
表現すれば(11式は次式で表わされる。
The following shall apply accordingly. The individual tables TI, T2 . ...is the number 1゜2,
If expressed by each memory address instead of . . . (Equation 11 is expressed by the following equation).

T(IN (S +  (1))十L  +  )U・
・・・・・T (IN(Sj(il)  + Lj)→
0UT(1)   ・・・・・・(2)こ\でLl、・
・・・・・Ljはテーブル1゛1・・・・・・Tjのア
ドレスである。この変換処理はパイプライン処理を行な
うベクトルプロセッサを使用すれば極めて簡単かつ迅速
に処理できる。即ちテーブル12のSi本例では1と2
,2と3.3と4.・・・・・・をロードし、これによ
り得たデータでルックアップテーブルを読出してそのデ
ータをロードし、オアをとれば、出力データが次々と求
まってくる。
T(IN (S + (1)) 10L + )U・
...T (IN(Sj(il) + Lj)→
0UT (1) ・・・・・・(2) This\de Ll,・
. . . Lj is the address of table 1゛1 . . . Tj. This conversion process can be performed extremely easily and quickly by using a vector processor that performs pipeline processing. In other words, Si in table 12 is 1 and 2 in this example.
, 2 and 3. 3 and 4. ..., read the lookup table with the data obtained, load that data, and perform an OR operation to find output data one after another.

プログラムで上記変換処理を行なうには入力データ00
A1を第1の8ビツトレジスタに取込み、2ビツト左シ
フトし、次の入力データ00A2を第2の8ビツトレジ
スタに取込み、4ビツト右シフトし、これらのレジスタ
のデータのオアをとって第1の8ビツト出力データA+
とA2の上位2ビツトを得、これをメモリにストアし、
次は再び第2の入力データ00A2を第1の8ビツトレ
ジスタに取込み、4ビツト左シフトし、第3の入力デー
タA3を第2のレジスタに取込み、2ビツト右シフトし
、これら第1.第2のレジスタのデータのオアをとって
第2の8ビツト出力データを得、−という処理を繰り返
す。これらの処理は全て命令文で表現されており、1処
理ずつ逐次進行することになる。これは時間を要する。
To perform the above conversion process with a program, input data 00
Take A1 into the first 8-bit register, shift it to the left by 2 bits, take the next input data 00A2 into the second 8-bit register, shift it to the right by 4 bits, OR the data in these registers, and shift it to the left by 2 bits. 8-bit output data A+
and obtain the upper 2 bits of A2 and store this in memory,
Next, the second input data 00A2 is again taken into the first 8-bit register and shifted to the left by 4 bits, and the third input data A3 is taken into the second register and shifted to the right by 2 bits. The second 8-bit output data is obtained by ORing the data in the second register, and the process - is repeated. All of these processes are expressed as command statements, and proceed one process at a time. This takes time.

6ビツトデータを8ビツトデータに、−級化すればNビ
ットデータをMビットデータに(こ−でM>N)に変換
する操作をパックと呼べば、それを元に戻すアンパック
も必要になることがあるが、このアンパックは次のよう
にして行なうことができる。
If we call the operation of converting 6-bit data to 8-bit data, or converting N-bit data to M-bit data (here M>N) by converting it to 8-bit data, we also need to unpack it back to its original state. However, this unpacking can be done as follows.

第3図はアンパックに用いるルックアップテーブル、第
4図は同アドレステーブルである。作成要領は第2図に
準するので詳細な説明は省略し、以下では第1図の出力
データOU T (11を同人力データIN(J)に変
換する要領の説明をする。入力(これは今は出力である
が、混乱を避けるため同じ言葉を使用する)データ00
A1を求めるには第4図のアドレステーブルの第1欄を
眺め、これは51=1.L1=1.そして52=1.L
2=7であるから出力データ群の1番をとり、A1とA
2の上位2ビツトを得る。これでアクセスするテーブル
はT1であるから、このアクセスを行なうと00A1を
得る。こうして下位2ビツトは無視される。次はA1と
A2の上位2ビツトにつきテーブルT7をアクセスし、
これはオール0であるから単にその0が得られる。これ
らの論理和をとると最初と同じであり、00A+なる入
力データが得られる。
FIG. 3 shows a lookup table used for unpacking, and FIG. 4 shows the same address table. The creation procedure is similar to that in Figure 2, so a detailed explanation will be omitted. Below, we will explain the procedure for converting the output data OUT (11) in Figure 1 to the same person data IN (J). Now it's output, but we'll use the same word to avoid confusion) data 00
To find A1, look at the first column of the address table in Figure 4, which is 51=1. L1=1. And 52=1. L
Since 2=7, take the first of the output data group and write A1 and A
Get the upper 2 bits of 2. Since the table to be accessed is T1, 00A1 is obtained when this access is performed. The lower two bits are thus ignored. Next, access table T7 for the upper two bits of A1 and A2,
Since this is all 0, we simply get that 0. When these logical sums are taken, the input data 00A+ is obtained, which is the same as the first one.

入力データの第2番についてアドレステーブルを索引す
ると31=1.L1=2,52=2.L2=3が得られ
、これを実行すると00A2の上位2ビツト0000と
、0000A2下位4ビットが得られ、論理和をとれば
入力データ00A2が得られる。以下これに準する。
When the address table is indexed for the second input data, 31=1. L1=2,52=2. L2=3 is obtained, and when this is executed, the upper 2 bits of 00A2, 0000, and the lower 4 bits of 0000A2 are obtained, and when they are logically summed, input data 00A2 is obtained. The following shall apply accordingly.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によればテーブルを使用して
NビットデータをMビットデータに変換する処理を行な
うので、高速処理が可能になる。
As explained above, according to the present invention, a table is used to convert N-bit data into M-bit data, so high-speed processing is possible.

またテーブルの設定によって任意のビットのデータの扱
いが可能になる。またパイプライン型プロセンサを用い
ると、インデックスの配列を使用できるので非常に能率
的な処理が行なえ、画像処理及び、36ビツトマシンを
32ビツトマシンでリプレースする時のデータ変換など
に有効である。
Furthermore, by setting the table, it is possible to handle arbitrary bits of data. Furthermore, when a pipeline type processor is used, an array of indexes can be used, so very efficient processing can be performed, and it is effective for image processing and data conversion when replacing a 36-bit machine with a 32-bit machine.

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

第1図は本発明の実施例を示す説明図、第2図はルック
アンプテーブルの説明図、第3図および第4図は逆操作
に用いるテーブルの説明図である。 図面で、10はルックアップテーブル、12はアドレス
テーブル、16は入力データ群、18は出力データ群、
14は論理和をとる等の処理を行なう処理部である。
FIG. 1 is an explanatory diagram showing an embodiment of the present invention, FIG. 2 is an explanatory diagram of a look amplifier table, and FIGS. 3 and 4 are explanatory diagrams of tables used for reverse operation. In the drawing, 10 is a lookup table, 12 is an address table, 16 is an input data group, 18 is an output data group,
14 is a processing unit that performs processing such as calculating a logical sum.

Claims (1)

【特許請求の範囲】 複数ビットの入力データ群を他の複数ビットの出力デー
タ群に変換するシフト等の汎用操作方式において、 出力データに取り込まれる入力データのシフト位置等を
各ケース毎にそして入力データの全ての値につき示し、
かつ当該入力データ以外の部分は無効ビットとしたルッ
クアップテーブルと、各出力データはどの入力データを
用いかつどれとどれのルックアップテーブルで該入力デ
ータを変換すべきかを示すアドレステーブルを用い、 各出力データにつきアドレステーブルを参照し、その結
果に従ってルックアップテーブルをアクセスし、その読
出しデータの論理和をとって出力データを求めることを
特徴とする汎用ビット操作方式。
[Claims] In a general-purpose operation method such as a shift that converts a multi-bit input data group to another multi-bit output data group, the shift position of the input data to be incorporated into the output data is inputted in each case. For all values of the data,
And using a lookup table with invalid bits for parts other than the input data, and an address table indicating which input data should be used for each output data and which lookup table should be used to convert the input data, each A general-purpose bit manipulation method characterized by referring to an address table for output data, accessing a look-up table according to the result, and calculating the logical OR of the read data to obtain output data.
JP12890184A 1984-06-22 1984-06-22 General purpose bit operating system Pending JPS617934A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12890184A JPS617934A (en) 1984-06-22 1984-06-22 General purpose bit operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12890184A JPS617934A (en) 1984-06-22 1984-06-22 General purpose bit operating system

Publications (1)

Publication Number Publication Date
JPS617934A true JPS617934A (en) 1986-01-14

Family

ID=14996155

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12890184A Pending JPS617934A (en) 1984-06-22 1984-06-22 General purpose bit operating system

Country Status (1)

Country Link
JP (1) JPS617934A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6373422A (en) * 1986-09-17 1988-04-04 Hitachi Ltd information retrieval device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6373422A (en) * 1986-09-17 1988-04-04 Hitachi Ltd information retrieval device

Similar Documents

Publication Publication Date Title
US4675809A (en) Data processing system for floating point data having a variable length exponent part
JP2000322235A (en) Information processor
JPH034936B2 (en)
JPS617934A (en) General purpose bit operating system
US4604723A (en) Bit-slice adder circuit
JPS5968058A (en) Floating point multiplier
JPH08166880A (en) Computer
JPS6043742A (en) Reading circuit of variable length data
JP3441847B2 (en) Processor with data memory
JP2675087B2 (en) Microcomputer
JPS619725A (en) Microprogram control circuit
JPH0588887A (en) Data processor
JPS61224039A (en) Digital logarithm converting circuit
JPS5811121B2 (en) digital sine wave synthesizer
JPS60124730A (en) Digital operation circuit
JPS6168636A (en) data processing equipment
JPS63241647A (en) Microprocessor
JPS6111493B2 (en)
JPH02178833A (en) Adder that adds data of different bit lengths
JPS63205767A (en) Bit reverse device
JPH03238922A (en) A/d converter
JPH0687259B2 (en) Image transposition method and device
JPH04225426A (en) data storage device
JPS63263526A (en) Information processing method
JPS6148177B2 (en)