JPH04195266A - Bit conversion circuit - Google Patents

Bit conversion circuit

Info

Publication number
JPH04195266A
JPH04195266A JP26042190A JP26042190A JPH04195266A JP H04195266 A JPH04195266 A JP H04195266A JP 26042190 A JP26042190 A JP 26042190A JP 26042190 A JP26042190 A JP 26042190A JP H04195266 A JPH04195266 A JP H04195266A
Authority
JP
Japan
Prior art keywords
bit
column
conversion
data
address
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
JP26042190A
Other languages
Japanese (ja)
Inventor
Noriyuki Yogoshi
余越 紀之
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 JP26042190A priority Critical patent/JPH04195266A/en
Publication of JPH04195266A publication Critical patent/JPH04195266A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)

Abstract

PURPOSE:To shorten processing time by designating an address to control the switching of the bit arrangement of first and second bit column conversion means and read and write columns in (n) bit row memory by a conversion address generating means. CONSTITUTION:A first bit column conversion means 1 inputs the content of (n) bits of each column in original bit data developed in two-dimensional fashion in (n) rows and (m) columns, and switches the bit arrangement under the control of the conversion address generating means 4. The (n) bits switching the bit arrangement of the means 1 are written on a write column address generated by the means 4 of (n) bit row memory 21, 22,..., 2n, and are called to a row in accordance with a second bit column conversion means 3, respectively. The means 3 inputs the content of (n) bits in each column of (n) bit row memory, and switches the arrangement of bits under the control of the conversion means 4, and outputs them as the data in each column after conversion in parallel. Thereby, it is possible to provide universality for all kinds of bit conversion.

Description

【発明の詳細な説明】 〔概要〕 2次元に展開された0行m列のビットデータのビット変
換を行うビット変換回路に関し、あらゆるビット変換に
対して汎用性を有し、しかも処理が短時間に行い得るビ
ット変換回路を提供することを目的とし、 2次元に展開された0行m列の原ビットデータのビット
変換を行うビット変換回路において、第1および第2の
ビット列変換手段と、n個のビット行メモリと、変換ア
ドレス発生手段とを有し、前記第1のビット列変換手段
は、前記0行m列の2次元に展開された原ビットデータ
の各列nビットの内容を入力して、前記変換アドレス発
生手段4の制御の下に、ビットの配置を入替え、前記第
1のビット列変換手段のビットの配置を入替えたnビッ
トは、前記n個のビット行メモリの、前記変換アドレス
発生手段の発生する書き込み列アドレスに書き込まれ、
該n個のビット行メモリの各列に書き込まれたビットデ
ータは、それぞれ、前記第2のビット列変換手段の対応
する行に読み出され、前記第2のビット列変換手段は、
前記n個のビア)行メモリの各列のnビットの内容を入
力して、前記変換アドレス発生手段の制御の下に、ビッ
トの配置を入替えて変換後の各列のデータとしてパラレ
ルに出力し、前記変換アドレス発生手段は、原データの
各列のビット行メモリへの書き込み、および、ビット行
メモリの各列のデータの読み出しに対応する制御入力に
応じて、前記第1および第2のビット列変換手段のビッ
ト配置の入替えを制御するアドレス、および、前記n個
のビット行メモリにおける書込み列および読み出し列を
、それぞれ指定する列アドレスを発生するように構成す
る。
[Detailed Description of the Invention] [Summary] The present invention relates to a bit conversion circuit that performs bit conversion of bit data of 0 row and m column expanded in two dimensions, has versatility for all bit conversions, and can process in a short time. The purpose of the bit conversion circuit is to provide a bit conversion circuit that performs bit conversion of original bit data of row 0 and column m expanded two-dimensionally, comprising first and second bit string conversion means; The first bit string converting means inputs the contents of n bits of each column of the original bit data developed two-dimensionally in the 0th row and m columns. Then, under the control of the translation address generation means 4, the bit arrangement is switched, and the n bits whose bit arrangement has been switched in the first bit string conversion means are converted into the translation address of the n bit row memories. Written to the write column address generated by the generating means,
The bit data written in each column of the n bit row memories is read out to a corresponding row of the second bit string converting means, and the second bit string converting means:
The contents of n bits of each column of the n (via) row memory are input, and under the control of the conversion address generation means, the arrangement of the bits is exchanged and output in parallel as data of each column after conversion. , the conversion address generating means converts the first and second bit strings in response to control inputs corresponding to writing each column of original data into the bit row memory and reading data from each column of the bit row memory. The address for controlling the permutation of the bit arrangement of the converting means and the write column and read column in the n bit row memories are configured to generate column addresses that respectively designate them.

