Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0444286B2 - - Google Patents
[go: Go Back, main page]

JPH0444286B2 - - Google Patents

Info

Publication number
JPH0444286B2
JPH0444286B2 JP60141715A JP14171585A JPH0444286B2 JP H0444286 B2 JPH0444286 B2 JP H0444286B2 JP 60141715 A JP60141715 A JP 60141715A JP 14171585 A JP14171585 A JP 14171585A JP H0444286 B2 JPH0444286 B2 JP H0444286B2
Authority
JP
Japan
Prior art keywords
data
bit
bit string
storage means
stored
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 - Lifetime
Application number
JP60141715A
Other languages
Japanese (ja)
Other versions
JPS623323A (en
Inventor
Yasuo Hara
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.)
NEC Corp
Original Assignee
Nippon 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP14171585A priority Critical patent/JPS623323A/en
Publication of JPS623323A publication Critical patent/JPS623323A/en
Publication of JPH0444286B2 publication Critical patent/JPH0444286B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Time-Division Multiplex Systems (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータフオーマツト変換方式、特に複
数並列のデータを入力し、データのビツト間での
論理演算、配置変更を行ない出力データとするよ
うなデータフオーマツト変換方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a data format conversion method, particularly a method for inputting multiple parallel data, performing logical operations and rearranging between data bits, and outputting data. This paper relates to a data format conversion method.

〔従来の技術〕[Conventional technology]

従来のデータフオーマツト変換回路として本発
明の実施例に対応した回路図を第4図に示す。ま
ず複数の入力8ビツトデータを上位4ビツト・下
位4ビツトに分けて入力データ用の4ビツトメモ
リ回路6にそれぞれ制御信号発生回路10からの
制御信号101,102,111により保持す
る。次に入・出力間でデータフオーマツト変換す
るため4ビツトオア回路7および4ビツト切替ゲ
ート回路8に4ビツトメモリ回路6に保持されさ
入力データが取込まれデータフオーマツト変換さ
れる。次にデータフオーマツト変換後のデータは
制御信号発生回路10からの制御信号105,1
11,112により出力データ用の4ビツトメモ
リ回路9に保持される。そして制御信号発生回路
10からの制御信号106,113,114によ
り4ビツトゲート回路11を切替えて複数の出力
データを時分割に8ビツトずつ出力する。
A circuit diagram of a conventional data format conversion circuit corresponding to an embodiment of the present invention is shown in FIG. First, a plurality of input 8-bit data is divided into upper 4 bits and lower 4 bits and held in the 4-bit memory circuit 6 for input data by control signals 101, 102, and 111 from the control signal generation circuit 10, respectively. Next, in order to convert the data format between input and output, the input data held in the 4-bit memory circuit 6 is taken into the 4-bit OR circuit 7 and the 4-bit switching gate circuit 8, and the data format is converted. Next, the data after data format conversion is converted into control signals 105 and 1 from the control signal generation circuit 10.
11 and 112, it is held in the 4-bit memory circuit 9 for output data. Then, the 4-bit gate circuit 11 is switched by the control signals 106, 113, and 114 from the control signal generation circuit 10 to output a plurality of output data in 8-bit units in a time-division manner.

すなわち回路構成として入力側及び出力側それ
ぞれに独立した保持回路と入・出力間にデータフ
オーマツトを変換するための演算処理回路を設け
ているため入・出力データ数と並列データ長に対
応した数の回路を必要とした。
In other words, the circuit configuration includes independent holding circuits on the input and output sides and an arithmetic processing circuit for converting the data format between the input and output, so the number of input and output data corresponds to the number of input and output data and the parallel data length. required a circuit.

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

上述した従来のデータフオーマツト変換方式
は、並列入・出力データ毎に保持回路を設けてい
るため、回路数が多く、また入・出力データの組
み合わせが変化する毎に回路構成が変わるという
欠点があつた。
The conventional data format conversion method described above requires a large number of circuits because it requires a holding circuit for each parallel input/output data, and has the disadvantage that the circuit configuration changes every time the combination of input/output data changes. It was hot.

本発明の目的は、回路数を低減でき、かつ入出
力データの組み合わせが変化しても回路構成を変
えないで対応できるデータフオーマツト変換方式
を提供することにある。
An object of the present invention is to provide a data format conversion method that can reduce the number of circuits and can cope with changes in the combination of input and output data without changing the circuit configuration.

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

本発明のデータフオーマツト変換方式は、あら
かじめ定められた長さのビツト列を少なくとも並
列に2含んで成る入力データを、変換されるべき
入力データとして入力するデータフオーマツト変
換方式において、 (A) 与えられたビツト列についてあらかじめ定め
られた論理演算を実行し、前記論理演算の結果
得られた新たなビツト列を出力する演算処理手
段、 (B) 前記入力データ及び前記論理演算の結果得ら
れた新たなビツト列を一時格納する第1の記憶
手段、 (C) 外部から入力された前記入力データと、前記
論理演算の結果得られた新たなビツト列とを切
替えて前記第1の記憶手段に出力する切替ゲー
ト手段、 (D) 前記論理演算のため用いられるビツト列とし
て前記演算処理手段に与えられる2のビツト列
の内の第1のビツト列を一時格納する第2の記
憶手段、 (E) 外部から前記入力データが入力されたとき、
前記切替ゲート手段を介して前記入力データを
選択して前記第1の記憶手段に格納し、前記演
算処理手段が前記論理演算のため2のビツト列
を必要とするときは、前記第1の記憶手段に格
納されているビツト列の中から前記第1のビツ
ト列を選択して読み出し前記第2の記憶手段に
格納し、次に前記第2の記憶手段に格納された
前記第1のビツト列との間で前記論理演算が行
われるべき他のビツト列を前記第1の記憶手段
から読み出して前記演算処理手段に内蔵された
保持手段に第2のビツト列として格納し、前記
演算処理手段に前記第1のビツト列と前記第2
のビツト列との間で論理演算を実行させ、前記
演算処理手段で得られた新たなビツト列を、前
記切替ゲート手段を介して前記第1の記憶手段
に格納し、前記入力データのフオーマツト変換
後のデータとして出力データを出力するときに
は、前記第1の記憶手段に格納されたビツト列
の中から、フオーマツト変換後のデータを構成
するために必要なビツト列を順次選択して読み
出し出力するフオーマツト変換制御手段、 を備えて構成されている。
The data format conversion method of the present invention is a data format conversion method in which input data including at least two bit strings of a predetermined length in parallel is input as input data to be converted. (B) arithmetic processing means for executing a predetermined logical operation on a given bit string and outputting a new bit string obtained as a result of the logical operation; (C) a first storage means for temporarily storing a new bit string; (C) switching between the input data inputted from the outside and the new bit string obtained as a result of the logical operation, and storing the new bit string in the first storage means; (D) a second storage means for temporarily storing the first bit string of the two bit strings provided to the arithmetic processing means as the bit string used for the logical operation; (E) ) When the input data is input from outside,
The input data is selected through the switching gate means and stored in the first storage means, and when the arithmetic processing means requires two bit strings for the logical operation, the input data is selected and stored in the first storage means. The first bit string is selected from the bit strings stored in the means, read out and stored in the second storage means, and then the first bit string stored in the second storage means is read out. Another bit string on which the logical operation is to be performed is read from the first storage means, stored as a second bit string in the holding means built in the arithmetic processing means, and The first bit string and the second bit string
A new bit string obtained by the arithmetic processing means is stored in the first storage means via the switching gate means, and the format conversion of the input data is performed. When output data is to be output as subsequent data, the bit strings necessary to constitute the data after format conversion are sequentially selected from among the bit strings stored in the first storage means, and the bit strings are read out and output. Conversion control means.

