JPS61246835A - Pattern shift circuit - Google Patents

Pattern shift circuit

Info

Publication number
JPS61246835A
JPS61246835A JP8654785A JP8654785A JPS61246835A JP S61246835 A JPS61246835 A JP S61246835A JP 8654785 A JP8654785 A JP 8654785A JP 8654785 A JP8654785 A JP 8654785A JP S61246835 A JPS61246835 A JP S61246835A
Authority
JP
Japan
Prior art keywords
pattern data
data
rom
output
register
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
JP8654785A
Other languages
Japanese (ja)
Inventor
Yoshiro Miyahara
宮原 吉郎
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
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP8654785A priority Critical patent/JPS61246835A/en
Publication of JPS61246835A publication Critical patent/JPS61246835A/en
Pending legal-status Critical Current

Links

Landscapes

  • Manipulation Of Pulses (AREA)

Abstract

PURPOSE:To decrease the time when pattern data is shifted and outputted by providing a register inputted with parallel pattern data, two ROMs having a program setting an output after shifting and an OR circuit. CONSTITUTION:Parallel pattern data (a) is inputted to a register 2 and a ROM 3 and the output pattern data of the register 2 is inputted to a ROM 1. In inputting a consecutive pattern data sequentially to the register 2 and a ROM 3 synchronously with a clock signal CL, the pattern data before one point of time in the ROM 3 is inputted to the ROM 1. Data (e) designating the pattern data and the shift bit number inputted to the ROMs 1, 2 is an address data of the ROMs 1, 3 and the output pattern data (c, b) corresponding to the address data are outputted. The output pattern data (c, b) of the ROMs 1, 3 are ORed by OR circuits 4a-4h and outputted as the output pattern data (d).

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はパターンデータ処理回路に関し、特に、ワード
単位に連続して存在するパターン全体をビット単位にシ
フトさせる回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a pattern data processing circuit, and more particularly to a circuit that shifts an entire pattern that exists continuously in word units in bit units.

〔従来の技術〕[Conventional technology]

従来、この種のシフト操作を行うには、シフトレジスタ
を使ってワード単位のパターンデータを一旦シリアルデ
ータに変換し、そのシリアルデータを、再度、ビットを
ずらした形でワード単位、のデータに編集しなおすこと
を行っていた。
Conventionally, to perform this type of shift operation, a shift register is used to convert word-based pattern data into serial data, and then the serial data is edited again into word-based data by shifting the bits. I was trying to repair it.

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

上述した従来のパターンシフト回路は、パラレルデータ
をシリアルデータに変換する時に1ワード長のビット数
だけシフト操作を繰り返すため、高速の処理ができない
という問題がある。
The conventional pattern shift circuit described above has a problem in that it cannot perform high-speed processing because it repeats the shift operation by the number of bits of one word length when converting parallel data to serial data.

C問題点を解決するための手段〕 このような問題点を解決するために本発明は、並列のパ
ターンデータが入力されるレジスタと、シフト後の出力
を予め設定するためのプログラムを有する第1のROM
と第2のROMと、前記第1のROMと第2のROMの
出力の論理和をとるOR回路とを設けるようにしたもの
である。
Means for Solving Problem C] In order to solve such problems, the present invention provides a first register having a register into which parallel pattern data is input and a program for presetting the output after shifting. ROM of
and a second ROM, and an OR circuit for calculating the logical sum of the outputs of the first ROM and the second ROM.

〔作用〕[Effect]

本発明においては、並列のパターンデータに対して必要
なシフト操作を行ったパターンデータが出力される。
In the present invention, pattern data obtained by performing necessary shift operations on parallel pattern data is output.

〔実施例〕〔Example〕

本発明に係わるパターンシフト回路の一実施例を第1図
に示す。第1図において、1および3は第2および第1
のROM、2はレジスタ、4a〜4hは論理和をとるO
R回路である。
An embodiment of a pattern shift circuit according to the present invention is shown in FIG. In Figure 1, 1 and 3 are the second and first
ROM, 2 is a register, 4a to 4h are O to take the logical sum
This is an R circuit.

