JPS63118941A - Data processor - Google Patents

Data processor

Info

Publication number
JPS63118941A
JPS63118941A JP61266012A JP26601286A JPS63118941A JP S63118941 A JPS63118941 A JP S63118941A JP 61266012 A JP61266012 A JP 61266012A JP 26601286 A JP26601286 A JP 26601286A JP S63118941 A JPS63118941 A JP S63118941A
Authority
JP
Japan
Prior art keywords
shift
data
list
list data
shifting
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
JP61266012A
Other languages
Japanese (ja)
Inventor
Yutaka Aoki
豊 青木
Ryoichi Wada
良一 和田
Masato Honma
本間 真人
Toshio Shimizu
敏夫 清水
Satoshi Emura
江村 里志
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 Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP61266012A priority Critical patent/JPS63118941A/en
Publication of JPS63118941A publication Critical patent/JPS63118941A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To efficiently perform the processing of a list data, by transferring the list data of a list form to a register device, and shifting an address part. CONSTITUTION:A data processor is constituted of a memory device 10 which stores the list data in the list form, a shift device 11 which shifts the output of the memory device 10 or a register device 12 by an input selection signal and a shift control signal, and the register device 12 which stores the list data of the list form. The shift device 11 refers to the input selection signal, and inputs the output of either the memory device or the register device, and segments the address part of an inputted list data, and decides the kind of shifting based on the shift control signal. The shift control signal which performs the shifting of CAR, CDR, RCAR, and RCDR respectively, and the one performs no shifting are prepared. Next, the shift device 11 executes a shift operation based on a selected kind of shifting, and outputs the address part after shifting and an original value part finally by unifying them in one.

Description

【発明の詳細な説明】 産業上の利用分野 本発明)よ主に人工知能分野へ使用することを目的とし
たデータ処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data processing device mainly intended for use in the field of artificial intelligence.

従来の技術 近年、コンピュータ応用の一つとして人工知能分野が盛
んに研究されている。この分野においては構造を持った
データを処理する必要があり、そのため構造データを取
り扱うことのできる言語であるLISPが広く使用され
ている。LIsP言語は汎用のコンピュータで実行する
のは非効率であるため、様々な工夫を施した専用マシン
が開発されてきた(例えば、rIlsPマシン」情報処
理 vol、23 No、8  pp752 772)
−これら専用マシンは主に言語的側面からアプローチを
行って改善を図ったものであるが、構造体データである
リストの計算機内部における表現を、通常のポインタに
よる表現ではなく、表形式を用いるようにした研究も行
われている(例えば、「構造をもったデータの高速マツ
チング方式」情報処理学会第33口金国大会 7O−2
)。
BACKGROUND OF THE INVENTION In recent years, the field of artificial intelligence has been actively researched as one of computer applications. In this field, it is necessary to process structured data, and therefore LISP, a language that can handle structured data, is widely used. Since it is inefficient to execute the LIsP language on a general-purpose computer, special-purpose machines with various improvements have been developed (for example, "rIlsP Machine" Information Processing Vol. 23 No. 8 pp. 752-772).
- These dedicated machines were improved mainly by approaching from a linguistic perspective, but they changed the representation of lists, which are structured data, inside the computer in a tabular format instead of the usual representation using pointers. Research has also been carried out on the following topics (for example, ``High-speed matching method for structured data'', Information Processing Society of Japan 33rd National Conference 7O-2).
).

以下図面を参照しながら、上述したリストの表形式表現
を用いた従来のデータ処理装置について説明する0表形
式表現では、リストの葉のノード位置を表現する方法と
してCDR方向に順次番号を付け、CAR方向に順次項
目を割り当てた一次元ベクトル表現を採用することによ
り、葉の位置情報と葉自身の情報を順次並べた表で、リ
ストデータを表現する。すなわち、リストデータは葉の
位置情報を示すベクトルと葉自身の情報を組としたデー
タの集合で表現される。
A conventional data processing apparatus using the above-mentioned tabular representation of a list will be described below with reference to the drawings.In the tabular representation, the node positions of the leaves of the list are sequentially numbered in the CDR direction as a method of representing the node positions of the leaves of the list. By adopting a one-dimensional vector representation in which items are sequentially assigned in the CAR direction, list data is expressed as a table in which leaf position information and leaf information are sequentially arranged. That is, the list data is expressed as a set of data in which a vector indicating position information of a leaf is paired with information about the leaf itself.