〔実施例〕〔Example〕

次に本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明のn=4ビツトの場合の実施例
を示すブロツク図である。第1図に示す実施例は
入力データとフオーマツト変換後データとを切替
える4ビツト切替ゲート回路1、入力用(変換
前)データ及び出力用(変換後)データを一時格
納する4ビツトRAM回路2、4ビツトメモリ回
路3、4ビツト演算処理及び保持回路4と、制御
信号発生回路5を備えて構成される。
FIG. 1 is a block diagram showing an embodiment of the present invention when n=4 bits. The embodiment shown in FIG. 1 includes a 4-bit switching gate circuit 1 for switching between input data and format-converted data, a 4-bit RAM circuit 2 for temporarily storing input (before conversion) data and output (after conversion) data, It is configured to include a 4-bit memory circuit 3, a 4-bit arithmetic processing and holding circuit 4, and a control signal generation circuit 5.

第2図、第3図に第1図の実施例のフオーマツ
ト変換の説明図とタイムチヤートを示す。
FIGS. 2 and 3 show explanatory diagrams and time charts of format conversion in the embodiment shown in FIG. 1.

この第1図の実施例の基本的動作を以下に説明
する。8ビツト長の入力データ4組(AB、CD、
EF、EF)を4ビツト単位で制御信号
発生回路5からの切替信号11,12により4ビ
ツト切替ゲート回路1を通過し、データバス10
1を経て4ビツトRAM回路2の制御信号発生回
路からのRAMアドレス指定信号15〜18で定
められたエリアに、制御信号発生回路5からの書
込み信号19により格納する。次に制御信号発生
回路5からの読出し信号20によりアドレス指定
15〜18で指定された変換前データAを読出
し、制御信号発生回路5からの書込み信号21に
より4ビツトメモリ回路3に保持する。次に制御
信号発生回路5からの読出し信号20によりアド
レス指定15〜18で指定された変換前データC
を4ビツトRAM回路より読出し、データバス1
02を経て4ビツト演算処理及び保持回路4に入
力する。
The basic operation of the embodiment shown in FIG. 1 will be explained below. Four sets of 8-bit length input data (AB, CD,
EF, EF) are passed through the 4-bit switching gate circuit 1 by the switching signals 11 and 12 from the control signal generation circuit 5 in units of 4 bits, and are connected to the data bus 10.
1, and is stored in the area determined by the RAM address designation signals 15 to 18 from the control signal generation circuit of the 4-bit RAM circuit 2 by the write signal 19 from the control signal generation circuit 5. Next, the pre-conversion data A designated by addresses 15 to 18 is read out by the read signal 20 from the control signal generation circuit 5 and held in the 4-bit memory circuit 3 by the write signal 21 from the control signal generation circuit 5. Next, the pre-conversion data C designated by address designations 15 to 18 by the read signal 20 from the control signal generation circuit 5
is read from the 4-bit RAM circuit and transferred to data bus 1.
The data is inputted to the 4-bit arithmetic processing and holding circuit 4 via the 02.