(産業上の利用分野〕 本発明は、2次元に展開された0行m列のビットデータ
のビット変換を行うビット変換回路に関する。
(Industrial Application Field) The present invention relates to a bit conversion circuit that performs bit conversion of bit data of 0 rows and m columns expanded in two dimensions.

例えば、画像処理等のディジタルデータ処理の際には、
2次元に展開されたビットデータに対して、縦横変換等
のビット変換処理を行う必要がある。このようなビット
変換処理は、大量のデータを扱うため、しばしば、処理
に長時間を要するので、ビット変換処理の処理時間を短
縮する技術が要望されている。
For example, when processing digital data such as image processing,
It is necessary to perform bit conversion processing such as vertical/horizontal conversion on the two-dimensionally expanded bit data. Since such bit conversion processing often requires a long time to process since it handles a large amount of data, there is a need for a technique to shorten the processing time of bit conversion processing.

〔従来の技術および発明が解決しようとする課題〕従来
、2次元に展開された0行m列のビットデータのビット
変換を行う場合は、例えば、マイクロプロセッサのビッ
ト演算機能(シフト、比較、AND、および、OR等)
を用いてソフトウェアにより行っていた。例えば、1例
として、第6回を示すようなビット配置の8ビツト×8
ビットのデータを縦横変換して、第7図に示すようなど
・ント配置の8ビツト×8ビツトのデータを求める場合
を考えると、従来のソフトウェアによる処理は、例えば
、第8図に示されるような手順で行われる。
[Prior Art and Problems to be Solved by the Invention] Conventionally, when performing bit conversion of bit data of 0 row and m column expanded in two dimensions, for example, the bit operation functions of a microprocessor (shift, comparison, AND , and OR etc.)
This was done using software. For example, as an example, 8 bits x 8 bits with a bit arrangement as shown in the 6th
If we consider the case where bit data is vertically and horizontally converted to obtain 8 bits x 8 bits data with the same arrangement of bits as shown in Figure 7, processing by conventional software is as shown in Figure 8, for example. It is carried out in accordance with the following steps.

第8図の手順からも明らかなように、従来のソフトウェ
アによるビット変換処理は処理に長時間を要するという
問題があった。
As is clear from the procedure shown in FIG. 8, the conventional software-based bit conversion process has a problem in that it takes a long time.

そのため、従来、ビット変換処理を高速に行うためには
、例えば、所定の幅のデータの縦横変換ならば縦横変換
のみを行うハードウェア論理回路のような、個々のビッ
ト変換専用のハードウェア論理回路を構成することが行
われている。
Therefore, conventionally, in order to perform bit conversion processing at high speed, a hardware logic circuit dedicated to individual bit conversion, such as a hardware logic circuit that only performs vertical and horizontal conversion for data of a predetermined width, has been required. is being configured.

しかしながら、個々のビット変換専用のハードウェア論
理回路は汎用性がなく、個々のビット変換毎に設計およ
び製作を行う必要があるという問題があった。
However, there is a problem in that hardware logic circuits dedicated to individual bit conversions are not versatile and must be designed and manufactured for each individual bit conversion.

本発明は、上記の問題点に鑑み、なされたもので、あら
ゆるビット変換に対して汎用性を有し、しかも処理が短
時間に行い得るビット変換回路を提供することを目的と
するものである。
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 bit conversion circuit that has versatility for all kinds of bit conversions and can perform processing in a short time. .

〔課題を解決するための手段〕[Means to solve the problem]

第1図は、本発明の基本構成図である。第1図の構成は
、0行m列の2次元に展開された原ビットデータのビッ
ト変換を行うビット変換回路である。
FIG. 1 is a basic configuration diagram of the present invention. The configuration shown in FIG. 1 is a bit conversion circuit that performs bit conversion of original bit data expanded two-dimensionally in rows 0 and columns m.

第1図において、■は第1のビット列変換手段、21.
22、・・・2n、はビット行メモリ、3は第2のビッ
ト列変換手段、そして、4は変換アドレス発生手段であ
る。
In FIG. 1, ■ is the first bit string conversion means, 21.
22, . . . 2n are bit row memories, 3 is second bit string conversion means, and 4 is conversion address generation means.

本発明の第1の形態においては、 第1のビット列変換
手段1は、上記の0行m列の2次元に展開された原ビッ
トデータの各列nビットの内容を入力して、前記変換ア
ドレス発生手段4の制御の下に、ビットの配置を入替え
る。
In a first embodiment of the present invention, the first bit string conversion means 1 inputs the contents of n bits of each column of the original bit data expanded two-dimensionally in the 0th row and mth column, and Under the control of the generating means 4, the arrangement of the bits is changed.

前記第1のビット列変換手段1のビットの配置を入替え
たnビットは、前記n個のビット行メモリ28.22、
・・・2nの、前記変換アドレス発生手段4の発生する
書き込み列アドレスに書き込まれ、該n個のビット行メ
モリ21,22、・・・2nの各列に書き込まれたビッ
トデータは、それぞれ、前記第2のビット列変換手段3
の対応する行に読み出される。
The n bits whose bit arrangement has been swapped in the first bit string converting means 1 are stored in the n bit row memories 28, 22,
. . 2n, the bit data written to the write column address generated by the conversion address generation means 4 and written to each column of the n bit row memories 21, 22, . . . 2n are as follows: Said second bit string conversion means 3
is read out in the corresponding line.

第2のビット列変換手段3は、上記のn個のビット行メ
モリの各列のnビットの内容を入力して、前記変換アド
レス発生手段4の制御の下に、ビットの配置を入替えて
変換後の各列のデータとしてパラレルに出力する。
The second bit string converting means 3 inputs the contents of n bits of each column of the n bit row memory, and under the control of the conversion address generating means 4, rearranges the bit arrangement and performs conversion. output in parallel as data for each column.

上記の変換アドレス発生手段4は、原データの各列の前
記第1のビット列変換手段lを介してのビット行メモリ
への書き込み、および、ビット行メモリの各列のデータ
の前記第2のビット列変換手段3を介しての読み出しに
対応する制御入力に応じて、上記の第1および第2のビ
ット列変換手段1および3のビット配置の入替えを制御
するアドレス、および、上記のn個のビット行メモリ2
1.22、・・・2ゎにおける書込み列および読み出し
列を、それぞれ指定する列アドレスを発生する。
The above conversion address generation means 4 writes each column of original data to the bit row memory via the first bit string conversion means l, and writes the data of each column of the bit row memory to the second bit string. An address for controlling the swapping of the bit arrangements of the first and second bit string converting means 1 and 3, and the n bit rows described above, in accordance with a control input corresponding to reading through the converting means 3. memory 2
Column addresses specifying the write columns and read columns at 1.22, . . . 2, respectively are generated.

本発明の第2の形態においては、 第1のビット列変換
手段lは、上記の0行m列の2次元に展開された原ビッ
トデータの各列nビットの内容を入力して、前記変換ア
ドレス発生手段4の制御の下に、ビットの配置を入替え
る。
In the second embodiment of the present invention, the first bit string conversion means l inputs the contents of n bits of each column of the original bit data expanded two-dimensionally in the 0th row and mth column, and converts the converted address to the converted address. Under the control of the generating means 4, the arrangement of the bits is changed.

前記第1のビット列変換手段1のビットの配置を入替え
たnビットは、前記n個のビット行メモリ23,22、
・・・2nの、前記原ビットデータの各列に等しい列に
書き込まれ、該n個のビット行メモリ21,22、・・
・2nの、変換後のデータの各列に対応じて前記変換ア
ドレス発生手段4が発生する読み出し列アドレスに書き
込まれたビットデータは、それぞれ、前記第2のビット
列変換手段3の対応する行に読み出される。
The n bits whose bit arrangement has been swapped in the first bit string converting means 1 are stored in the n bit row memories 23, 22,
. . 2n are written in columns equal to each column of the original bit data, and the n bit row memories 21, 22, . . .
- The bit data written to the read column address generated by the conversion address generation means 4 corresponding to each column of converted data of 2n is respectively written to the corresponding row of the second bit string conversion means 3. Read out.

第2のビット列変換手段3は、上記の、変換後のデータ
の各列に対応じて前記変換アドレス発生手段4が発生す
る読み出し列アドレスに書き込まれたビットデータを入
力して、前記変換アドレス発生手段4の制御の下に、ビ
ットの配置を入替えて前記変換後の各列のデータとして
パラレルに出力する。
The second bit string conversion means 3 inputs the bit data written to the read column address generated by the conversion address generation means 4 corresponding to each column of the converted data, and generates the conversion address. Under the control of the means 4, the arrangement of the bits is changed and outputted in parallel as data of each column after the conversion.

上記の変換アドレス発生手段4は、原データの各列のデ
ータの前記第1のビット列変換手段1を介してのビット
行メモリへの書き込み、および、ビット行メモリにおけ
る、前記変換後のデータの各列に対応するデータの前記
第2のビット列変換手段3を介しての読み出しに対応す
る制御入力に応じて、上記の第1および第2のビット列
変換手段1および3のビット配置の入替えを制御するア
ドレス、および、上記のn個のビット行メモリ2I、2
2、・・・2nにおける書込み列および読み出し列を、
それぞれ指定する列アドレスを発生する。
The above conversion address generation means 4 writes each column of data of the original data to the bit row memory via the first bit string conversion means 1, and writes each of the converted data in the bit row memory. Controls swapping of bit arrangements of the first and second bit string converting means 1 and 3 in accordance with a control input corresponding to reading of data corresponding to a column via the second bit string converting means 3; address and the above n bit row memories 2I, 2
The write column and read column in 2, . . . 2n are
Generates each specified column address.

〔作用〕[Effect]

本願発明の第1の形態によれば、先ず、原データの各列
のビット行メモリへの書き込み時には、変換アドレス発
生手段4に対して、原データの各列のビット行メモリへ
の書き込みに対応する制御入力を与えることにより、該
原データの各列は、ビット列変換手段1にて、上記の原
データの各列のビット行メモリへの書き込みに対応する
制御入力に応じて該各列内のビット配置(行)を変換さ
れた後、変換された行のビット行メモリ内の、該制御入
力に応じた列の位置(列アドレス)に書き込まれる。次
に、ビット行メモリの各列のデータの読み出し時には、
変換アドレス発生手段4に対して、ビット行メモリの各
列のデータの読み出しに対応する制御入力を与えること
により、該ビット行メモリの各列のデータは各列毎パラ
レルに第2のビット列変換手段3に読み出されて、ここ
において、さらに、上記の各列のデータの読み出しに対
応する制御入力に応じて各列内のビット配置(行)を変
換された後、変換後の各列のデータとしてパラレル出力
される。
According to the first aspect of the present invention, first, when writing each column of original data to the bit row memory, the conversion address generating means 4 is configured to write each column of original data to the bit row memory. By giving a control input to each column of the original data, the bit string converting means 1 converts each column of the original data to After the bit arrangement (row) is converted, it is written to the column position (column address) in the bit row memory of the converted row according to the control input. Next, when reading data in each column of bit row memory,
By applying a control input corresponding to reading of data in each column of the bit row memory to the conversion address generation means 4, the data in each column of the bit row memory is read out in parallel for each column by the second bit string conversion means. 3, and here, the bit arrangement (row) in each column is further converted according to the control input corresponding to the reading of the data in each column described above, and then the data in each column after conversion is output in parallel.

本願発明の第2の形態によれば、先ず、原データの各列
のビット行メモリへの書き込み時には、変換アドレス発
生手段4に対して、原データの各列のビット行メモリへ
の書き込みに対応する制御入力を与えることにより、該
原データの各列は、ビット列変換手段1にて、上記の原
データの各列のビット行メモリへの書き込みに対応する
制御入力に応じて該各列内のビット配置(行)を変換さ
れた後、変換された行のビット行メモリ内の、上記の各
列の位置(列アドレス)に書き込まれる。
According to the second embodiment of the present invention, first, when writing each column of original data to the bit row memory, the conversion address generating means 4 is configured to write the original data to the bit row memory of each column. By giving a control input to each column of the original data, the bit string converting means 1 converts each column of the original data to After the bit arrangement (row) is converted, it is written to each column position (column address) mentioned above in the bit row memory of the converted row.

次に、ビット行メモリの各列のデータの読み出し時には
、変換アドレス発生手段4に対して、変換後のデータの
各列の読み出しに対応する制御入力を与えることにより
、該制御入力に応じたビット行メモリの各列のデータは
パラレルに第2のビット列変換手段3に読み出されて、
ここにおいて、さらに、上記の各列のデータの読み出し
に対応する制御入力に応じて各列内のビット配置(行)
を変換された後、変換後の各列のデータとしてパラレル
出力される。
Next, when reading data in each column of the bit row memory, a control input corresponding to reading each column of the converted data is given to the conversion address generating means 4, so that the bits corresponding to the control input are The data in each column of the row memory is read out in parallel to the second bit string conversion means 3,
Here, the bit arrangement (row) within each column is further determined according to the control input corresponding to reading the data of each column above.
After the data is converted, it is output in parallel as data for each column after conversion.

本願発明の構成によれば、変換アドレス発生手段4から
、第1および第2のビット列変換手段1および3のビッ
ト配置の入替えを制御するアドレス、および、上記のn
個のビット行メモリ21゜22、・・・2nにおける、
本発明の第1の形態の書込み列、または、本発明の第1
の形態の読み出し列を指定する列アドレスを与えること
により(アドレスの与え力次第で)任意のビット変換が
可能である。アドレスの与え方は、どのような変換かに
応じて予め演算により求めて設定しておけばよい。また
、変換アドレス発生手段4に、予め、複数のアドレスの
発生モードを設定しておいて、所定のモード指定入力に
応じて、そのうちの1つを選択するようにすることもで
きる。
According to the configuration of the present invention, from the conversion address generation means 4, the address for controlling the swapping of the bit arrangement of the first and second bit string conversion means 1 and 3, and the above n
In the bit row memories 21° 22, . . . 2n,
The write column according to the first aspect of the present invention or the first write column according to the present invention
By giving a column address that specifies a readout column in the form (depending on the strength of the address), arbitrary bit conversion is possible. The method of giving the address may be calculated and set in advance depending on the type of conversion. It is also possible to set a plurality of address generation modes in advance in the translated address generation means 4, and select one of them in response to a predetermined mode designation input.

さらに、0行m列の2次元に展開されたビットデータの
各列のデータを第1のビット列変換手段1にてビット列
変換した後、n個のビット行メモリ28,22、・・・
2nlに書込み、該n個のビット行メモリ2I、22、
・・・2nに書込まれたデータを読み出して、第2のビ
ット列変換手段3にてビット列変換することにより、0
行m列の2次元に展開されたビットデータの任意のビッ
ト変換が完了するので、処理に要する遅延時間は、基本
的に。
Further, after the data in each column of the two-dimensionally expanded bit data of 0 rows and m columns is subjected to bit string conversion by the first bit string converting means 1, n bit row memories 28, 22, . . .
2nl, the n bit row memories 2I, 22,
...By reading the data written in 2n and converting the bit string by the second bit string converting means 3, the data becomes 0.
Since arbitrary bit conversion of the bit data developed in two dimensions in rows and m columns is completed, the delay time required for processing is basically as follows.

メモリへの書込み時間と読み出し時間の和となって、処
理時間が大いに短縮できる。
This becomes the sum of the time for writing to the memory and the time for reading it, and the processing time can be greatly reduced.

〔実施例〕〔Example〕

第2図は、本発明の(第1の形態の)実施例の構成を示
す図である。第2図は、2次元に展開された8行8列の
データのビット変換のためのビット変換回路の構成を示
すものであって、前述の第1図の構成において、n=8
.m−8とおいたものである。さらに、第2図の構成は
、前述の第1図の構成の特殊な例として、前述の第1お
よび第2のビット列変換回路が、それぞれ、巡回置換の
みのビット変換を行う構成を示すものである。
FIG. 2 is a diagram showing the configuration of an embodiment (of the first form) of the present invention. FIG. 2 shows the configuration of a bit conversion circuit for bit conversion of 8 rows and 8 columns of data expanded two-dimensionally. In the configuration of FIG. 1 described above, n=8
.. It is called m-8. Furthermore, the configuration shown in FIG. 2 is a special example of the configuration shown in FIG. 1, in which the first and second bit string conversion circuits each perform bit conversion using only cyclic permutation. be.

第2図の構成において、11は第1のビット列変換回路
、121、122、・・・12sはビット行メモリとし
てのRAM、13は第2のビット列変換回路、そして、
14は変換アドレス発生回路である。
In the configuration shown in FIG. 2, 11 is a first bit string conversion circuit, 121, 122, . . . 12s is a RAM as a bit row memory, 13 is a second bit string conversion circuit, and
14 is a conversion address generation circuit.

8個のRAMにおけるアドレスは、それぞれ、各行の各
列のビットの何れかを指定するものであるので、3ビツ
ト(AO,AI、A2)あればよく、第1および第2の
ビット列変換回路11および13のビット変換を制御す
るアドレスも、上記のように巡回置換に限定したので、
やはり3ビツト(AO,AI、A2)でよい。
Since the addresses in the eight RAMs each designate one of the bits in each column of each row, 3 bits (AO, AI, A2) are sufficient, and the first and second bit string conversion circuits 11 Since the addresses that control the bit conversion of and 13 are also limited to cyclic permutation as described above,
Again, 3 bits (AO, AI, A2) are sufficient.

第2図の変換アドレス発生回路14は、3ビツトの制御
入力AO’ 、AI’ 、A2’ 、および、書き込み
/読み出し制御人力R/Wを入力して、これら制御入力
に応じて、各々3ビツトからなる、RAM121,12
2、・・・128の制御アドレス<AI>、<A2>、
<A3>、<A4>、<A5>、<A6>、<A7>、
<A8>、第1のビット列変換回路11の制御アドレス
<A9>、および、第2のビット列変換回路13の制御
アドレス<AIO>を出力する。上記の制御入力は、図
示しないCPUから与えられる。
The conversion address generation circuit 14 in FIG. 2 inputs 3-bit control inputs AO', AI', A2' and write/read control manual input R/W, and converts 3-bits each according to these control inputs. Consisting of RAM 121, 12
2,...128 control addresses <AI>, <A2>,
<A3>, <A4>, <A5>, <A6>, <A7>,
<A8>, the control address <A9> of the first bit string conversion circuit 11, and the control address <AIO> of the second bit string conversion circuit 13 are output. The above control input is given from a CPU (not shown).

第3図は、上記のビット変換が縦横変換であるときの上
記の変換アドレス発生回路14における入出力関係を示
し、第4図は、第1のビット列変換回路11が巡回置換
のみを行う場合の、制御アドレス〈A9〉に対するビッ
ト変換結果を示し、第5図は、第2のビット列変換回路
13が巡回置換のみを行う場合の、制御アドレス<AI
O>に対するビット変換結果を示す。第3図において、
書き込み(W)時のCPUアドレスは、原データの各列
(番)0〜7を示し、読み出しくR)時のCPUアドレ
スは、変換後データの各列(番)0〜7に対応する。ま
た、第3図の制御アドレス<Al>、<A2>、<A3
>、<A4>、<A5>、<A6>、<A7>、<A8
>は、それぞれ、対応するRAM121、122、・・
・12sの(書き込み時および読み出し時の)列アドレ
スを示すものである。本発明の第1の形態に従い、RA
M122 122、・・・128からの読み出しアドレ
スは、変換後データの各列(番)0〜7に等しくなって
いる。
FIG. 3 shows the input/output relationship in the conversion address generation circuit 14 when the bit conversion is vertical/horizontal conversion, and FIG. 4 shows the input/output relationship when the first bit string conversion circuit 11 performs only cyclic permutation. , the bit conversion results for the control address <A9>, and FIG. 5 shows the bit conversion results for the control address <AI
The bit conversion result for O> is shown. In Figure 3,
The CPU address during writing (W) indicates each column (number) 0 to 7 of the original data, and the CPU address during reading (R) corresponds to each column (number) 0 to 7 of the converted data. Also, the control addresses <Al>, <A2>, <A3> in FIG.
>, <A4>, <A5>, <A6>, <A7>, <A8
> are the corresponding RAMs 121, 122, . . .
- Indicates the column address of 12s (at the time of writing and reading). According to the first aspect of the invention, R.A.
The read addresses from M122 122, . . . , 128 are equal to each column (number) 0 to 7 of the converted data.