次にこのように構成された回路の動作について第1図、
第2図を用いて説明する。第2図(a)に示す並列のパ
ターンデータaはレジスタ2およびROM3に入力され
る。レジスタ2のクロック信号CLは、OR回路43〜
4hから出力される出カバターンデータdをメモリ等に
書き込む信号に同期させておき、レジスタ2の出カバタ
ーンデータはROMIに入力される。クロック信号CL
に同期して順次連続なパターンデータをレジスタ2とR
OM3に入力すると、ROMIにはROM3における一
時点前すなわち1ワード前のパターンデータが入力され
る。またシフトビット数(ワード長以内)を指定するデ
ータeもROM1.ROM3に入力される。ROMIと
ROM3に入力されるパターンデータおよびシフトビッ
ト数のデータeはROMI、ROM3のアドレスデータ
となり、このアドレスデータに応じた出カバターンデー
タc、b(第2図(01,(bl参照)がROM1.R
OM3から出力される。ROM3の出カバターンデータ
bとROMIの出カバターンデータCはOR回路43〜
4hで論理和がとられ、第2図(d)に示す出カバター
ンデータdとなって出力される。
Next, the operation of the circuit configured in this way is shown in Figure 1.
This will be explained using FIG. Parallel pattern data a shown in FIG. 2(a) is input to the register 2 and the ROM 3. The clock signal CL of the register 2 is output from the OR circuit 43 to
The output cover turn data d output from the register 4h is synchronized with a signal to be written into a memory or the like, and the output cover turn data of the register 2 is input to the ROMI. Clock signal CL
Continuous pattern data is sent to registers 2 and R in synchronization with
When input to OM3, pattern data at a point before, that is, one word before, in ROM3 is input to ROMI. Data e specifying the number of shift bits (within word length) is also stored in ROM1. It is input to ROM3. The pattern data and shift bit number data e input to ROMI and ROM3 become the address data of ROMI and ROM3, and the output pattern data c and b (see Figure 2 (01, (bl)) according to this address data are ROM1.R
Output from OM3. The output turn data b of ROM3 and the output turn data C of ROMI are connected to the OR circuit 43~
At step 4h, a logical sum is performed and the output pattern data d shown in FIG. 2(d) is output.

次に第2図(a)に示す並列のパターンデータaを例と
してこの回路の動作を説明する。第2図において、A、
Bはワードを表わし、ワードAはワードBの1時点前の
ワードである。第2図の例においては、シフトビット数
は3ビツトである。ROM3は、入力されたパターンデ
ータaとシフトビット数データeをアドレスデータとし
て、内部プログラムにより、出力するパターンデータb
を決定する。このパターンデータbは、第2図世)に示
すように、パターンデータaのワードAのビットb、〜
b4を3ビツト右にシフトしてす、〜b?ビットとし、
b0〜b2ビットの値を「0」としたものである。以下
同様な処理を繰り返してパターンデータaのビットb0
〜b4を3ビツト右にシフトしたパターンデータbを出
力する。なお、このパターンデータbはシフトを受けて
いるが、ワード自体はパターンデータaと同時点であり
、ワードがずれることはない。
Next, the operation of this circuit will be explained using parallel pattern data a shown in FIG. 2(a) as an example. In Figure 2, A,
B represents a word, and word A is a word immediately before word B. In the example of FIG. 2, the number of shift bits is 3 bits. ROM3 uses input pattern data a and shift bit number data e as address data, and outputs pattern data b according to an internal program.
Determine. This pattern data b includes bits b of word A of pattern data a, as shown in Figure 2).
Shift b4 to the right by 3 bits, ~b? As a bit,
The value of bits b0 to b2 is set to "0". Thereafter, similar processing is repeated to obtain bit b0 of pattern data a.
Output pattern data b obtained by shifting ~b4 to the right by 3 bits. Although this pattern data b has been shifted, the word itself is at the same point in time as pattern data a, and the word is not shifted.

ROMIは、■ワード遅れてパターンデータaが入力さ
れる。すなわち、第2図のワードBの時点において、R
OM3はワードBのデータを処理するが、ROMIは1
ワード遅れたワードAのデータを処理する。この1ワー
ド遅れたパターンデータaのワードAのデータを、同様
に、3ビツト右にシフトする。すなわち、パターンデー
タaのワードAのす、〜b?ビットのデータがパターン
データCのワードBのす、〜b2ビットのデータとなる
。パターンデータCのワードBのb3〜b、ビットの値
は「0」に設定される。以下同様な処理を繰り返してパ
ターンデータaのビットb、〜b、を3ビツト右にシフ
トしたパターンデータCを出力する。なお前述したよう
に、ROMIから出力されるパターンデータCはパター
ンデータaから1ワード遅れたパターンデータである。
The pattern data a is input to the ROMI with a delay of one word. That is, at the time of word B in FIG.
OM3 processes data in word B, but ROMI processes data in word B.
Process the data of word A that is delayed by a word. The data of word A of pattern data a delayed by one word is similarly shifted to the right by three bits. That is, word A of pattern data a is ~b? The bit data becomes the data of word B of pattern data C, .about.b2 bits. The values of bits b3 to b of word B of pattern data C are set to "0". Thereafter, similar processing is repeated to output pattern data C in which bits b, .about.b of pattern data a are shifted to the right by 3 bits. Note that, as described above, the pattern data C output from the ROMI is pattern data delayed by one word from the pattern data a.

次にOR回路4 a 〜4 hにおいて、ROMIの出
カバターンデータCとROM3の出カバターンデータb
との論理和をとると、第2図(d)に示すように、パタ
ーンデータaが右に3ビツトシフトした出カバターンデ
ータdを得ることができる。
Next, in the OR circuits 4a to 4h, the output cover turn data C of ROMI and the output cover turn data b of ROM3
As shown in FIG. 2(d), output pattern data d, in which pattern data a is shifted to the right by 3 bits, can be obtained.

上記の例はパターンデータaを右に3ビツトシフトして
出カバターンデータdとした場合であるが、左に3ビツ
トシフトする場合は、シフトビ。
In the above example, pattern data a is shifted to the right by 3 bits to obtain output pattern data d, but when shifted by 3 bits to the left, shift bit is used.

ト数のデータeを5ビツトと、して出カバターンデータ
dの2ワード目から有効とすればよい。
The data e representing the number of bits may be set to 5 bits, and the second word of the output pattern data d may be made valid.

(発明の効果〕 以上説明したように本発明は、並列のパターンデータが
入力されるレジスタと、シフト後の出力を予め設定する
ためのプログラムを有する第1のROMと第2(7)R
OMと、前記第1(7)ROMと第2のROMの出力の
論理和をとるOR回路とを設けることにより、入力され
たパターンデータをシフトして出力する場合の時間を短
くすることができる効果がある。
(Effects of the Invention) As described above, the present invention has a register into which parallel pattern data is input, a first ROM having a program for presetting the output after shifting, and a second (7) ROM.
By providing an OM and an OR circuit that takes the logical sum of the outputs of the first (7) ROM and the second ROM, the time required to shift and output the input pattern data can be shortened. effective.

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

第1図は本発明に係わるパターンシフト回路の一実施例
を示す回路図、第2図はこの回路の動作を説明するため
のデータ状態図である。 1.3・・・・ROM、2・・・・レジスタ、4a〜4
h・・・・OR回路。
FIG. 1 is a circuit diagram showing an embodiment of a pattern shift circuit according to the present invention, and FIG. 2 is a data state diagram for explaining the operation of this circuit. 1.3...ROM, 2...Register, 4a-4
h...OR circuit.

Claims (1)

【特許請求の範囲】[Claims] 並列のパターンデータが入力されるレジスタと、シフト
後の出力を予め設定するためのプログラムを有し、前記
並列のパターンデータとシフトビット数を表わす信号と
が入力される第1のROMと、シフト後の出力を予め設
定するためのプログラムを有し、前記レジスタの出力と
シフトビット数を表わす信号が入力される第2のROM
と、前記第1のROMと第2のROMの出力の論理和を
とるOR回路とを備え、前記並列のパターンデータに対
して必要なシフト操作を行ったパターンデータを出力す
ることを特徴とするパターンシフト回路。
a register into which parallel pattern data is input; a first ROM having a program for presetting the output after shifting; and into which the parallel pattern data and a signal representing the number of shift bits are input; a second ROM that has a program for presetting subsequent outputs and receives signals representing the output of the register and the number of shift bits;
and an OR circuit that takes the logical sum of the outputs of the first ROM and the second ROM, and outputs pattern data obtained by performing a necessary shift operation on the parallel pattern data. pattern shift circuit.
JP8654785A 1985-04-24 1985-04-24 Pattern shift circuit Pending JPS61246835A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8654785A JPS61246835A (en) 1985-04-24 1985-04-24 Pattern shift circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8654785A JPS61246835A (en) 1985-04-24 1985-04-24 Pattern shift circuit

Publications (1)

Publication Number Publication Date
JPS61246835A true JPS61246835A (en) 1986-11-04

Family

ID=13890028

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8654785A Pending JPS61246835A (en) 1985-04-24 1985-04-24 Pattern shift circuit

Country Status (1)

Country Link
JP (1) JPS61246835A (en)

Similar Documents

Publication Publication Date Title
JPH06111022A (en) Raster operation device
US4757444A (en) Vector processor capable of performing iterative processing
JPS6030973B2 (en) High speed pattern generator
JPS61246835A (en) Pattern shift circuit
JPS60101643A (en) Data processor
JPH01273132A (en) Microprocessor
JPS6279519A (en) General-use register reading method
JPH07191830A (en) Arithmetic unit
JPH0683618A (en) Flag control circuit
JPS59229659A (en) Data processing method
JPS62280794A (en) Control of character display
JP2518387B2 (en) Serial data transmission circuit
JP3331682B2 (en) Arithmetic unit
JPH01145730A (en) Data destination control system
JPH04172525A (en) Arithmetic device
JPH0448390A (en) Simulating method for logic circuit
JPH0683487A (en) Operation state setting system
JPS61138305A (en) Sequence control circuit
JPH0239376A (en) Logic circuit synthesizing device
JPH0685629A (en) Coincidence detecting circuit
JPS63262745A (en) Address forming circuit
JPH03187544A (en) Synchronizing processing lsi interface system
JPH03242724A (en) Digital arithmetic processing unit
JPH0535468A (en) Arithmetic unit
JPH027139A (en) Store data register selecting system