ここで4ビツトメモリ回路3に格納されている
データAと論理和され、その結果を制御信号発生
回路5からの書込み信号22により4ビツト演算
処理及び保持回路4に保持する。そしてその出力
を制御信号発生回路5からの切替信号14によ
り、4ビツト切替ゲート回路1を通過し、更にア
ドレス指定15〜18で指定された4ビツト
RAM回路2のエリアに書込み信号19により格
納する。ここで変換前データAとCの論理和の結
果としてデータGが変換後メモリエリアに格納さ
れたことになる。
Here, it is ORed with data A stored in the 4-bit memory circuit 3, and the result is held in the 4-bit arithmetic processing and holding circuit 4 by the write signal 22 from the control signal generation circuit 5. Then, the output is passed through the 4-bit switching gate circuit 1 by the switching signal 14 from the control signal generation circuit 5, and is further transferred to the 4-bit signal specified by addresses 15 to 18.
It is stored in the area of the RAM circuit 2 by the write signal 19. Here, as a result of the logical sum of the pre-conversion data A and C, data G is stored in the post-conversion memory area.

次に、上記と同様にして変換前データE、E
の論理和の結果として変換後データI、Kが4
ビツトRAM回路2に格納される。
Next, in the same manner as above, the pre-conversion data E, E
As a result of the logical sum, the converted data I and K are 4.
The data is stored in the bit RAM circuit 2.

次に、制御信号発生回路5からの読出し信号2
0によりアドレス指定15〜18で指定された変
換前データBを読出し、書込み信号21により4
ビツトメモリ回路3に保持する。その出力データ
がデータバス105を経て切替信号13により4
ビツト切替ゲート回路1を通過して、アドレス指
定15〜18で指定されるエリアに書込み信号1
9により格納する。次に、アドレス指定15〜1
8で指定された変換後データGを読出し、信号2
0で読出しデータバス106を経て下位4ビツト
として出力し、同時に4ビツトメモリ回路3に保
持されているデータBを以下4ビツトとしてデー
タ送出する。
Next, the read signal 2 from the control signal generation circuit 5
0 reads the pre-conversion data B designated by addresses 15 to 18, and the write signal 21 reads 4.
It is held in the bit memory circuit 3. The output data is transmitted through the data bus 105 to 4 by the switching signal 13.
The write signal 1 passes through the bit switching gate circuit 1 and is sent to the area designated by addresses 15 to 18.
Store by 9. Next, address specification 15-1
Read the post-conversion data G specified by 8 and send the signal 2.
0 is output as the lower 4 bits via the read data bus 106, and at the same time, data B held in the 4-bit memory circuit 3 is sent out as the following 4 bits.