CPUは、初めに、書き込み/読み出し制御人力R/W
を書き込み(W)状態として、第3図のCPUアドレス
を00として原データの0列を第2図の第1のビットレ
ベル変換回路11の8ビットデータ入力端子00.01
.・・・D7に印加する。ここで、第3図の上記の制御
入力に対する〈A9〉出力は00であるので、第4図に
示されるように、原データの0列は、そのまま第1のビ
ットレベル変換回路11から出力され、RAM12n.
122。
First, the CPU performs write/read control human power R/W.
is in the write (W) state, the CPU address in FIG. 3 is set to 00, and the 0 column of the original data is transferred to the 8-bit data input terminal 00.01 of the first bit level conversion circuit 11 in FIG.
.. ...Apply to D7. Here, since the <A9> output in response to the above control input in FIG. 3 is 00, the 0 column of the original data is output as is from the first bit level conversion circuit 11 as shown in FIG. , RAM12n.
122.

・・・12nの、第3図の上記′の制御入力に対する<
AI>、<A2>、  ・・・くA8〉出力により定め
られる列アドレス、00,01.  ・・・07に、そ
れぞれ書き込まれる。次に、第3図のCPUアドレスを
01として原データの1列を第2図の第1のビットレベ
ル変換回路11の8ビットデータ入力端子DO,Di、
・・・D7に印加する。ここで、第3図の上記の制御入
力に対するくA9〉出力は01であるので、第4図に示
されるように、原データの1列は、下位ビット方向へ1
ビット巡回シフトされて第1のビットレベル変換回路1
1から出力され、RAM12n.122、・・・12g
の、第3図の上記の制御入力に対する<A I >。
. . 12n, < for the control input of ' above in Fig. 3
AI>, <A2>, . . . Column address determined by A8> output, 00, 01. ...07, respectively. Next, with the CPU address in FIG. 3 set to 01, one column of the original data is transferred to the 8-bit data input terminals DO, Di of the first bit level conversion circuit 11 in FIG.
...Apply to D7. Here, since the A9> output in response to the above control input in FIG. 3 is 01, as shown in FIG.
Bit cyclically shifted first bit level conversion circuit 1
1 and is output from RAM12n. 122,...12g
<A I > for the above control inputs of FIG.