第3図にリストデータの表現例を示す、これは8式で表
記した場合(A (B (C) > D)となるリスト
データの図式表現+a+、及び、表形式表現(1))を
示したものである0図式表現Talにおいて丸印は葉で
ないリストノードを表し、四角で囲ったものは葉のノー
ドを示している。また各ノードの上に付記した数字列は
、上記した方法にしたがって表したノード位置を示すも
のである。この葉の部分を抜きだして表の形で表現した
ものが表形式データ)であって、アドレス部にノード位
置ベクトルが、バリュ一部に葉の要素が入った表で構成
されている。
Figure 3 shows an example of the expression of list data. This shows the diagrammatic expression + a + of list data where A (B (C) > D) and tabular expression (1) when expressed in 8 formulas. In the 0-diagrammatic representation Tal, which is a diagram, circles represent non-leaf list nodes, and squares represent leaf nodes. Further, the number string added above each node indicates the node position expressed according to the above-described method. This leaf part is extracted and expressed in the form of a table (tabular data), which consists of a table in which the address part contains the node position vector and the value part contains the leaf elements.

リストをこのような表形式で表現すると、当然のことに
その演算方式は通常のポインタ表現の場合と異なるもの
になり、このような表形式データを処理する従来のデー
タ処理装置は以下に示すような表操作を必要とする。
When a list is expressed in such a tabular format, the calculation method is naturally different from that in normal pointer expression, and conventional data processing devices that process such tabular data are as shown below. Requires extensive table operations.

第4図にLISPの基本リスト操作関数における表操作
の一例を示す。
FIG. 4 shows an example of table operations in the basic list operation functions of LISP.

第4図で明かなように、CAR関数はアドレス部の先頭
が1の要素を抜き出し、2番目以下のアドレスを先頭方
向にシフトすることにより (これを以下CARシフト
と呼ぶ)実行することができる。CDR関数はCAR関
数とは逆に先頭アドレスが1の要素を取り除き、残った
要素の先頭アドレスから1を減じることにより (以下
これをCDRシフトと呼ぶ)実行される。
As is clear from Figure 4, the CAR function can be executed by extracting the element whose address field starts with 1 and shifting the second and subsequent addresses toward the beginning (hereinafter referred to as CAR shift). . The CDR function, contrary to the CAR function, is executed by removing the element whose starting address is 1 and subtracting 1 from the starting address of the remaining element (hereinafter referred to as CDR shift).

C0N5関数についてはもう少し複雑である。The C0N5 function is a little more complicated.

まfcONs関数の第一引数について、アドレス部を先
頭方向とは逆の方向にシフトし、先頭アドレスを1とす
る。これは前記したCARシフトとは逆の演算であり、
以下RCARシフトと呼ぶ。
For the first argument of the fcONs function, shift the address part in the opposite direction to the leading direction, and set the leading address to 1. This is an operation opposite to the CAR shift described above,
Hereinafter, this will be referred to as RCAR shift.

第二引数については先頭アドレスに1を加算する(以下
これをRCARと同じ理由でRCDRシフトと呼ぶ)。
For the second argument, 1 is added to the start address (hereinafter this will be referred to as RCDR shift for the same reason as RCAR).

次にこの二つの引数を一つの表としてまとめればC0N
5関数は実行される。
Next, if we put these two arguments together as one table, C0N
5 functions are executed.

発明が解決しようとする問題点 しかしながら、ポインタ表現では極めて容易に行えるC
AR,CDR,C0N5といったLISPの基本関数が
、表形式表現では全ての要素に対してシフト演算を必要
とするため、表形式表現に基づいた従来のデータ処理装
置は非効率的であるという問題点を有していた。
Problems to be Solved by the Invention However, the C
The problem is that conventional data processing devices based on tabular representation are inefficient because basic LISP functions such as AR, CDR, and C0N5 require shift operations for all elements in tabular representation. It had

本発明は上記問題点に鑑みてなされたもので、筒車な構
成で効率良く表形式のリストデータを処理することので
きるデータ処理装置を提供するものである。
The present invention has been made in view of the above-mentioned problems, and it is an object of the present invention to provide a data processing device that can efficiently process list data in a tabular format with an hour wheel configuration.

問題点を解決するための手段 上記問題点を解決するために本発明のデータ処理装置は
、リストデータのアドレス部のシフト操作を行うシフト
装置を備え、上記シフト装置はリストデータを格納する
レジスタ装置内のデータばかりでなく、上記レジスタ装
置へ転送されるリストデータについてもシフト操作を行
うことができるようにしたものである。
Means for Solving the Problems In order to solve the above problems, the data processing device of the present invention includes a shift device that performs a shift operation on the address part of list data, and the shift device includes a register device that stores the list data. Shift operations can be performed not only on the data in the register device, but also on the list data transferred to the register device.

作用 本発明は上記した構成により、表形式のリストデータを
レジスタ装置に転送すると同時にそのアドレス部をシフ
トすることができるので、不要な転送を実行する必要が
なくなり、効率的にリストデータを処理することが可能
となる。
Effect of the Invention With the above-described configuration, the present invention can transfer table-format list data to the register device and shift its address part at the same time, eliminating the need to execute unnecessary transfers and efficiently processing list data. becomes possible.

実施例 以下本発明の一実施例について、図面を参照しながら説
明する。第1図は本発明の一実施例におけるデータ処理
装置の構成を示すブロック図である。第1図において、
10はリストデータを表形式で記憶するメモリ装置、1
1はメモリ装置10またはレジスタ装置12の出力を、
入力選択信号とシフト制御信号に基づいてシフトするシ
フト装置、12は表形式のリストデータの要素を格納す
るレジスタ装置である。
EXAMPLE An example of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a data processing device in an embodiment of the present invention. In Figure 1,
10 is a memory device that stores list data in tabular form;
1 is the output of the memory device 10 or register device 12,
A shift device 12 shifts based on an input selection signal and a shift control signal, and a register device 12 stores elements of list data in a tabular format.

以上のように構成された本実施例のデータ処理装置につ
いて、以下その動作を説明する。シフト装置11は、第
2図にしたがって入力の選択、シフトの種類の決定、シ
フトの実行を行う。すなわち、まずステップ20で入力
選択信号を参照し、メモリ装置10またはレジスタ装置
12のいずれかの出力を入力する(ステップ21、ステ
ップ22)0次に、入力したリストデータのアドレス部
をステップ23で切り出し、シフト制御信号に基づいて
シフトの種類を決定する(ステップ24)。シフトの種
類としては、前記したCARシフト、CDRシフト、R
CARシフト、RCDRシフト、及びシフトなしの5種
類があり、ステップ24で決定したシフト動作の実行を
ステップ25で行う、そして、最後にシフト後のアドレ
ス部と元のバリュ一部を一つにまとめて出力する(ステ
ップ26)。
The operation of the data processing apparatus of this embodiment configured as described above will be described below. The shift device 11 selects an input, determines the type of shift, and executes the shift according to FIG. That is, first, in step 20, the input selection signal is referred to, and the output of either the memory device 10 or the register device 12 is input (steps 21 and 22).Next, the address part of the input list data is input in step 23. The type of shift is determined based on the shift control signal (step 24). The types of shifts include the above-mentioned CAR shift, CDR shift, and R shift.
There are five types: CAR shift, RCDR shift, and no shift.The shift operation determined in step 24 is executed in step 25.Finally, the shifted address part and the original value part are combined into one. and output it (step 26).

なお、本実施例ではシフトの種類として上述した5種類
を用いたが、この5種類に限定されるものではない6例
えば、CARシフト、CDRシフト、RCARシフト、
RCDRシフトをそれぞれ複数回実行するNCARシフ
ト、NCDRシフト、RNCARシフト、RNCDRシ
フトを行えるようにしてもよい。さらに、以上のシフト
の組合せを実行できるようにしてもよい。
In this embodiment, the above-mentioned five types of shift were used, but the shift type is not limited to these five types.6 For example, CAR shift, CDR shift, RCAR shift,
It may be possible to perform NCAR shift, NCDR shift, RNCAR shift, and RNCDR shift in which each RCDR shift is executed multiple times. Furthermore, a combination of the above shifts may be executed.

発明の効果 以上の説明から明らかなように、本発明はりストデータ
を、ノードの位置を示すアドレス部とデータ値へのリフ
ァレンスを示すバリュ一部とで構成した表形式のデータ
として記憶するメモリ装置と、上記表形式データの要素
を記憶するレジスタ装置と、上記レジスタ装置の入力に
接続され、上記メモリ装置や上記レジスタ装置から出力
されたりストデータのアドレス部のシフト操作を行うシ
フト装置を具備し、上記シフト装置は上記レジスタ装置
内のリストデータのシフト操作を行うと共に、上記メモ
リ装置から上記レジスタ装置ヘリストデータを転送する
際にもシフト操作を行うことができるようにしたので、
リストデータのアドレス部に対するシフトを効率的に実
行することが可能となり、リストデータを高速に処理で
きるという優れた効果が得られる。
Effects of the Invention As is clear from the above description, the present invention provides a memory device that stores first data as tabular data consisting of an address section indicating the position of a node and a value section indicating a reference to the data value. a register device for storing elements of the tabular data; and a shift device connected to an input of the register device to perform a shift operation on an address part of the data output from the memory device or the register device. , the shift device can perform a shift operation on the list data in the register device, and can also perform a shift operation when transferring the list data from the memory device to the register device;
It becomes possible to efficiently shift the address part of list data, and the excellent effect that list data can be processed at high speed is obtained.

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

