JPH04310161A - Data readout circuit - Google Patents

Data readout circuit

Info

Publication number
JPH04310161A
JPH04310161A JP3076040A JP7604091A JPH04310161A JP H04310161 A JPH04310161 A JP H04310161A JP 3076040 A JP3076040 A JP 3076040A JP 7604091 A JP7604091 A JP 7604091A JP H04310161 A JPH04310161 A JP H04310161A
Authority
JP
Japan
Prior art keywords
data
dual port
memory
cpu
port memory
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.)
Withdrawn
Application number
JP3076040A
Other languages
Japanese (ja)
Inventor
Echiko Toujiyou
東條 惠知子
Isamu Takahashi
勇 高橋
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
NEC Miyagi Ltd
Original Assignee
NEC Corp
NEC Miyagi 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 NEC Corp, NEC Miyagi Ltd filed Critical NEC Corp
Priority to JP3076040A priority Critical patent/JPH04310161A/en
Publication of JPH04310161A publication Critical patent/JPH04310161A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the erroneous reading of data written by a CPU from one port of a dual port memory due to the change of the processing time of a CPU of the data readout circuit where the multiplex processing part of a PCM terminal equipment reads out data from the other port at regular intervals. CONSTITUTION:The circuit is provided with a dual port memory 42 one port of which is connected to a CPU 41, a control circuit 43 connected to the other port of the dual port memory 42, and a temporary storage memory connected to the CPU 41 and the dual port memory 42. The highest order address of the dual port memory 42 is connected to be reverse logic in the right and left ports, connected to a synchronizing signal line feeding a synchronizing signal to the CPU 41 from the circuit 43, the output data of the CPU 41 is temporarily stored in the temporary storage memory 11, synchronized with the synchronizing signal to be transferred from a temporary storage memory 11 to the dual port memory 42.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、PCM端局装置の信号
処理を行う多重化処理部に関し、特に、デュアルポート
メモリに書き込まれた信号処理結果をデュアルポートメ
モリから読み出すデータ読出回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multiplexing processing section for performing signal processing in a PCM terminal station, and more particularly to a data reading circuit for reading out signal processing results written in a dual port memory from the dual port memory.

【0002】0002

【従来の技術】従来のPCM端局装置の信号処理を行う
多重化処理部のデータ読出回路は、図4に示すように、
一方のポートにアドレスバスとデータバスを介してマイ
クロコンピュータ(以下CPU)41が接続されたデュ
アルポートメモリ42と、デュアルポートメモリ42の
他方のポートに同じくアドレスバスとデータバスを介し
て接続されたデータ読出制御回路(以下、単に制御回路
)43とを有している。
2. Description of the Related Art A data reading circuit of a multiplexing processing unit that performs signal processing in a conventional PCM terminal equipment is as shown in FIG.
A dual port memory 42 has a microcomputer (hereinafter referred to as CPU) 41 connected to one port via an address bus and a data bus, and a microcomputer (hereinafter referred to as CPU) 41 is connected to the other port of the dual port memory 42 via an address bus and a data bus. It has a data read control circuit (hereinafter simply referred to as a control circuit) 43.

【0003】ここで、デュアルポートメモリ42は、C
PU41と制御回路43とが、同一アドレスに対して同
時にアクセスすると、どちらか一方のアクセスは受付け
られないようになっている。従って、制御回路43の読
み込みが成されているアドレスにCPU41が書き込み
を行なおうとすると、CPU41の処理結果が欠落する
可能性がある。そこで、制御回路43側のアドレスバス
の最上位アドレス線44を、NOT回路45に接続し、
NOT回路45の出力をCPU側のポートの最上位アド
レスに接続することが一般的に行われる。この様に、N
OT回路45を用いて最上位アドレスを逆論理に接続す
ることにより、図5に示すようにメモリ空間を半分に区
切ることができる。即ち、制御回路43が下位半分のア
ドレス(以下A面と称する。)をアクセスしている時は
、CPU41は、上位半分のアドレス(以下B面と称す
る。)をアクセスするようにしている。
[0003] Here, the dual port memory 42 is a C
If the PU 41 and the control circuit 43 access the same address at the same time, access by either one will not be accepted. Therefore, if the CPU 41 attempts to write to an address that has been read by the control circuit 43, there is a possibility that the processing results of the CPU 41 will be lost. Therefore, the highest address line 44 of the address bus on the control circuit 43 side is connected to the NOT circuit 45,
Generally, the output of the NOT circuit 45 is connected to the highest address of the port on the CPU side. In this way, N
By connecting the most significant address to reverse logic using the OT circuit 45, the memory space can be divided into halves as shown in FIG. That is, when the control circuit 43 is accessing the lower half address (hereinafter referred to as A side), the CPU 41 accesses the upper half address (hereinafter referred to as B side).