<A 2 >、  ・・・<A7>、<A8>出力によ
り定められる列アドレス、01.02n  ・・・07
゜00に、それぞれ書き込まれる。以下同様にして原デ
ータの7列までがRAMI21,122、・・・12n
に書き込まれると、次に、CPUは、書き込み/読み出
し制御人力R/Wを読み出しくR)状態として、第3図
のCPUアドレスをOOから07とすることにより、こ
れに対応する第3図の制御アドレス出力<AI>、<A
2>、  ・・・<A8>=00,01.  ・・・0
7によって、RAM121、122、・・・12nのデ
ータの0列から7列のアドレスの8ビツトデータが、そ
れぞれ、第2のビット列変換回路13に読み出される。
<A2>, ...<A7>, <A8> Column address determined by output, 01.02n ...07
00, respectively. Similarly, up to 7 columns of original data are stored in RAMI21, 122,...12n.
Next, the CPU reads the write/read control manual R/W (R) state by changing the CPU address in FIG. Control address output <AI>, <A
2>, ...<A8>=00,01. ...0
7, the 8-bit data at the addresses in columns 0 to 7 of the data in the RAMs 121, 122, .

ここで、上記のCPUアドレスをOOから07に対して
、<AIO>は00から07へと変化するので、上記の
RAM12n.122、・・・12nのデータの0列か
ら7列のアドレスの8ビツトデータは、それぞれ、第2
のビット列変換回路13において、第5図の<AIO>
=00〜07のような巡回置換を受けて、第2のビット
列変換回路1308ビツトデータ出力端子Do’ 、 
Di’ 、・・・D7’より変換後の各列のデータとし
てCPUバス上に出力される。こうして、上記の手順に
より、第6図に示されるような原データは、縦横変換さ
れて、第7図に示されるようなデータに変換される。
Here, since the above CPU address changes from OO to 07 and <AIO> changes from 00 to 07, the above RAM 12n. The 8-bit data at the addresses in columns 0 to 7 of the data 122, . . . 12n are the second
In the bit string conversion circuit 13 of FIG.
=00 to 07, the second bit string conversion circuit 1308 bit data output terminal Do',
Di', . . . D7' output the converted column data onto the CPU bus. In this way, according to the above procedure, the original data as shown in FIG. 6 is vertically and horizontally converted and converted into data as shown in FIG. 7.

尚、第3図〜第5図の例は、本発明の第1の形態に対応
するものであるが、第3図の変換を本発明の第2の形態
に対応じて変更しても、全く同様に縦横変換が行われる
。本発明の第2の形態に従えば、RAM121、122
、・・・128からの書き込みアドレスが、変換後デー
タの各列(番)O〜7に等しくなる。
Note that the examples shown in FIGS. 3 to 5 correspond to the first embodiment of the present invention, but even if the conversion in FIG. 3 is changed to correspond to the second embodiment of the present invention, Vertical and horizontal conversion is performed in exactly the same way. According to the second embodiment of the present invention, the RAMs 121, 122
, . . , the write address from 128 becomes equal to each column (number) O to 7 of the converted data.

前述の第2図の構成において、変換アドレス発生回路1
4の入出力関係、および、第1および第2のビット列変
換回路11および13における変換を適当に定めれば、
あらゆる種類のビット変換を行うことができる。なお、
第1および第2のビット列変換回路11および13は、
ハードウェア論理回路により構成され、変換アドレス発
生回路14は、ハードウェア論理回路により構成しても
よく、また、メモリ回路により構成すれば、ビット変換
の種類の変化に対応じて入出力関係を容易に変更できる
In the configuration shown in FIG. 2 described above, the conversion address generation circuit 1
If the input/output relationship of 4 and the conversion in the first and second bit string conversion circuits 11 and 13 are appropriately determined,
All kinds of bit conversions can be performed. In addition,
The first and second bit string conversion circuits 11 and 13 are
The conversion address generation circuit 14 may be configured by a hardware logic circuit, or if configured by a memory circuit, the input/output relationship can be easily adjusted in response to changes in the type of bit conversion. can be changed to

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

本発明のビット変換回路は、あらゆるビット変換に対し
て汎用性を有し、しかも処理が短時間に行い得る。
The bit conversion circuit of the present invention has versatility for all bit conversions and can perform processing in a short time.

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

第1図は本発明の基本構成図、 第2図は本発明の実施例の構成図、 第3図は、上記の縦横変換であるときの上記の変換アド
レス発生回路14における入出力関係を示す図、 第4図は、第1のビ・ント列変換回路11が巡回置換の
みを行う場合の、制御アドレス〈A9〉に対するビット
変換結果を示す図、 第5図は、第2のビット列変換回路13が巡回置換のみ
を行う場合の、制御アドレス<AIO>に対す名ビット
変換結果を示す図、 第6図は、8ビツト×8ビツトの原データのビット配置
を示す図、 第7図は、第6図のデータを縦横変換した結果のビット
配置を示す図、そして 第8図は、従来のソフトウェアによる縦*変換処理の手
順を示す図である。 〔符号の説明〕 1−−一第1のビット列変換手段、21,22、・・・
21、−・−ビット行メモリ、3・−第2のビット列変
換手段、4は変換アドレス発生手段、11−第1のビッ
ト列変換回路、12n.1221・・・12s・−RA
M、13−第2のビット列変換回路、14−変換アドレ
ス発生回路。
FIG. 1 is a basic configuration diagram of the present invention, FIG. 2 is a configuration diagram of an embodiment of the present invention, and FIG. 3 is a diagram showing the input/output relationship in the above-mentioned conversion address generation circuit 14 during the above-mentioned vertical/horizontal conversion. 4 is a diagram showing the bit conversion result for the control address <A9> when the first bit string conversion circuit 11 performs only cyclic permutation. FIG. 5 is a diagram showing the bit conversion result for the control address <A9> 13 is a diagram showing the name bit conversion result for the control address <AIO> when only cyclic permutation is performed. FIG. 6 is a diagram showing the bit arrangement of the original data of 8 bits x 8 bits. FIG. 6 is a diagram showing the bit arrangement as a result of vertical/horizontal conversion of the data, and FIG. 8 is a diagram showing the procedure of vertical/horizontal conversion processing by conventional software. [Description of symbols] 1--1 first bit string conversion means, 21, 22, . . .
21, ---bit row memory, 3.--second bit string conversion means, 4, conversion address generation means, 11--first bit string conversion circuit, 12n. 1221...12s・-RA
M, 13-second bit string conversion circuit, 14-conversion address generation circuit;