次に、上記と同様にして変換前データDを読出
し、上位4ビツトデータGと同時に下位4ビツト
として出力する。つまりここで、上位4ビツトと
してはデータAとCの論理和、下位4ビツトとし
ては時間によりデータBまたはDに変化するデー
タとして出力されることになる。
Next, the pre-conversion data D is read out in the same manner as described above and output as the lower 4 bits at the same time as the upper 4 bits of data G. That is, here, the upper 4 bits are output as the logical sum of data A and C, and the lower 4 bits are output as data that changes to data B or D depending on time.

同じようにして変換前データFを読出し、4
ビツトメモリ回路3に書込み、次に変換後データ
Iを読出すことにより上位4ビツトとしてデータ
I、下位4ビツトとしてデータFが出力する。
Read the pre-conversion data F in the same way, and
By writing into the bit memory circuit 3 and then reading the converted data I, data I is output as the upper 4 bits and data F is output as the lower 4 bits.

更に上位4ビツトとしてデータK、下位4ビツ
トとしてデータFを出力する場合も同様であ
る。
Furthermore, the same applies to the case where data K is output as the upper 4 bits and data F is output as the lower 4 bits.

本実施例は、n=4ビツトで、任意の4ビツト
すべてをオアする場合であるが、4ビツト以外で
も、又、論理演算のビツト数が全ビツトでない場
合でも本実施例と同様な考え方でデータフオーマ
ツトの変換が可能である。
In this embodiment, n = 4 bits and all 4 arbitrary bits are ORed, but the same concept as in this embodiment can be applied even when the number of bits is other than 4 bits, or when the number of bits in the logical operation is not all bits. Data format conversion is possible.

本実施例は、入・出力データのビツト構成が8
ビツトであるが本実施例の制御信号発生回路の変
更のみで、4ビツトの整数倍のすべての入・出力
データのフオーマツト変換が同一回路構成にて実
現できる。
In this embodiment, the bit configuration of input/output data is 8.
However, by simply changing the control signal generation circuit of this embodiment, format conversion of all input/output data that is an integral multiple of 4 bits can be realized with the same circuit configuration.

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

以上説明したように本発明は、入力データを構
成するビツト列とそのビツト列に論理処理を行つ
た結果得られるビツト列との中から必要なビツト
列を選択して構成したデータを、入力データのデ
ータフオーマツト変換後の出力データとして出力
するように構成することにより、データのフオー
マツト変換がすべて同一回路で可能となり、回路
数を低減でき、入出力データの組み合わせが変化
しても回路構成を変えないで対応できる効果があ
る。
As explained above, the present invention allows input data to be constructed by selecting a necessary bit string from among a bit string constituting input data and a bit string obtained as a result of performing logical processing on that bit string. By configuring the data to be output as output data after converting the data format, all data format conversions can be performed using the same circuit, reducing the number of circuits and making it possible to maintain the same circuit configuration even when the combination of input and output data changes. There are effects that can be addressed without making any changes.

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

第1図は本発明の一実施例を示すブロツク図、
第2図はデータフオーマツト変換の一例を示す説
明図、第3図は第1図の動作を示すタイムチヤー
ト、第4図は従来回路の一例を示すブロツク図で
ある。 1……4ビツト切替ゲート回路、2……4ビツ
トRAM回路、3……4ビツトメモリ回路、4…
…4ビツト演算処理及び保持回路、5……制御信
号発生回路。
FIG. 1 is a block diagram showing one embodiment of the present invention;
FIG. 2 is an explanatory diagram showing an example of data format conversion, FIG. 3 is a time chart showing the operation of FIG. 1, and FIG. 4 is a block diagram showing an example of a conventional circuit. 1...4-bit switching gate circuit, 2...4-bit RAM circuit, 3...4-bit memory circuit, 4...
...4-bit arithmetic processing and holding circuit, 5...control signal generation circuit.

Claims (1)