【0004】また、制御回路43とCPU41とは同期
信号線46によって接続されている
[0004] Furthermore, the control circuit 43 and the CPU 41 are connected by a synchronization signal line 46.

【0005】次に図6を参照して動作について説明する
。CPU41は、制御回路43からの同期信号の立ち下
りに同期して、デュアルポートメモリ42内の定められ
たアドレスからデータを読み出し、処理を行う。このデ
ータの処理はA面、B面、交互に行われ、その処理時間
は各処理ごとに異なる。処理結果は再びデュアルポート
メモリ42に書き込まれる。なお、図6にはCPU41
の処理結果データの最下位ビット(ビット0)のみ示し
ている。
Next, the operation will be explained with reference to FIG. The CPU 41 reads data from a predetermined address in the dual port memory 42 and processes it in synchronization with the fall of the synchronization signal from the control circuit 43. This data processing is performed alternately on the A side and the B side, and the processing time differs for each process. The processing results are written to the dual port memory 42 again. In addition, in FIG. 6, the CPU 41
Only the least significant bit (bit 0) of the processing result data is shown.

【0006】一方、制御回路43は読み出しパルスの立
上がりに同期してデュアルポートメモリ42内の定めら
れたアドレスからデータを読み出し、出力端子47へ出
力する。ここでも、読み出しはA面、B面、交互に行わ
れる。なお、読み出しパルスの繰り返し周期は、同期信
号の繰り返し周期に一致する。
On the other hand, the control circuit 43 reads data from a predetermined address in the dual port memory 42 in synchronization with the rise of the read pulse, and outputs it to the output terminal 47. Here too, reading is performed alternately on the A side and the B side. Note that the repetition period of the read pulse matches the repetition period of the synchronization signal.

【0007】[0007]

【発明が解決しようとする課題】従来の方式では、CP
U41が、同期信号で定められた時間、即ちPCM端局
装置の仕様に定められた時間内に処理結果を確実に出せ
る場合は有効な手段である。しかしながら、CPU41
での処理が複雑になり、処理が装置に定められた時間内
で完了しなかった場合が存在すると、図6に示すように
CPU41の処理結果データと、制御回路43の読み出
し結果データとが一致しないという問題点がある。
[Problem to be solved by the invention] In the conventional system, the CP
This is an effective means if U41 can reliably produce a processing result within the time specified by the synchronization signal, that is, within the time specified in the specifications of the PCM terminal device. However, CPU41
If the processing becomes complicated and the processing is not completed within the time set for the device, the processing result data of the CPU 41 and the read result data of the control circuit 43 may match, as shown in FIG. The problem is that it doesn't.

【0008】本発明は、CPU41の処理時間に影響さ
れず、常に正しいデータを制御装置43が読み出すこと
のできるデータ読出回路を提供することを目的とする。
An object of the present invention is to provide a data reading circuit that allows the control device 43 to always read correct data without being affected by the processing time of the CPU 41.

【0009】[0009]