Claims (1)

【特許請求の範囲】 1、2次元に展開されたn行m列の原ビットデータをビ
ット変換するビット変換回路において、第1および第2
のビット列変換手段(1、3)と、n個のビット行メモ
リ(2_1、2_2、・・・2_n)と、変換アドレス
発生手段(4)とを有し、前記第1のビット列変換手段
(1)は、前記n行m列の2次元に展開された原ビット
データの各列nビットの内容を入力して、前記変換アド
レス発生手段4の制御の下に、ビットの配置を入替え、
前記第1のビット列変換手段(1)のビットの配置を入
替えたnビットは、前記n個のビット行メモリ(2_1
、2_2、・・・2_n)の、前記変換アドレス発生手
段(4)の発生する書き込み列アドレスに書き込まれ、
該n個のビット行メモリ(2_1、2_2、・・・2_
n)の各列に書き込まれたビットデータは、それぞれ、
前記第2のビット列変換手段(3)の対応する行に読み
出され、 前記第2のビット列変換手段(3)は、前記n個のビッ
ト行メモリ(2_1、2_2・・・2_n)の各列のn
ビットの内容を入力して、前記変換アドレス発生手段(
4)の制御の下に、ビットの配置を入替えて変換後の各
列のデータとしてパラレルに出力し、 前記変換アドレス発生手段(4)は、原データの各列の
前記第1のビット列変換手段(1)を介しての前記ビッ
ト行メモリへの書き込み、および、ビット行メモリの各
列のデータの前記第2のビット列変換手段(3)を介し
ての読み出しに対応する制御入力に応じて、前記第1お
よび第2のビット列変換手段(1、3)のビット配置の
入替えを制御するアドレス、および、前記n個のビット
行メモリ(2_1、2_2、・・・2_n)における書
込み列および読み出し列を、それぞれ指定する列アドレ
スを発生することを特徴とするビット変換回路。 2、2次元に展開されたn行m列の原ビットデータをビ
ット変換するビット変換回路において、第1および第2
のビット列変換手段(1、3)と、n個のビット行メモ
リ(2_1、2_2、・・・2_n)と、変換アドレス
発生手段(4)とを有し、前記第1のビット列変換手段
(1)は、前記n行m列の2次元に展開された原ビット
データの各列nビットの内容を入力して、前記変換アド
レス発生手段4の制御の下に、ビットの配置を入替え、
前記第1のビット列変換手段(1)のビットの配置を入
替えたnビットは、前記n個のビット行メモリ(2_1
、2_2、・・・2_n)の、前記原ビットデータの各
列に等しい列に書き込まれ、該n個のビット行メモリ(
2_1、2_2、・・・2_n)の、変換後のデータの
各列に対応して前記変換アドレス発生手段(4)が発生
する読み出し列アドレスに書き込まれたビットデータは
、それぞれ、前記第2のビット列変換手段(3)の対応
する行に読み出され、 前記第2のビット列変換手段(3)は、前記変換後のデ
ータの各列に対応して前記変換アドレス発生手段(4)
が発生する読み出し列アドレスに書き込まれたビットデ
ータを入力して、前記変換アドレス発生手段(4)の制
御の下に、ビットの配置を入替えて前記変換後の各列の
データとしてパラレルに出力し、 前記変換アドレス発生手段(4)は、原データの各列の
データの前記第1のビット列変換手段(1)を介しての
前記ビット行メモリへの書き込み、および、ビット行メ
モリにおける、前記変換後のデータの各列に対応するデ
ータの前記第2のビット列変換手段(3)を介しての読
み出しに対応する制御入力に応じて、前記第1および第
2のビット列変換手段(1、3)のビット配置の入替え
を制御するアドレス、および、前記n個のビット行メモ
リ(2_1、2_2、・・・2_n)における書込み列
および読み出し列を、それぞれ指定する列アドレスを発
生することを特徴とするビット変換回路。 3、前記変換アドレス発生手段(4)は、メモリにより
構成され、ビット変換の種類に応じて該メモリの内容は
変更可能である請求項1または2の何れかに記載のビッ
ト変換回路。
[Scope of Claims] A bit conversion circuit that converts original bit data of n rows and m columns expanded in one or two dimensions,
the first bit string converting means (1, 3), n bit row memories (2_1, 2_2, . . . 2_n), and a conversion address generating means (4); ) inputs the content of n bits in each column of the original bit data developed in two dimensions in the n rows and m columns, and rearranges the arrangement of the bits under the control of the conversion address generation means 4;
The n bits whose bit arrangement has been swapped in the first bit string converting means (1) are stored in the n bit row memory (2_1).
, 2_2, .
The n bit row memories (2_1, 2_2,...2_
The bit data written in each column of n) is, respectively,
The second bit string converting means (3) reads each column of the n bit row memories (2_1, 2_2...2_n). n of
The contents of the bits are input and the converted address generating means (
Under the control of 4), the bit arrangement is swapped and output in parallel as data of each column after conversion, and the conversion address generation means (4) converts the first bit string conversion means of each column of original data. (1) in response to a control input corresponding to writing to said bit row memory via said second bit string converting means (3) and reading data in each column of said bit row memory via said second bit string converting means (3); an address for controlling the permutation of the bit arrangement of the first and second bit string converting means (1, 3), and a write column and a read column in the n bit row memories (2_1, 2_2, . . . 2_n); A bit conversion circuit characterized in that it generates a column address specifying each of . 2. In a bit conversion circuit that converts original bit data of n rows and m columns expanded in two dimensions, a first and a second
the first bit string converting means (1, 3), n bit row memories (2_1, 2_2, . . . 2_n), and a conversion address generating means (4); ) inputs the content of n bits in each column of the original bit data developed in two dimensions in the n rows and m columns, and rearranges the arrangement of the bits under the control of the conversion address generation means 4;
The n bits whose bit arrangement has been swapped in the first bit string converting means (1) are stored in the n bit row memory (2_1).
, 2_2, .
2_1, 2_2, ... 2_n), the bit data written to the read column address generated by the conversion address generating means (4) corresponding to each column of converted data is The second bit string converting means (3) reads out the converted address generating means (4) corresponding to each column of the converted data.
The bit data written in the read column address where the conversion address is generated is input, and under the control of the conversion address generation means (4), the arrangement of the bits is changed and outputted in parallel as the data of each column after the conversion. , the conversion address generation means (4) writes data of each column of original data into the bit row memory via the first bit string conversion means (1), and performs the conversion in the bit row memory. said first and second bit string converting means (1, 3) in response to a control input corresponding to reading of data corresponding to each column of subsequent data via said second bit string converting means (3); and a column address that respectively specifies a write column and a read column in the n bit row memories (2_1, 2_2, . . . 2_n). Bit conversion circuit. 3. The bit conversion circuit according to claim 1, wherein the conversion address generating means (4) is constituted by a memory, and the contents of the memory can be changed depending on the type of bit conversion.
JP26042190A 1990-10-01 1990-10-01 Bit conversion circuit Pending JPH04195266A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26042190A JPH04195266A (en) 1990-10-01 1990-10-01 Bit conversion circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26042190A JPH04195266A (en) 1990-10-01 1990-10-01 Bit conversion circuit

Publications (1)

Publication Number Publication Date
JPH04195266A true JPH04195266A (en) 1992-07-15

Family

ID=17347705

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26042190A Pending JPH04195266A (en) 1990-10-01 1990-10-01 Bit conversion circuit

Country Status (1)

Country Link
JP (1) JPH04195266A (en)

Similar Documents

Publication Publication Date Title
JPH0220131A (en) Frame converter
JPH0810462B2 (en) Image processing device
JPH04195266A (en) Bit conversion circuit
JPH03206769A (en) Device for converting linear scanning into vertical sawthooth wave scan- ning bystrip
JPH06215559A (en) Page memory access system
JPH07273663A (en) Method and device for signal processing
JPS6354641A (en) Memory device for image processing
JP2000020705A (en) Parallel image processing processor
JP3427586B2 (en) Data processing device and storage device
JPH05307598A (en) Picture processor
JP2938107B2 (en) Pattern recognition device
JPH05266060A (en) Matrix arithmetic circuit
JPH0863595A (en) Method and device for rotation processing of image
JPH0259868A (en) Image processor
JPH11150459A (en) Pulse output circuit
JPH06208614A (en) Image processor
JPS6219980A (en) Image processor
JPH0462646A (en) Image conversion processor
JPH06164322A (en) Coefficient generator for filter
JPH03145694A (en) Character pattern size converting system
JPH03145277A (en) Address control circuit for memory
JPS5894021A (en) Generating system of analog waveform for simulation
JPH10178634A (en) Image correlation arithmetic unit
JPS63156478A (en) Image processing circuit
JPS60121583A (en) Memory control circuit