Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4147799B2 - Data transfer system - Google Patents
[go: Go Back, main page]

JP4147799B2 - Data transfer system - Google Patents

Data transfer system Download PDF

Info

Publication number
JP4147799B2
JP4147799B2 JP2002098141A JP2002098141A JP4147799B2 JP 4147799 B2 JP4147799 B2 JP 4147799B2 JP 2002098141 A JP2002098141 A JP 2002098141A JP 2002098141 A JP2002098141 A JP 2002098141A JP 4147799 B2 JP4147799 B2 JP 4147799B2
Authority
JP
Japan
Prior art keywords
transmission
data
fifo
byte
reception
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 - Fee Related
Application number
JP2002098141A
Other languages
Japanese (ja)
Other versions
JP2003296264A (en
Inventor
秀紀 山際
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 Engineering Ltd
Original Assignee
NEC Engineering 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 Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP2002098141A priority Critical patent/JP4147799B2/en
Publication of JP2003296264A publication Critical patent/JP2003296264A/en
Application granted granted Critical
Publication of JP4147799B2 publication Critical patent/JP4147799B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Bus Control (AREA)
  • Information Transfer Systems (AREA)

Description

【0001】
【発明の属する技術分野】
本発明はデータ転送システムに関し、特にDMA(Direct Memory Access)機能を有するFIFO(First−In First−Out)制御回路によりデータ転送を行うデータ転送システムに関する。
【0002】
【従来の技術】
最近のコンピュータシステムの高速化および大型化が進み、これに伴い取り扱うデータ量が膨大になっている。このようなシステムでは一般に、CPUを介することなく、メモリと入出力装置間で直接にデータ転送を行うダイレクトメモリアクセス(DMA)方式が広く用いられている。
【0003】
従来のデータ転送システムは、FIFO内に空きエリアがあっても上位装置とのインタフェースのバイト幅未満しか空きエリアがないと、DMA機能で上位装置に対する転送要求を止めている。その理由は、上位装置は最大でFIFOのインタフェースのバイト幅でアクセスすることが許されているため、必ず転送要求を出す場合は、インタフェースのバイト幅分の空きエリアを確保する必要があることによる。
【0004】
このような技術の一例として、特開平5−173728号公報記載の「情報処理方法及び装置」が知られている。
【0005】
この公報では、主制御部とデバイス制御部との間でデータ或いはコマンドを転送し、デバイス制御部に転送されるデータが格納可能な容量を表す残量情報を主制御部に転送することで、主制御部が受信バッファの空き容量サイズに応じて、転送量を決定し一度に多量のデータ転送を可能とする技術が記載されている。
【0006】
【発明が解決しようとする課題】
上述した従来のデータ転送システムは、例えばDMA機能によるデータ転送で上位装置からFIFOを経由してI/O(Input/Output)装置にデータを転送する場合、FIFOの出力側の送信速度がFIFOの入力側のデータ受信速度よりも遅いと、FIFO内に上位装置からデータを送信しようとするバイト数分の空きがあっても、FIFOのDMA機能は転送要求を抑えてしまうことになる。FIFOは、上位装置から送信される可能性がある最大バイト幅分を受信できるだけの空きエリアがあるときのみDMA要求を出すようにしているので、FIFO内に上位装置から送信されるバイト幅分の空きエリアがないとDMA要求を出すことができないという欠点を有している。
【0007】
本発明の目的は、FIFO内のバッファに入力バイト幅未満の空きエリアしかなく、上位装置がその空きエリア以下の量のデータを転送しようとした場合にも、送信を止めることなく処理することで転送効率を高めるデータ転送システムを提供することにある。
【0008】
【課題を解決するための手段】
本発明の第1のデータ転送システムは、データの送受信を行う上位装置と;
この上位装置に接続され、データ転送ダイレクトメモリアクセス(DMA:Direct Memory Access)機能を有するFIFO(First−In First−Out)によりデータ転送を行うデータ転送装置と;
このデータ転送装置に接続されデータを送受信する下位装置と;
を有し、
前記データ転送装置が、
前記FIFOの入力側が前記上位装置に接続され、前記FIFOの出力側が前記下位装置と接続され、前記入力側のデータのバイト幅が前記出力側のデータのバイト幅よりも小さく、前記FIFO内の空きエリアが前記FIFOの入力側データのバイト幅未満となったことを検出し、前記上位装置側のバイト幅変更要求を行うバイト幅変更手段を備え;
前記上位装置が、
前記バイト幅変更要求を受け、前記データ転送装置に送受信しようとしているデータのバイト幅と同じかどうかを照合するバイト幅照合手段と;
このバイト幅照合手段による照合結果が同じ場合に、前記データ転送装置の前記FIFOに対して要求バイト幅で送受信することを許可する送受信許可手段と;
を備えたことを特徴としている。
【0009】
本発明の第2のデータ転送システムは、データの送受信を行う上位装置と;
この上位装置に接続され、ダイレクトメモリアクセス機能を有する送信FIFO及び受信FIFOによりデータ転送を行うデータ転送装置と;
このデータ転送装置に接続されデータを送受信する下位装置と;
を有し、
前記データ転送装置が、
前記送信FIFOの入力側及び前記受信FIFOの出力側が前記上位装置に接続され、前記送信FIFOの出力側及び前記受信FIFOの入力側が下位装置と接続され、前記入力側のデータのバイト幅が前記出力側のデータのバイト幅よりも小さく、前記送信FIFO及び前記受信FIFO内の空きエリアが前記送信FIFO及び前記受信FIFOの入力側のデータのバイト幅未満となったことを検出し、前記上位装置側の送信バイト幅変更要求を行う送信バイト幅変更手段及び前記上位装置側の受信バイト幅変更要求を行う受信バイト幅変更手段を備え;
前記上位装置が、
前記送信バイト幅変更要求を受け、前記データ転送装置に送信しようとしているバイト幅と同じかどうかを照合する送信バイト幅照合手段と;
前記受信バイト幅変更要求を受け、前記データ転送装置から受信しようとしているバイト幅と同じかどうかを照合する受信バイト幅照合手段と;
前記送信バイト幅照合手段による照合結果が同じ場合に、前記送信FIFOに対して要求バイト幅で送信することを許可する送信許可手段と;
前記受信バイト幅照合手段による照合結果が同じ場合に、前記受信FIFOに対して要求バイト幅で受信することを許可する受信許可手段と;
を備えたことを特徴としている。
【0010】
本発明の第3のデータ転送システムは、データの送受信を行う上位装置と;
この上位装置に接続され、データ転送ダイレクトメモリアクセス機能によりデータ転送を行うデータ転送装置と;
このデータ転送装置に接続されデータを送受信する下位装置と;
を有し、
前記データ転送装置は、
前記上位装置からの第1の送信データを受信し、セレクタを介して第2の送信データを下位装置に送信する送信FIFOと;
前記下位装置から受信した第1の受信データを第2の受信データとして前記上位装置に送信する受信FIFOと;
前記送信FIFO内の未使用バイト数を第1の残バイト数表示信号により検出し、送信側バイト幅変更要求信号を前記上位装置に出力する送信FIFO空きバイト数検出回路と;
前記受信FIFO内の未使用バイト数を第2の残バイト数表示信号により検出し、受信側バイト幅変更要求信号を前記上位装置に出力する受信FIFO有効バイト数検出回路と;
前記送信FIFOからの送信要求信号及び前記受信FIFOからの受信要求信号を受けて、前記上位装置に対してデータ送受信要求信号を出力するDMA回路と;
を備えたことを特徴としている。
【0011】
本発明の第4のデータ転送システムは、前記第3のデータ転送システムにおいて、
前記上位装置は、
前記受信FIFOから1アクセスサイクル内で受信できる受信バイト数と前記受信側バイト幅変更要求信号とを照合し、受信バイト数指示信号をデータ受信部に出力する受信バイト数照合回路と;
前記データ送受信要求信号、前記受信バイト数指示信号を入力し、前記受信FIFOに対して受信バイトイネーブル信号及び読出信号を出力し、受信した前記第2の受信データを保持するデータ受信部と;
前記送信FIFOが1アクセスサイクル内で送信できる送信バイト数と前記送信側バイト幅変更要求信号とを照合し、送信バイト数指示信号をデータ送信部に出力する送信バイト数照合回路と;
前記データ送受信要求信号、前記送信バイト数指示信号を入力し、前記送信FIFOに対して送信バイトイネーブル信号及び書込信号を出力し、保持した第1の送信データを出力するデータ送信部と;
を備えたことを特徴としている。
【0012】
本発明の第5のデータ転送システムは、前記第4のデータ転送システムにおいて、
前記送信バイト数照合回路は、
前記送信側バイト幅変更要求信号を受け取り、前記データ送信部が次に前記送信FIFOに送信するデータがバイト幅以下かどうかを前記送信バイト数指示信号により検出し、バイト幅以下であれば前記第1の送信データの送信を許可し、バイト幅より大きければ前記第1の送信データの送信を保留することを特徴としている。
【0013】
本発明の第6のデータ転送システムは、前記第4または第5のデータ転送システムにおいて、
前記受信バイト数照合回路は、
前記受信側バイト幅変更要求信号で示されたバイト数が、次に前記データ受信部が受信しようとしているバイト数以下であれば、前記受信FIFOから前記第2の受信データの受信を行い、前記受信側バイト幅変更要求信号で示されたバイト数よりも大きければ、前記データ受信部は前記受信FIFOからの前記第2の受信データの受信は行わず、前記受信側バイト幅変更要求信号が、前記データ受信部が受信しようとしているバイト数以下になるまで待機することを特徴としている。
【0014】
本発明の第7のデータ転送システムは、前記第3〜6のいずれかのデータ転送システムにおいて、
前記セレクタは、
複数バイト単位で書込み可能な前記送信FIFOに対して、前記下位装置の入出力インタフェースが1バイトしかない場合、読み出した前記第2の送信データを1バイトに制限することを特徴としている。
【0015】
また、本発明の第8のデータ転送システムは、
前記データ転送システムをコンピュータシステムに使用したことを特徴としている。
【0016】
さらに、本発明の第9のデータ転送システムは、
データ転送ダイレクトメモリアクセス機能により外部とデータ転送を行うデータ転送システムであって、
外部からの第1の送信データを受信し、セレクタを介して第2の送信データを下位装置に送信する送信FIFOと;
前記下位装置から受信した第1の受信データを第2の受信データとして外部に送信する受信FIFOと;
前記送信FIFO内の未使用バイト数を第1の残バイト数表示信号により検出し、送信側バイト幅変更要求信号を外部に出力する送信FIFO空きバイト数検出回路と;
前記受信FIFO内の未使用バイト数を第2の残バイト数表示信号により検出し、受信側バイト幅変更要求信号を外部に出力する受信FIFO有効バイト数検出回路と;
前記送信FIFOからの送信要求信号及び前記受信FIFOからの受信要求信号を受けて、外部に対してデータ送受信要求信号を出力するDMA回路と;
を備えたことを特徴としている。
【0017】
また、本発明の第10のデータ転送システムは、前記第1〜7のいずれかのデータ転送システムにおいて、
前記下位装置が、I/O(Input/Output)装置であることを特徴としている。
【0018】
【発明の実施の形態】
次に、本発明の実施の形態について図面を参照して説明する。
【0019】
図1は本発明のデータ転送システムの一つの実施の形態を示すブロック図である。
【0020】
図1に示す本発明のデータ転送システムは、データ転送を行うデータ転送装置1と、このデータ転送装置1と接続しデータの送受信を行う上位装置2と、このデータ転送装置1とデータの送受信を行う下位装置3とから構成されている。
【0021】
本構成により、上位装置2からデータ転送装置1を経由して下位装置3にデータ転送を行う送信処理と、下位装置3からデータ転送装置1を経由して上位装置2にデータ転送を行う受信処理が行われる。
【0022】
データ転送装置1は、上位装置2からの送信データ203を受信し、セレクタ10を介して送信データ108を下位装置3に送信する送信FIFO11と、下位装置3から受信した受信データ107を受信データ103として上位装置2に送信する受信FIFO12と、送信FIFO11内の未使用バイト数を残バイト数表示信号106により検出し、送信側バイト幅変更要求信号101を上位装置2に出力する送信FIFO空きバイト数検出回路13と、受信FIFO12内の未使用バイト数を残バイト数表示信号105により検出し、受信側バイト幅変更要求信号104を上位装置2に出力する受信FIFO有効バイト数検出回路14と、送信FIFO11からの送信要求信号110及び受信FIFO12からの受信要求信号109を受けて、上位装置2に対してデータ送受信要求信号102を出力するDMA(Direct Memory Access)回路15とから構成されている。
【0023】
また、上位装置2は、受信FIFO12から1アクセスサイクル内で受信できる受信バイト数と受信側バイト幅変更要求信号104とを照合し、受信バイト数指示信号201を出力する受信バイト数照合回路21と、データ送受信要求信号102、受信バイト数指示信号201を入力し、受信FIFO12に対して受信バイトイネーブル信号207及び読出信号206を出力し、受信した受信データ103を保持するデータ受信部22と、送信FIFO11が1アクセスサイクル内で送信できる送信バイト数と送信側バイト幅変更要求信号101とを照合し、送信バイト数指示信号202を出力する送信バイト数照合回路23と、データ送受信要求信号102、送信バイト数指示信号202を入力し、送信FIFO11に対して送信バイトイネーブル信号205、書込信号204を出力し、保持した送信データ203を出力するデータ送信部24とを有している。
【0024】
図2は図1の送信FIFOに対するデータ送信を示すタイムチャートである。
【0025】
図3は図1の送信処理フローの要点を説明した図である。
【0026】
なお、図3において図1に示す構成要素に対応するものは同一の参照数字または符号を付している。
【0027】
また、図4は図1の受信FIFOに対するデータ受信を示すタイムチャートである。
【0028】
図5は図1の受信処理フローの要点を説明した図である。
【0029】
なお、図5において図1に示す構成要素に対応するものは同一の参照数字または符号を付している。
【0030】
次に、本実施の形態の動作を図1、図2、図3、図4および図5を用いてより詳細に説明する。
【0031】
DMA回路15が送信FIFO11から送信要求信号110を受けると、上位装置2のデータ送信部24に対してデータ送受信要求信号102によりデータ転送要求を行う。このデータ送受信要求信号102の要求に従いデータ送信部24は送信データ203の転送を開始する。データ送信部24は、送信FIFO11に対して送信データ203、送信バイトイネーブル信号205、書込信号204、クロック信号CLK(図示せず)を出力し、送信FIFO11に送信データ203を書き込む。
【0032】
この書込み動作を図2を用いてより詳細に説明する。書込信号204のレベルがLow状態で書込みが行われる。送信バイトイネーブル信号205は、例えば3ビットで構成されており、送信データ203が4バイト幅データの場合、送信バイトイネーブル信号205は4バイト幅を示すバイナリ表示で“100”(4)が出力される。
【0033】
ここで送信FIFO空きバイト数検出回路13が、送信側バイト幅変更要求信号101として3バイト幅データを示す“011”(3)を送信バイト数照合回路23に出力すると、データ送信部24は3バイト幅データの送信データ203、3バイト幅を示すバイナリ表示で“011”(3)の送信バイトイネーブル信号205を、レベルがLow状態の書込信号204とともに送信FIFO11に出力する。
【0034】
送信FIFO11は、データ送信部24とのインタフェースのデータ幅よりも空きエリアが少ないとき、残バイト数表示信号106により送信FIFO空きバイト数検出回路13に通知し、これにより送信FIFO空きバイト数検出回路13がデータ送信部24に対して空きエリア分のバイト幅でのみアクセス可能であることを、送信側バイト幅変更要求信号101により送信バイト数照合回路23に通知する。
【0035】
送信バイト数照合回路23は、送信側バイト幅変更要求信号101を受け取り、データ送信部24がこれから送信FIFO11に送信するデータがバイト幅以下かどうかを照合し、バイト幅以下であれば送信データ203の送信を許可し、バイト幅より大きければデータ送信部24で送信データ203の送信を保留するための送信バイト数指示信号202を発生させる。
【0036】
上述の上位装置2とデータ転送装置1間の送信処理フローの要点を図3を参照して説明する。
【0037】
図3に示すように、DMA回路15がデータ送信部24に対してDMA機能による転送要求を出すことにより、データ送信部24は送信FIFO11に対してFIFOとのインタフェースのバイト幅分の送信データ203を送信する。
【0038】
送信FIFO空きバイト数検出回路13は、送信FIFO11の空きバイト数がインタフェースのバイト数未満になると、送信バイト数照合回路23に通知する。送信バイト数照合回路23は送信バイト数指示信号202によりデータ送信部24に通知し、データ送信部24は送信FIFO11にFIFOの空きバイト数以下のデータ幅で転送することになる。
【0039】
上位装置2とデータ転送装置1との間の送信処理を行った後の動作を、図1に戻って説明する。
【0040】
送信FIFO11は、書き込まれた送信データ203をセレクタ10経由で下位装置3に対して、1バイト幅で送信データ108を送信する。データ送信部24はDMA回路15から転送要求される限り送信データ203を送信FIFO11に転送することになる。
【0041】
ここでセレクタ10は選択回路であり、複数バイト単位で書込み可能なFIFOに対して、下位装置3のI/Oインタフェースが1バイトしかない場合、読み出した送信データ108を1バイトに制限する機能を有する。
【0042】
次に、上位装置2とデータ転送装置1の受信処理の動作について説明する。
【0043】
受信側も同様に、DMA回路15が受信FIFO12から受信要求信号109を受けると、上位装置2のデータ受信部22に対してデータ送受信要求信号102によりデータ受信要求を行う。このデータ送受信要求信号102に応答して、データ受信部22が受信FIFO12に対して読出信号206、受信バイトイネーブル信号207、クロック信号CLK(図示せず)を出力し、下位装置3からの受信データ107を蓄積した受信FIFO12から受信データ103として読み出し、データ受信部22に転送される。
【0044】
この読出し動作を図4を用いて詳細に説明する。読出信号206のレベルがLow状態で読み出しが行われる。受信バイトイネーブル信号207は例えば3ビットで構成されており、受信データ103が4バイト幅データの場合、受信バイトイネーブル信号207は4バイト幅を示すバイナリ表示で“100”(4)が出力される。
【0045】
ここで受信FIFO有効バイト数検出回路14が、受信側バイト幅変更要求信号104として3バイト幅データを示す“011”(3)を受信バイト数照合回路21に出力すると、データ受信部22は3バイト幅データの受信データ103、3バイト幅を示すバイナリ表示で“011”(3)の受信バイトイネーブル信号207を、レベルがLow状態の読出信号206とともに受信FIFO12に出力する。
【0046】
データ受信部22は、DMA回路15からデータ送受信要求信号102で要求される限り、受信データ103の受信を行う。
【0047】
受信FIFO12は、データ受信部22とのインタフェースのデータ幅よりも受信データ103が少ないとき、残バイト数表示信号105により受信FIFO有効バイト数検出回路14に通知し、これにより受信FIFO有効バイト数検出回路14がデータ受信部22に対して有効バイトエリア分のバイト幅でのみアクセス可能であることを、受信側バイト幅変更要求信号104により通知する。
【0048】
受信バイト数照合回路21は、受信側バイト幅変更要求信号104で示されたバイト数が、次にデータ受信部22が受信しようとしているバイト数以下であれば、受信FIFO12から受信データ103の受信を行い、受信側バイト幅変更要求信号104で示されたバイト数よりも大きければ、データ受信部22は受信FIFO12からの受信データ103の受信は行わず、受信側バイト幅変更要求信号104が、データ受信部22が受信しようとしているバイト数以下になるまで待機する。
【0049】
上述の上位装置2とデータ転送装置1間の受信処理フローの要点を図5を参照して説明する。
【0050】
図5に示すように、DMA回路15がデータ受信部22に対してDMA機能による転送要求を出すことにより、データ受信部22は受信FIFO12からFIFOとのインタフェースのバイト幅分の受信データ103を受信する。
【0051】
受信FIFO有効バイト数検出回路14は、受信FIFO12の空きバイト数がインタフェースのバイト数未満になると、受信バイト数照合回路21に通知する。受信バイト数照合回路21は受信バイト数指示信号201によりデータ受信部22に通知し、データ受信部22は受信FIFO12からFIFOの空きバイト数以下のデータ幅で転送されることになる。
【0052】
なお、図1に示す下位装置3には、例えば入出力インタフェースを有するI/O(Input/Output)装置が使用される。
【0053】
また、上述のデータ転送システムは、コンピュータシステムや通信システム等に組み込まれ使用することができる。
【0054】
さらにまた、データ転送システムとして、データ転送装置1単体として使用することも可能である。
【0055】
【発明の効果】
以上説明したように、本発明のデータ転送システムは、送信FIFOに空きエリアがあり上位装置から転送する準備ができている場合に従来はFIFOのバイト幅分の空きエリアがないと次のデータを送信できなかったが、FIFO内のバッファに入力バイト幅未満の空きエリアしかなく、上位装置がその空きエリアよりも少ない量のFIFOバイト幅以下のデータを転送しようとした場合にも、送信を止めることなく処理することができるので、転送効率を高めるという効果を有している。
【図面の簡単な説明】
【図1】本発明のデータ転送システムの一つの実施の形態を示すブロック図である。
【図2】図1の送信FIFOに対するデータ送信を示すタイムチャートである。
【図3】図1の送信処理フローの要点を説明した図である。
【図4】図1の受信FIFOに対するデータ受信を示すタイムチャートである。
【図5】図1の受信処理フローの要点を説明した図である。
【符号の説明】
1 データ転送装置
2 上位装置
3 下位装置
10 セレクタ
11 送信FIFO
12 受信FIFO
13 送信FIFO空きバイト数検出回路
14 受信FIFO有効バイト数検出回路
15 DMA回路
21 受信バイト数照合回路
22 データ受信部
23 送信バイト数照合回路
24 データ送信部
101 送信側バイト幅変更要求信号
102 データ送受信要求信号
103 受信データ
104 受信側バイト幅変更要求信号
105 残バイト数表示信号
106 残バイト数表示信号
107 受信データ
108 送信データ
109 受信要求信号
110 送信要求信号
201 受信バイト数指示信号
202 送信バイト数指示信号
203 送信データ
204 書込信号
205 送信バイトイネーブル信号
206 読出信号
207 受信バイトイネーブル信号
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a data transfer system, and more particularly to a data transfer system in which data transfer is performed by a FIFO (First-In First-Out) control circuit having a DMA (Direct Memory Access) function.
[0002]
[Prior art]
The recent increase in speed and size of computer systems has led to enormous amounts of data being handled. In general, a direct memory access (DMA) system in which data is directly transferred between a memory and an input / output device without using a CPU is widely used in such a system.
[0003]
In the conventional data transfer system, even if there is an empty area in the FIFO, if there is an empty area that is less than the byte width of the interface with the host device, the DMA function stops the transfer request to the host device. The reason is that the host device is allowed to access with the byte width of the FIFO interface at the maximum, so when a transfer request is always issued, it is necessary to secure an empty area for the byte width of the interface. .
[0004]
As an example of such a technique, an “information processing method and apparatus” described in JP-A-5-173728 is known.
[0005]
In this publication, data or commands are transferred between the main control unit and the device control unit, and remaining amount information indicating a capacity capable of storing data transferred to the device control unit is transferred to the main control unit. A technique is described in which the main control unit determines the transfer amount according to the free capacity size of the reception buffer and enables a large amount of data transfer at a time.
[0006]
[Problems to be solved by the invention]
In the conventional data transfer system described above, for example, when data is transferred from a host device to an I / O (Input / Output) device via a FIFO by data transfer using a DMA function, the transmission speed on the output side of the FIFO is FIFO. If it is slower than the data reception speed on the input side, the FIFO DMA function will suppress transfer requests even if there is space in the FIFO for the number of bytes to be transmitted from the host device. Since the FIFO issues a DMA request only when there is a free area that can receive the maximum byte width that can be transmitted from the host device, the FIFO has a byte width transmitted from the host device in the FIFO. There is a disadvantage that a DMA request cannot be issued without a free area.
[0007]
An object of the present invention is to perform processing without stopping transmission even when the buffer in the FIFO has only an empty area less than the input byte width and the upper apparatus tries to transfer data of an amount less than the empty area. It is an object of the present invention to provide a data transfer system that increases transfer efficiency.
[0008]
[Means for Solving the Problems]
The first data transfer system of the present invention includes a host device that transmits and receives data;
A data transfer device connected to the host device and performing data transfer by a FIFO (First-In First-Out) having a data transfer direct memory access (DMA) function;
A subordinate device connected to the data transfer device and transmitting / receiving data;
Have
The data transfer device is
The input side of the FIFO is connected to the higher-level device, the output side of the FIFO is connected to the lower-level device, the byte width of the data on the input side is smaller than the byte width of the data on the output side, and the empty space in the FIFO Byte width changing means for detecting that the area is less than the byte width of the input data of the FIFO and making a byte width change request on the host device side;
The host device is
A byte width verification unit that receives the byte width change request and verifies whether the byte width of the data to be transmitted to or received from the data transfer device is the same;
Transmission / reception permission means for permitting transmission / reception with the requested byte width to / from the FIFO of the data transfer apparatus when the collation result by the byte width collation means is the same;
It is characterized by having.
[0009]
The second data transfer system of the present invention includes a host device that transmits and receives data;
A data transfer device connected to the host device and performing data transfer by a transmission FIFO and a reception FIFO having a direct memory access function;
A subordinate device connected to the data transfer device and transmitting / receiving data;
Have
The data transfer device is
The input side of the transmission FIFO and the output side of the reception FIFO are connected to the host device, the output side of the transmission FIFO and the input side of the reception FIFO are connected to a lower device, and the byte width of the data on the input side is the output And detecting that the empty area in the transmission FIFO and the reception FIFO is less than the byte width of the data on the input side of the transmission FIFO and the reception FIFO. A transmission byte width changing means for making a request for changing the transmission byte width and a receiving byte width changing means for making a request for changing the received byte width of the host device side
The host device is
A transmission byte width verification unit that receives the transmission byte width change request and verifies whether or not it is the same as the byte width to be transmitted to the data transfer device;
A received byte width verification unit that receives the request to change the received byte width and verifies whether or not it is the same as the byte width to be received from the data transfer device;
Transmission permission means for permitting transmission to the transmission FIFO with a requested byte width when the collation result by the transmission byte width collation means is the same;
Reception permission means for permitting the reception FIFO to receive the requested byte width when the collation result by the reception byte width collation means is the same;
It is characterized by having.
[0010]
A third data transfer system according to the present invention includes a host device for transmitting and receiving data;
A data transfer device connected to the host device and performing data transfer by a data transfer direct memory access function;
A subordinate device connected to the data transfer device and transmitting / receiving data;
Have
The data transfer device
A transmission FIFO that receives the first transmission data from the upper apparatus and transmits the second transmission data to the lower apparatus via the selector;
A reception FIFO for transmitting the first reception data received from the lower apparatus to the upper apparatus as second reception data;
A transmission FIFO empty byte number detection circuit that detects the number of unused bytes in the transmission FIFO by a first remaining byte number display signal and outputs a transmission-side byte width change request signal to the host device;
A receive FIFO valid byte count detection circuit that detects the number of unused bytes in the receive FIFO by a second remaining byte count display signal and outputs a receive-side byte width change request signal to the host device;
A DMA circuit that receives a transmission request signal from the transmission FIFO and a reception request signal from the reception FIFO and outputs a data transmission / reception request signal to the host device;
It is characterized by having.
[0011]
According to a fourth data transfer system of the present invention, in the third data transfer system,
The host device is
A received byte number verification circuit that verifies the number of received bytes that can be received from the received FIFO within one access cycle and the received byte width change request signal, and outputs a received byte number instruction signal to the data receiving unit;
A data receiving unit that inputs the data transmission / reception request signal and the received byte count instruction signal, outputs a received byte enable signal and a read signal to the receive FIFO, and holds the received second received data;
A transmission byte number verification circuit that compares the number of transmission bytes that the transmission FIFO can transmit within one access cycle with the transmission-side byte width change request signal and outputs a transmission byte number instruction signal to the data transmission unit;
A data transmission unit that inputs the data transmission / reception request signal and the transmission byte count instruction signal, outputs a transmission byte enable signal and a write signal to the transmission FIFO, and outputs the held first transmission data;
It is characterized by having.
[0012]
According to a fifth data transfer system of the present invention, in the fourth data transfer system,
The transmission byte count verification circuit
The transmission side byte width change request signal is received, and it is detected by the transmission byte number instruction signal whether or not the data to be transmitted next to the transmission FIFO by the data transmission unit is the byte width or less. The transmission of one transmission data is permitted, and if the width is larger than the byte width, the transmission of the first transmission data is suspended.
[0013]
According to a sixth data transfer system of the present invention, in the fourth or fifth data transfer system,
The received byte count verification circuit
If the number of bytes indicated by the receiving side byte width change request signal is equal to or less than the number of bytes that the data receiving unit is to receive next, the second received data is received from the receiving FIFO, If it is larger than the number of bytes indicated by the reception-side byte width change request signal, the data reception unit does not receive the second reception data from the reception FIFO, and the reception-side byte width change request signal is The data reception unit waits until the number of bytes to be received is less than or equal to the number of bytes.
[0014]
A seventh data transfer system of the present invention is the data transfer system according to any one of the third to sixth,
The selector is
When the input / output interface of the lower-level device has only 1 byte for the transmission FIFO writable in units of a plurality of bytes, the read second transmission data is limited to 1 byte.
[0015]
The eighth data transfer system of the present invention is
The data transfer system is used in a computer system.
[0016]
Furthermore, the ninth data transfer system of the present invention provides
A data transfer system for transferring data with the outside by a data transfer direct memory access function,
A transmission FIFO that receives first transmission data from the outside and transmits the second transmission data to a lower-level device via a selector;
A reception FIFO for transmitting the first reception data received from the lower apparatus to the outside as second reception data;
A transmission FIFO empty byte number detection circuit for detecting the number of unused bytes in the transmission FIFO by a first remaining byte number display signal and outputting a transmission side byte width change request signal to the outside;
A receive FIFO valid byte count detection circuit that detects the number of unused bytes in the receive FIFO by a second remaining byte count display signal and outputs a receive side byte width change request signal to the outside;
A DMA circuit that receives a transmission request signal from the transmission FIFO and a reception request signal from the reception FIFO and outputs a data transmission / reception request signal to the outside;
It is characterized by having.
[0017]
The tenth data transfer system of the present invention is any one of the first to seventh data transfer systems,
The subordinate apparatus is an I / O (Input / Output) apparatus.
[0018]
DETAILED DESCRIPTION OF THE INVENTION
Next, embodiments of the present invention will be described with reference to the drawings.
[0019]
FIG. 1 is a block diagram showing an embodiment of a data transfer system of the present invention.
[0020]
The data transfer system of the present invention shown in FIG. 1 includes a data transfer apparatus 1 that performs data transfer, a host apparatus 2 that is connected to the data transfer apparatus 1 and transmits / receives data, and transmits / receives data to / from the data transfer apparatus 1. It is comprised from the low-order apparatus 3 to perform.
[0021]
With this configuration, transmission processing for transferring data from the upper level device 2 to the lower level device 3 via the data transfer device 1 and reception processing for transferring data from the lower level device 3 to the higher level device 2 via the data transfer device 1 Is done.
[0022]
The data transfer apparatus 1 receives the transmission data 203 from the upper apparatus 2 and transmits the transmission data 11 to the lower apparatus 3 via the selector 10 and the received data 107 received from the lower apparatus 3 as the reception data 103. The number of unused bytes in the reception FIFO 12 to be transmitted to the upper apparatus 2 and the number of unused bytes in the transmission FIFO 11 is detected by the remaining byte number display signal 106 and the transmission side byte width change request signal 101 is output to the upper apparatus 2. A detection circuit 13, a reception FIFO valid byte number detection circuit 14 that detects the number of unused bytes in the reception FIFO 12 by a remaining byte number display signal 105, and outputs a reception side byte width change request signal 104 to the host device 2; The transmission request signal 110 from the FIFO 11 and the reception request signal 109 from the reception FIFO 12 are received. Te, and a DMA (Direct Memory Access) circuit 15 for outputting a data transmission and reception request signal 102 to the high-level equipment 2.
[0023]
The host device 2 collates the number of received bytes that can be received from the reception FIFO 12 within one access cycle with the received-side byte width change request signal 104, and outputs a received byte number indicating signal 201 to the received byte number collating circuit 21. The data transmission / reception request signal 102 and the reception byte count instruction signal 201 are input, the reception byte enable signal 207 and the read signal 206 are output to the reception FIFO 12, and the data reception unit 22 that holds the received reception data 103 and the transmission The transmission byte number collating circuit 23 that collates the number of transmission bytes that can be transmitted by the FIFO 11 within one access cycle with the transmission-side byte width change request signal 101 and outputs the transmission byte number instruction signal 202, the data transmission / reception request signal 102, and the transmission The byte count instruction signal 202 is input and the transmission byte 11 is transmitted to the transmission FIFO 11. Buru signal 205, and a data transmission unit 24 outputs a write signal 204, and outputs the transmission data 203 held.
[0024]
FIG. 2 is a time chart showing data transmission with respect to the transmission FIFO of FIG.
[0025]
FIG. 3 is a diagram for explaining the main points of the transmission processing flow of FIG.
[0026]
In FIG. 3, components corresponding to those shown in FIG. 1 are denoted by the same reference numerals or symbols.
[0027]
FIG. 4 is a time chart showing data reception for the reception FIFO of FIG.
[0028]
FIG. 5 is a diagram for explaining the main points of the reception processing flow of FIG.
[0029]
In FIG. 5, the same reference numerals or symbols are assigned to the components corresponding to those shown in FIG.
[0030]
Next, the operation of the present embodiment will be described in more detail with reference to FIG. 1, FIG. 2, FIG. 3, FIG.
[0031]
When the DMA circuit 15 receives the transmission request signal 110 from the transmission FIFO 11, it makes a data transfer request to the data transmission unit 24 of the higher-level device 2 using the data transmission / reception request signal 102. In accordance with the request of the data transmission / reception request signal 102, the data transmission unit 24 starts transferring the transmission data 203. The data transmission unit 24 outputs transmission data 203, a transmission byte enable signal 205, a write signal 204, and a clock signal CLK (not shown) to the transmission FIFO 11, and writes the transmission data 203 in the transmission FIFO 11.
[0032]
This write operation will be described in more detail with reference to FIG. Writing is performed when the level of the write signal 204 is Low. The transmission byte enable signal 205 is composed of, for example, 3 bits, and when the transmission data 203 is 4-byte width data, the transmission byte enable signal 205 is output as “100” (4) in a binary display indicating a 4-byte width. The
[0033]
When the transmission FIFO empty byte number detection circuit 13 outputs “011” (3) indicating the 3-byte width data to the transmission byte number verification circuit 23 as the transmission-side byte width change request signal 101, the data transmission unit 24 outputs 3 Transmission data 203 of byte width data, and a transmission byte enable signal 205 of “011” (3) in binary display indicating a 3-byte width are output to the transmission FIFO 11 together with the write signal 204 whose level is Low.
[0034]
When the empty area is smaller than the data width of the interface with the data transmission unit 24, the transmission FIFO 11 notifies the transmission FIFO empty byte number detection circuit 13 by the remaining byte number display signal 106, thereby the transmission FIFO empty byte number detection circuit. 13 notifies the transmission byte count verification circuit 23 by the transmission side byte width change request signal 101 that the data transmission unit 24 can be accessed only with the byte width corresponding to the empty area.
[0035]
The transmission byte count verification circuit 23 receives the transmission-side byte width change request signal 101 and verifies whether the data transmission unit 24 will transmit data to the transmission FIFO 11 from the byte width below. If it is larger than the byte width, the data transmission unit 24 generates a transmission byte count instruction signal 202 for deferring transmission of the transmission data 203.
[0036]
The main points of the transmission processing flow between the host device 2 and the data transfer device 1 will be described with reference to FIG.
[0037]
As shown in FIG. 3, when the DMA circuit 15 issues a transfer request by the DMA function to the data transmission unit 24, the data transmission unit 24 transmits to the transmission FIFO 11 transmission data 203 corresponding to the byte width of the interface with the FIFO. Send.
[0038]
The transmission FIFO empty byte number detection circuit 13 notifies the transmission byte number verification circuit 23 when the number of empty bytes in the transmission FIFO 11 becomes less than the number of bytes of the interface. The transmission byte number verification circuit 23 notifies the data transmission unit 24 by the transmission byte number instruction signal 202, and the data transmission unit 24 transfers the data to the transmission FIFO 11 with a data width equal to or less than the number of empty bytes of the FIFO.
[0039]
The operation after the transmission process between the host device 2 and the data transfer device 1 will be described with reference to FIG.
[0040]
The transmission FIFO 11 transmits the written transmission data 203 to the lower-level device 3 via the selector 10 with a 1-byte width. The data transmission unit 24 transfers the transmission data 203 to the transmission FIFO 11 as long as transfer is requested from the DMA circuit 15.
[0041]
Here, the selector 10 is a selection circuit, and has a function of limiting the read transmission data 108 to 1 byte when the I / O interface of the lower-level device 3 has only 1 byte for a FIFO that can be written in units of a plurality of bytes. Have.
[0042]
Next, the reception processing operations of the host device 2 and the data transfer device 1 will be described.
[0043]
Similarly, when the DMA circuit 15 receives the reception request signal 109 from the reception FIFO 12 on the reception side, it makes a data reception request to the data reception unit 22 of the higher-level device 2 using the data transmission / reception request signal 102. In response to this data transmission / reception request signal 102, the data reception unit 22 outputs a read signal 206, a reception byte enable signal 207, and a clock signal CLK (not shown) to the reception FIFO 12, and received data from the lower level device 3. 107 is read out from the reception FIFO 12 storing the received data 103 and transferred to the data receiving unit 22.
[0044]
This read operation will be described in detail with reference to FIG. Reading is performed when the level of the reading signal 206 is low. The reception byte enable signal 207 is composed of, for example, 3 bits, and when the reception data 103 is 4-byte width data, the reception byte enable signal 207 outputs “100” (4) in a binary display indicating a 4-byte width. .
[0045]
When the received FIFO valid byte count detection circuit 14 outputs “011” (3) indicating 3-byte width data to the received byte count collating circuit 21 as the receiving-side byte width change request signal 104, the data receiving section 22 outputs 3 The received byte enable signal 207 of “011” (3) is output to the reception FIFO 12 together with the read signal 206 whose level is Low in the binary display indicating the received data 103 of the byte width data and the 3-byte width.
[0046]
The data receiving unit 22 receives the received data 103 as long as it is requested by the data transmission / reception request signal 102 from the DMA circuit 15.
[0047]
When the received data 103 is smaller than the data width of the interface with the data receiving unit 22, the reception FIFO 12 notifies the reception FIFO valid byte count detection circuit 14 by the remaining byte count display signal 105, thereby detecting the received FIFO valid byte count. The circuit 14 notifies the data receiving unit 22 that the data receiving unit 22 can be accessed only with the byte width corresponding to the valid byte area by the receiving side byte width change request signal 104.
[0048]
The received byte count verification circuit 21 receives the received data 103 from the receive FIFO 12 if the number of bytes indicated by the receiving-side byte width change request signal 104 is equal to or less than the number of bytes that the data receiving unit 22 is to receive next. If it is larger than the number of bytes indicated by the receiving side byte width change request signal 104, the data receiving unit 22 does not receive the received data 103 from the receiving FIFO 12, and the receiving side byte width change request signal 104 is Wait until the data receiving unit 22 is equal to or less than the number of bytes to be received.
[0049]
The main points of the reception processing flow between the host device 2 and the data transfer device 1 will be described with reference to FIG.
[0050]
As shown in FIG. 5, when the DMA circuit 15 issues a transfer request by the DMA function to the data receiving unit 22, the data receiving unit 22 receives the received data 103 corresponding to the byte width of the interface with the FIFO from the receiving FIFO 12. To do.
[0051]
The reception FIFO valid byte number detection circuit 14 notifies the reception byte number verification circuit 21 when the number of empty bytes of the reception FIFO 12 becomes less than the number of bytes of the interface. The received byte number verification circuit 21 notifies the data receiving unit 22 by the received byte number indicating signal 201, and the data receiving unit 22 is transferred from the receiving FIFO 12 with a data width equal to or less than the number of empty bytes of the FIFO.
[0052]
For example, an I / O (Input / Output) device having an input / output interface is used for the lower level device 3 shown in FIG.
[0053]
The data transfer system described above can be used by being incorporated in a computer system, a communication system, or the like.
[0054]
Furthermore, as a data transfer system, the data transfer apparatus 1 can be used alone.
[0055]
【The invention's effect】
As described above, in the data transfer system of the present invention, when there is a vacant area in the transmission FIFO and preparation for transfer from the upper apparatus is made, conventionally, if there is no vacant area corresponding to the byte width of the FIFO, the next data is transferred. Although transmission could not be performed, even if the buffer in the FIFO has only a free area less than the input byte width, and the upper apparatus tries to transfer data less than the FIFO byte width in a smaller amount than the free area, transmission is stopped. Therefore, it is possible to increase the transfer efficiency.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an embodiment of a data transfer system of the present invention.
FIG. 2 is a time chart showing data transmission for the transmission FIFO of FIG. 1;
FIG. 3 is a diagram for explaining the main points of the transmission processing flow of FIG. 1;
4 is a time chart showing data reception with respect to the reception FIFO of FIG. 1; FIG.
FIG. 5 is a diagram for explaining the main points of the reception processing flow of FIG. 1;
[Explanation of symbols]
1 Data Transfer Device 2 Upper Device 3 Lower Device 10 Selector 11 Transmission FIFO
12 Receive FIFO
13 Transmission FIFO free byte count detection circuit 14 Reception FIFO valid byte count detection circuit 15 DMA circuit 21 Receive byte count verification circuit 22 Data reception unit 23 Transmission byte count verification circuit 24 Data transmission unit 101 Transmission side byte width change request signal 102 Data transmission / reception Request signal 103 Received data 104 Receiving byte width change request signal 105 Remaining byte count display signal 106 Remaining byte count display signal 107 Received data 108 Transmission data 109 Reception request signal 110 Transmission request signal 201 Received byte count indication signal 202 Transmission byte count indication Signal 203 Transmission data 204 Write signal 205 Transmission byte enable signal 206 Read signal 207 Reception byte enable signal

Claims (10)

データの送受信を行う上位装置と;
この上位装置に接続され、データ転送ダイレクトメモリアクセス(DMA:Direct Memory Access)機能を有するFIFO(First−In First−Out)によりデータ転送を行うデータ転送装置と;
このデータ転送装置に接続されデータを送受信する下位装置と;
を有し、
前記データ転送装置が、
前記FIFOの入力側が前記上位装置に接続され、前記FIFOの出力側が前記下位装置と接続され、前記入力側のデータのバイト幅が前記出力側のデータのバイト幅よりも小さく、前記FIFO内の空きエリアが前記FIFOの入力側データのバイト幅未満となったことを検出し、前記上位装置側のバイト幅変更要求を行うバイト幅変更手段を備え;
前記上位装置が、
前記バイト幅変更要求を受け、前記データ転送装置に送受信しようとしているデータのバイト幅と同じかどうかを照合するバイト幅照合手段と;
このバイト幅照合手段による照合結果が同じ場合に、前記データ転送装置の前記FIFOに対して要求バイト幅で送受信することを許可する送受信許可手段と;
を備えたことを特徴とするデータ転送システム。
A host device that transmits and receives data;
A data transfer device connected to the host device and performing data transfer by a FIFO (First-In First-Out) having a data transfer direct memory access (DMA) function;
A subordinate device connected to the data transfer device and transmitting / receiving data;
Have
The data transfer device is
The input side of the FIFO is connected to the higher-level device, the output side of the FIFO is connected to the lower-level device, the byte width of the data on the input side is smaller than the byte width of the data on the output side, and the empty space in the FIFO Byte width changing means for detecting that the area is less than the byte width of the input data of the FIFO and making a byte width change request on the host device side;
The host device is
A byte width verification unit that receives the byte width change request and verifies whether the byte width of the data to be transmitted to or received from the data transfer device is the same;
Transmission / reception permission means for permitting transmission / reception with the requested byte width to / from the FIFO of the data transfer apparatus when the collation result by the byte width collation means is the same;
A data transfer system comprising:
データの送受信を行う上位装置と;
この上位装置に接続され、ダイレクトメモリアクセス機能を有する送信FIFO及び受信FIFOによりデータ転送を行うデータ転送装置と;
このデータ転送装置に接続されデータを送受信する下位装置と;
を有し、
前記データ転送装置が、
前記送信FIFOの入力側及び前記受信FIFOの出力側が前記上位装置に接続され、前記送信FIFOの出力側及び前記受信FIFOの入力側が下位装置と接続され、前記入力側のデータのバイト幅が前記出力側のデータのバイト幅よりも小さく、前記送信FIFO及び前記受信FIFO内の空きエリアが前記送信FIFO及び前記受信FIFOの入力側のデータのバイト幅未満となったことを検出し、前記上位装置側の送信バイト幅変更要求を行う送信バイト幅変更手段及び前記上位装置側の受信バイト幅変更要求を行う受信バイト幅変更手段を備え;
前記上位装置が、
前記送信バイト幅変更要求を受け、前記データ転送装置に送信しようとしているバイト幅と同じかどうかを照合する送信バイト幅照合手段と;
前記受信バイト幅変更要求を受け、前記データ転送装置から受信しようとしているバイト幅と同じかどうかを照合する受信バイト幅照合手段と;
前記送信バイト幅照合手段による照合結果が同じ場合に、前記送信FIFOに対して要求バイト幅で送信することを許可する送信許可手段と;
前記受信バイト幅照合手段による照合結果が同じ場合に、前記受信FIFOに対して要求バイト幅で受信することを許可する受信許可手段と;
を備えたことを特徴とするデータ転送システム。
A host device that transmits and receives data;
A data transfer device connected to the host device and performing data transfer by a transmission FIFO and a reception FIFO having a direct memory access function;
A subordinate device connected to the data transfer device and transmitting / receiving data;
Have
The data transfer device is
The input side of the transmission FIFO and the output side of the reception FIFO are connected to the host device, the output side of the transmission FIFO and the input side of the reception FIFO are connected to a lower device, and the byte width of the data on the input side is the output And detecting that the empty area in the transmission FIFO and the reception FIFO is less than the byte width of the data on the input side of the transmission FIFO and the reception FIFO. A transmission byte width changing means for making a request for changing the transmission byte width and a receiving byte width changing means for making a request for changing the received byte width of the host device side
The host device is
A transmission byte width verification unit that receives the transmission byte width change request and verifies whether or not it is the same as the byte width to be transmitted to the data transfer device;
A received byte width verification unit that receives the request to change the received byte width and verifies whether or not it is the same as the byte width to be received from the data transfer device;
Transmission permission means for permitting transmission to the transmission FIFO with a requested byte width when the collation result by the transmission byte width collation means is the same;
Reception permission means for permitting the reception FIFO to receive the requested byte width when the collation result by the reception byte width collation means is the same;
A data transfer system comprising:
データの送受信を行う上位装置と;
この上位装置に接続され、データ転送ダイレクトメモリアクセス機能によりデータ転送を行うデータ転送装置と;
このデータ転送装置に接続されデータを送受信する下位装置と;
を有し、
前記データ転送装置は、
前記上位装置からの第1の送信データを受信し、セレクタを介して第2の送信データを下位装置に送信する送信FIFOと;
前記下位装置から受信した第1の受信データを第2の受信データとして前記上位装置に送信する受信FIFOと;
前記送信FIFO内の未使用バイト数を第1の残バイト数表示信号により検出し、送信側バイト幅変更要求信号を前記上位装置に出力する送信FIFO空きバイト数検出回路と;
前記受信FIFO内の未使用バイト数を第2の残バイト数表示信号により検出し、受信側バイト幅変更要求信号を前記上位装置に出力する受信FIFO有効バイト数検出回路と;
前記送信FIFOからの送信要求信号及び前記受信FIFOからの受信要求信号を受けて、前記上位装置に対してデータ送受信要求信号を出力するDMA回路と;
を備えたことを特徴とするデータ転送システム。
A host device that transmits and receives data;
A data transfer device connected to the host device and performing data transfer by a data transfer direct memory access function;
A subordinate device connected to the data transfer device and transmitting / receiving data;
Have
The data transfer device
A transmission FIFO that receives the first transmission data from the upper apparatus and transmits the second transmission data to the lower apparatus via the selector;
A reception FIFO for transmitting the first reception data received from the lower apparatus to the upper apparatus as second reception data;
A transmission FIFO empty byte number detection circuit that detects the number of unused bytes in the transmission FIFO by a first remaining byte number display signal and outputs a transmission-side byte width change request signal to the host device;
A receive FIFO valid byte count detection circuit that detects the number of unused bytes in the receive FIFO by a second remaining byte count display signal and outputs a receive-side byte width change request signal to the host device;
A DMA circuit that receives a transmission request signal from the transmission FIFO and a reception request signal from the reception FIFO and outputs a data transmission / reception request signal to the host device;
A data transfer system comprising:
前記上位装置は、
前記受信FIFOから1アクセスサイクル内で受信できる受信バイト数と前記受信側バイト幅変更要求信号とを照合し、受信バイト数指示信号をデータ受信部に出力する受信バイト数照合回路と;
前記データ送受信要求信号、前記受信バイト数指示信号を入力し、前記受信FIFOに対して受信バイトイネーブル信号及び読出信号を出力し、受信した前記第2の受信データを保持するデータ受信部と;
前記送信FIFOが1アクセスサイクル内で送信できる送信バイト数と前記送信側バイト幅変更要求信号とを照合し、送信バイト数指示信号をデータ送信部に出力する送信バイト数照合回路と;
前記データ送受信要求信号、前記送信バイト数指示信号を入力し、前記送信FIFOに対して送信バイトイネーブル信号及び書込信号を出力し、保持した第1の送信データを出力するデータ送信部と;
を備えたことを特徴とする請求項3記載のデータ転送システム。
The host device is
A received byte number verification circuit that verifies the number of received bytes that can be received from the received FIFO within one access cycle and the received byte width change request signal, and outputs a received byte number instruction signal to the data receiving unit;
A data receiving unit that inputs the data transmission / reception request signal and the received byte count instruction signal, outputs a received byte enable signal and a read signal to the receive FIFO, and holds the received second received data;
A transmission byte number verification circuit that compares the number of transmission bytes that the transmission FIFO can transmit within one access cycle with the transmission-side byte width change request signal and outputs a transmission byte number instruction signal to the data transmission unit;
A data transmission unit that inputs the data transmission / reception request signal and the transmission byte count instruction signal, outputs a transmission byte enable signal and a write signal to the transmission FIFO, and outputs the held first transmission data;
4. The data transfer system according to claim 3, further comprising:
前記送信バイト数照合回路は、
前記送信側バイト幅変更要求信号を受け取り、前記データ送信部が次に前記送信FIFOに送信するデータがバイト幅以下かどうかを前記送信バイト数指示信号により検出し、バイト幅以下であれば前記第1の送信データの送信を許可し、バイト幅より大きければ前記第1の送信データの送信を保留することを特徴とする請求項4記載のデータ転送システム。
The transmission byte count verification circuit
The transmission side byte width change request signal is received, and it is detected by the transmission byte number instruction signal whether or not the data to be transmitted next to the transmission FIFO by the data transmission unit is the byte width or less. 5. The data transfer system according to claim 4, wherein transmission of one transmission data is permitted and transmission of the first transmission data is suspended if the transmission data is larger than a byte width.
前記受信バイト数照合回路は、
前記受信側バイト幅変更要求信号で示されたバイト数が、次に前記データ受信部が受信しようとしているバイト数以下であれば、前記受信FIFOから前記第2の受信データの受信を行い、前記受信側バイト幅変更要求信号で示されたバイト数よりも大きければ、前記データ受信部は前記受信FIFOからの前記第2の受信データの受信は行わず、前記受信側バイト幅変更要求信号が、前記データ受信部が受信しようとしているバイト数以下になるまで待機することを特徴とする請求項4又は請求項5記載のデータ転送システム。
The received byte count verification circuit
If the number of bytes indicated by the receiving side byte width change request signal is equal to or less than the number of bytes that the data receiving unit is to receive next, the second received data is received from the receiving FIFO, If it is larger than the number of bytes indicated by the reception-side byte width change request signal, the data reception unit does not receive the second reception data from the reception FIFO, and the reception-side byte width change request signal is 6. The data transfer system according to claim 4, wherein the data receiving unit waits until the number of bytes to be received is less than or equal to the number of bytes to be received.
前記セレクタは、
複数バイト単位で書込み可能な前記送信FIFOに対して、前記下位装置の入出力インタフェースが1バイトしかない場合、読み出した前記第2の送信データを1バイトに制限することを特徴とする請求項3、4、5又は6記載のデータ転送システム。
The selector is
4. The read second transmission data is limited to 1 byte when the input / output interface of the lower-level device has only 1 byte for the transmission FIFO writable in units of a plurality of bytes. The data transfer system according to 4, 5, or 6.
請求項1〜7のいずれか1項に記載のデータ転送システムをコンピュータシステムに使用したことを特徴とするデータ転送システム。A data transfer system using the data transfer system according to claim 1 for a computer system. データ転送ダイレクトメモリアクセス機能により外部とデータ転送を行うデータ転送システムであって、
外部からの第1の送信データを受信し、セレクタを介して第2の送信データを下位装置に送信する送信FIFOと;
前記下位装置から受信した第1の受信データを第2の受信データとして外部に送信する受信FIFOと;
前記送信FIFO内の未使用バイト数を第1の残バイト数表示信号により検出し、送信側バイト幅変更要求信号を外部に出力する送信FIFO空きバイト数検出回路と;
前記受信FIFO内の未使用バイト数を第2の残バイト数表示信号により検出し、受信側バイト幅変更要求信号を外部に出力する受信FIFO有効バイト数検出回路と;
前記送信FIFOからの送信要求信号及び前記受信FIFOからの受信要求信号を受けて、外部に対してデータ送受信要求信号を出力するDMA回路と;
を備えたことを特徴とするデータ転送システム。
A data transfer system for transferring data with the outside by a data transfer direct memory access function,
A transmission FIFO that receives first transmission data from the outside and transmits the second transmission data to a lower-level device via a selector;
A reception FIFO for transmitting the first reception data received from the lower apparatus to the outside as second reception data;
A transmission FIFO empty byte number detection circuit for detecting the number of unused bytes in the transmission FIFO by a first remaining byte number display signal and outputting a transmission side byte width change request signal to the outside;
A receive FIFO valid byte count detection circuit that detects the number of unused bytes in the receive FIFO by a second remaining byte count display signal and outputs a receive side byte width change request signal to the outside;
A DMA circuit that receives a transmission request signal from the transmission FIFO and a reception request signal from the reception FIFO and outputs a data transmission / reception request signal to the outside;
A data transfer system comprising:
前記下位装置が、I/O(Input/Output)装置であることを特徴とする請求項1、2、3、4、5、6又は7記載のデータ転送システム。8. The data transfer system according to claim 1, wherein the lower device is an I / O (Input / Output) device.
JP2002098141A 2002-04-01 2002-04-01 Data transfer system Expired - Fee Related JP4147799B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002098141A JP4147799B2 (en) 2002-04-01 2002-04-01 Data transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002098141A JP4147799B2 (en) 2002-04-01 2002-04-01 Data transfer system

Publications (2)

Publication Number Publication Date
JP2003296264A JP2003296264A (en) 2003-10-17
JP4147799B2 true JP4147799B2 (en) 2008-09-10

Family

ID=29387869

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002098141A Expired - Fee Related JP4147799B2 (en) 2002-04-01 2002-04-01 Data transfer system

Country Status (1)

Country Link
JP (1) JP4147799B2 (en)

Also Published As

Publication number Publication date
JP2003296264A (en) 2003-10-17

Similar Documents

Publication Publication Date Title
EP0241129B1 (en) Addressing arrangement for a RAM buffer controller
US6185641B1 (en) Dynamically allocating space in RAM shared between multiple USB endpoints and USB host
US6334162B1 (en) Efficient data transfer mechanism for input/out devices having a device driver generating a descriptor queue and monitoring a status queue
US6925512B2 (en) Communication between two embedded processors
US5133062A (en) RAM buffer controller for providing simulated first-in-first-out (FIFO) buffers in a random access memory
US5594882A (en) PCI split transactions utilizing dual address cycle
US5404548A (en) Data transfer control system transferring command data and status with identifying code for the type of information
TWI528183B (en) Method, computer readable medium and system for performing data transfers for serial ata connections using data transfer rate throttling
US9015380B2 (en) Exchanging message data in a distributed computer system
US20100228901A1 (en) Input output control apparatus with a plurality of ports and single protocol processing circuit
US11811897B2 (en) Method for data processing of frame receiving of an interconnection protocol and storage device
CN100533417C (en) Data transmission method and direct memory access controller of system on chip
US20070168583A1 (en) Endpoint control apparatus and method thereof
US7757016B2 (en) Data transfer device, semiconductor integrated circuit, and processing status notification method
JP4147799B2 (en) Data transfer system
WO2003029997A1 (en) Bus system and bus interface
US20070028015A1 (en) System and method for processing data streams
KR20140123713A (en) Apparatus and method for accessing of divice through serial interface
JPH1063617A (en) Serial communication device
EP1104612B1 (en) Data-communications unit suitable for asynchronous serial data transmission
CN100419851C (en) Mobile terminal and system and method for controlling the mobile terminal
US5799158A (en) adapter for transferring blocks of data having a variable size to other adapters via a main system bus
CN100538618C (en) interface circuit and method with high access efficiency
KR20020005681A (en) Bus bridge
KR100259943B1 (en) Apparatus and method for interfacing backplane to high speed micro-processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050317

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20050330

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20070124

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080303

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080311

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080603

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080616

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20080618

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110704

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees