JPH0262982B2 - - Google Patents

Info

Publication number
JPH0262982B2
JPH0262982B2 JP55145300A JP14530080A JPH0262982B2 JP H0262982 B2 JPH0262982 B2 JP H0262982B2 JP 55145300 A JP55145300 A JP 55145300A JP 14530080 A JP14530080 A JP 14530080A JP H0262982 B2 JPH0262982 B2 JP H0262982B2
Authority
JP
Japan
Prior art keywords
read
signal
address
write
data
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
Application number
JP55145300A
Other languages
Japanese (ja)
Other versions
JPS5768954A (en
Inventor
Seiichi Yokozawa
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.)
Pioneer Corp
Original Assignee
Pioneer Electronic Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Pioneer Electronic Corp filed Critical Pioneer Electronic Corp
Priority to JP55145300A priority Critical patent/JPS5768954A/en
Publication of JPS5768954A publication Critical patent/JPS5768954A/en
Publication of JPH0262982B2 publication Critical patent/JPH0262982B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/062Synchronisation of signals having the same nominal but fluctuating bit rates, e.g. using buffers
    • H04J3/0626Synchronisation of signals having the same nominal but fluctuating bit rates, e.g. using buffers plesiochronous multiplexing systems, e.g. plesiochronous digital hierarchy [PDH], jitter attenuators

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Communication Control (AREA)
  • Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)

Description

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

本発明はメモリ制御装置に関し、特にPCM装
置の復号器に用いるメモリのためのメモリ制御装
置に関するものである。 ランダムアクセスメモリの書込み/読出し制御
に関しては、一般に書込み/読出し制御の周期が
互いに非同期であることが多い。かゝる場合にお
いて各動作が発生すると、互いに対応するフラツ
グをたてゝこの信号に基いて、他方の動作を禁止
するとともに、スタート信号を発生させ、この時
点より、カウンタ又はシフトレジスタで基準クロ
ツクを分周して決定される時間領域に於いて動作
を行い、終了時点に於いてストツプ信号を発生さ
せることにより、自身のフラツグを解除して、他
方の動作を可能にする方法で、互いの動作が重な
ることなく行つている。この方法では、各々の動
作のためにそれぞれ個別にタイミング発生回路が
必要で制御が複雑になる。また各動作が非同期で
あるので、素子の遅延等に起因して、両方のフラ
ツクが同時にたち動作が重なつて誤動作の原因に
なる。これを防ぐために保護回路が必要となつて
一層回路が複雑になる。 従つて、本発明の目的は簡単な回路構成により
互いに非同期の書込み/読出しの動作が重なるこ
となく安定に動作し得るランダムアクセスメモリ
の制御装置を提供することである。 本発明によるメモリ制御装置は、各ビツトが直
列に伝送されるデイジタルデータを並列変換する
ことによりこの並列変換に要する時間を利用した
もので、データの直列−並列変換を行うための伝
送クロツクを計数するカウンタと別のクロツクを
分周することにより得られた周期的な読出し又は
書込み指令信号発生回路とを用い、これらカウン
タ出力と指令信号出力とをアドレス入力として予
めプログラムされたROM(リードオンリメモリ)
等のタイミング発生回路からタイミング信号を発
生せしめるようにし、このプログラムを適当に選
定して、書込み及び読出し動作のうち発生頻度の
高い方の動作を優先させ、互いの動作が重ならな
いようにして素子の遅延等に起因する誤動作をな
くすことを特徴としている。 以下に、本発明について図面を用いて説明す
る。 第1図は、例えばデジタルオーデイオ信号の復
号に用いられる一般的なPCM復号器の一部概略
を示すブロツク図であり、基準クロツク発生回路
5で発生する基準クロツク信号と、入力PCMデ
ータ信号からクロツク信号抽出回路1及びメモリ
ー装置2に於いて、データに同期したクロツク信
号を用いて、同期分離及びデータ抽出回路3によ
つて、同期信号が分離されデータの抽出がなされ
る。入力PCMデータ信号には誤り訂正を可能と
すべくオーデイオデータ(実データ)の外に余分
なデータの冗長ビツト(訂正符号)が含まれてお
り、エラー検出回路4にて誤りデータの検出がな
されエラーの有無を示すエラー指示ビツト信号が
付加されてメモリー装置2へ書込まれる。当該メ
モリー装置2に於いて、1つのサンプル値を示す
データ毎に、並列に変換されて記憶されるように
構成されており、メモリーの書込み/読出し制御
は、クロツク抽出回路1より抽出したクロツクで
行われる。またメモリへの書込み周期の制御は、
同様にクロツク抽出回路1より抽出したクロツク
信号に基いて行われ、読出し周期は基準クロツク
信号発生回路5でつくられたクロツク信号に基い
てメモリへの書込みと読出しの周期を独立したク
ロツク信号で行うことでPCMデータ信号の時間
変動の補正が行われる。メモリ装置2は、少なく
とも(インターリーブ長+ジツタ補正分)の記憶
容量を有しており、実データ量はメモリ2への書
込み及び読出しにおいて等しいので、いわゆる書
込みデータが溢れ状態となつたり、読出し過多に
よる空状態になることはない。メモリ装置2から
は実データ部分が読出されてエラー補正回路6に
て補正を受けた後に、D/Aコンバータ7に入力
されてアナログ信号に変換されて以後アナログ処
理が適当になされるものである。 第1図に於いて基準クロツク信号発生回路5で
発生したクロツク信号を分周して発生する読出し
サイクルの発生頻度はサンプリング周波数と一致
し、通常44.1KHz又は50.4KHzが適用されている。
PCMデータよりクロツク抽出回路1及びメモリ
ー装置2で作り出されかつデータに同期したクロ
ツク信号は伝送クロツク信号と呼ばれるもので今
後このクロツク信号を伝送クロツク信号と呼ぶこ
とにする。この伝送クロツク信号はPCM装置に
於いて、一サンプルデータのビツト数、サンプリ
ング周波数、及び冗長度によつて異るが通常2M
Hz〜5MHzの伝送レートがとられている。書込み
サイクルの発生頻度は、伝送レートを1サンプル
データのビツト数で割つた値である。すなわち16
ビツトとすれば125KHz〜312.5KHzの書込みサイ
クルとなり、PCM装置では実データと冗長ビツ
トとをメモリに書込みつつ、実データ部分のみを
該メモリから読出すために書込みサイクルの発生
頻度が大となつている。 第2図は、第1図に示したPCM復号器に於け
るメモリー装置2の本発明の実施例を示す回路ブ
ロツク図である。a1〜aNからなるN(Nは2以上
の整数)ビツトの直列バイナリーデータ信号はN
ビツト・直列/並列変換器9に伝送される。当該
直列/並列変換器9の並列出力bは、並列データ
を一時記憶するためにNビツト・ライト・バツフ
ア・レジスタ10へ印加されている。当該レジス
タ10の出力Wは、ランダム・アクセス・メモリ
(今後省略してRAMと記する)11の入力に印
加されている。当該RAM11の出力RはNビツ
ト・リード・バツフア・レジスタ12の入力に印
加されている。直列データa1〜aNを並列に変換す
る際に、ビツト数を管理するためにN進バイナリ
ー・カウンタ20が使用されている。当該カウン
タ20のバイナリー出力X0〜X3は、コントロー
ル信号を発生させるためにリードオンリメモリ
(今後省略してROMと記する)7のアドレス入
力Y0〜Y3に印加されている。またX3出力はレジ
スタ15のCK端子に印加されている。 一方、基準クロツク信号発生回路5で発生した
基準クロツク信号は、読出しサイクルを発生させ
るために分周回路13のクロツク端子CKに印加
されている。読出しサイクルが発生すると、当該
分周回路13のキヤリイ出力CYはリードフラツ
グレジスタ14のCK端子に印加されている。当
該フラツグレジスタ14は、前記RAM11より
データの読出しが必要であることを示すために一
定期間読出動作指令信号hを発生するための1ビ
ツトレジスタである。当該フラツグレジスタ14
の出力hは読出しを制御するために必要なレジス
タ15の入力Dに印加されている。当該レジスタ
15の出力h′は読出可能信号としてROM7のア
ドレス入力Y4に印加されている。当該ROM7の
Z0出力gは、RAM11の書込み/読出しを制御
するW/R端子に印加されていると同時に、イン
バータ18を介してライトアドレスカウンタ16
のクロツク端子CKに印加されている。当該
ROM7のZ1出力fは、アドレス選択回路8の制
御端子に印加されている。当該ROM7のZ2出力
jはNビツトリードバツフアレジスタ12のCK
端子に印加されている。当該ROM7のZ3出力k
は、リードフラツグ14及びレジスタ15のクリ
ア端子CLRに夫々印加されていると同時に、イ
ンバータ19を介してリードアドレスカウンタ1
7のクロツク端子CKに印加されている。 他方直列データa1〜aNをNビツト直列/並列変
換器9に伝送するために、伝送クロツク信号Cが
当該Nビツト直列/並列変換器9のクロツク端子
CKに印加されていると同時に、インバータ21
を介して前記Nビツトバイナリーカウンタ20の
クロツク端子CKに印加されている。当該カウン
タ20のキヤリー出力eはNビツト直列/並列変
換器9の出力bをライトバツフアレジスタ10に
一時記憶するために当該レジスタ10のCK端子
に印加されている。またRAM11の所定内のア
ドレスにデータを書込む際には、所定のアドレス
を指定してから1伝送クロツク遅れた時点で、
RAM11の制御端子W/Rに1クロツク間だけ
“1”信号が与えられかつこの間にアドレス変化
がなければ、RAM11にデータを書込むことが
可能であるようにRAM11は構成されている。
またRAM11の所定のアドレスからデータを読
出す場合には、所定アドレスを指定してから1伝
送クロツク以内にRAM11の出力に所定アドレ
スの記憶内容が読出されるようになつている。ア
ドレス選択回路8は、制御端子入力が“1”のと
きライトアドレスカウンタ16の出力を選択する
ように構成されている。 ここで、PCM信号におけるサンプリング周波
数が50.4KHzであり、伝送クロツク信号Cの周波
数が2MHzであるとすると、左右チヤンネルのス
テレオ信号を復号する場合読出サイクル周波数は
100.8KHzであり、また書込サイクル周波数は、
1サンプルデータがN=16ビツトであれば125K
Hzとなる。すなわち、書込ビツト数は2Mビツ
ト/秒(125KHz×16ビツト)、読出ビツト数は
1.6128Mビツト/秒(50.4KHz×2チヤンネル×
16ビツト)、冗長ビツト数は0.3872Mビツト/秒
(書込ビツト数−読出ビツト数)である。従つて、
1回読出す間に2回以上の書込みが必要となり、
これら各動作が非同期的になされるから、互いの
動作が重複しないようにするために、第2図の実
施例に於ては、発生頻度の高い書込み動作を優先
して行うようにしている。すなわちデータの直並
列変換に要する時間を2分割してこの2分割され
た時間の前半のある定まつた時間領域で書込みを
なし、後半のある定まつた時間領域で読出しが必
要な場合にのみ読出しを行わせるものである。 かかる第2図のブロツクの動作を第3図の各部
波形を参照しつつ説明するが、第3図においてa
〜k及びh′の各波形は第2図の各部信号a〜k及
びh′を夫々示している。尚、タイミング信号発生
用のROM7の記憶内容と入力アドレスY0〜Y4
の関係は明細書末尾の表1に示されている。N=
16ビツトの直列デイジタルデータa1〜a16は、伝
送クロツクCの立上りエツジで直並列変換器9に
伝送される。この直列データa1〜a16の変換器9
への伝送が完了すると、バイナリカウンタ20の
キヤリイ出力eが伝送クロツクCより半クロツク
遅れて1クロツク間だけ“1”となる。このバイ
ナリカウンタ20のキヤリイ出力eの立上りにお
いて変換器9で並列変換されたデータbは、ライ
トバツフアレジスタ10に一時記憶される。バツ
フアレジスタ10のデータの次の直列データが変
換器9に伝送されている間のカウンタ20の出力
が16進数の2及び3に対応する値になつた時点
で、表1に従つてROM7のZ1出力fは“1”と
なる。すなわち伝送クロツクCの2クロツク間だ
け“1”となる。よつて16進バイナリカウンタ2
0の出力が2と3の間の2クロツク間、前記
RAM11のアドレス入力にはライトアドレスカ
ウンタ16の出力が印加されている。次に16進バ
イナリーカウンタ20の出力が3の時点で表1に
従いROM7のZ0出力gは1になる。すなわち、
伝送クロツク信号Cの1クロツク間だけRAM1
1の書込み/読出し制御端子W/Rは“1”にな
る。従つて、ライトバツフアレジスタ10に一時
記憶されているデータは、次の直列データが直
列/並列変換器9に伝送されている間の時間を2
分割した時間の前半の定まつた時間領域でRAM
11の所定のアドレスに書込まれる。書込みが完
了するとROM7のZ0出力gはインバータ18を
介してライトアドレスカウンタ16の内容を1イ
ンクリメントして次のデータを書込むべきアドレ
スを決定する。 次に読出しであるが、基準クロツク信号発生回
路5で発生した基準クロツクを分周回路13で分
周してサンプリングクロツクを発生させている
が、読出しが必要になると当該分周回路13のキ
ヤリイ出力は基準クロツク信号の1クロツク間だ
け“1”にたちあがる。当該分周回路13のキヤ
リイ出力のたちあがりでリードフラツグレジスタ
14の出力hを1にする。当該フラツグレジスタ
14の出力h=1は16進バイナリーカウンタ20
のX3出力のたちあがり時点すなわち当該カウン
タ20の内容が16進数で“8”になつた時点でレ
ジスタ15に一時記憶される。そうすると、当該
レジスタ15の出力h′が1になりこの出力h′の1
の間読出し可能とする。一方、ROM7のZ0出力
gは、16進バイナリカウンタ20の内容が“2”
でないときは全て“0”であり、RAM11は読
出モードを指定されている。またROM7のZ1
力fは前述してあるように16進バイナリーカウン
タ20の状態が2と3の時だけ1になるので、当
該カウンタ20の出力が2と3の時以外はアドレ
ス選択回路8の制御入力は“0”となり、当該ア
ドレス選択回路8の出力にリードアドレスカウン
タ17の出力が選ばれているので、RAM11の
アドレス入力には、読出すべき所定のアドレスが
印加されている。従つてRAM11の出力には、
16進バイナリーカウンタ20の状態が8より後の
時間領域では、確実にデータが表われている。本
発明の実施例では、充分に余裕をとつて、ROM
7のZ2出力jはカウンタ20の状態が16進数でB
の時に“1”になる。当該ROM7のZ2出力jの
たちあがりでRAM11の出力に表われているデ
ータをリードバツフアレジスタ12に一時記憶す
る。従つてRAM11の所定のアドレスよりデー
タが読出されたことになる。 RAM11の所定のアドレスよりデータの読出
しが完了すると、リードフラツグレジスタ14及
びレジスタ15をクリアし、リードアドレスカウ
ンタ17の内容を1インクリメントする。本発明
の実施例では16進バイナリーカウンタ20の状態
が16進数Cの時にROM7のZ3出力kが“0”に
なり、リードフラツグレジスタ14及びレジスタ
15をクリアするとともに、インバータ19を介
してリードアドレスレジスタ17の内容を1イン
クリメントして次の読出すデータのアドレスを決
定する。尚、読出しの発生は伝送クロツク信号C
には同期していないので、16進バイナリーカウン
タ20の内容がある定まつた時点では発生しな
い。従つて、読出しが発生してリードフラツグレ
ジスタ14の出力hが“1”になるのも16進バイ
ナリーカウンタ20の内容がある定まつた時点で
はない。リードフラツグレジスタ14の出力hが
“1”になるのが16進バイナリーカウンタ20の
状態が8より前であればレジスタ15の出力
h′は、16進バイナリーカウンタ20のX3出力が
たちあがる時点、すなわち当該カウンタ20の状
態が8になる時点で“1”になり読出しの必要が
発生し、直列データa1〜aNが直列/並列変換器9
に伝送されている時間を2分割した後半の時間領
域に於ける定まつた時間領域で読出される。又、
第3図タイミングチヤート例のようにリードフラ
ツグレジスタ14の出力hが16進バイナリーカウ
ンタ20のX3出力がたちあがつた後、すなわち
カウンタ20の状態が8より後の時点で1になつ
た場合、次の直列データa1-1〜aN-1が直列/並列
変換器9に伝送されている時の16進バイナリーカ
ウンタ20のX3出力のたちあがりでレジスタ1
5の出力h′を“1”にして読出しの必要を知ら
せ、直列データa1-1〜aN-1を直列/並列変換器9
に伝送している時間を2分割した後半の時間領域
に於けるある定まつた時間領域で読出すことがで
きる。 リードフラツグレジスタ14の出力hが1にな
る時点が、16進バイナリーカウンタ20の状態が
8になる時点に近接して、素子の遅延等で直列デ
ータa1〜a16を伝送している時間の16進バイナリ
ーカウンタ20のX3出力のたちあがりで、レジ
スタ15に読出しの必要であることを記憶ができ
ない場合でも、次の直列データを伝送している時
間の当該カウンタ20のX3出力、すなわち8に
なる時点で読出しが必要であることを記憶して、
RAM11の所定のアドレスを読出すことが可能
であり、書込みを2回実行する間で1回の読出し
ができ、かつたがいの動作が重なることはない。 このようにして発生頻度の高いほうを優先さ
せ、かつ発生頻度の高いほうのサイクルを基準に
し、発生頻度の高いサイクルでつくられる時間領
域を2分割し、2分割された時間領域内で、各々
の動作をするためのタイミングを発生させること
によつて、互いの動作が重なることなく制御する
ことが可能である。 又、本例の説明で書込みの時間領域を16進バイ
ナリーカウンタ20の状態が2と3の場合を説明
したが当該カウンタ20の状態が0と1,4と
5,6と7の各時間領域でも書込みが可能であ
る。又読出しも同様にBとCだけでなく、8と
9,CとD,EとFの各時間領域でも可能であ
る。従つて、本例に於いては書込み時間領域に於
いては、書込み動作をする時間領域以外の他の時
間領域で異つた動作をすることが可能である。例
えば、書込み動作に同期して書込みアドレスとは
異なつたアドレスのデータをチエツクして、誤り
があつた場合には訂正して正しいデータに書き替
える動作等が、又、読出しの場合は4チヤンネル
分のデータを読出すこと等が可能になる。また直
並列変換に要する期間の2分割点を16ビツトの中
点である8ビツト目としたが、これに限定される
ことなく、2ビツト目以上の所定ビツト目で2分
割してもよいことは勿論である。 叙上の如く、本発明によれば回路構成が簡単で
かつ使用素子数を少くすることができ集積化も容
易である。またタイミングが明確で素子の遅延等
による誤動作がない利点がある。RCM信号処理
装置における時間軸圧縮、伸長やインターリブ、
デインターリブを行うためのメモリ制御装置に用
いて好適である。
The present invention relates to a memory control device, and more particularly to a memory control device for a memory used in a decoder of a PCM device. Regarding write/read control of random access memory, write/read control cycles are generally asynchronous with each other in many cases. In such a case, when each operation occurs, flags corresponding to each other are set, and based on this signal, the other operation is inhibited and a start signal is generated, and from this point on, the counter or shift register starts clocking the reference clock. It operates in the time domain determined by dividing the frequency of The movements are performed without overlapping. This method requires separate timing generation circuits for each operation, making control complicated. Moreover, since each operation is asynchronous, both fluxes occur simultaneously due to element delays, etc., and the operations overlap, causing malfunction. A protection circuit is required to prevent this, making the circuit even more complex. SUMMARY OF THE INVENTION Accordingly, it is an object of the present invention to provide a random access memory control device that can stably operate asynchronous write/read operations without overlapping each other with a simple circuit configuration. The memory control device according to the present invention utilizes the time required for parallel conversion by converting digital data in which each bit is serially transmitted into parallel data, and counts the transmission clock for serial-parallel conversion of data. A ROM (read-only memory) is programmed using the counter output and the command signal output as address inputs. )
A timing signal is generated from a timing generation circuit such as a timing generator, and this program is appropriately selected to give priority to the write and read operations that occur more frequently, and to prevent the operations from overlapping each other. It is characterized by eliminating malfunctions caused by delays, etc. The present invention will be explained below with reference to the drawings. FIG. 1 is a block diagram schematically showing a part of a general PCM decoder used, for example, to decode digital audio signals. In the signal extraction circuit 1 and the memory device 2, a synchronization separation and data extraction circuit 3 separates the synchronization signal and extracts data using a clock signal synchronized with the data. In order to enable error correction, the input PCM data signal includes redundant bits (correction codes) of extra data in addition to the audio data (actual data), and the error detection circuit 4 detects the error data. An error indication bit signal indicating the presence or absence of an error is added and written into the memory device 2. The memory device 2 is configured so that each data representing one sample value is converted and stored in parallel, and memory write/read control is performed using the clock extracted from the clock extraction circuit 1. It will be done. In addition, the control of the write cycle to memory is
Similarly, reading is performed based on the clock signal extracted from the clock extraction circuit 1, and the reading cycle is based on the clock signal generated by the reference clock signal generating circuit 5, and the writing and reading cycles to the memory are performed using independent clock signals. This corrects the time fluctuation of the PCM data signal. The memory device 2 has a storage capacity of at least (interleaving length + jitter correction), and the actual amount of data is the same when writing to and reading from the memory 2, so there is no possibility of overflow of written data or excessive reading. It will never become empty. The actual data portion is read out from the memory device 2, corrected by the error correction circuit 6, and then inputted to the D/A converter 7 where it is converted into an analog signal and thereafter subjected to appropriate analog processing. . In FIG. 1, the frequency of read cycles generated by dividing the clock signal generated by the reference clock signal generating circuit 5 matches the sampling frequency, and is usually 44.1 KHz or 50.4 KHz.
The clock signal generated from the PCM data by the clock extraction circuit 1 and the memory device 2 and synchronized with the data is called a transmission clock signal, and will hereinafter be referred to as the transmission clock signal. This transmission clock signal is normally 2M depending on the number of bits of one sample data, sampling frequency, and redundancy in the PCM device.
Transmission rates range from Hz to 5MHz. The frequency of write cycles is the transmission rate divided by the number of bits of one sample data. i.e. 16
In terms of bits, it is a write cycle of 125KHz to 312.5KHz, and in a PCM device, while writing the actual data and redundant bits to the memory, only the actual data portion is read from the memory, so the frequency of write cycles increases. There is. FIG. 2 is a circuit block diagram showing an embodiment of the present invention of the memory device 2 in the PCM decoder shown in FIG. A serial binary data signal of N ( N is an integer greater than or equal to 2) bits consisting of a 1 to a N is N
It is transmitted to the bit-to-serial/parallel converter 9. The parallel output b of the serial/parallel converter 9 is applied to an N-bit write buffer register 10 for temporarily storing parallel data. The output W of the register 10 is applied to the input of a random access memory (hereinafter abbreviated as RAM) 11. The output R of the RAM 11 is applied to the input of the N-bit read buffer register 12. An N-ary binary counter 20 is used to manage the number of bits when converting the serial data a 1 to a N into parallel data. The binary outputs X 0 -X 3 of the counter 20 are applied to address inputs Y 0 -Y 3 of a read-only memory (hereinafter abbreviated as ROM) 7 in order to generate control signals. Further, the X3 output is applied to the CK terminal of the register 15. On the other hand, the reference clock signal generated by the reference clock signal generating circuit 5 is applied to the clock terminal CK of the frequency dividing circuit 13 in order to generate a read cycle. When a read cycle occurs, the carry output CY of the frequency dividing circuit 13 is applied to the CK terminal of the read flag register 14. The flag register 14 is a 1-bit register for generating a read operation command signal h for a certain period of time to indicate that data needs to be read from the RAM 11. The flag register 14
The output h of is applied to the input D of the register 15 necessary for controlling the readout. The output h' of the register 15 is applied to the address input Y4 of the ROM 7 as a read enable signal. of the ROM7 concerned
The Z0 output g is applied to the W/R terminal that controls writing/reading of the RAM 11, and at the same time is applied to the write address counter 16 via the inverter 18.
is applied to the clock terminal CK of the concerned
The Z1 output f of the ROM 7 is applied to the control terminal of the address selection circuit 8. The Z2 output j of the ROM7 is the CK of the N-bit read buffer register 12.
applied to the terminal. Z3 output k of the relevant ROM7
is applied to the read flag 14 and the clear terminal CLR of the register 15, respectively, and at the same time, the read address counter 1 is applied via the inverter 19.
It is applied to the clock terminal CK of No.7. On the other hand, in order to transmit the serial data a 1 to a N to the N-bit serial/parallel converter 9, the transmission clock signal C is applied to the clock terminal of the N-bit serial/parallel converter 9.
At the same time that CK is applied, inverter 21
The signal is applied to the clock terminal CK of the N-bit binary counter 20 through the N-bit binary counter 20. The carry output e of the counter 20 is applied to the CK terminal of the write buffer register 10 in order to temporarily store the output b of the N-bit serial/parallel converter 9 in the register 10. Also, when writing data to a predetermined address in the RAM 11, one transmission clock delay after specifying the predetermined address,
The RAM 11 is configured such that data can be written into the RAM 11 if a "1" signal is applied to the control terminal W/R of the RAM 11 for one clock period and there is no address change during this period.
Further, when data is read from a predetermined address of the RAM 11, the storage contents of the predetermined address are read out to the output of the RAM 11 within one transmission clock after the predetermined address is designated. The address selection circuit 8 is configured to select the output of the write address counter 16 when the control terminal input is "1". Here, assuming that the sampling frequency of the PCM signal is 50.4KHz and the frequency of the transmission clock signal C is 2MHz, the readout cycle frequency is
The write cycle frequency is 100.8KHz.
If 1 sample data is N=16 bits, it is 125K.
Hz. In other words, the number of write bits is 2M bits/second (125KHz x 16 bits), and the number of read bits is
1.6128 Mbit/s (50.4KHz x 2 channels x
16 bits), and the number of redundant bits is 0.3872 Mbit/sec (number of write bits - number of read bits). Therefore,
Two or more writes are required during one read,
Since each of these operations is performed asynchronously, in order to prevent the operations from duplicating each other, in the embodiment of FIG. 2, priority is given to the write operation that occurs frequently. In other words, the time required for serial-to-parallel conversion of data is divided into two, and writing is performed in a fixed time domain in the first half of the divided time, and only when reading is necessary in a fixed time domain in the second half. This is used to perform reading. The operation of the block in FIG. 2 will be explained with reference to the waveforms of each part in FIG.
The waveforms .about.k and h' respectively represent the respective signals a.about.k and h' in FIG. The relationship between the storage contents of the ROM 7 for timing signal generation and the input addresses Y0 to Y4 is shown in Table 1 at the end of the specification. N=
The 16-bit serial digital data a 1 -a 16 are transmitted to the serial/parallel converter 9 at the rising edge of the transmission clock C. Converter 9 of this serial data a 1 to a 16
When the transmission to is completed, the carry output e of the binary counter 20 is delayed by half a clock from the transmission clock C and becomes "1" for one clock period. Data b, which is parallel-converted by the converter 9 at the rise of the carry output e of the binary counter 20, is temporarily stored in the write buffer register 10. While the serial data next to the data in the buffer register 10 is being transmitted to the converter 9, when the output of the counter 20 becomes a value corresponding to 2 and 3 in hexadecimal, the ROM 7 is stored according to Table 1. Z1 output f becomes "1". That is, it becomes "1" only during two clocks of the transmission clock C. Hexadecimal binary counter 2
0 output for two clocks between 2 and 3.
The output of the write address counter 16 is applied to the address input of the RAM 11. Next, when the output of the hexadecimal binary counter 20 is 3, the Z0 output g of the ROM 7 becomes 1 according to Table 1. That is,
RAM1 is used only for one clock period of transmission clock signal C.
The write/read control terminal W/R of 1 becomes "1". Therefore, the data temporarily stored in the write buffer register 10 is stored for 2 hours while the next serial data is being transmitted to the serial/parallel converter 9.
RAM in a fixed time domain in the first half of the divided time.
11 predetermined addresses. When writing is completed, the Z0 output g of the ROM 7 increments the contents of the write address counter 16 by 1 via the inverter 18 to determine the address to which the next data should be written. Next, regarding reading, the frequency of the reference clock generated by the reference clock signal generation circuit 5 is divided by the frequency dividing circuit 13 to generate a sampling clock. The output rises to "1" for only one clock of the reference clock signal. When the carry output of the frequency dividing circuit 13 rises, the output h of the read flag register 14 is set to 1. The output h=1 of the flag register 14 is the hexadecimal binary counter 20.
The data is temporarily stored in the register 15 at the time when the output of X3 rises, that is, when the content of the counter 20 reaches "8" in hexadecimal. Then, the output h' of the register 15 becomes 1, and this output h' becomes 1.
It is possible to read during the period. On the other hand, the content of the hexadecimal binary counter 20 in the Z 0 output g of the ROM 7 is “2”.
Otherwise, they are all "0", and the RAM 11 is designated to read mode. Furthermore, as mentioned above, the Z1 output f of the ROM 7 becomes 1 only when the hexadecimal binary counter 20 is in the states 2 and 3, so the address selection circuit 8 is Since the control input of is "0" and the output of the read address counter 17 is selected as the output of the address selection circuit 8, the predetermined address to be read is applied to the address input of the RAM 11. Therefore, the output of RAM11 is
In the time domain in which the state of the hexadecimal binary counter 20 is after 8, data is definitely represented. In the embodiment of the present invention, with sufficient margin, the ROM
7's Z 2 output j is the state of the counter 20 in hexadecimal number B
It becomes “1” when . When the Z2 output j of the ROM 7 rises, the data appearing in the output of the RAM 11 is temporarily stored in the read buffer register 12. Therefore, data is read from the predetermined address of the RAM 11. When reading data from a predetermined address in the RAM 11 is completed, the read flag register 14 and the register 15 are cleared, and the contents of the read address counter 17 are incremented by one. In the embodiment of the present invention, when the state of the hexadecimal binary counter 20 is hexadecimal number C, the Z3 output k of the ROM 7 becomes "0", clearing the read flag register 14 and register 15, and The contents of the read address register 17 are incremented by 1 to determine the address of the next data to be read. Note that the readout occurs using the transmission clock signal C.
The contents of the hexadecimal binary counter 20 do not occur at a fixed point in time since they are not synchronized with each other. Therefore, when reading occurs and the output h of the read flag register 14 becomes "1", the content of the hexadecimal binary counter 20 is not at a fixed point in time. If the state of the hexadecimal binary counter 20 is before 8, the output h of the read flag register 14 becomes "1", and the output h of the register 15 becomes "1".
h' becomes "1" when the X 3 output of the hexadecimal binary counter 20 rises, that is, when the state of the counter 20 reaches 8, and the need for reading occurs, and the serial data a 1 to a N are Series/parallel converter 9
The data is read out in a fixed time domain in the latter half of the time domain, which is obtained by dividing the time being transmitted into two. or,
As shown in the example timing chart in Figure 3, the output h of the read flag register 14 becomes 1 after the X3 output of the hexadecimal binary counter 20 rises, that is, after the state of the counter 20 exceeds 8. In this case, when the next serial data a 1-1 to a N-1 is transmitted to the serial/parallel converter 9 , the register 1 is
The output h' of 5 is set to "1" to indicate the need for reading, and the serial data a1-1 to aN-1 are sent to the serial/parallel converter 9.
The data can be read out in a certain fixed time domain in the latter half of the time domain obtained by dividing the transmission time into two. The time when the output h of the read flag register 14 becomes 1 is close to the time when the state of the hexadecimal binary counter 20 becomes 8, and the time during which serial data a 1 to a 16 is being transmitted due to element delays, etc. Even if the need for reading cannot be stored in the register 15 when the X3 output of the hexadecimal binary counter 20 rises, the X3 output of the counter 20 at the time of transmitting the next serial data, i.e. Remembering that it is necessary to read when it reaches 8,
It is possible to read a predetermined address in the RAM 11, and one read can be performed while two writes are performed, and the two operations do not overlap. In this way, the cycle with higher frequency of occurrence is given priority, and the time domain created by the cycle with higher frequency of occurrence is divided into two, and each cycle within the divided time domain is divided into two. By generating the timing for the operations, it is possible to control the operations without overlapping each other. In addition, in the explanation of this example, the case where the state of the hexadecimal binary counter 20 is 2 and 3 is explained for the time domain of writing, but the state of the counter 20 is 0, 1, 4, 5, 6, and 7, respectively. However, writing is possible. Similarly, reading is possible not only in B and C, but also in each time domain of 8 and 9, C and D, and E and F. Therefore, in this example, in the write time domain, it is possible to perform different operations in other time domains other than the time domain in which the write operation is performed. For example, in synchronization with a write operation, data at an address different from the write address is checked, and if an error is found, it is corrected and rewritten to the correct data. It becomes possible to read the data of. In addition, the point at which the period required for serial-to-parallel conversion is divided into two is set at the 8th bit, which is the middle point of 16 bits, but the period is not limited to this, and it may be divided into two at a predetermined bit higher than the 2nd bit. Of course. As described above, according to the present invention, the circuit configuration is simple, the number of elements used can be reduced, and integration is easy. Another advantage is that the timing is clear and there are no malfunctions due to element delays or the like. Time axis compression, expansion and interleaving in RCM signal processing equipment,
It is suitable for use in a memory control device for deinterleaving.

【表】【table】

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

第1図は、一般的なPCM復号器の一部ブロツ
ク図、第2図は本発明の実施例を示すブロツク
図、第3図は、本発明実施例に於ける、N=16の
場合のタイミングチヤートである。 主要部分の符号の説明、13,16,17,2
0……カウンタ、9……直列/並列変換器、1
0,12,14,15……レジスタ、11……
RAM、7……ROM、8……アドレス選択回路。
Fig. 1 is a partial block diagram of a general PCM decoder, Fig. 2 is a block diagram showing an embodiment of the present invention, and Fig. 3 is a block diagram of a part of a general PCM decoder. This is a timing chart. Explanation of symbols of main parts, 13, 16, 17, 2
0...Counter, 9...Serial/parallel converter, 1
0, 12, 14, 15... register, 11...
RAM, 7...ROM, 8...address selection circuit.

Claims (1)

【特許請求の範囲】 1 直列伝送されるNビツト(Nは2以上の整
数)単位よりなるデイジタルデータ(aN〜a1)を
直並列変換器9によりNビツト毎に並列変換して
この並列変換出力をメモリ11に書込み読出し制
御するに際し、書込み読出し動作を互いに非同期
的に制御するメモリ制御装置であつて、 書込アドレスを指定する書込アドレス信号を発
生する書込アドレス信号発生手段16と、 読出アドレスを指定する読出アドレス信号を発
生する読出アドレス信号発生手段17と、 前記直並列変換器9へ前記デイジタルデータを
伝送するための伝送クロツクCをカウントするN
進カウンタ20と、 所定周期毎に一定期間読出動作指令信号hを発
生する手段5,13,14と、 前記読出動作指令信号hの発生期間中でかつ前
記N進カウンタ20が1以外の所定積算値に対応
する内容になつたときに応答して読出可能信号
h′を発生する手段15と、 前記N進カウンタ20のカウント出力信号X0
〜X3及び前記読出可能信号h′に基づいて前記N
進カウンタの積算開始後前記メモリ11に対して
前記読出可能信号h′の発生前においては書込モー
ドを指定し前記読出可能信号h′の発生期間内にお
いては読出しモードを指定するモード指定信号g
と前記モード指定信号gに対応した書込又は読出
アドレスの選択を指令するアドレス選択信号fと
を発生するタイミング信号発生手段7と、 前記アドレス選択信号fに応答して前記書込及
び前記読出アドレス信号のうちいずれか一方を前
記メモリ11のアドレス入力端に導出するアドレ
ス選択手段8とを含むことを特徴とするメモリ制
御装置。 2 前記タイミング信号発生手段7は、前記N進
カウンタのカウント出力信号X0〜X3及び前記読
出可能信号h′を読出アドレス入力端に受けて、該
読出アドレスに予め記憶された信号パターンを出
力する読出専用メモリからなることを特徴とする
請求項1記載のメモリ制御装置。
[Scope of Claims] 1 Digital data (a N to a 1 ) consisting of N bits (N is an integer of 2 or more) transmitted in series is converted into parallel data every N bits by a serial/parallel converter 9, and the data is parallelized. A memory control device that controls write and read operations asynchronously with respect to each other when writing and reading conversion outputs to and from the memory 11 is controlled, and includes a write address signal generating means 16 that generates a write address signal that specifies a write address; , read address signal generating means 17 for generating a read address signal specifying a read address, and N for counting the transmission clock C for transmitting the digital data to the serial-parallel converter 9.
a base counter 20; means 5, 13, and 14 for generating a read operation command signal h for a certain period every predetermined cycle; Readable signal in response to the content corresponding to the value
a count output signal X 0 of the N-ary counter 20;
~X 3 and the readable signal h'
A mode designation signal g that designates a write mode for the memory 11 after the start of integration of the advance counter and designates a write mode before the read enable signal h' is generated and a read mode during the generation period of the read enable signal h'.
and an address selection signal f for instructing the selection of a write or read address corresponding to the mode designation signal g; A memory control device characterized in that it includes address selection means 8 for deriving one of the signals to an address input terminal of the memory 11. 2. The timing signal generating means 7 receives the count output signals X0 to X3 of the N-ary counter and the read enable signal h' at a read address input terminal, and outputs a signal pattern stored in advance at the read address. 2. The memory control device according to claim 1, comprising a read-only memory.
JP55145300A 1980-10-17 1980-10-17 Memory controller Granted JPS5768954A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP55145300A JPS5768954A (en) 1980-10-17 1980-10-17 Memory controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP55145300A JPS5768954A (en) 1980-10-17 1980-10-17 Memory controller

Publications (2)

Publication Number Publication Date
JPS5768954A JPS5768954A (en) 1982-04-27
JPH0262982B2 true JPH0262982B2 (en) 1990-12-27

Family

ID=15381950

Family Applications (1)

Application Number Title Priority Date Filing Date
JP55145300A Granted JPS5768954A (en) 1980-10-17 1980-10-17 Memory controller

Country Status (1)

Country Link
JP (1) JPS5768954A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59228441A (en) * 1983-06-10 1984-12-21 Nec Home Electronics Ltd Clock forming circuit of pcm recording and reproducing device
JPH01162925A (en) * 1987-12-18 1989-06-27 Fujitsu Ltd Asynchronous speed converting circuit

Also Published As

Publication number Publication date
JPS5768954A (en) 1982-04-27

Similar Documents

Publication Publication Date Title
US4577319A (en) Error flag processor
EP0140456A1 (en) Data processing system in which unreliable words in the memory are replaced by an unreliability indicator
JPS63269834A (en) Address generation circuit
JPH0262982B2 (en)
JPS6288490A (en) Teletext signal processing circuit
US5500825A (en) Parallel data outputting storage circuit
JP2000022649A (en) Resampling system
JPS5833737B2 (en) doukikahoushiki
JPS6129226A (en) Channel data separating device
JPH0352694B2 (en)
JPS5836037A (en) Pcm signal transmission system
US5297100A (en) Address control system for a RAM in a digital audio set
JP2508861B2 (en) Word multi-time switch
JPS5941618B2 (en) Synchronous clock generation circuit
KR0128055Y1 (en) Error correction apparatus
JP2917583B2 (en) Staff synchronization circuit
JPS5934025B2 (en) buffer memory circuit
JPS5812780B2 (en) Asynchronous circuit
JPH0379890B2 (en)
JPS6342896B2 (en)
JPH0758950B2 (en) Frame aligner circuit
JPS5939192A (en) Synchronizing circuit of time division switch
KR980011311A (en) CD-ROM data buffering and error correction device and method thereof
JPS61296572A (en) Time base correcting device
JPS6155135B2 (en)