JPH04101538A - Cpu output data control circuit - Google Patents
Cpu output data control circuitInfo
- Publication number
- JPH04101538A JPH04101538A JP2219848A JP21984890A JPH04101538A JP H04101538 A JPH04101538 A JP H04101538A JP 2219848 A JP2219848 A JP 2219848A JP 21984890 A JP21984890 A JP 21984890A JP H04101538 A JPH04101538 A JP H04101538A
- Authority
- JP
- Japan
- Prior art keywords
- cpu
- data
- ram
- output data
- selector
- 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.)
- Granted
Links
Landscapes
- Time-Division Multiplex Systems (AREA)
- Communication Control (AREA)
- Information Transfer Systems (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明はCPU出力データ制御回路に係り、特にCPU
の出力データを多重化する際に生ずるレーシングの危険
を防止するCPU出力データ制御回路に関する。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a CPU output data control circuit, and in particular to a CPU output data control circuit.
The present invention relates to a CPU output data control circuit that prevents the danger of racing that occurs when multiplexing output data of a CPU.
(従来の技術)
例えば時分割多重通信装置では、CPUの出力データを
多重化したものの複数個を時分割配置してなる伝送フレ
ームを多重化装置で形成するが、CPUの出力データは
リフト処理にて出力されるので、そのスピードは多重化
装置が多重化すべきデータを取り込むスピードよりも遅
いのが通例であり、また出力タイミングも一定の間隔で
行われない場合もある。従って、CPUと多重化装置間
にRAMを設けたのみでは第3図に示すようなレーシン
グを生ずる場合がある。即ち、フレーム内の例えば第4
番目のタイムスロットTS4に多重化されるCPU出力
データが4ワード(wl〜W4)である場合、CPU出
力データの4ワード(w l〜W 、)がRAMに書き
込まれるが、ソフト処理であるので、第3図(b)に示
すように、ワードw3の書き込みタイミングが通常より
も遅れてし才い、各ワードが一定の時間間隔で書き込ま
れない場合がある。そうすると、多重化装置がRAMか
ら読み出すタイミングはハードウェアで規定される一定
の時間間隔であるから、第3図(a)に示すように、ワ
ードW!と同W2の読み出しはCPU出力データが書き
込まれた後に行われるが、ワードW3と同W4の読み出
しはCPU出力データが書き込まれる前に行われること
になる。即ち、多重化装置はワードW3と同W4として
前回のCPtJ出力データを読み出すことになる。その
結果、フレームのタイムスロットTS4に多重化された
データは、第3図(c)に示すように、ワードwlと同
W2は新データでワードW3と同W4は旧データという
ことになる。(Prior art) For example, in a time division multiplex communication device, a multiplexer forms a transmission frame by time-divisionally arranging a plurality of multiplexed CPU output data, but the CPU output data is not used for lift processing. Since the data is output at a constant speed, the speed is usually slower than the speed at which the multiplexer takes in the data to be multiplexed, and the output timing may not be performed at regular intervals. Therefore, simply providing a RAM between the CPU and the multiplexer may cause racing as shown in FIG. That is, for example, the fourth
When the CPU output data multiplexed into the th time slot TS4 is 4 words (wl~W4), the 4 words (wl~W,) of the CPU output data are written to the RAM, but this is a software process. , as shown in FIG. 3(b), the writing timing of word w3 may be delayed than usual, and each word may not be written at regular time intervals. Then, since the timing at which the multiplexer reads from the RAM is a fixed time interval defined by the hardware, as shown in FIG. 3(a), the word W! Words W3 and W2 are read after the CPU output data is written, but words W3 and W4 are read before the CPU output data is written. That is, the multiplexer reads the previous CPtJ output data as words W3 and W4. As a result, in the data multiplexed in the time slot TS4 of the frame, the words wl and W2 are new data, and the words W3 and W4 are old data, as shown in FIG. 3(c).
このように、CPLIがRAM書き込み中に多重化装置
側の読み出しが追い越してし抜い、読み出したデータが
新旧混在してしまう現象をレーシングというが、これを
防止するため、従来では例えば第2図に示すようなCP
U出力データ制御回路を備える。このCPU出力データ
制御回路は、CPU21とRAM24間に、F I F
O(First InFirst 0ut)22とコ
ントローラ23を配置し、まず1タイムスロット分(第
3図で言えば4ワード)のCPU出力データをCPU2
1のタイミングてF I FO22に書き込み、それが
終了したらコントローラ23がFIFO22の内容をR
AM24に書き込み、その後コントローラ23がRAM
24の内容を読み出し並直列変換器25を介して図外の
多重化装置へ出力するようにし、レーシングが生じない
ようになされている。In this way, while the CPLI is writing to RAM, the reading from the multiplexer side overtakes and overtakes it, causing the read data to be mixed with old and new data.This phenomenon is called racing.To prevent this, conventional methods have been used, for example, as shown in CP as shown
Equipped with a U output data control circuit. This CPU output data control circuit has an F I F between the CPU 21 and the RAM 24.
O (First InFirst 0ut) 22 and controller 23 are arranged, and the CPU output data for one time slot (four words in Fig. 3) is sent to the CPU 2.
The controller 23 writes the contents of the FIFO 22 to the FIFO 22 at the timing of
Write to AM24, then controller 23 writes to RAM
The contents of 24 are read out and output to a multiplexing device (not shown) via a parallel-to-serial converter 25 to prevent racing from occurring.
ここに、転送制御は次のようにして行われる。Here, transfer control is performed as follows.
コントローラ23には、FIF○22やRAM24につ
いての制御情報、ステータスを格納するレジスタが設け
られ、F I FO22への書き込み可否制御や読み出
し制御はこれらのレジスタの内容に基づき行われる。C
PU21がFIFO22への書き込みを終了すると、C
PU21は前記レジスタに終了フラグをセットする。コ
ントローラ23は、終了フラグとFIFO22の出力制
御信号を確認し、F工F○22がらデータを読み出しR
AM24へ転送する。このとき、転送が成功したか否か
の判定をし、その結果を示すフラグを前記レジスタiこ
セットする。全ての転送が失敗なく行われると、次にR
AM24がら読み出す動作を行う、一方、転送に失敗す
ると、その旨の前記フラグがCPU21に読み取られ(
図示省略)再送要求として機能し、FIFO22への書
き込みが再開されるようになっている。The controller 23 is provided with registers that store control information and status regarding the FIF 22 and the RAM 24, and control over whether or not to write to the FIFO 22 and read control are performed based on the contents of these registers. C
When PU21 finishes writing to FIFO22, C
The PU 21 sets an end flag in the register. The controller 23 checks the end flag and the output control signal of the FIFO 22, reads the data from the F○F○22, and
Transfer to AM24. At this time, it is determined whether the transfer was successful or not, and a flag indicating the result is set in the register i. If all transfers are successful, then R
A reading operation is performed from the AM 24. On the other hand, if the transfer fails, the flag to that effect is read by the CPU 21 (
(not shown) functions as a retransmission request, and writing to the FIFO 22 is restarted.
(発明が解決しようとする課題)
上述した従来のCPU出力データ制御回路では、転送制
御の確実性を期すために、コントローラに求められる機
能が膨大となり、複雑な制御が要求される。また、回路
規模も増大する。従って、個別部品で構成した場合は故
障の確率が増え、システム全体の信頼性を著しく損なう
ことになるので、LSI化が不可欠となるという問題が
ある。即ち、LSI化のための設計工数が増え、設計費
用が嵩むのである。(Problems to be Solved by the Invention) In the conventional CPU output data control circuit described above, in order to ensure reliability of transfer control, the functions required of the controller are enormous and complicated control is required. Furthermore, the circuit scale also increases. Therefore, if the system is constructed from individual parts, the probability of failure will increase and the reliability of the entire system will be significantly impaired, so LSI implementation is essential. That is, the number of design steps required for LSI integration increases, and the design cost increases.
本発明は、このような間頭に鑑みなされたもので、その
目的は、LSI化が不要な簡単な構成でレーシングを生
じさせることなく確実にCPU出力データの多重化装置
への転送制御をなし得るCPU出力データ制御回路を提
供することにある。The present invention has been made in view of these concerns, and its purpose is to reliably control the transfer of CPU output data to a multiplexing device without causing racing with a simple configuration that does not require LSI integration. The object of the present invention is to provide a CPU output data control circuit that obtains the following results.
(課題を解決するための手段)
前記目的を達成するために、本発明のCPU出力データ
制御回路は次の如き構成を有する。(Means for Solving the Problems) In order to achieve the above object, the CPU output data control circuit of the present invention has the following configuration.
即ち、本発明のCPU出力データ制御回路は、CPUが
出力するデータを多重化装置へ転送する際のその転送タ
イミングを制御するCPU出力データ制御回路であって
; このCPU出力データ制御回路は、CPUの2分岐
されたデータバスのそれぞれに接続される2つのメモリ
であってCPUが出力する切替信号を受けて一方がデー
タバス上のデータを取り込む書込モードに他方が多重化
装置へデータ出力を行う読出モードにそれぞれ設定され
る第1及び第2のメモリと; 読出モードのメモリのア
ドレス信号を発生するアドレスカウンタと、 CPU
が出力するアドレス信号と前記アドレスカウンタが出力
するアドレス信号がそれぞれ入力される2つのセレクタ
であって前記切替信号を受けて一方が2入力アドレス信
号の一方を前記第1のメモリに選択出力し他方が2入力
アドレス信号の他方を前記第2のメモリに出力する第1
及び第2のセレクタと; 前記切替信号を受けて前記2
つのメモリのうち読出モードのメモリの出力データを選
択出力する第3のセレクタと:を備えたことを特徴とす
るものである。That is, the CPU output data control circuit of the present invention is a CPU output data control circuit that controls the transfer timing when data output from the CPU is transferred to the multiplexing device; These are two memories connected to each of the two branched data buses, one of which receives the switching signal output from the CPU in a write mode to take in data on the data bus, and the other to output data to the multiplexing device. first and second memories each set to a read mode; an address counter that generates an address signal for the memory in the read mode; and a CPU.
and the address signal output from the address counter are respectively input to the selectors, one of which selects and outputs one of the two input address signals to the first memory in response to the switching signal, and the other selects and outputs one of the two input address signals to the first memory. outputs the other of the two input address signals to the second memory.
and a second selector; upon receiving the switching signal, the second selector
The third selector selectively outputs the output data of the memory in the read mode among the two memories.
(作 用)
次に、前記の如く構成される本発明のCPU出力データ
制御回路の作用を説明する。(Function) Next, the function of the CPU output data control circuit of the present invention configured as described above will be explained.
本発明では、CPUが直接的に書き込みを行える2つの
メモリを設け、一方のメモリが書込モードのときは他方
のメモリは読出モードとなるようにCPUが制御し、レ
ーシングの発生を防止する。In the present invention, two memories to which the CPU can directly write are provided, and when one memory is in the write mode, the other memory is controlled by the CPU to be in the read mode, thereby preventing racing from occurring.
斯くして、従来の回路に比して大幅な回路規模の縮小と
転送制御の単純化が図れ、LSI化が不要となり、設計
工数の大幅な軽減が可能となる。In this way, compared to conventional circuits, it is possible to significantly reduce the circuit scale and simplify transfer control, eliminating the need for LSI, and making it possible to significantly reduce the number of design steps.
(実 施 例) 以下、本発明の実施例を図面を参照して説明する。(Example) Embodiments of the present invention will be described below with reference to the drawings.
第1図は本発明の一実施例に係るCPU出力データ制御
回路を示す。第1図において、CPUIのデータバスは
2分岐され、一方の分岐データバスにRAM5が接続さ
れ、他方の分岐データバスにRAM6が接続される。こ
の2分岐データバスはRAM(5,6)の下流側におい
てセレクタ7の入力端に接続される0才な、CPUIの
アドレスバスは2分岐され、一方の分岐アドレスバスは
セレクタ3の一方の入力端に接続され、他方の分岐アド
レスバスはセレクタ4の他方の入力端に接続される。同
様に、アドレスカウンタ2のアドレスバスは2分岐され
、一方の分岐アドレスバスはセレクタ3の他方の入力端
に接続され、他方の分岐アドレスバスはセレクタ4の一
方の入力端に接続される。FIG. 1 shows a CPU output data control circuit according to an embodiment of the present invention. In FIG. 1, the data bus of the CPUI is branched into two branches, a RAM 5 is connected to one branch data bus, and a RAM 6 is connected to the other branch data bus. This two-branch data bus is connected to the input end of the selector 7 on the downstream side of the RAM (5, 6). The other branch address bus is connected to the other input end of the selector 4. Similarly, the address bus of the address counter 2 is branched into two, one branch address bus being connected to the other input end of the selector 3, and the other branch address bus being connected to one input end of the selector 4.
そして、CPU 1はソフト処理によって切替信号W/
Rを出力するようになっている。切替信号W/Rは高レ
ベル(W)と低レベル(R>の一方からなるレベル信号
であり、CPUIが1タイムスロット分のCPUデータ
の出力完了毎にそのレベル反転が行われる。この切替信
号W / R41’、セレクタ3と同7のSEL端子と
RAM5のWE端子とに直接印加され、またセレクタ4
のSEL端子にはインバータ9を介して印加され、RA
M6のWE端子にはインバータ10を介して印加される
。The CPU 1 then sends the switching signal W/ by software processing.
It is designed to output R. The switching signal W/R is a level signal consisting of either a high level (W) or a low level (R>), and its level is inverted every time the CPU completes outputting CPU data for one time slot.This switching signal W/R41' is directly applied to the SEL terminal of selector 3 and 7 and the WE terminal of RAM5, and is also applied to selector 4.
is applied to the SEL terminal of RA via the inverter 9.
A voltage is applied to the WE terminal of M6 via the inverter 10.
セレクタ3と同4は、SEL端子の信号レベルが高レベ
ルのときは一方の入力端に接続されたアドレスバス(C
PUIのアドレスバス)を選択し、逆に低レベルのとき
は他方の入力端に接続されたアドレスバス(アドレスカ
ウンタ2のアドレスバス)を選択する。セレクタ3の出
力アドレス信号はRAM5に与えられ、セレクタ4の出
力アドレス信号はRAM6に与えられる。Selectors 3 and 4 select the address bus (C) connected to one input terminal when the signal level of the SEL terminal is high.
On the other hand, when the level is low, the address bus connected to the other input terminal (the address bus of address counter 2) is selected. The output address signal of selector 3 is applied to RAM5, and the output address signal of selector 4 is applied to RAM6.
RAM5と同6は、WE端子の信号レベルが高レベルの
ときは書込モードとなり、逆に低レベルのときは読出モ
ードとなる。The RAMs 5 and 6 are in write mode when the signal level of the WE terminal is high, and are in read mode when it is low.
セレクタ7は、SEL端子の信号レベルが高レベルのと
きはRAM6側のデータバスを選択し、逆に低レベルの
ときはRAM5側のデータバスを選択する。要するに、
セレクタ7は、読出モードのRAMを選択しその出力デ
ータを並直列変換器8に出力する。The selector 7 selects the data bus on the RAM 6 side when the signal level of the SEL terminal is high, and conversely selects the data bus on the RAM 5 side when the signal level is low. in short,
The selector 7 selects the RAM in read mode and outputs its output data to the parallel-to-serial converter 8.
以上の構成において、CPU 1が切替信号W/Rを高
レベルにしている期間では、セレクタ3はCPUのアド
レスバスにRAM5を接続し、セレクタ4はアドレスカ
ウンタのアドレスバスにRAM6を接続する。RAM5
は書込モードであるから、データバス上のCPUデータ
を取り込む。In the above configuration, during the period in which the CPU 1 sets the switching signal W/R to a high level, the selector 3 connects the RAM 5 to the address bus of the CPU, and the selector 4 connects the RAM 6 to the address bus of the address counter. RAM5
Since it is in write mode, it takes in the CPU data on the data bus.
方、RAM6は読出モードであるがら、前回書き込んだ
CPUデータをアドレスカウンタ2の出力アドレス信号
に従って読み出しデータバスに送出する、セレクタ7は
RAM6側のデータバスを選択しているから、読み出さ
れたCPUデータが並直列変換器8を介して多重化装置
へ送出される。On the other hand, although RAM 6 is in read mode, the CPU data written last time is sent to the read data bus according to the output address signal of address counter 2. Since selector 7 selects the data bus on the RAM 6 side, the CPU data written last time is sent to the read data bus. The CPU data is sent via a parallel to serial converter 8 to a multiplexer.
従来の如き複雑な制御を要さずに、簡単な切替制御でレ
ーシングが生じないようにできたのである。It is possible to prevent racing by simple switching control without requiring complicated control as in the past.
(発明の効果)
以上説明したように、本発明のCPU出力データ制御回
路によれば、CPUが直接的に書きI込みを行える2つ
のメモリを設け、一方のメモリが書込モードのときは他
方のメモリは読出モードとなるようにCPUが制御し、
レーシングの発生を防止するようにしたので、従来の回
路に比して大幅な回路規模の縮小と転送制御の単純化が
図れ、LSI化が不要となり、設計工数の大幅な軽減が
可能となる効果がある。(Effects of the Invention) As explained above, according to the CPU output data control circuit of the present invention, two memories to which the CPU can directly write are provided, and when one memory is in the write mode, the other memory is in the write mode. The CPU controls the memory to be in read mode,
Since the occurrence of racing is prevented, the circuit size can be significantly reduced and transfer control simplified compared to conventional circuits, eliminating the need for LSI, and significantly reducing design man-hours. There is.
第1図は本発明の一実施例に係るCPU出力データ制御
回路の構成ブロック図、第2図は従来のCPU出力デー
タ制御回路の構成ブロック図、第3図はレーシングの一
例を示す図である。
1・・・・・・CPtJ、 2・・・・・・アドレスカ
ウンタ、347・・・・・セレクタ、 5.6・・・・
・・RAM、8・・・・・・並直列変換器。FIG. 1 is a configuration block diagram of a CPU output data control circuit according to an embodiment of the present invention, FIG. 2 is a configuration block diagram of a conventional CPU output data control circuit, and FIG. 3 is a diagram showing an example of racing. . 1...CPtJ, 2...Address counter, 347...Selector, 5.6...
...RAM, 8...Parallel-serial converter.
Claims (1)
の転送タイミングを制御するCPU出力データ制御回路
であって;このCPU出力データ制御回路は、CPUの
2分岐されたデータバスのそれぞれに接続される2つの
メモリであってCPUが出力する切替信号を受けて一方
がデータバス上のデータを取り込む書込モードに他方が
多重化装置へデータ出力を行う読出モードにそれぞれ設
定される第1及び第2のメモリと;読出モードのメモリ
のアドレス信号を発生するアドレスカウンタと;CPU
が出力するアドレス信号と前記アドレスカウンタが出力
するアドレス信号がそれぞれ入力される2つのセレクタ
であって前記切替信号を受けて一方が2入力アドレス信
号の一方を前記第1のメモリに選択出力し他方が2入力
アドレス信号の他方を前記第2のメモリに出力する第1
及び第2のセレクタと;前記切替信号を受けて前記2つ
のメモリのうち読出モードのメモリの出力データを選択
出力する第3のセレクタと;を備えたことを特徴とする
CPU出力データ制御回路。A CPU output data control circuit that controls the transfer timing when data output from the CPU is transferred to a multiplexing device; this CPU output data control circuit is connected to each of two branched data buses of the CPU. two memories, one of which is set in a write mode to take in data on a data bus in response to a switching signal output from the CPU, and the other to a read mode to output data to a multiplexer. 2; an address counter that generates an address signal for the memory in read mode; and a CPU.
and the address signal output from the address counter are respectively input to the selectors, one of which selects and outputs one of the two input address signals to the first memory in response to the switching signal, and the other selects and outputs one of the two input address signals to the first memory. outputs the other of the two input address signals to the second memory.
and a second selector; and a third selector that receives the switching signal and selects and outputs the output data of the memory in the read mode among the two memories.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2219848A JP2754885B2 (en) | 1990-08-21 | 1990-08-21 | CPU output data control circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2219848A JP2754885B2 (en) | 1990-08-21 | 1990-08-21 | CPU output data control circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH04101538A true JPH04101538A (en) | 1992-04-03 |
| JP2754885B2 JP2754885B2 (en) | 1998-05-20 |
Family
ID=16742011
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2219848A Expired - Lifetime JP2754885B2 (en) | 1990-08-21 | 1990-08-21 | CPU output data control circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2754885B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1998033281A1 (en) * | 1997-01-23 | 1998-07-30 | Sony Corporation | Device and method for generating compressed data |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6157137A (en) * | 1984-08-28 | 1986-03-24 | Nec Corp | Signal processor |
| JPH01174035A (en) * | 1987-12-28 | 1989-07-10 | Nec Corp | Digital signal demodulating circuit |
-
1990
- 1990-08-21 JP JP2219848A patent/JP2754885B2/en not_active Expired - Lifetime
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6157137A (en) * | 1984-08-28 | 1986-03-24 | Nec Corp | Signal processor |
| JPH01174035A (en) * | 1987-12-28 | 1989-07-10 | Nec Corp | Digital signal demodulating circuit |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1998033281A1 (en) * | 1997-01-23 | 1998-07-30 | Sony Corporation | Device and method for generating compressed data |
| US6445825B2 (en) | 1997-01-23 | 2002-09-03 | Sony Corporation | Apparatus and method of generating compressed data |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2754885B2 (en) | 1998-05-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100272072B1 (en) | High performance, high bandwidth memory bus architecture utilizing sdrams | |
| US5019966A (en) | Dual processors using busy signal for controlling transfer for predetermined length data when receiving processor is processing previously received data | |
| US5125081A (en) | Inter-configuration changing controller based upon the connection and configuration information among plurality of clusters and the global storage | |
| EP0082683A2 (en) | Computer memory system | |
| GB2148563A (en) | Multiprocessor system | |
| KR960004457B1 (en) | Data transmission device | |
| US5159263A (en) | Lsi system having a test facilitating circuit | |
| US4346441A (en) | Random access memory system for extending the memory addressing capacity of a CPU | |
| US4969089A (en) | Method of operating a computer system and a multiprocessor system employing such method | |
| JP2754885B2 (en) | CPU output data control circuit | |
| US6701407B1 (en) | Multiprocessor system with system modules each having processors, and a data transfer method therefor | |
| JPS6242306B2 (en) | ||
| US4630197A (en) | Anti-mutilation circuit for protecting dynamic memory | |
| JPH10262272A (en) | Simple interface for time division multiplex communication medium | |
| JPH0343804A (en) | Sequence controller | |
| JPS60138664A (en) | Data bus system for devices with different required data bus widths | |
| US6487671B1 (en) | Elimination of turnaround cycles on multiplexed address/data buses | |
| JPS60142768A (en) | Data transfer device | |
| JPS6153753B2 (en) | ||
| JPS6326753A (en) | Memory bus control method | |
| JP2820054B2 (en) | Bus interface device | |
| JPH086896A (en) | Data processor | |
| JPH11122275A (en) | Serial communication system | |
| JP2579003B2 (en) | Data transfer device between memories | |
| JPH01276261A (en) | Interruption control device |