JPH0319733B2 - - Google Patents
Info
- Publication number
- JPH0319733B2 JPH0319733B2 JP60292096A JP29209685A JPH0319733B2 JP H0319733 B2 JPH0319733 B2 JP H0319733B2 JP 60292096 A JP60292096 A JP 60292096A JP 29209685 A JP29209685 A JP 29209685A JP H0319733 B2 JPH0319733 B2 JP H0319733B2
- Authority
- JP
- Japan
- Prior art keywords
- pulse
- bits
- data
- extraction
- holding
- 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
Links
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、直列データの各ビツト中から所望の
圧縮比に応じて所定順位のビツトを周期的に選別
し、圧縮データとしてから処理を行なう場合に用
いられる選別回路に関するものである。[Detailed Description of the Invention] [Field of Industrial Application] The present invention periodically selects bits of a predetermined order from each bit of serial data according to a desired compression ratio, and processes the bits as compressed data. The present invention relates to a selection circuit used in cases.
かゝる直列データの圧縮は、各種のデータ処理
に用いられており、従来は、直列データを並列デ
ータとしてからマイクロプロセツサ等のプロセツ
サ(以下、CPU)へ与え、こゝにおいて、所定
順位のビツトを周期的に選別してビツトの編集を
行なうと共に、データの欠落を防止するために、
ビツト間の合成処理を行ない、これらの結果に基
づき、あらかじめ定められたデータ処理を行なう
ものとなつている。
Such compression of serial data is used in various data processing. Conventionally, serial data is converted into parallel data and then sent to a processor such as a microprocessor (hereinafter referred to as CPU), where data is processed in a predetermined order. In addition to periodically selecting bits and editing them, in order to prevent data loss,
Synthesis processing is performed between bits, and predetermined data processing is performed based on these results.
しかし、従来の手法においては、与えられる直
列データが高速の場合、CPUによる圧縮処理に
高速演算を要すると共に、これに要する稼働負荷
量が増大し、他の処理へ充当できる許容負荷量が
減少するため、別途にCPU等を設けねばならず、
全般的に装置が高価となる問題を生ずる。
However, in conventional methods, when the serial data provided is high-speed, high-speed calculations are required for compression processing by the CPU, and the amount of operating load required for this increases, reducing the amount of allowable load that can be allocated to other processing. Therefore, it is necessary to separately install a CPU, etc.
This generally causes the problem that the equipment becomes expensive.
前述の問題を解決するため、本発明はつぎの手
段により構成するものとなつている。
In order to solve the above-mentioned problem, the present invention is constructed by the following means.
すなわち、直列データの各ビツトと同期したク
ロツクパルスに基づき所望の圧縮比に応じて前記
各ビツトから所定順位のビツトを周期的に抽出す
る圧縮比と対応する複数の抽出パルスを発生する
手段と、前記クロツクパルスに基づき抽出パルス
と別個のタイミングにより前記各ビツトから合成
するビツトをサンプリングする各抽出パルスと対
応した複数のサンプリングパルスを発生する手段
と、各抽出パルスおよびサンプリングパルスを各
個に選択する選択手段と、合成制御信号にしたが
い選択手段により選択されたサンプリングパルス
に応じ前記各ビツト中から合成するビツトを合成
の終了するまで保持する保持手段と、この保持手
段の保持出力と直列データとを合成する合成手段
と、選択手段により選択された抽出パルスに応じ
合成手段の出力を順次かつ直列に保持しこの保持
内容を並列データとして送出する直並列変換手段
とを備えたものである。 That is, means for generating a plurality of extraction pulses corresponding to a compression ratio for periodically extracting bits of a predetermined order from each bit in accordance with a desired compression ratio based on a clock pulse synchronized with each bit of the serial data; means for generating a plurality of sampling pulses corresponding to each extraction pulse for sampling bits to be synthesized from each bit at a timing different from the extraction pulse based on the clock pulse; and selection means for individually selecting each extraction pulse and the sampling pulse. , holding means for holding the bits to be synthesized from the respective bits until the synthesis is completed according to the sampling pulse selected by the selection means according to the synthesis control signal, and a synthesis unit for synthesizing the held output of the holding means and the serial data. and serial/parallel converting means for sequentially and serially holding the outputs of the synthesizing means in accordance with the extraction pulses selected by the selecting means and transmitting the held contents as parallel data.
したがつて、合成制御信号により保持手段を動
作状態とすれば、直列データ中から合成ビツトが
合成の終了するまで保持手段により保持され、こ
の保持出力と直列データとが合成されてから、直
並列変換手段により抽出すべきビツトのみが順次
かつ直列に保持されたうえ、並列データとして送
出されるため、これをCPUへ与えられることに
より、CPUが圧縮データの処理を直ちに行なう
ことができる。
Therefore, when the holding means is activated by the synthesis control signal, the synthesis bits from the serial data are held by the holding means until the synthesis is completed, and after this holding output and the serial data are combined, the serial and parallel bits are Since only the bits to be extracted by the conversion means are held sequentially and serially and sent out as parallel data, by giving this to the CPU, the CPU can immediately process the compressed data.
また、選択手段の選択状況設定により、抽出ビ
ツトおよび合成ビツトの順位決定が自在であり、
圧縮比を任意に選定できると共に、合成制御信号
により合成作用の停止も自在となる。 In addition, the order of extracted bits and synthesized bits can be determined freely by setting the selection status of the selection means.
The compression ratio can be arbitrarily selected, and the combining operation can also be stopped using the combining control signal.
以下、実施例を示す図によつて本発明の詳細を
説明する。
Hereinafter, details of the present invention will be explained with reference to figures showing examples.
第1図はブロツク図、第2図は第1図における
各部の状況を示すタイミングチヤートであり、第
1図においては、直列データDT(a)が与えられて
いると共に、これの各ビツトと同期したクロツク
パルスCLKが与えられており、同パルスCLKに
基づき、カウンタまたはメモリ等によるパルス発
生器(以下、PG)1が、直列データDT(a)の各
ビツトから所望の圧縮比に応じて所定順位のビツ
トを抽出する抽出パルスPl〜Poを各圧縮比毎に発
生すると共に、これらの抽出パルスPl〜Poとは別
個のタイミングにより、直列データDT(a)の各ビ
ツトから合成するビツトをサンプリングするため
の、各抽出パルスPl〜Poと対応したサンプリング
パルスORl〜ORoを発生している。 Figure 1 is a block diagram, and Figure 2 is a timing chart showing the status of each part in Figure 1. In Figure 1, serial data DT(a) is given, and each bit of this is synchronized. Based on the clock pulse CLK, a pulse generator (hereinafter referred to as PG) 1 using a counter or memory etc. sorts each bit of the serial data DT(a) into a predetermined order according to a desired compression ratio. Extraction pulses P l to P o are generated for each compression ratio, and are synthesized from each bit of the serial data DT(a) at a timing different from these extraction pulses P l to P o . For sampling bits, sampling pulses OR l -OR o corresponding to each extraction pulse P l -P o are generated.
また、PG1は、サンプリングパルスORl〜
ORoにより保持したビツトの内容をクリアするた
めに用いるリセツトパルスRSl〜RSoも、サンプ
リングパルスORl〜ORoと対応して同様に発生し
ている。 Also, PG1 is the sampling pulse OR l ~
Reset pulses RS l -R o used to clear the contents of the bits held by OR o are also generated in the same way as the sampling pulses OR l -OR o .
これらの各パルスPl〜Po,ORl〜ORo,RSl〜
RSoは、制御データDCにより制御されるセレク
タ(以下、SEL)2〜4において、各個に選択さ
れ、または、送出が阻止されるものとなつてお
り、PG1も同データDCにより動作状況が規正さ
れるものとなつている。 Each of these pulses P l ~ P o , OR l ~ OR o , RS l ~
RS o is individually selected or prevented from being sent out by selectors (hereinafter referred to as SEL) 2 to 4 controlled by control data DC, and the operating status of PG1 is also regulated by the same data DC. It has become something that is done.
一方、直列データDT(a)は、保持手段として用
いるD形フリツプフロツプ回路(以下、FFC)
5のデータ入力へSEL10を介して与えられてお
り、SEL3により選択されたサンプリングパルス
(b)がクロツク入力CKへ与えられているため、こ
れに応じて直列データDT(a)のビツトがサンプリ
ングされてFFC5により保持され、出力Qから
保持出力(c)として送出されるものとなり、これが
合成手段としてのORゲート6により直列データ
DT(a)と合成され、合成出力(d)となつてシフトレ
ジスタ等の直並列変換器(以下、S/P)7へ与
えられる。 On the other hand, the serial data DT(a) is stored in a D-type flip-flop circuit (hereinafter referred to as FFC) used as a holding means.
5 data input via SEL10 and selected by SEL3.
(b) is applied to the clock input CK, the bits of the serial data DT(a) are sampled and held by the FFC5, and are sent out from the output Q as the holding output (c). This is serial data by OR gate 6 as a synthesis means.
It is combined with DT (a), becomes a combined output (d), and is applied to a serial/parallel converter (hereinafter referred to as S/P) 7 such as a shift register.
すると、S/P7には、SEL2により選択され
た抽出パルス(e)がシフトパルスとして与えられて
おり、合成出力(d)の各ビツトがS/P7の初段か
ら最終段にかけて順次にかつ直列に保持され、こ
れら各段の保持内容が並列データとしてCPU8
へ送出されるため、以上の動作を周期的に反復す
ることにより、直列データDT(a)が圧縮データと
なつてCPU8へ与えられる。 Then, the extraction pulse (e) selected by SEL2 is given to the S/P7 as a shift pulse, and each bit of the composite output (d) is sequentially and serially transmitted from the first stage to the last stage of the S/P7. The content held in each stage is stored as parallel data in the CPU 8.
By periodically repeating the above operations, the serial data DT(a) becomes compressed data and is supplied to the CPU 8.
たヾし、FFC5を動作状態とし合成作用を行
なう場合は、合成制御信号SCが「L」(低レベ
ル)となつており、ORゲート9を介しSEL4に
より選択されたリセツトパルス(g)がFFC5のク
リア入力CLへ与えられているため、合成するビ
ツトを合成の終了するまでFFC5が保持した後、
リセツトパルス(g)によりFFC5がクリアされる
ものとなつている。 However, when the FFC5 is in the operating state and a synthesis operation is performed, the synthesis control signal SC is "L" (low level), and the reset pulse (g) selected by SEL4 via the OR gate 9 is applied to the FFC5. Since the bits to be synthesized are held by the FFC5 until the synthesis is completed,
The FFC5 is cleared by the reset pulse (g).
第2図Aは、圧縮比を1/1とした場合であ
り、この際は制御データDCによりSEL2が抽出
パルスPlを選択すると共に、SEL3,4が送出を
停止しており、かつ、合成制御信号SCが「H」
(高レベル)であり、FFC5がクリア状態を維持
し、保持出力(c)がクリアされているため、直列デ
ータDT(a)はORゲート6を介し、そのまま出力
(d)として送出され、抽出パルス(e)に応じて出力(d)
の各ビツト「1」〜「12」がS/P7の内容を(f)
に示すとおり、直列データDT(a)と同一順位によ
り保持され、これらの中の所定ビツト数づつが逐
並列データとなる。 Fig. 2A shows the case where the compression ratio is set to 1/1. In this case, SEL2 selects the extraction pulse P l according to the control data DC, SEL3 and SEL4 stop sending out, and Control signal SC is “H”
(high level), FFC5 maintains a clear state, and hold output (c) is cleared, so serial data DT(a) is output as is through OR gate 6.
(d) and output (d) according to the extraction pulse (e)
Each bit “1” to “12” indicates the contents of S/P7 (f)
As shown in FIG. 2, the data is held in the same order as the serial data DT(a), and a predetermined number of bits among these become serial and parallel data.
第2図Bは、圧縮比を1/2とした場合であ
り、SEL2により抽出パルスP2が選択されるほ
かは前述と同様であり、抽出パルス(e)に応じ、出
力(d)のビツト「1」、「3」……「11」のみがS/
P7により保持され、これらが同様に並列データ
となる。 Figure 2B shows the case where the compression ratio is set to 1/2, and is the same as above except that extraction pulse P 2 is selected by SEL2, and the bit of output (d) is changed according to extraction pulse (e). Only "1", "3"..."11" is S/
P7 is held, and these similarly become parallel data.
第2図Cは、圧縮比を2/3とした場合であ
り、SEL2により抽出パルスP3が選択されるほ
かは(A),(B)と同様であり、抽出パルス(e)に応じ、
出力(d)のビツト「1」、「2」、「4」、「5」〜
「10」、「11」のみがS/P7により保持される。 Figure 2C shows the case where the compression ratio is set to 2/3, and is the same as (A) and (B) except that extraction pulse P 3 is selected by SEL2, and according to extraction pulse (e),
Output (d) bits “1”, “2”, “4”, “5” ~
Only "10" and "11" are held by the S/P7.
第2図Dは、(C)において合成作用を行なう場合
であり、この際はSEL3がサンプリングパルス
OR3を選択し、SEL4がリセツトパルスRS3を選
択すると共に、合成制御信号SCが「L」となつ
ており、サンプリングパルス(b)に応じてFFC5
が直列データDT(a)の各ビツト「1」〜「12」か
ら「3」、「6」〜「12」を保持し、かつ、リセツ
トパルス(g)にしたがい保持内容のクリアを行なう
ためサンプリングパルス(b)が生じてからリセツト
パルス(g)が生ずるまでの間のみ保持出力(c)が送出
され、これらがORゲート6において直列データ
DT(a)の抽出されるビツト中先位のものと合成さ
れ、合成出力(d)の各ビツトは「2」、「3+4」、
「5」、「6+7」〜「12+3」となり、これらか
ら、抽出パルス(e)に応じ、S/P7によりビツト
「2」、「3+4」〜「9+10」、「11」が順次かつ
直列に保持され、ビツト「3」、「6」〜「12」の
除去によるデータの欠落、エラーの発生等が阻止
される。 Figure 2D shows the case where the synthesis action is performed in (C), and in this case, SEL3 is the sampling pulse.
OR 3 is selected, SEL4 selects reset pulse RS 3 , and the composite control signal SC is "L", and FFC5 is set according to sampling pulse (b).
holds each bit “1” to “12” to “3” and “6” to “12” of the serial data DT(a), and performs sampling to clear the held contents according to the reset pulse (g). The holding output (c) is sent out only from the time when the pulse (b) occurs until the reset pulse (g) occurs, and these outputs are converted into serial data at the OR gate 6.
It is combined with the first extracted bit of DT (a), and each bit of the combined output (d) is "2", "3+4",
``5'', ``6+7'' to ``12+3'', and from these bits ``2'', ``3+4'' to ``9+10'', and ``11'' are sequentially and serially held by the S/P7 according to the extraction pulse (e). This prevents data loss and errors from occurring due to the removal of bits "3", "6" to "12".
したがつて、CPU8は、直列データDTの圧縮
処理およびビツト合成処理を行なう必要がなく、
本来のデータ処理のみを行なえばよいものとな
り、演算速度の低減および稼働負荷量の低減が実
現し、CPU8として安価なものを適用できると
共に、他の必要とする処理との兼用とすることも
自在となる。 Therefore, the CPU 8 does not need to perform compression processing and bit synthesis processing on the serial data DT.
Only the original data processing needs to be performed, reducing calculation speed and operating load, making it possible to use an inexpensive CPU 8, and also allowing it to be used for other required processing. becomes.
一方、SEL10には、他のデータODTも与え
られており、制御データDCによりSEL10を制
御し、他のデータODT選択させれば、これが
FFC5により上述と同様に保持されたうえ、直
列データDTと合成されるため、直列データDT
中の所定ビツトと任意な他のデータODTとの合
成が自在となり、画像処理等において便利とな
る。 On the other hand, other data ODT is also given to SEL10, and if SEL10 is controlled by control data DC and other data ODT is selected, this can be changed.
The serial data DT is held by FFC5 in the same way as above and is combined with the serial data DT.
It becomes possible to freely combine predetermined bits in the data with any other data ODT, which is convenient for image processing and the like.
たヾし、SEL2〜4,10としては、ゲートの
組み合せ等を用いてもよく、FFC5にラツチ回
路またはメモリ等を用い、サンプリングパルスを
保持期間にわたるパルス幅のものとし、ラツチ回
路、メモリ等のイネーブル端子またはチツプセレ
クト端子あるいは同等の端子へ印加すると共に、
リセツトパルスRSl〜RSoの発生、および、SEL
4、ORゲート9を省略しても同様であり、OR
ゲート6として他の論理和回路を用いてもよく、
S/P7にメモリ等に用いることもできる。 However, for SEL2 to SEL4, 10, a combination of gates, etc. may be used, a latch circuit or memory, etc. is used for FFC5, the sampling pulse has a pulse width that spans the holding period, and the latch circuit, memory, etc. applied to the enable terminal or chip select terminal or equivalent terminal, and
Generation of reset pulses RS l to RS o and SEL
4. It is the same even if OR gate 9 is omitted, and OR gate 9 is omitted.
Other OR circuits may be used as the gate 6,
It can also be used as a memory in the S/P7.
また、各パルスPl〜Po,PRl〜ORoの発生タイ
ミングは、圧縮比および合成ビツトの順位選定に
応じて定めればよい等、種々の変形が自在であ
る。 Further, the generation timing of each pulse P l to P o and PR l to OR o can be determined in various ways depending on the compression ratio and the order of the synthesized bits.
以上の説明により明らかなとおり本発明によれ
ば、直列データを圧縮してからデータ処理を行な
う場合、CPUがデータ処理のみを行なえばよい
ものとなり、CPUの稼働負荷量が減少すると共
に、これの高速演算処理が不要となり、安価に装
置を構成することができるため、直列データを圧
縮してからCPUへ与える各種の用途において顕
著な効果が得られる。
As is clear from the above explanation, according to the present invention, when data processing is performed after compressing serial data, the CPU only needs to process the data, which reduces the operating load of the CPU and Since high-speed arithmetic processing is not required and the device can be configured at a low cost, it can provide remarkable effects in various applications where serial data is compressed and then fed to the CPU.
図は本発明の実施例を示し、第1図はブロツク
図、第2図は第1図における各部の状況を示すタ
イミングチヤートである。
1……PG(パルス発生器)、2〜4……SEL(セ
レクタ)、5……FFC(フリツプフロツプ回路)、
6,9……ORゲート、7……S/P(直並列変
換器)、DT……直列データ、CLK……クロツク
パルス、SC……合成制御信号。
The figures show an embodiment of the present invention; FIG. 1 is a block diagram, and FIG. 2 is a timing chart showing the status of each part in FIG. 1. 1...PG (pulse generator), 2-4...SEL (selector), 5...FFC (flip-flop circuit),
6, 9...OR gate, 7...S/P (serial to parallel converter), DT...serial data, CLK...clock pulse, SC...combined control signal.
Claims (1)
ルスに基づき所望の圧縮比に応じて前記各ビツト
から所定順位のビツトを周期的に抽出する前記圧
縮比と対応する複数の抽出パルスを発生する手段
と、前記クロツクパルスに基づき前記抽出パルス
と別個のタイミングにより前記各ビツトから合成
するビツトをサンプリングする前記各抽出パルス
と対応した複数のサンプリングパルスを発生する
手段と、前記各抽出パルスおよびサンプリングパ
ルスを各個に選択する選択手段と、合成制御信号
にしたがい前記選択手段により選択されたサンプ
リングパルスに応じ前記各ビツト中から合成する
ビツトを合成の終了するまで保持する保持手段
と、該保持手段の保持出力と前記直列データとを
合成する合成手段と、前記選択手段により選択さ
れた抽出パルスに応じ前記合成手段の出力を順次
かつ直列に保持し該保持内容を並列データとして
送出する直並列変換手段とを備えたことを特徴と
する直列データ選別回路。1. means for generating a plurality of extraction pulses corresponding to the compression ratio for periodically extracting bits of a predetermined order from each of the bits according to a desired compression ratio based on a clock pulse synchronized with each bit of the serial data; means for generating a plurality of sampling pulses corresponding to each of the extraction pulses for sampling a bit to be synthesized from each of the bits at a timing different from the extraction pulse based on a clock pulse; and means for individually selecting each of the extraction pulses and the sampling pulse. a selection means, a holding means for holding a bit to be synthesized from among the bits until the synthesis is completed according to a sampling pulse selected by the selection means according to a synthesis control signal, and a holding output of the holding means and the serial data. and a serial-to-parallel conversion means for sequentially and serially holding the output of the combining means in accordance with the extraction pulse selected by the selecting means and transmitting the held content as parallel data. Characteristic serial data selection circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP29209685A JPS62152224A (en) | 1985-12-26 | 1985-12-26 | Serial data selecting circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP29209685A JPS62152224A (en) | 1985-12-26 | 1985-12-26 | Serial data selecting circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62152224A JPS62152224A (en) | 1987-07-07 |
| JPH0319733B2 true JPH0319733B2 (en) | 1991-03-15 |
Family
ID=17777490
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP29209685A Granted JPS62152224A (en) | 1985-12-26 | 1985-12-26 | Serial data selecting circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS62152224A (en) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5387134A (en) * | 1977-01-12 | 1978-08-01 | Hitachi Ltd | Information processing unit |
-
1985
- 1985-12-26 JP JP29209685A patent/JPS62152224A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62152224A (en) | 1987-07-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4136429B2 (en) | Semiconductor device | |
| DE3786910T2 (en) | Encryption system. | |
| EP0334357A2 (en) | Pulse insertion circuit | |
| DE3887249T2 (en) | Digital multiplexer. | |
| JPH0738166B2 (en) | Read circuit of multi-phase memory array | |
| JPH0777356B2 (en) | Series / parallel converter | |
| JPH0319733B2 (en) | ||
| EP0582311A2 (en) | Parallel-serial data converter | |
| JP2909218B2 (en) | Period generator for semiconductor test equipment | |
| EP0409168A2 (en) | Elastic store memory circuit | |
| JPH05145519A (en) | Digital correlation device | |
| EP0117357A2 (en) | Digital signal composing circuits | |
| DE69219494T2 (en) | Decoding device for codes of variable length | |
| JP3103746B2 (en) | Semiconductor delay device | |
| KR920004439Y1 (en) | Data converting circuit | |
| JPH03222539A (en) | Start bit detection circuit | |
| JP2556004B2 (en) | Multiplex timer | |
| JPS62243428A (en) | Code generating circuit | |
| JP2937097B2 (en) | Parity check circuit method | |
| JPH0134493B2 (en) | ||
| JPH04157831A (en) | Superposed signal inserting circuit | |
| JPH0758950B2 (en) | Frame aligner circuit | |
| JPS6132867B2 (en) | ||
| JPH0814814B2 (en) | Buffer control method | |
| JPH0581096B2 (en) |