【課題を解決するための手段】本発明によれば、それぞ
れから書き込み/読み出しが可能な2つのポートを備え
、一方のポートにマイクロコンピューターが接続された
デュアルポートメモリと、該デュアルポートメモリの他
方のポートに接続され所定の時間間隔で前記デュアルポ
ートメモリからデータを読み出すデータ読出制御回路と
を有し、前記マイクロコンピューターが前記データ読出
制御回路からの同期信号に同期してデータ処理を行い前
記デュアルポートメモリに処理されたデータを書き込む
データ読出回路において、前記デュアルポートメモリと
は異なる一時記憶メモリを前記CPUと前記デュアルポ
ートメモリとに接続し、前記マイクロコンピューターは
データ処理を終了する毎に処理されたデータを前記一時
記憶メモリに書き込み、該一時記憶メモリに書き込まれ
たデータを前記同期信号に同期して読み出し前記デュア
ルポートメモリに書き込むようにしたことを特徴とする
データ読出回路が得られる。
[Means for Solving the Problems] According to the present invention, there is provided a dual port memory having two ports capable of writing/reading from each port and having a microcomputer connected to one port, and the other port of the dual port memory. a data read control circuit that is connected to a port of the dual port memory and reads data from the dual port memory at predetermined time intervals, and the microcomputer processes data in synchronization with a synchronization signal from the data read control circuit. In a data reading circuit for writing processed data into a port memory, a temporary storage memory different from the dual port memory is connected to the CPU and the dual port memory, and the microcomputer writes the processed data each time data processing is completed. The data reading circuit is characterized in that the data written in the temporary storage memory is read out and written in the dual port memory in synchronization with the synchronization signal.

【0010】0010

【実施例】次に本発明について図面を参照して説明する
。図1は本発明の一実施例のデータ読出回路のブロック
図である。ここで従来と同一のものには同一番号を付し
てある。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained with reference to the drawings. FIG. 1 is a block diagram of a data read circuit according to an embodiment of the present invention. Components that are the same as the conventional ones are given the same numbers.

【0011】デュアルポートメモリ42の左側のポート
には、アドレスバスとデータバスとを介してCPU41
及び一時記憶メモリ11が接続されている。右側のポー
トには出力端子47にPCM端局装置の信号処理回路が
接続されるデータ読出制御回路43が同じくアドレスバ
スとデータバスとを介して接続されている。本実施例で
は、16本の信号線を有するアドレスバスと8本の信号
線を有するデータバスとを使用した場合を仮定している
。また、リード線、ライト線、電源線等は略している。
The left port of the dual port memory 42 is connected to the CPU 41 via an address bus and a data bus.
and temporary storage memory 11 are connected. A data read control circuit 43 whose output terminal 47 is connected to a signal processing circuit of a PCM terminal device is also connected to the right port via an address bus and a data bus. In this embodiment, it is assumed that an address bus having 16 signal lines and a data bus having 8 signal lines are used. Also, lead wires, write wires, power wires, etc. are omitted.

【0012】従来と同じく、制御回路43側のアドレス
バスの最上位線44は、デュアルポートメモリ42の右
側ポートから左側ポートの間でNOT回路45を通すこ
とにより、論理反転するように接続されている。これに
より、図2に示すように下位アドレス半分(A面)と上
位アドレス半分(B面)に分けることができる。
As in the past, the top line 44 of the address bus on the control circuit 43 side is connected to invert the logic by passing a NOT circuit 45 between the right port and the left port of the dual port memory 42. There is. Thereby, as shown in FIG. 2, it can be divided into a lower address half (A side) and an upper address half (B side).

【0013】また、制御回路43とCPU41とは同期
信号線で接続されている。
Furthermore, the control circuit 43 and the CPU 41 are connected through a synchronization signal line.

【0014】以下に動作を説明する。制御回路43は、
PCM端局装置仕様で定められた一定間隔でCPU41
に対して、同期信号を送る。この同期信号によりCPU
2は、一時記憶メモリ11に一時保管しておいた処理完
了結果データを、デュアルポートメモリ42の例えば、
A面に転送する。その後、データの定期処理を開始し、
その処理結果を一時保管のための一時記憶メモリ11に
書き込む。通常、この処理は、次の同期信号が出される
前に処理を完了する。
The operation will be explained below. The control circuit 43 is
CPU41 at regular intervals determined by the PCM terminal equipment specifications.
Send a synchronization signal to. This synchronization signal causes the CPU to
2 stores the processing completion result data temporarily stored in the temporary storage memory 11 in the dual port memory 42, for example.
Transfer to side A. Then, start regular processing of the data,
The processing results are written to temporary storage memory 11 for temporary storage. Typically, this process completes before the next synchronization signal is issued.

【0015】CPU41がデュアルポートメモリ42の
A面にデータ転送書き込み中は、制御回路43はデュア
ルポートメモリ42のB面をアクセス、即ち、データの
読み出しを行う。また、CPU41がデュアルポートメ
モリ42のB面にデータ転送書き込み中は、制御回路4
3はデュアルポートメモリ42のA面をアクセス、即ち
、データの読み出しを行う。これにより、アドレスの衝
突は発生しないで、正常にアクセスすることが可能であ
る。
While the CPU 41 is transferring and writing data to the A side of the dual port memory 42, the control circuit 43 accesses the B side of the dual port memory 42, that is, reads data. In addition, while the CPU 41 is transferring and writing data to the B side of the dual port memory 42, the control circuit 4
3 accesses side A of the dual port memory 42, that is, reads data. This allows normal access without address collision.

【0016】ここでCPUの処理項目が一時的に増加し
、PCM端局装置仕様で定められた時間内で処理が完了
しなかった場合の動作を説明する。例えばB面での処理
時間が増加し、本来A面にアクセスすべき時間帯に入っ
てしまった時は、CPU41内のタイマがこれを検出す
る。そして、データ処理を継続しながら、一時保管のた
めの一時記憶メモリ11から前回の処理完了データ、即
ち、すでにB面に書き込んだデータと同じデータを取り
出し、A面に書き込む。CPU41はデータ処理が完了
すると、その結果を一時保管するための一時記憶メモリ
11に書き込む。以降、上記動作を繰り返す。
[0016] Here, the operation when the number of processing items of the CPU increases temporarily and the processing is not completed within the time specified by the PCM terminal device specifications will be explained. For example, when the processing time for side B increases and the time period when side A should normally be accessed has entered, a timer within the CPU 41 detects this. Then, while continuing the data processing, the previously processed data, that is, the same data as the data already written on the B side, is retrieved from the temporary storage memory 11 for temporary storage and written on the A side. When the data processing is completed, the CPU 41 writes the result into the temporary storage memory 11 for temporary storage. Thereafter, the above operation is repeated.

【0017】この様にして、CPU41のデータ処理時
間に変化があっても、CPU41の処理結果データと、
制御回路43の読み出し結果データの間に、誤りが発生
しない。なお、図3に示したデータは、8ビットデータ
バスの最下位ビットである0ビットのみである。
In this way, even if the data processing time of the CPU 41 changes, the processing result data of the CPU 41 and
No error occurs during read result data of the control circuit 43. Note that the data shown in FIG. 3 is only the 0 bit, which is the least significant bit of the 8-bit data bus.

【0018】[0018]

【発明の効果】以上説明したように本発明によれば、デ
ータ読み出し回路に一時記憶メモリを設け、マイクロコ
ンピューターで処理されたデータを一旦一時記憶メモリ
に書き込み、一時記憶メモリに書き込まれたデータを同
期信号に同期して読み出しデュアルポートメモリに書き
込むようにしたことで、CPUの処理時間がPCM端局
装置仕様に定められた時間より長くなった場合でも、最
新のCPU処理完了結果データをデュアルポートメモリ
書き込めるため、CPU処理結果データの変化点を、誤
りなく読み出すことができる。
As explained above, according to the present invention, a temporary memory is provided in the data reading circuit, data processed by a microcomputer is temporarily written to the temporary memory, and the data written to the temporary memory is read. By reading and writing to the dual port memory in synchronization with the synchronization signal, even if the CPU processing time is longer than the time specified in the PCM terminal equipment specifications, the latest CPU processing completion result data can be transferred to the dual port memory. Since data can be written into memory, changing points in CPU processing result data can be read without error.

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

【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

【図2】デュアルポートメモリ42のメモリマップであ
る。
FIG. 2 is a memory map of dual port memory 42.

【図3】図1のデータ読出回路における信号波形図であ
る。
FIG. 3 is a signal waveform diagram in the data read circuit of FIG. 1;

【図4】従来のデータ読出回路のブロック図である。FIG. 4 is a block diagram of a conventional data read circuit.

【図5】デュアルポートメモリ42のメモリマップであ
る。
FIG. 5 is a memory map of the dual port memory 42.

【図6】図4のデータ読出回路における信号波形図であ
る。
FIG. 6 is a signal waveform diagram in the data read circuit of FIG. 4;

【符号の説明】[Explanation of symbols]