【特許請求の範囲】 1 あらかじめ定められた長さのビツト列を少な
くとも並列に2含んで成る入力データを、変換さ
れるべき入力データとして入力するデータフオー
マツト変換方式において、 (A) 与えられたビツト列についてあらかじめ定め
られた論理演算を実行し、前記論理演算の結果
得られた新たなビツト列を出力する演算処理手
段、 (B) 前記入力データ及び前記論理演算の結果得ら
れた新たなビツト列を一時格納する第1の記憶
手段、 (C) 外部から入力された前記入力データと、前記
論理演算の結果得られた新たなビツト列とを切
替えて前記第1の記憶手段に出力する切替ゲー
ト手段、 (D) 前記論理演算のため用いられるビツト列とし
て前記演算処理手段に与えられる2のビツト列
の内の第1のビツト列を一時格納する第2の記
憶手段、 (E) 外部から前記入力データが入力されたとき、
前記切替ゲート手段を介して前記入力データを
選択して前記第1の記憶手段に格納し、前記演
算処理手段が前記論理演算のため2のビツト列
を必要とするときは、前記第1の記憶手段に格
納されているビツト列の中から前記第1のビツ
ト列を選択して読み出し前記第2の記憶手段に
格納し、次に前記第2の記憶手段に格納された
前記第1のビツト列との間で前記論理演算が行
われるべき他のビツト列を前記第1の記憶手段
から読み出して前記演算処理手段に内蔵された
保持手段に第2のビツト列として格納し、前記
演算処理手段に前記第1のビツト列と前記第2
のビツト列との間で論理演算を実行させ、前記
演算処理手段で得られた新たなビツト列を、前
記切替ゲート手段を介して前記第1の記憶手段
に格納し、前記入力データのフオーマツト変換
後のデータとして出力データを出力するときに
は、前記第1の記憶手段に格納されたビツト列
の中から、フオーマツト変換後のデータを構成
するために必要なビツト列を順次選択して読み
出し出力するフオーマツト変換制御手段、 を備えたことを特徴とするデータフオーマツト変
換方式。
[Claims] 1. A data format conversion method in which input data including at least two bit strings of a predetermined length in parallel is input as input data to be converted, (B) arithmetic processing means for executing a predetermined logical operation on a bit string and outputting a new bit string obtained as a result of the logical operation; a first storage means for temporarily storing the string; (C) switching for switching between the input data inputted from the outside and a new bit string obtained as a result of the logical operation and outputting the same to the first storage means; gate means; (D) second storage means for temporarily storing the first bit string of the two bit strings given to the arithmetic processing means as the bit string used for the logical operation; When the input data is input,
When the input data is selected and stored in the first storage means through the switching gate means, and the arithmetic processing means requires two bit strings for the logical operation, the input data is selected and stored in the first storage means. The first bit string is selected from the bit strings stored in the means, read out and stored in the second storage means, and then the first bit string stored in the second storage means is read out. Another bit string on which the logical operation is to be performed is read from the first storage means, stored as a second bit string in the holding means built in the arithmetic processing means, and The first bit string and the second bit string
A new bit string obtained by the arithmetic processing means is stored in the first storage means via the switching gate means, and the format conversion of the input data is performed. When output data is to be output as subsequent data, the bit strings necessary to constitute the data after format conversion are sequentially selected from among the bit strings stored in the first storage means, and the bit strings are read out and output. A data format conversion method comprising: conversion control means.
JP14171585A 1985-06-28 1985-06-28 Conversion system for data format Granted JPS623323A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14171585A JPS623323A (en) 1985-06-28 1985-06-28 Conversion system for data format

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14171585A JPS623323A (en) 1985-06-28 1985-06-28 Conversion system for data format

Publications (2)

Publication Number Publication Date
JPS623323A JPS623323A (en) 1987-01-09
JPH0444286B2 true JPH0444286B2 (en) 1992-07-21

Family

ID=15298511

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14171585A Granted JPS623323A (en) 1985-06-28 1985-06-28 Conversion system for data format

Country Status (1)

Country Link
JP (1) JPS623323A (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4991341A (en) * 1972-12-29 1974-08-31
JPS57137934A (en) * 1981-02-20 1982-08-25 Hitachi Ltd Binary-coded decimal and binary code conversion processing system

Also Published As

Publication number Publication date
JPS623323A (en) 1987-01-09

Similar Documents

Publication Publication Date Title
JPH0444286B2 (en)
JPS6219120B2 (en)
JPH0337886A (en) Memory write control circuit
JPS6398046A (en) Memory controller
JPS61120260A (en) Access device for sequential data memory circuit
JP3429880B2 (en) Memory device and memory access method
JPH01134544A (en) Memory access method
JP2945280B2 (en) Parallel / serial converter and serial / parallel converter
JPH0660019A (en) Data storage method
JPH0239798A (en) Converter for tdma data and tdm data
JPH0944412A (en) Memory testing circuit
JPH06301629A (en) Main storage device
JPH05205038A (en) Data converter
JPS6134172B2 (en)
JPS61192139A (en) Frame converting circuit
JPS63311403A (en) Processing system for input/output signal of pc
JPS6319889B2 (en)
JPH06233364A (en) Data phase converter
JPS6193740A (en) Multiplex circuit
JPH02125349A (en) Memory access system
JPS62260241A (en) Data input method
JPS61148548A (en) Memory access system
JPH066881A (en) Time-division data interchange system
JPH02166547A (en) Information processor
JPH05128863A (en) Memory control circuit