JPH01255922A - Semiconductor integrated circuit - Google Patents
Semiconductor integrated circuitInfo
- Publication number
- JPH01255922A JPH01255922A JP8451688A JP8451688A JPH01255922A JP H01255922 A JPH01255922 A JP H01255922A JP 8451688 A JP8451688 A JP 8451688A JP 8451688 A JP8451688 A JP 8451688A JP H01255922 A JPH01255922 A JP H01255922A
- Authority
- JP
- Japan
- Prior art keywords
- parallel data
- register
- data
- input
- value
- 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
Links
- 239000004065 semiconductor Substances 0.000 title claims description 28
- 230000003247 decreasing effect Effects 0.000 abstract 1
- 238000000034 method Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000013500 data storage Methods 0.000 description 3
- 239000013256 coordination polymer Substances 0.000 description 2
- 241000270730 Alligator mississippiensis Species 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Landscapes
- Bus Control (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野J
この発明は、入力されるシリアルデータを処理する半導
体集積回路に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application J This invention relates to a semiconductor integrated circuit that processes input serial data.
〔従来の技術J
第7図は、例えば日本電気株式会社製シグナルプロセッ
サμPD7720ユーザース°マニュアルに示された半
導体集積回路の概略を示す構成図である。図において、
(1)はシリアルデータ(s工)が入力されるシリアル
データ入力端子、(2)はシリアルデータをパラレルデ
ータ(FD)に変換するシフトレジスタ、(33)はパ
ラレルブータラ格納スル入力レジスタ、(34)はこの
入力レジスタ(33) Kパラレルデータが格納された
ことを示すフラグレジスタ、(6)はc P U 、
(7)はデータバス、(8)は記憶装置、(11)は半
導体集積回路全体である。[Prior Art J] FIG. 7 is a block diagram schematically showing a semiconductor integrated circuit shown in, for example, a user's manual for a signal processor μPD7720 manufactured by NEC Corporation. In the figure,
(1) is a serial data input terminal into which serial data (S) is input, (2) is a shift register that converts serial data to parallel data (FD), (33) is a parallel booter storage input register, ( 34) is this input register (33) A flag register indicating that K parallel data has been stored, (6) is c P U ,
(7) is a data bus, (8) is a storage device, and (11) is the entire semiconductor integrated circuit.
次に動作について説明する。データ処理の対象となる入
力データは、シリアルデータとして、シリアルデータ入
力端子(1)を介してシフトレジスタ(2)に入力され
る。シフトレジスタ(2)は、ンリ7 )vデータが入
力される度に順次1ビツトずつシフトを行い、あらかじ
め指定されているビット数(kビット)のシリアルデー
タが入力されると、kビット長の1ワードパヲレμテ°
−夕として、入力レジスタ(33)に出力する。入力レ
ジスタ(33)Kパラレルデータが格納されると、これ
を示す信号(STR)がフラグレジスタ(34)に入力
され、フラグレジスタ(34)はセット状態になる。c
p U (6)はフラグレジスタ(34) 全監視し
ておシ、フラグレジスタ(34)のセット状態によシ、
入力レジスタ(33)にパラレルデータが格納された事
を検出する。そしてCP U (6)は、入力レジスタ
(33)に格納されているパラレルデータをデータバス
(7) K読みだシ、データ処理を行う。Next, the operation will be explained. Input data to be subjected to data processing is input as serial data to a shift register (2) via a serial data input terminal (1). The shift register (2) sequentially shifts one bit each time data is input, and when a pre-specified number of bits (k bits) of serial data is input, it shifts the serial data of k bits long. 1 word paworeμte°
- Output to the input register (33) as an output. When the K parallel data is stored in the input register (33), a signal (STR) indicating this is input to the flag register (34), and the flag register (34) becomes set. c.
p U (6) monitors all of the flag registers (34) and changes depending on the set state of the flag registers (34).
It is detected that parallel data is stored in the input register (33). Then, the CPU (6) reads out the parallel data stored in the input register (33) through the data bus (7) and performs data processing.
上記構成では入力レジスタ(33)に複数のパラレルデ
ータを格納することが出来ないため、CPU(6)は次
のパラレルデータが入力されるまでに、入力レジスタ(
33)から格納されているパラレルデータを読みだして
処理を行う。In the above configuration, it is not possible to store multiple parallel data in the input register (33), so the CPU (6) will not be able to store the input register (33) until the next parallel data is input.
33) and processes the stored parallel data.
また第7図におけるフラグレジスタ(34)を割り込み
回路で構成し、パラレルデータが入力レジスタ(33)
に格納されるたびにCP U (6)に対し割り込みを
発生する方式をとる半導体集積回路もある。In addition, the flag register (34) in Fig. 7 is configured with an interrupt circuit, and the parallel data is input to the input register (33).
There is also a semiconductor integrated circuit that generates an interrupt to the CPU (6) every time data is stored in the CPU (6).
次に従来の半導体集積回路で、パラレルデータを複数(
n個)同時に用いるフレーム処理等を行う場合の動作に
ついて、第4図のフローチャートを参照しながらステッ
プごとの説明する。Next, with conventional semiconductor integrated circuits, multiple pieces of parallel data (
The operation when performing frame processing, etc. that are used simultaneously will be explained step by step with reference to the flowchart in FIG.
■ステップ(22)
半導体集積回路(11)は、まず内蔵記憶装置に啓き込
まれたプログラム又は外部よシ読み込んだプログラムに
よシデータ処理に必要なパフレルデ−゛りの数nが指定
される。(2) Step (22) First, in the semiconductor integrated circuit (11), the number n of puff relative days required for data processing is specified by a program stored in the built-in storage device or a program read from an external device.
■ステップ(23)
CP U (6)は7ヲグレジスタ(34)の監視を行
いデータが入力されるのを待つ。あらかじめ指定されて
いるビット数(kビット)のシリアルデータが入力され
ると、シフトレジスタ(2)はこのにビットのシリアル
データをにビットを1ワードとするパラレルデータに変
換して、入力レジスタ(33)に出力する。(2) Step (23) The CPU (6) monitors the 7Wog register (34) and waits for data to be input. When a pre-specified number of bits (k bits) of serial data is input, the shift register (2) converts the serial data of each bit into parallel data in which each bit is one word, and transfers the data to the input register (2). 33).
■ステップ(24)
入力レジスタ(33)にパラレルデータが格納されると
フラグレジスタ(34)はセット状態になる。CP U
(6)はフラグレジスタ(34)のセット状態を検出
すると実行中の処理を中断して割り込み処理に移る。(2) Step (24) When the parallel data is stored in the input register (33), the flag register (34) becomes set. CPU
When (6) detects the set state of the flag register (34), it interrupts the process being executed and moves to interrupt processing.
■ステップ(25)
CP U (6)は入力レジスタ(33)から記憶装置
(8)へ/< ラl/ A/ データの転送を行う。そ
してデータ転送ヲ次のパラレルデータが入力レジスタ(
33)ニ入力されるまでに終え、データ転送の終了後、
前記中断した処理を再開する。■Step (25) The CPU (6) transfers data from the input register (33) to the storage device (8). Then, after data transfer, the next parallel data is input to the input register (
33) After completing the data transfer by the time 2 is input,
Resume the interrupted process.
■ステップ(26)
ステップ(25)の終了後、入力されるパラレルデータ
の数がnに満たないときはステップ(23)に戻り、次
のパラレルデータが入力されるのを、待つ。(2) Step (26) After completing step (25), if the number of input parallel data is less than n, the process returns to step (23) and waits for the next parallel data to be input.
CP U (6)は、ステップ(23)からステップ(
26)までの動作をn個のパラレルデータの入力処理が
終了するまで繰シ返す。The CPU (6) performs steps from step (23) to step (
The operations up to step 26) are repeated until the input processing of n pieces of parallel data is completed.
そしてn個のパラレルデータの入力処理が終了してから
、次のステップ(27)にすすむ。After the input processing of n pieces of parallel data is completed, the process proceeds to the next step (27).
■ステップ(27)
パラレルデータを同時にn個用いたデータ処理を行い、
第4図のフローチャートに示すデータ処理1サイクルを
終了する。■Step (27) Perform data processing using n pieces of parallel data at the same time,
One cycle of data processing shown in the flowchart of FIG. 4 is completed.
この第4図のフローチャートに示す■ステップから■ス
テップまでの1サイクルのデータ処理が、繰)返し続け
て複数サイクル行われる場合のCPU(6)の動作につ
いて示したのが第6図である。FIG. 6 shows the operation of the CPU (6) when one cycle of data processing from step (1) to step (2) shown in the flowchart of FIG. 4 is repeatedly performed for a plurality of cycles.
第6図に於て(28)はデータ処理、(29)は割り込
み、(32)はデータ読みだし及びデータ数の判定、(
31)は割り込み処理からの復帰である。In FIG. 6, (28) is data processing, (29) is an interrupt, (32) is data reading and determination of the number of data, (
31) is a return from interrupt processing.
従来の半導体集積回路では以上のように構成されている
ので、次のにビットのシリアルデータが入力されlワー
ドのパラレルデータに変換されるまでに、入力レジスタ
に格納されているパラレルデータを読みてし記憶装置に
データを転送する必要がある。Conventional semiconductor integrated circuits are configured as described above, so that the parallel data stored in the input register must be read before the next bit of serial data is input and converted to l-word parallel data. The data must then be transferred to a storage device.
nワード単位のフレーム処理等の場合には、必要とする
υ個の前記パラレルデータがすべてそろってから読み出
せばよく、個々のパラレルデータが入力されるたびに割
夛込みを発生して実行中の処理を中断しデータ伝送を行
う必要がない。しかし従来の半導体集積回路を用いた場
合では、第6図の従来の半導体集積回路によるCPUの
動作に示すように、新たなパラレルデータが入力される
たびに割り込み(29)を発生して実行中の処理を中断
し、データ転送とパラレルデータの数が必要な数コそろ
ったかどうかの判定(32)を行なう必要がめる。この
処理のためデータ処理システムの高速化がはかれなくま
たソフトウェアの負荷が大さくなるという問題点があっ
た。In the case of frame processing in units of n words, it is only necessary to read out the necessary υ pieces of parallel data after they have all been collected, and an interrupt is generated each time each parallel data is input during execution. There is no need to interrupt processing and transmit data. However, when using a conventional semiconductor integrated circuit, as shown in Figure 6, which shows the operation of a CPU using a conventional semiconductor integrated circuit, an interrupt (29) is generated every time new parallel data is input. It is necessary to interrupt the processing and determine whether the required number of data transfer and parallel data has been obtained (32). This processing has the problem of not being able to speed up the data processing system and increasing the load on the software.
本発明は、上記のような問題点を解決するためになされ
たもので、ソフトウェアの負荷を減らすとともにデータ
処理システムの高速化を実現する半導体集積回路を得る
ことを目的とする。The present invention has been made to solve the above-mentioned problems, and aims to provide a semiconductor integrated circuit that reduces the software load and realizes a faster data processing system.
[課題を解決するための手段」
この発明に係る半導体集積回路は、シフトレジスタによ
シリアルデータから変換されるパラレルデータを任意の
数格納するファーストインファーストアウトバッファを
持つ。また、特許請求第1項記載の半導体集積回路では
、割り込み発生ワード数を蓄える書換え可能なレジスタ
と、別記ファーストインファーストアウトバッファに格
納されている前記パラレルデータの数と前記レジスタの
設定値とを比較し前記パラレルデータの数が前記レジス
タの設定値と等しいか又は大きくなった時点で外部の又
は内蔵さnるCPUに対し割9込み信号を与える比較器
とを設けたものである。また、特許請求第3項記載の半
導体集積回路では、転送開始ワード数を蓄える書換え可
能なレジスタと、前記ファーストインファーストアウト
バッファに格納されている前記パラレルデータの数と前
記レジスタの設定値とを比較し前記パラレルデータの数
が前記レジスタの設定値と等しいか又は大きくなった時
点で外部の又は内蔵される直接メモリアクセス制御回路
に直接メモリアクセス要求信号を与える比較器とを設け
たものである。[Means for Solving the Problems] A semiconductor integrated circuit according to the present invention has a first-in first-out buffer that stores an arbitrary number of parallel data converted from serial data by a shift register. Further, the semiconductor integrated circuit according to claim 1 includes a rewritable register that stores the number of interrupt generation words, and a set value of the register and the number of parallel data stored in a separate first-in first-out buffer. A comparator is provided which compares the number of parallel data and provides an interrupt signal to an external or built-in CPU when the number of parallel data becomes equal to or larger than the set value of the register. Further, in the semiconductor integrated circuit according to claim 3, a rewritable register that stores the number of transfer start words, and a set value of the register and the number of parallel data stored in the first-in-first-out buffer are provided. and a comparator that provides a direct memory access request signal to an external or built-in direct memory access control circuit when the number of parallel data is equal to or larger than the set value of the register. .
[作用J
この発明に於ける上記比較器は、上記ファーストインフ
ァーストアウトバッファに格納されたパラレルデータの
数と上記レジスタの設定値を比較し、その数が設定値以
上になった時点で、CPUに割り込みを要求する、もし
くは直接メモリアクセス制御回路に直接メモリアクセス
要求をすることで、複数のパラレルデータを同時にフレ
ーム処理をする。[Operation J] The comparator in this invention compares the number of parallel data stored in the first-in first-out buffer with the set value of the register, and when the number exceeds the set value, the CPU Multiple parallel data frames can be processed simultaneously by requesting an interrupt to the controller or directly requesting memory access to the direct memory access control circuit.
〔実施例」
以下この発明の一実施例を第1図は特許請求の範囲第1
項記載の半導体集積回路の一実施例の概略を示す構成図
である。[Embodiment] An embodiment of the present invention will be described below in Fig. 1.
1 is a configuration diagram schematically showing an embodiment of the semiconductor integrated circuit described in 1.
図において、(1)はシリアルデータ(Sl)が入力さ
れるシリアルデータ入力端子、(2)はシリアルデータ
をパラレルデータ(PD)に変換するシフトレジスタ、
(3)はパラレルデータを入力順に複数個格納スるファ
ーストインファーストアウトバッファ、(4)は割り込
み発生ワード数を蓄える書換え可能なレジスタ、(5)
はファーストインファーストアウトバッファ(3)に格
納されている前記パラレルデータの数とレジスタ(4)
の設定値とを比較しパラレルデータの数がレジスタ(4
)の設定値と等しいか又は大きくなった時点でCP U
(6)に対し割り込み信号を与える比較器、(6)は
c P U 、 (7)はデータバス、(8)は記憶装
置、(9)は比較用のパラレルデータの値が設定される
比較値レジスタ、(lO)はシフトレジスタ(2)によ
シ変換されるパラレルデータ(pD)の値と比較値レジ
スタ(9)の設定値とを比較し等しい時にCP U (
6)に対し信号を与える比較器、(11)は半導体集積
回路全体である。In the figure, (1) is a serial data input terminal into which serial data (Sl) is input, (2) is a shift register that converts serial data into parallel data (PD),
(3) is a first-in-first-out buffer that stores multiple pieces of parallel data in input order; (4) is a rewritable register that stores the number of interrupt generation words; (5)
is the number of parallel data stored in the first-in first-out buffer (3) and the register (4)
The number of parallel data is compared with the setting value of register (4).
) is equal to or larger than the set value of CPU
(6) is a comparator that provides an interrupt signal to (6), (6) is cPU, (7) is a data bus, (8) is a storage device, and (9) is a comparison device where the value of parallel data for comparison is set. The value register (lO) compares the value of the parallel data (pD) converted by the shift register (2) and the setting value of the comparison value register (9), and when they are equal, the CPU (
6), and (11) is the entire semiconductor integrated circuit.
次に動作について説明する。まず内蔵記憶装置に書き込
まれたプログラム又は外部よシ読み込まれたプログラム
にょシ、割り込みを発生するパフレ/I/データの数り
が指定され、その値nがレジスタ(4)に設定される。Next, the operation will be explained. First, in a program written in the built-in storage device or a program read externally, the number of Puffle/I/data that generates an interrupt is specified, and the value n is set in the register (4).
前記Mryは、ファーストインファーストアウトバッフ
ァ(3) K格納できる上限の数[nまでの値を指定出
来る。半導体集積回路(11)に入力されるシリアルデ
ータは、シフトレジスタ(2)において、lワードがあ
らかじめ指定されているビット長のパラレルデータに変
換され、ファーストインファーストアウトバッファ(3
)に格納される。ファーストインファーストアウトバッ
ファ(3)ハ、パラレルデータをm(1以上の整数)個
まで複数個格納することができ、格納されて込るパラレ
ルデータの数1(0≦i6m)は、比較器(5)に知ら
される。比較器(5ンは、数iと設定値υとを比較し、
数1が設定値nと等しbか又は大きくなった時点でCP
t7(6)K対し割り込み信号(INT)を与える。C
P U (6)は割り込み信号(INT )を受は取る
と、ファーストインファーストアウトバッファ(3)に
格納されているパラレルデータをテ°−タパス(7)に
読み出しデータ処理を行う。The above Mry can specify a value up to the upper limit number [n] that can be stored in the first-in first-out buffer (3) K. Serial data input to the semiconductor integrated circuit (11) is converted into parallel data with a predetermined bit length of l words in the shift register (2), and then sent to the first-in-first-out buffer (3).
). First-in-first-out buffer (3) C. Can store multiple pieces of parallel data up to m (an integer greater than or equal to 1), and the number of stored parallel data (1 (0≦i6m)) can be stored in the comparator ( 5) will be informed. Comparator (5) compares the number i and the set value υ,
When the number 1 becomes equal to the set value n or becomes larger, CP
Give an interrupt signal (INT) to t7(6)K. C
When the P U (6) receives the interrupt signal (INT), it reads the parallel data stored in the first-in-first-out buffer (3) to the data path (7) and performs data processing.
またシフトレジスタ(2)に於て変換されたパラレ/S
/7″−夕の値は比ff器(10)に知らされ比較値レ
ジスタ(9)に設定されている値と比較が行われる。前
記二つの値が等しい場合には、比較器(10)はCPU
(6)に信号(MATCR)を与える。例えばパラレル
データがファーストインファーストアウトバッファ(3
)にη個まで格納されるよシ前にデータ入力を打ち切れ
るようにするには、データ入力の打ち切シとして定めた
パラレルデータの値を比較値レジスタ(9)に設定して
おく。そして設定値と等しい値のパラレルデータが入力
されることにょシ比較器(lO)はCP U (6)に
信号(MATCH)を与え、データ入力の打ち切シを知
らせることが出来る。In addition, the parallel/S converted in the shift register (2)
The value of /7'' is sent to the comparator (10) and compared with the value set in the comparison value register (9).If the two values are equal, the comparator (10) is CPU
Give a signal (MATCR) to (6). For example, parallel data is stored in a first-in first-out buffer (3
), the value of the parallel data determined as the point at which data input is to be terminated is set in the comparison value register (9). When parallel data of a value equal to the set value is input, the comparator (1O) gives a signal (MATCH) to the CPU (6), thereby informing the CPU (6) of termination of data input.
比If!レジスタ(9)は設定値固定の構成であっても
又プログラムによシ設定値書換え可能な構成でちっても
よい。Ratio If! The register (9) may have a configuration in which the set value is fixed, or may have a configuration in which the set value can be rewritten by a program.
次に特許請求第3項記載の半導体集積回路の一実施例の
概略を示す構成図を第2図に示す。Next, FIG. 2 shows a schematic configuration diagram of an embodiment of the semiconductor integrated circuit according to claim 3.
図において、(1)はシリアルデータ(sl)が入力さ
れるシリアルデータ入力端子、(2)ハシリアルテ゛−
夕をパラレルデータ(FD)K変換fるシフトレジスタ
、(3)はパラレルデータを入力順に複数個格納するフ
ァーストインファーストアウトバッファ、(4)は割少
込み発生ワード数を蓄える書換え可能なレジスタ、(5
)はファーストインファーストアウトバッファ(3)に
格納されている前記パラレルデータの数とレジスタ(4
)の設定値とを比較し前記パラレルデータの数がレジス
タ(4)の設定値と等しいか又は大きくなった時点で直
接メモリアクセス制御回路(12)に直接メモリアクセ
ス要求信号(DRQ)を与える比較器、(9)は比較用
のパラレルデータの値が設定される比較値レジスタ、(
10)はシフトレジスタ(2)によシ変換されるパラレ
ルデータ(pD)と比較値レジスタ(9)の設定値とを
比較し等しい時に直接メモリアクセス制御回路(12)
に対し信号を与える比較器、(13)は本発明の半導体
集積回路全体で直接メモリアクセス制御回路(12)を
内蔵する例、(14)はプロセッサ、(15)は外部パ
ス、(16)は記憶装置である。In the figure, (1) is a serial data input terminal into which serial data (sl) is input, and (2) is a serial data input terminal.
(3) is a first-in-first-out buffer that stores a plurality of parallel data in input order; (4) is a rewritable register that stores the number of words in which an interrupt has occurred; (5
) is the number of parallel data stored in the first-in first-out buffer (3) and the register (4).
), and when the number of parallel data is equal to or larger than the set value of the register (4), a direct memory access request signal (DRQ) is provided to the direct memory access control circuit (12). (9) is a comparison value register in which the value of parallel data for comparison is set;
10) compares the parallel data (pD) converted by the shift register (2) with the set value of the comparison value register (9), and when they are equal, direct memory access control circuit (12)
(13) is an example in which the entire semiconductor integrated circuit of the present invention includes a direct memory access control circuit (12), (14) is a processor, (15) is an external path, and (16) is a It is a storage device.
動作について説明する。まず内蔵記憶装置に書き込まれ
たプログラム又は外部よシ読み込んまれたプログラムに
よシ、ファーストインファーストアウトバッファ(3)
から記憶装置(16)への転送を開始するパフレ/+L
15′−夕の数nが指定され、その筺わがレジスタ(4
)に設定される。前記数nは、ファーストインファース
トアウトバッファ(3)に格納できる上限の数mまでの
値を指定出来る。半導体集積回路(13)に入力される
シリアルデータは、シフトレジスタ(2)において、1
ワードがあらかじめ指定されているピット長のパラレル
データに変換すれ、ファーストインファーストアウトバ
ッファ(3)に格納される。ファーストインファース)
アウトバッファ(3)は、パラレルデータをm(1以上
の整数)個まで複数個格納することができ、格納されて
いるパラレルデータの数i(0≦16m)は、比較器(
5)に知らされる。比較器(5)は、数1と設定値nと
を比較し、数1が設定値り、!:等しいか又は大きくな
った時点で内蔵する直接メモリアクセス制御回路(12
)対し信号(DRQ)を与える。直接メモリアクセス制
御回路(12)は、信号(D RQ、 )を受は取ると
外部のプロセッサ(14)に外部バス(15)の解放を
要求するホールド要求信号(HRQ)を送る。直接メモ
リアクセス制御回路(12)は、プロセッサ(14)か
らのホールド受付信号(IiAK)を受は取ると、ファ
ーストインファーストアウトバッファ(3)に格納され
ているパラレルデータを外部パス(15)に送シ出し、
記憶装置(16)にパラレルデータを格納する。The operation will be explained. A first-in, first-out buffer (3) that is used by a program written to the internal storage device or a program read externally.
Puffre/+L to start transfer from to storage device (16)
15' - The number n of evenings is specified, and the register (4
) is set. The number n can specify a value up to the upper limit number m that can be stored in the first-in first-out buffer (3). Serial data input to the semiconductor integrated circuit (13) is input to the shift register (2) by 1
The words are converted into parallel data with a prespecified pit length and stored in the first-in-first-out buffer (3). first in first)
The out buffer (3) can store a plurality of pieces of parallel data up to m (an integer of 1 or more), and the number i (0≦16m) of stored parallel data is determined by the comparator (
5) will be informed. The comparator (5) compares Equation 1 and set value n, and Equation 1 is the set value, ! :The built-in direct memory access control circuit (12
) is given a signal (DRQ). Upon receiving the signal (D RQ, ), the direct memory access control circuit (12) sends a hold request signal (HRQ) requesting release of the external bus (15) to the external processor (14). Upon receiving the hold acceptance signal (IiAK) from the processor (14), the direct memory access control circuit (12) transfers the parallel data stored in the first-in first-out buffer (3) to an external path (15). send out,
Parallel data is stored in the storage device (16).
またシフトレジスタ(2)に於て変換されたパラレルデ
ータの値は比較器(10)に知らされ比較値レジスタ(
9)に設定されている値と比較が行われる。前記二つの
値が等しい場合には、比較器(10)は直接メモリアク
セス制御回路(12)に信号(MATCH)ヲ与よる。Also, the value of the parallel data converted in the shift register (2) is informed to the comparator (10), and the value of the parallel data converted in the shift register (2) is notified to the comparison value register (
A comparison is made with the value set in 9). If the two values are equal, the comparator (10) provides a signal (MATCH) to the direct memory access control circuit (12).
例工ばパラレルデータがファーストインファーストアウ
トバッファ(3)にn個まで格納されるよシ前にデータ
入力を打ち切れるようにするには、データ入力の打ち切
)として定めたパラレルデータ値を比較値レジスタ(9
)に設定しておく。For example, in order to be able to abort data input before up to n pieces of parallel data are stored in the first-in-first-out buffer (3), set the parallel data value determined as the abort of data input to the comparison value. Register (9
).
そして設定値と等しい値のパラレルデータが入力される
ことによシ比較器(10)は直接メモリアクセス制御回
路(12)に信号(MATCH)を与え、データ入力の
打ち切シを知らせることが出来る。比較値レジスタ(9
)は設定値固定の構成であっても又プログラムによシ設
定値書換え可能な構成であってもよい。When parallel data of a value equal to the set value is input, the comparator (10) can directly give a signal (MATCH) to the memory access control circuit (12) to notify that data input has been terminated. Comparison value register (9
) may have a configuration in which the set value is fixed or a configuration in which the set value can be rewritten by a program.
次に「従来の技術の動作」で挙げたパラレルデータを同
時に複数ワード(n個)用いる場合と同様な処理を、第
1図の半導体集積回路で行う場合の動作について、第3
図のフローチャートを参照しながらステップごとの説明
する。Next, Section 3 describes the operation when the semiconductor integrated circuit shown in FIG.
Each step will be explained with reference to the flowchart in the figure.
■ステップ(17)
半導体集積回路(11)は、まず内蔵記憶装置に書き込
まれたプログラム又は外部よシ読み込んだプログラムに
よシデータ処理に必要なパラレルデータの数nが指定さ
れ、gX!1がレジスタ(4)に与えられる。■Step (17) The semiconductor integrated circuit (11) first specifies the number n of parallel data required for data processing by a program written in the built-in storage device or a program read externally, and then executes gX! 1 is given to register (4).
■ステップ(18)
シリアルデータが入力されると1ワードのパラレルデー
タに変換して、ファーストインファーストアウトバッフ
ァ(3ンに格納する。■Step (18) When serial data is input, it is converted into 1 word of parallel data and stored in the first-in-first-out buffer (3rd line).
■ステップ(19)
格納されているパラレルデータの数1は比較器(5)に
知らされ、設廻VLコと比較される。パラレルデータの
数1が設定値コよシ小さい場合は、比較器(5)はCP
U (6)に対し割り込み信号(IM’I’)を送ら
ない。そして再びステップ(18)のパラレルデータ格
納が続けられる。(2) Step (19) The number 1 of stored parallel data is informed to the comparator (5) and compared with the installed VL controller. If the number 1 of parallel data is smaller than the set value, the comparator (5)
Do not send an interrupt signal (IM'I') to U (6). Then, parallel data storage in step (18) is continued again.
このパラレルデータがn個そろうまでの間、CPU(6
)はパヲン/L/7′−タ格納による割り込みを受けず
にデータ処理を続けることが出来る。Until n pieces of parallel data are collected, the CPU (6
) can continue data processing without being interrupted by data storage.
■ステップ(20)
格納されるパラレルデータの数1が設定値nと等しくな
ると、比較器(5)は割り込み信号(工NT〕を与える
。c p u (6)は割り込み信号(INT)を受は
取ると、ファーストインファーストアウトバッファ(3
)に格納されているパラレルデータをテ゛−タパス(7
)に読みだす。■Step (20) When the number 1 of parallel data to be stored becomes equal to the set value n, the comparator (5) gives an interrupt signal (INT).The comparator (6) receives the interrupt signal (INT). takes the first-in first-out buffer (3
) is stored in the data path (7
).
■ステップ(21)
CP U (6)は読みだしたn個のパラレルゲータを
用いてデータ処理を行う。(2) Step (21) The CPU (6) performs data processing using the read n parallel gators.
この第3図のフローチャートに示す■ステップから■ス
テップまでの1サイクルのデータ処理が、繰シ返し続け
て複数サイクル行われる場合のCPU(6)の動作につ
いて示したのが第5図である。FIG. 5 shows the operation of the CPU (6) when one cycle of data processing from step (1) to step (2) shown in the flowchart of FIG. 3 is repeatedly performed for a plurality of cycles.
第5図に於て(28)はデータ処理、(29)は割り込
み、(30)はデータ読みだし、(31)は割9込み処
理からの復帰である。複数サイクル連続に行う場合はこ
の第5図に示すように、現サイクルに必要なパラレルデ
ータがすべて入力され格納されるまでの間、CP U
(6)は割り込みを受けずにデータの格納と平行して前
サイケμのデータ処理を行うことが出来る。In FIG. 5, (28) is data processing, (29) is an interrupt, (30) is data reading, and (31) is return from interrupt processing. When performing multiple cycles consecutively, as shown in Fig. 5, the CPU is
In (6), data processing of the previous psyche μ can be performed in parallel with data storage without receiving an interrupt.
この発明は次の(1)〜(4)項の実施態様によ)実施
することができる。This invention can be carried out according to the embodiments of the following items (1) to (4).
(1)外部から入力されるシリアルデータをパラレルテ
゛−夕に変換する論理回路と、前記パラレルデータを入
力順に複数個格納することが出来るファーストインファ
ーストアウトバッファと、割り込み発生ワード数を蓄え
る書換え可能なレジスタと、前記ファーストインファー
ストアウトバッファに格納されている前記バラレルテ゛
−夕の数と前記レジスタの値とを比較し前記パラレルデ
ータの数が前記レジスタの値と等しいか又は大きくなっ
た時点で外部の又は内蔵されるCPUに対し割り込み信
号を与える比較器とを備えることを特徴とする半導体集
積回路。(1) A logic circuit that converts serial data input from the outside into parallel data, a first-in-first-out buffer that can store multiple pieces of parallel data in the order of input, and a rewritable buffer that stores the number of interrupt generation words. The number of parallel data stored in the register and the first-in first-out buffer is compared with the value of the register, and when the number of parallel data is equal to or larger than the value of the register, an external or a comparator that provides an interrupt signal to a built-in CPU.
(2) 前記ファーストインファーストアウトバッファ
に入力される前記パラレルデータが特定の値である時に
CPUに対し信号を送ることを特徴とする第1項記載の
半導体集積回路。(2) The semiconductor integrated circuit according to item 1, wherein a signal is sent to a CPU when the parallel data input to the first-in first-out buffer has a specific value.
(3)外部から入力されるシリアルデータをパラレルデ
ータに変換する論理回路と、前記パラレルデータを入力
順に複数個格納することが出来るファーストインファー
ストアウトバッファと、転送開始ワード数を蓄えるd換
え可能なレジスタと、前記ファーストインファーストア
ウトバッファに格納されている前記パラレルデータの数
と前記レジスタの値とを比較し前記パラレルデータの数
がR11記レジスタの値と等しいか又は大きくなった時
点で外部の又は内蔵された直接メモリアクセス制御回路
に対し直接メモリアクセス要求信号を与える比較器とを
備えることを特徴とする半導体集積回路。(3) A logic circuit that converts serial data input from the outside into parallel data, a first-in-first-out buffer that can store multiple pieces of parallel data in the order of input, and a d-transferable buffer that stores the number of transfer start words. The number of parallel data stored in the register and the first-in first-out buffer is compared with the value of the register, and when the number of parallel data is equal to or larger than the value of the register R11, an external or a comparator that provides a direct memory access request signal to a built-in direct memory access control circuit.
(4)前記ファーストインファーストアウトバッファに
入力される前記パラレルデータが特定の値である時に直
接メモリアクセス制御回路に対し信号を送ることを特徴
とする第3項記載の半導体集積回路。(4) The semiconductor integrated circuit according to item 3, wherein a signal is sent to a direct memory access control circuit when the parallel data input to the first-in first-out buffer has a specific value.
[発明の効果J
以上のように、この発明によればシリアルデータが入力
され1ワードのパラレルデータに変換されるたびにCP
Uが実行中の処理を中断してデータ転送を行う必要がな
い。そして第5図に示すように、データ処理に必要なデ
ータがすべてそろってからデータ転送を行えるため、ソ
フトウェアの負荷が減少し、またデータ転送の回数が減
少することからデータ処理システムの高速化が可能とな
る。[Effect of the Invention J As described above, according to the present invention, each time serial data is input and converted into one word of parallel data, the CP
There is no need to interrupt the process being executed by U to transfer data. As shown in Figure 5, data can be transferred only after all the data necessary for data processing has been collected, reducing the load on the software and reducing the number of data transfers, increasing the speed of the data processing system. It becomes possible.
またデータ入力を途中で打ち切ることも出来るので任意
の数のデータ処理にも使うことが出来る。Also, since data input can be stopped midway through, it can be used to process any number of data.
第1図はこの発明の一実施例の概略を示す構成図、第2
図はこの発明の他の実施例の概略を示す構成図、第3図
は第1図の半導体集積回路でn個の入力データを同時に
用いて処理を行う場合のフローチャート、第5図は第3
図の処理を行う場合のCPU動作説明図、第4図は従来
の半導体集積回路でn個の入力データを同時に用いて処
理を行う場合のフローチャート、第6図は第4図の処理
を行う場合のCPU動作説明図、第7図は従来の半導体
集積回路の一例を示す構成図である。
図において、(1)はシリアルデータ入力端子、(2)
はシフトレジスタ、(3)はファーストインファースト
アウトバッファ、(4)はレジスタ、(5)は比較器、
(9)は比較値レジスタ(9)、(lO)は比較器、(
12)は直接メモリアクセス制御回路である。
なお、図中同一符号は同一または相当部分を示す。
々 染ipミ
第3図
第4図
c6も6ミヘ
ヘヘiへ 〜FIG. 1 is a configuration diagram showing an outline of an embodiment of the present invention, and FIG.
3 is a block diagram showing an outline of another embodiment of the present invention, FIG. 3 is a flowchart when processing is performed using n input data simultaneously in the semiconductor integrated circuit of FIG. 1, and FIG.
An explanatory diagram of the CPU operation when performing the processing shown in the figure, Fig. 4 is a flowchart when processing is performed using n input data simultaneously in a conventional semiconductor integrated circuit, and Fig. 6 is a case where the processing shown in Fig. 4 is performed. FIG. 7 is a configuration diagram showing an example of a conventional semiconductor integrated circuit. In the figure, (1) is a serial data input terminal, (2)
is a shift register, (3) is a first-in first-out buffer, (4) is a register, (5) is a comparator,
(9) is the comparison value register (9), (lO) is the comparator, (
12) is a direct memory access control circuit. Note that the same reference numerals in the figures indicate the same or corresponding parts. Dye ip Mi Figure 3 Figure 4 c6 also 6 Mihehehei ~
Claims (2)
ータに変換する論理回路と、前記パラレルデータを入力
順に複数個格納することが出来るファーストインファー
ストアウトバッファと、割り込み発生ワード数を蓄える
書換え可能なレジスタと、前記ファーストインファース
トアウトバッファに格納されている前記パラレルデータ
の数と前記レジスタの値とを比較し前記パラレルデータ
の数が前記レジスタの値と等しいか又は大きくなつた時
点で外部の又は内蔵されるCPUに対し割り込み信号を
与える比較器とを備えることを特徴とする半導体集積回
路。(1) A logic circuit that converts serial data input from the outside into parallel data, a first-in-first-out buffer that can store multiple pieces of parallel data in the order of input, and a rewritable register that stores the number of interrupt generation words. The number of parallel data stored in the first-in first-out buffer is compared with the value of the register, and when the number of parallel data is equal to or larger than the value of the register, external or internal 1. A semiconductor integrated circuit comprising: a comparator that provides an interrupt signal to a CPU.
ータに変換する論理回路と、前記パラレルデータを入力
順に複数個格納することが出来るファーストインファー
ストアウトバッファと、転送開始ワード数を蓄える書換
え可能なレジスタと、前記ファーストインファーストア
ウトバッファに格納されている前記パラレルデータの数
と前記レジスタの値とを比較し前記パラレルデータの数
が前記レジスタの値と等しいか又は大きくなつた時点で
外部の又は内蔵された直接メモリアクセス制御回路に対
し直接メモリアクセス要求信号を与える比較器とを備え
ることを特徴とする半導体集積回路。(2) A logic circuit that converts serial data input from the outside into parallel data, a first-in-first-out buffer that can store multiple pieces of parallel data in the order of input, and a rewritable register that stores the number of transfer start words. The number of parallel data stored in the first-in first-out buffer is compared with the value of the register, and when the number of parallel data is equal to or larger than the value of the register, external or internal and a comparator that provides a direct memory access request signal to a direct memory access control circuit that is configured to perform a direct memory access control circuit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8451688A JPH01255922A (en) | 1988-04-05 | 1988-04-05 | Semiconductor integrated circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8451688A JPH01255922A (en) | 1988-04-05 | 1988-04-05 | Semiconductor integrated circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH01255922A true JPH01255922A (en) | 1989-10-12 |
Family
ID=13832797
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP8451688A Pending JPH01255922A (en) | 1988-04-05 | 1988-04-05 | Semiconductor integrated circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH01255922A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02146842A (en) * | 1988-08-23 | 1990-06-06 | Nec Corp | Serial interface circuit |
JPH08321853A (en) * | 1995-05-24 | 1996-12-03 | Nippon Denki Ido Tsushin Kk | Two signal system mixed data reception circuit |
-
1988
- 1988-04-05 JP JP8451688A patent/JPH01255922A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02146842A (en) * | 1988-08-23 | 1990-06-06 | Nec Corp | Serial interface circuit |
JPH08321853A (en) * | 1995-05-24 | 1996-12-03 | Nippon Denki Ido Tsushin Kk | Two signal system mixed data reception circuit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6341318B1 (en) | DMA data streaming | |
JPS62221057A (en) | Method and apparatus for generating pointer address | |
EP1199641B1 (en) | Data processing device used in serial communication system | |
US5287471A (en) | Data transfer controller using direct memory access method | |
WO2004109437A2 (en) | System boot method | |
EP0969384A2 (en) | Method and apparatus for processing information, and providing medium | |
JPH01255922A (en) | Semiconductor integrated circuit | |
JP2006338538A (en) | Stream processor | |
KR100249536B1 (en) | Data processor having bus controller for controlling a plurality of buses independently of each other | |
JPS6054042A (en) | Method and device for data transfer | |
JP2528879B2 (en) | Communication processing device | |
EP0410382A2 (en) | Data transfer controller using direct memory access method | |
JPH05165761A (en) | Dma controller | |
JPH0713881A (en) | Communication processing device | |
JP3096382B2 (en) | DMA circuit | |
JP2002189695A (en) | CPU interface circuit | |
JP2594611B2 (en) | DMA transfer control device | |
JPH01315860A (en) | Data processor | |
JP2965045B2 (en) | Semiconductor integrated circuit device | |
JPH04109351A (en) | Dma controller | |
EP4466616A1 (en) | Methods and systems for performing database operations | |
JPH0380353A (en) | Interruption processing method and data channel device | |
CN119066113A (en) | Data export method, system and computer program product | |
JPS63196903A (en) | Programmable controller | |
JPH01124045A (en) | Bus connection system |