11    一時記憶メモリ 41    CPU 42    デュアルポートメモリ 43    制御回路 44    制御回路側最上位アドレス45    N
OT回路 46    同期信号線 47    出力端子
11 Temporary storage memory 41 CPU 42 Dual port memory 43 Control circuit 44 Control circuit side highest address 45 N
OT circuit 46 synchronous signal line 47 output terminal

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  それぞれから書き込み/読み出しが可
能な2つのポートを備え、一方のポートにマイクロコン
ピューターが接続されたデュアルポートメモリと、該デ
ュアルポートメモリの他方のポートに接続され所定の時
間間隔で前記デュアルポートメモリからデータを読み出
すデータ読出制御回路とを有し、前記マイクロコンピュ
ーターが前記データ読出制御回路からの同期信号に同期
してデータ処理を行い前記デュアルポートメモリに処理
されたデータを書き込むデータ読出回路において、前記
デュアルポートメモリとは異なる一時記憶メモリを前記
CPUと前記デュアルポートメモリとに接続し、前記マ
イクロコンピューターはデータ処理を終了する毎に処理
されたデータを前記一時記憶メモリに書き込み、該一時
記憶メモリに書き込まれたデータを前記同期信号に同期
して読み出し前記デュアルポートメモリに書き込むよう
にしたことを特徴とするデータ読出回路。
[Claim 1] A dual port memory comprising two ports capable of writing/reading from each port, with a microcomputer connected to one port, and a microcomputer connected to the other port of the dual port memory at predetermined time intervals. a data read control circuit that reads data from the dual port memory, the microcomputer processes data in synchronization with a synchronization signal from the data read control circuit, and writes the processed data to the dual port memory. In the read circuit, a temporary storage memory different from the dual port memory is connected to the CPU and the dual port memory, and the microcomputer writes processed data to the temporary storage memory each time data processing is completed; A data reading circuit characterized in that data written in the temporary storage memory is read out and written in the dual port memory in synchronization with the synchronization signal.
JP3076040A 1991-04-09 1991-04-09 Data readout circuit Withdrawn JPH04310161A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3076040A JPH04310161A (en) 1991-04-09 1991-04-09 Data readout circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3076040A JPH04310161A (en) 1991-04-09 1991-04-09 Data readout circuit

Publications (1)

Publication Number Publication Date
JPH04310161A true JPH04310161A (en) 1992-11-02

Family

ID=13593695

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3076040A Withdrawn JPH04310161A (en) 1991-04-09 1991-04-09 Data readout circuit

Country Status (1)

Country Link
JP (1) JPH04310161A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6292875B1 (en) 1996-06-05 2001-09-18 Fujitsu Limited Control device for storage device and method of accessing the storage device
JP2004192694A (en) * 2002-12-10 2004-07-08 Renesas Technology Corp Semiconductor storage device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6292875B1 (en) 1996-06-05 2001-09-18 Fujitsu Limited Control device for storage device and method of accessing the storage device
JP2004192694A (en) * 2002-12-10 2004-07-08 Renesas Technology Corp Semiconductor storage device

Similar Documents

Publication Publication Date Title
EP0432575B1 (en) Data processor having wait state control unit
JPH04310161A (en) Data readout circuit
US5499210A (en) Low power consumption semiconductor memory
JPH0140432B2 (en)
JPS6325737B2 (en)
KR19980068130A (en) Data access control device using shared memory
JPS6349809B2 (en)
GB2084771A (en) Improvements in or relating to circuit arrangements for detecting malfunctioning in direct data controllers of microprocessor systems
KR0165505B1 (en) The communication apparatus using shared memory
JPS63126047A (en) Memory control system
JP2579003B2 (en) Data transfer device between memories
JPH0241058B2 (en)
JPS63245745A (en) Buffer storage controller
JPH0652039A (en) Data transfer system
JPS63239549A (en) Data chaining control system
JPH05110584A (en) Transmitting system for path trace information in optical synchronous communication
JPS58168132A (en) Information transfer system
JPS61288261A (en) Multiprocessor system
JPH04654A (en) Bus control system
JPH06149749A (en) Data transfer system among plural processors
JPH05298247A (en) Hot line connection system
JPS6336463A (en) Bus control system
JPH01158554A (en) Data processing system providing dma device
JPS61112272A (en) Microcomputer applied device
JPS60151770A (en) Data transferring system

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980711