第1図は本発明の一実施例におけるデータ処理装置の構
成を示すブロック図、第2図は本発明の一実施例におけ
るシフト装置の処理の流れを示すフローチャート、第3
図はリストデータの表形式表現の一例を示す図、第4図
はL■SPの基本リスト操作関数に対応する裏操作を説
明するための説明図である。 10・・・・・・メモリ装置、11・・・・・・シフト
装置、12・・・・・・レジスタ装置。 代理人の氏名 弁理士 中尾敏男 はか1名第1図 第2図 第3図 (A (F3(こ))D)
FIG. 1 is a block diagram showing the configuration of a data processing device in one embodiment of the present invention, FIG. 2 is a flowchart showing the flow of processing of a shift device in one embodiment of the present invention, and FIG.
The figure shows an example of a tabular representation of list data, and FIG. 4 is an explanatory diagram for explaining back operations corresponding to the basic list operation functions of LSP. 10... Memory device, 11... Shift device, 12... Register device. Name of agent: Patent attorney Toshio Nakao (1 person) Figure 1 Figure 2 Figure 3 (A (F3 (ko)) D)

Claims (1)

【特許請求の範囲】[Claims] リストデータを、ノードの位置を示すアドレス部とデー
タ値へのリファレンスを示すバリュー部とで構成した表
形式のデータとして記憶するメモリ装置と、上記表形式
データの要素を記憶するレジスタ装置と、上記レジスタ
装置の入力に接続され、上記メモリ装置や上記レジスタ
装置から出力されたリストデータのアドレス部のシフト
操作を行うシフト装置を具備し、上記シフト装置は上記
レジスタ装置内のリストデータのシフト操作を行うと共
に、上記メモリ装置から上記レジスタ装置へリストデー
タを転送する際にもシフト操作を行うことができるよう
にしたことを特徴とするデータ処理装置。
a memory device that stores list data as tabular data consisting of an address section indicating the position of a node and a value section indicating a reference to a data value; a register device that stores elements of the tabular data; A shift device is connected to an input of the register device and performs a shift operation on an address part of list data output from the memory device or the register device, and the shift device performs a shift operation on the list data in the register device. A data processing device characterized in that it is also possible to perform a shift operation when transferring list data from the memory device to the register device.
JP61266012A 1986-11-07 1986-11-07 Data processor Pending JPS63118941A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61266012A JPS63118941A (en) 1986-11-07 1986-11-07 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61266012A JPS63118941A (en) 1986-11-07 1986-11-07 Data processor

Publications (1)

Publication Number Publication Date
JPS63118941A true JPS63118941A (en) 1988-05-23

Family

ID=17425146

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61266012A Pending JPS63118941A (en) 1986-11-07 1986-11-07 Data processor

Country Status (1)

Country Link
JP (1) JPS63118941A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7297323B2 (en) 2001-09-25 2007-11-20 Kabushiki Kaisha Toshiba Method and apparatus for manufacturing fine particles

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7297323B2 (en) 2001-09-25 2007-11-20 Kabushiki Kaisha Toshiba Method and apparatus for manufacturing fine particles
US7678326B2 (en) 2001-09-25 2010-03-16 Kabushiki Kaisha Toshiba Method and apparatus for manufacturing fine particles

Similar Documents

Publication Publication Date Title
JPH0425582B2 (en)
JPS63118941A (en) Data processor
EP0628902B1 (en) Memory organization method for a fuzzy logic controller, and corresponding device
JP2606305B2 (en) Data processing device
JPS63223826A (en) Data processor
JPS63118940A (en) Data processor
JP2674301B2 (en) Bit transcription method
JPS63118943A (en) Data processor
JPH01155432A (en) Data conversion system
GB1593136A (en) Data processing
JPS63255741A (en) Data processor
JPH01287745A (en) Data processor
JPS63276129A (en) Data processor
JP2895892B2 (en) Data processing device
JPS60128529A (en) Merge processing device
JPS63292332A (en) Data processor
JPH0231278A (en) Data processor
JPS6365523A (en) Data processor
JPS63118942A (en) Data processor
JPH04149637A (en) Information processor
JPH02158836A (en) Data processing device
JPS63292333A (en) Data processor
JPS63292331A (en) Data processor
JPS63118944A (en) Data processor
JPH0926872A (en) Pipeline merge sorter