JP2022086294A - Transmission circuit - Google Patents

Transmission circuit Download PDF

Info

Publication number
JP2022086294A
JP2022086294A JP2020198222A JP2020198222A JP2022086294A JP 2022086294 A JP2022086294 A JP 2022086294A JP 2020198222 A JP2020198222 A JP 2020198222A JP 2020198222 A JP2020198222 A JP 2020198222A JP 2022086294 A JP2022086294 A JP 2022086294A
Authority
JP
Japan
Prior art keywords
data
bit width
port ram
dual port
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2020198222A
Other languages
Japanese (ja)
Other versions
JP7376459B2 (en
Inventor
友也 依田
Tomoya Yoda
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.)
Nihon Dempa Kogyo Co Ltd
Original Assignee
Nihon Dempa Kogyo Co 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 Nihon Dempa Kogyo Co Ltd filed Critical Nihon Dempa Kogyo Co Ltd
Priority to JP2020198222A priority Critical patent/JP7376459B2/en
Publication of JP2022086294A publication Critical patent/JP2022086294A/en
Application granted granted Critical
Publication of JP7376459B2 publication Critical patent/JP7376459B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

To output data in the correct order.SOLUTION: A transmission circuit 10 includes: a CPU 132 that outputs first bit width data obtained by converting received serial data to parallel data together with a write address associated with the first bit width data; a transmission bridge 133 that converts the first bit width data received from the CPU 132 into second bit width data and transmits the second bit width data and the write address; a receiving bridge 134 that writes the second bit width data to the address of a dual port RAM 135 indicated by the write address in the unit of the first bit width; a counter 136 that generates a read address and inputs the read address to the dual port RAM 135; and a dual RAM 135 that outputs data stored in the address of the dual port RAM 135 indicated by the read address to an external circuit in the unit of the first bit width.SELECTED DRAWING: Figure 1

Description

本発明は、伝送回路に関する。 The present invention relates to a transmission circuit.

HPS(Hard Processor System)とFPGA(Field Programmable Gate Array)とを接続して使用する方法が知られている(例えば、非特許文献1を参照)。 A method of connecting and using an HPS (Hard Processor System) and an FPGA (Field Programmable Gate Array) is known (see, for example, Non-Patent Document 1).

日本アルテラ株式会社,「AXIバスとFPGAインターコネクト」,[online],[令和2年10月7日検索],インターネット<URL:https://www.aps-web.jp/wp-data/wp-content/uploads/2019/12/mag-altera-v11-technote.pdf>Altera Japan Co., Ltd., "AXI Bus and FPGA Interconnect", [online], [Search on October 7, 2nd year of Reiwa], Internet <URL: https://www.aps-web.jp/wp-data/wp -content / uploads / 2019/12 / mag-altera-v11-technote.pdf >

HPSとFPGAを用いてシリアルデータをパラレルデータに変換する回路を構成する場合、HPSとFPGAとは、ブリッジ回路を用いてデータを送受信する。HPSが有する送信側ブリッジからFPGAが有する受信側ブリッジに複数のバイトデータから構成されるデータを送信した場合、受信側ブリッジからバイトデータを出力する順序が一定でないという場合がある。このような場合、受信側ブリッジの後段の回路において、正しい順序で複数のバイトデータを取得できないという問題があった。 When configuring a circuit that converts serial data into parallel data using HPS and FPGA, the HPS and FPGA transmit and receive data using a bridge circuit. When data composed of a plurality of byte data is transmitted from the transmitting side bridge of the HPS to the receiving side bridge of the FPGA, the order of outputting the byte data from the receiving side bridge may not be fixed. In such a case, there is a problem that a plurality of byte data cannot be acquired in the correct order in the circuit after the receiving bridge.

そこで、本発明はこれらの点に鑑みてなされたものであり、正しい順序でデータを出力できる伝送回路を提供することを目的とする。 Therefore, the present invention has been made in view of these points, and an object of the present invention is to provide a transmission circuit capable of outputting data in a correct order.

本発明の態様に係る伝送回路は、HPS(Hard Processor System)部とFPGA(Field Programmable Gate Array)部とを備える伝送回路であって、前記HPS部は、CPUと送信側ブリッジとを有しており、前記FPGA部は、受信側ブリッジとデュアルポートRAMとカウンタとを有しており、前記CPUは、受信したシリアルデータをパラレルデータに変換した第1ビット幅のデータを、前記第1ビット幅のデータに関連付けられたライトアドレスとともに出力し、前記送信側ブリッジは、前記CPUから受けた前記第1ビット幅のデータを、前記第1ビット幅よりも長い第2ビット幅のデータに変換して、前記第2ビット幅のデータと前記ライトアドレスとを前記受信側ブリッジに送信し、前記受信側ブリッジは、前記送信側ブリッジから受信した前記第2ビット幅のデータを前記第1ビット幅の単位で前記ライトアドレスが示す前記デュアルポートRAMのアドレスに書き込み、前記カウンタは、リードアドレスを生成して前記デュアルポートRAMに入力するとともに、前記デュアルポートRAMが出力するデータを外部回路が受け取るために使用するクロックを前記外部回路に出力し、前記デュアルポートRAMは、前記リードアドレスが示す前記デュアルポートRAMのアドレスに記憶したデータを、前記第1ビット幅の単位で外部回路に出力する。 The transmission circuit according to the aspect of the present invention is a transmission circuit including an HPS (Hard Processor System) unit and an FPGA (Field Programmable Gate Array) unit, and the HPS unit has a CPU and a transmission side bridge. The FPGA unit has a receiving side bridge, a dual port RAM, and a counter, and the CPU converts the received serial data into parallel data and converts the first bit width data into the first bit width. Output together with the write address associated with the data, the transmitting bridge converts the first bit width data received from the CPU into second bit width data longer than the first bit width. , The second bit width data and the write address are transmitted to the receiving side bridge, and the receiving side bridge uses the second bit width data received from the transmitting side bridge as the unit of the first bit width. Writes to the address of the dual port RAM indicated by the write address, and the counter is used to generate a read address and input it to the dual port RAM, and to receive data output by the dual port RAM by an external circuit. The dual port RAM outputs the data stored in the address of the dual port RAM indicated by the read address to the external circuit in units of the first bit width.

前記カウンタは、前記デュアルポートRAMの記憶領域の全てに前記データが記憶されていることを条件として、前記リードアドレスを前記デュアルポートRAMに入力するとともに、前記クロックを前記外部回路に出力してもよい。 The counter may input the read address to the dual port RAM and output the clock to the external circuit on condition that the data is stored in all the storage areas of the dual port RAM. good.

前記カウンタは、前記クロックとともに、前記デュアルポートRAMが前記データを出力する期間を示すチップセレクト信号と、前記デュアルポートRAMが出力する前記データの終端を示すエンド信号とを出力してもよい。 The counter may output a chip select signal indicating a period during which the dual port RAM outputs the data and an end signal indicating the end of the data output by the dual port RAM together with the clock.

本発明によれば、正しい順序でデータを出力できるという効果を奏する。 According to the present invention, there is an effect that data can be output in the correct order.

本実施形態に係る伝送回路10の構成を示す図である。It is a figure which shows the structure of the transmission circuit 10 which concerns on this embodiment. 送信側ブリッジ133がパラレルデータのデータ幅を変換する動作を説明するための図である。It is a figure for demonstrating the operation which the transmission side bridge 133 converts the data width of parallel data. 伝送回路10の外部出力信号の一例を説明するための図である。It is a figure for demonstrating an example of an external output signal of a transmission circuit 10. 変形例に係る伝送回路10の構成を示す図である。It is a figure which shows the structure of the transmission circuit 10 which concerns on a modification.

[伝送回路10の構成]
図1は、本実施形態に係る伝送回路10の構成を示す図である。伝送回路10は、出力回路1が出力したシリアルデータをパラレルデータに変換し、変換したパラレルデータを入力回路2に出力する回路である。
[Configuration of transmission circuit 10]
FIG. 1 is a diagram showing a configuration of a transmission circuit 10 according to the present embodiment. The transmission circuit 10 is a circuit that converts the serial data output by the output circuit 1 into parallel data and outputs the converted parallel data to the input circuit 2.

図1に示すように、伝送回路10は、HPS部11とFPGA部12とを備える。HPS部11は、入力部131とCPU(Central Processing Unit)132と送信側ブリッジ133とを有する。FPGA部12は、受信側ブリッジ134とデュアルポートRAM(Random Access Memory)135とカウンタ136と出力部137とを有する。 As shown in FIG. 1, the transmission circuit 10 includes an HPS unit 11 and an FPGA unit 12. The HPS unit 11 has an input unit 131, a CPU (Central Processing Unit) 132, and a transmission side bridge 133. The FPGA unit 12 has a receiving side bridge 134, a dual port RAM (Random Access Memory) 135, a counter 136, and an output unit 137.

入力部131は、例えばLAN(Local Area Network)コントローラである。入力部131は、出力回路1が出力したシリアルデータを受信する。入力部131は、受信したシリアルデータをCPU132に出力する。 The input unit 131 is, for example, a LAN (Local Area Network) controller. The input unit 131 receives the serial data output by the output circuit 1. The input unit 131 outputs the received serial data to the CPU 132.

CPU132は、プログラムを実行することにより伝送回路10を制御するプロセッサである。CPU132は、入力部131が受信したシリアルデータをパラレルデータに変換し、変換したパラレルデータに関連付けられたライトアドレスを生成する。ライトアドレスは、例えばパラレルデータに変換したデータの順序に合わせて昇順になるように生成されるアドレスである。 The CPU 132 is a processor that controls the transmission circuit 10 by executing a program. The CPU 132 converts the serial data received by the input unit 131 into parallel data, and generates a write address associated with the converted parallel data. The write address is, for example, an address generated in ascending order according to the order of the data converted into parallel data.

CPU132は、受信したシリアルデータをパラレルデータに変換した第1ビット幅のデータを、第1ビット幅に関連付けられたライトアドレスとともに出力する。第1ビット幅は、送信側ブリッジ133が受けることが可能なビット幅であり、例えば8ビットである。 The CPU 132 outputs the data of the first bit width obtained by converting the received serial data into the parallel data together with the write address associated with the first bit width. The first bit width is a bit width that can be received by the transmitting side bridge 133, and is, for example, 8 bits.

送信側ブリッジ133は、HPS部11がFPGA部12にデータを送信するためのバスブリッジである。送信側ブリッジ133は、CPU132が出力したパラレルデータのビット幅を変換する。送信側ブリッジ133は、CPU132から受けた第1ビット幅のデータを、第1ビット幅よりも長い第2ビット幅のデータに変換して、第2ビット幅のデータとライトアドレスとを受信側ブリッジ134に送信する。第2ビット幅は、送信側ブリッジ133と受信側ブリッジ134との間のバスのデータ幅であり、例えば32ビットである。 The transmission side bridge 133 is a bus bridge for the HPS unit 11 to transmit data to the FPGA unit 12. The transmission side bridge 133 converts the bit width of the parallel data output by the CPU 132. The transmitting side bridge 133 converts the data of the first bit width received from the CPU 132 into the data of the second bit width longer than the first bit width, and transfers the data of the second bit width and the write address to the receiving side bridge. Send to 134. The second bit width is the data width of the bus between the transmitting side bridge 133 and the receiving side bridge 134, and is, for example, 32 bits.

図2は、送信側ブリッジ133がパラレルデータのデータ幅を変換する動作を説明するための図である。図2(a)は、送信側ブリッジ133がCPU132から受けた第1ビット幅のデータを示している。図2(b)は、送信側ブリッジ133が受けた第1ビット幅のデータを第2ビット幅に変換したデータを示している。 FIG. 2 is a diagram for explaining an operation in which the transmitting side bridge 133 converts the data width of parallel data. FIG. 2A shows the data of the first bit width received from the CPU 132 by the transmitting side bridge 133. FIG. 2B shows the data obtained by converting the data of the first bit width received by the transmitting side bridge 133 into the second bit width.

CPU132は、受信した32ビットのシリアルデータを、図2(a)に示す第1ビット幅(8ビットの幅)のパラレルデータであるデータD(D1~D4)に変換する。送信側ブリッジ133は、図2(b)に示す、第1ビット幅である8ビットと第2ビット幅である32ビットとの差である24ビットの拡張データを生成する。拡張データの値は任意であり、例えば値が0のデータである。送信側ブリッジ133は、生成した拡張データを用いることにより、複数のデータDそれぞれを第2ビット幅のパラレルデータであるデータE(E1~E4)に変換する。 The CPU 132 converts the received 32-bit serial data into data D (D1 to D4) which is parallel data having a first bit width (8-bit width) shown in FIG. 2A. The transmitting side bridge 133 generates 24-bit extended data, which is the difference between 8 bits having a first bit width and 32 bits having a second bit width, as shown in FIG. 2 (b). The value of the extended data is arbitrary, for example, the value is 0. The transmitting side bridge 133 converts each of the plurality of data Ds into data E (E1 to E4) which is parallel data having a second bit width by using the generated extended data.

送信側ブリッジ133は、データEそれぞれとCPU132が出力したライトアドレスとを関連付けて受信側ブリッジ134に送信する。送信側ブリッジ133は、例えば、データE1と、データE1に含まれるデータD1に関連付けられたライトアドレスと、を関連付けて受信側ブリッジ134に送信する。 The transmitting side bridge 133 associates each data E with the write address output by the CPU 132 and transmits the data to the receiving side bridge 134. The transmitting side bridge 133 transmits, for example, the data E1 and the write address associated with the data D1 included in the data E1 to the receiving side bridge 134 in association with each other.

受信側ブリッジ134は、HPS部11が送信したデータを受信するためのバスブリッジである。受信側ブリッジ134は、送信側ブリッジ133が出力したパラレルデータをデュアルポートRAM135に書き込む。受信側ブリッジ134は、送信側ブリッジ133から受信した第2ビット幅のデータを第1ビット幅の単位でライトアドレスが示すデュアルポートRAM135のアドレスに書き込む。 The receiving side bridge 134 is a bus bridge for receiving the data transmitted by the HPS unit 11. The receiving side bridge 134 writes the parallel data output by the transmitting side bridge 133 to the dual port RAM 135. The receiving side bridge 134 writes the data of the second bit width received from the transmitting side bridge 133 to the address of the dual port RAM 135 indicated by the write address in the unit of the first bit width.

受信側ブリッジ134は、例えば図2(b)に示すデータE1を、データE1に含まれるデータD1に関連付けられたライトアドレスが示すデュアルポートRAM135のアドレスに書き込む。このように、デュアルポートRAM135にライトアドレスを用いて書き込むことで、送信側ブリッジ133がデータを送信した順序とデュアルポートRAM135のアドレスの順序とは一致する。 For example, the receiving bridge 134 writes the data E1 shown in FIG. 2B to the address of the dual port RAM 135 indicated by the write address associated with the data D1 included in the data E1. By writing to the dual-port RAM 135 using the write address in this way, the order in which the transmitting bridge 133 transmits data and the order in which the addresses in the dual-port RAM 135 are sent match.

その結果、送信側ブリッジ133がデータを送信した順序と受信側ブリッジ134がデュアルポートRAM135にデータを書き込む順序とが異なる場合であっても、受信側ブリッジ134は、デュアルポートRAM135に正しい順序でデータを書き込むことができる。 As a result, the receiving bridge 134 will have the data in the dual port RAM 135 in the correct order, even if the order in which the transmitting bridge 133 transmitted the data and the order in which the receiving bridge 134 writes the data to the dual port RAM 135 are different. Can be written.

デュアルポートRAM135は、受信側ブリッジ134がデータを書き込むポートと出力部137にデータを出力するポートとを有するRAMである。デュアルポートRAM135は、カウンタ136が生成したリードアドレスが示すデュアルポートRAM135のアドレスに記憶したデータを、第1ビット幅の単位で外部回路に出力する。リードアドレスは、例えばデュアルポートRAMの最初のアドレスから昇順になるように生成されるアドレスである。外部回路は、例えば入力回路2である。デュアルポートRAM135は、出力部137を介してデータを出力する。 The dual port RAM 135 is a RAM having a port on which the receiving bridge 134 writes data and a port on which data is output to the output unit 137. The dual port RAM 135 outputs the data stored in the address of the dual port RAM 135 indicated by the read address generated by the counter 136 to the external circuit in units of the first bit width. The read address is, for example, an address generated in ascending order from the first address of the dual port RAM. The external circuit is, for example, an input circuit 2. The dual port RAM 135 outputs data via the output unit 137.

このように、デュアルポートRAM135に記憶されたデータを、リードアドレスを用いて出力することで、デュアルポートRAM135は、送信側ブリッジ133がデータを送信した順序と同じ順序で外部回路にデータを出力することができる。その結果、伝送回路10は、出力回路1が出力したデータの順序と同じ順序で入力回路2にデータを送信することができる。 By outputting the data stored in the dual port RAM 135 using the read address in this way, the dual port RAM 135 outputs the data to the external circuit in the same order in which the transmitting side bridge 133 transmitted the data. be able to. As a result, the transmission circuit 10 can transmit data to the input circuit 2 in the same order as the data output by the output circuit 1.

カウンタ136は、リードアドレスを生成するためのカウンタ回路を備える。カウンタ136は、リードアドレスを生成してデュアルポートRAM135に入力するとともに、デュアルポートRAM135が出力するデータを外部回路が受け取るために使用するクロックを外部回路に出力する。カウンタ136は、出力部137を介してクロックを出力する。このように、カウンタ136がクロックを出力することで、外部回路は、クロックを生成しなくてもデータを取得できる。 The counter 136 includes a counter circuit for generating a read address. The counter 136 generates a read address and inputs it to the dual port RAM 135, and outputs a clock used for receiving the data output by the dual port RAM 135 to the external circuit. The counter 136 outputs the clock via the output unit 137. In this way, the counter 136 outputs the clock, so that the external circuit can acquire the data without generating the clock.

カウンタ136は、クロックとともに、デュアルポートRAM135がデータを出力する期間を示すチップセレクト信号と、デュアルポートRAM135が出力するデータの終端を示すエンド信号とを出力してもよい。カウンタ136は、出力部137を介してチップセレクト信号とエンド信号とを出力する。 The counter 136 may output a chip select signal indicating a period during which the dual port RAM 135 outputs data and an end signal indicating the end of the data output by the dual port RAM 135 together with the clock. The counter 136 outputs a chip select signal and an end signal via the output unit 137.

図3は、伝送回路10の外部出力信号の一例を説明するための図である。伝送回路10は、出力データ、チップセレクト信号、エンド信号及びクロックを出力する。出力データは、デュアルポートRAM135が出力した複数の第1ビット幅のデータである。図3においては、デュアルポートRAM135に記憶されたN個の第1ビット幅のデータを出力する。カウンタ136が出力するクロックは、例えば伝送回路10が動作している時刻において連続して出力されている。 FIG. 3 is a diagram for explaining an example of an external output signal of the transmission circuit 10. The transmission circuit 10 outputs output data, a chip select signal, an end signal, and a clock. The output data is data having a plurality of first bit widths output by the dual port RAM 135. In FIG. 3, N pieces of data having a first bit width stored in the dual port RAM 135 are output. The clock output by the counter 136 is continuously output, for example, at the time when the transmission circuit 10 is operating.

時刻T1において、デュアルポートRAM135は、出力データの最初のデータであるデータ0の出力を開始する。カウンタ136は、データ0の出力の開始とともに、チップセレクト信号のレベルをロウレベルからハイレベルに変化させる。時刻T2において、デュアルポートRAM135は、出力データの終端のデータであるデータN-1の出力を開始する。カウンタ136は、データN-1の出力の開始とともに、エンド信号のレベルをロウレベルからハイレベルに変化させる。 At time T1, the dual port RAM 135 starts outputting data 0, which is the first data of the output data. The counter 136 changes the level of the chip select signal from the low level to the high level at the start of the output of the data 0. At time T2, the dual port RAM 135 starts outputting the data N-1, which is the end data of the output data. The counter 136 changes the level of the end signal from the low level to the high level at the start of the output of the data N-1.

時刻T3において、デュアルポートRAM135は、データの出力を終了する。カウンタ136は、データの出力の終了とともに、チップセレクト信号及びエンド信号をハイレベルからロウレベルに変化させる。このように動作することで、伝送回路10の後段の外部回路は、伝送回路10がデータの出力を開始する時刻及び終了する時刻を検出することができる。 At time T3, the dual port RAM 135 ends the output of data. The counter 136 changes the chip select signal and the end signal from high level to low level at the end of data output. By operating in this way, the external circuit in the subsequent stage of the transmission circuit 10 can detect the time when the transmission circuit 10 starts and the time when the data output ends.

図1に戻って、カウンタ136は、デュアルポートRAM135の記憶領域の全てにデータが記憶されていることを条件として、リードアドレスをデュアルポートRAMに入力するとともに、クロックを外部回路に出力してもよい。例えば、デュアルポートRAM135の記憶容量がNバイトであり、Nバイトのうち1バイト毎にアドレスが関連付けられている場合、カウンタ136は、カウンタ回路を0からN-1まで動作させる。 Returning to FIG. 1, the counter 136 may input the read address to the dual port RAM and output the clock to the external circuit on condition that the data is stored in the entire storage area of the dual port RAM 135. good. For example, when the storage capacity of the dual port RAM 135 is N bytes and an address is associated with each byte of the N bytes, the counter 136 operates the counter circuit from 0 to N-1.

このように動作することで、カウンタ136は、リードアドレスを容易に生成することができる。さらに、データを出力する時刻にのみクロックを出力することで、後段の外部回路は、チップセレクト信号及びエンド信号を取得せずにデータが出力されている時刻を検出することができる。 By operating in this way, the counter 136 can easily generate a read address. Further, by outputting the clock only at the time when the data is output, the external circuit in the subsequent stage can detect the time when the data is output without acquiring the chip select signal and the end signal.

出力部137は、例えばLVDS(Low Voltage Differential Signaling)トランスミッタである。出力部137は、例えばデュアルポートRAM135が出力した第1ビット幅のデータとカウンタ136が出力したクロック、チップセレクト信号及びエンド信号とを外部回路である入力回路2に出力する。 The output unit 137 is, for example, an LVDS (Low Voltage Differential Signaling) transmitter. The output unit 137 outputs, for example, the data of the first bit width output by the dual port RAM 135 and the clock, the chip select signal, and the end signal output by the counter 136 to the input circuit 2 which is an external circuit.

[変形例]
以上の説明においては、CPU132が生成したライトアドレスが示すデュアルポートRAM135のアドレスにデータを書き込み、カウンタ136が生成したリードアドレスが示すデュアルポートRAM135のアドレスに記憶されたデータを出力した。これに対して、伝送回路10は、デュアルポートRAM135に置き換えてFIFO(First In, First Out)バッファを用いてもよい。
[Modification example]
In the above description, data is written to the address of the dual port RAM 135 indicated by the write address generated by the CPU 132, and the data stored in the address of the dual port RAM 135 indicated by the read address generated by the counter 136 is output. On the other hand, the transmission circuit 10 may replace the dual port RAM 135 with a FIFO (First In, First Out) buffer.

図4は、変形例に係る伝送回路10の構成を示す図である。図4に示す伝送回路10は、FIFO138を有する点で図1に示す伝送回路10と異なり、他の点において同じである。FIFO138は、例えばFIFOバッファである。FIFO138は、受信側ブリッジ134が出力したデータを記憶する。FIFO138は、データを記憶した順序と同じ順序で出力部137にデータを出力する。 FIG. 4 is a diagram showing a configuration of a transmission circuit 10 according to a modified example. The transmission circuit 10 shown in FIG. 4 differs from the transmission circuit 10 shown in FIG. 1 in that it has a FIFA 138, and is the same in other respects. The FIFO 138 is, for example, a FIFO buffer. The FIFA 138 stores the data output by the receiving bridge 134. The FIFA 138 outputs the data to the output unit 137 in the same order in which the data is stored.

FIFO138を用いる場合、送信側ブリッジ133は、例えば複数のデータDそれぞれにおいてトランザクションを発生させることにより、複数のデータDを受信側ブリッジ134に送信する。このように複数のデータDを一度に送信せずに、データDを1つ送信する度にトランザクションを終了させることで、受信側ブリッジ134は、正しい順序でデータをFIFO138に書き込むことができる。その結果、伝送回路10は、データとアドレスとを関連付けて伝送しない場合であっても、正しい順序でデータを出力できる。 When FIFA 138 is used, the transmitting side bridge 133 transmits a plurality of data Ds to the receiving side bridge 134, for example, by generating a transaction in each of the plurality of data Ds. By terminating the transaction each time one data D is transmitted without transmitting the plurality of data D at once, the receiving bridge 134 can write the data to the FIFA 138 in the correct order. As a result, the transmission circuit 10 can output the data in the correct order even when the data and the address are not transmitted in association with each other.

[伝送回路10による効果]
以上説明したように、伝送回路10は、シリアルデータをパラレルデータに変換した第1ビット幅のデータと第1ビット幅のデータに関連付けられたライトアドレスを出力するCPU132と、第1ビット幅のパラレルデータを第2ビット幅のパラレルデータに変換する送信側ブリッジ133と、ライトアドレスが示すデュアルポートRAM135のアドレスに第2ビット幅のデータを第1ビット幅の単位で書き込む受信側ブリッジ134と、リードアドレスを生成してデュアルポートRAM135に入力するカウンタ136と、を有する。
[Effect of transmission circuit 10]
As described above, the transmission circuit 10 has the CPU 132 that outputs the write address associated with the first bit width data obtained by converting the serial data into parallel data and the first bit width data, and the first bit width parallel. A transmitting side bridge 133 that converts data into second bit width parallel data, a receiving side bridge 134 that writes second bit width data in units of the first bit width to the address of the dual port RAM 135 indicated by the write address, and read. It has a counter 136, which generates an address and inputs it to the dual port RAM 135.

そして、デュアルポートRAM135が、リードアドレスが示すデュアルポートRAMのアドレスに記憶したデータを、第1ビット幅の単位で外部回路に出力することで、伝送回路10は、送信側ブリッジ133が送信したデータの順序と受信側ブリッジ134がデュアルポートRAM135に書き込む順序とが異なる場合であっても、正しい順序のデータを後段の外部回路に出力できる。 Then, the dual port RAM 135 outputs the data stored in the address of the dual port RAM indicated by the read address to the external circuit in units of the first bit width, so that the transmission circuit 10 transmits the data transmitted by the transmission side bridge 133. Even if the order of data is different from the order in which the receiving bridge 134 writes to the dual port RAM 135, the data in the correct order can be output to the external circuit in the subsequent stage.

以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されず、その要旨の範囲内で種々の変形及び変更が可能である。例えば、装置の全部又は一部は、任意の単位で機能的又は物理的に分散・統合して構成することができる。また、複数の実施の形態の任意の組み合わせによって生じる新たな実施の形態も、本発明の実施の形態に含まれる。組み合わせによって生じる新たな実施の形態の効果は、もとの実施の形態の効果を併せ持つ。 Although the present invention has been described above using the embodiments, the technical scope of the present invention is not limited to the scope described in the above embodiments, and various modifications and changes can be made within the scope of the gist. be. For example, all or part of the device can be functionally or physically distributed / integrated in any unit. Also included in the embodiments of the present invention are new embodiments resulting from any combination of the plurality of embodiments. The effect of the new embodiment produced by the combination has the effect of the original embodiment together.

1 出力回路
2 入力回路
10 伝送回路
11 HPS部
12 FPGA部
131 入力部
132 CPU
133 送信側ブリッジ
134 受信側ブリッジ
135 デュアルポートRAM
136 カウンタ
137 出力部
138 FIFO
1 Output circuit 2 Input circuit 10 Transmission circuit 11 HPS unit 12 FPGA unit 131 Input unit 132 CPU
133 Transmitter bridge 134 Receiver bridge 135 Dual-port RAM
136 Counter 137 Output section 138 FIFO

Claims (3)

HPS(Hard Processor System)部とFPGA(Field Programmable Gate Array)部とを備える伝送回路であって、
前記HPS部は、CPUと送信側ブリッジとを有しており、
前記FPGA部は、受信側ブリッジとデュアルポートRAMとカウンタとを有しており、
前記CPUは、受信したシリアルデータをパラレルデータに変換した第1ビット幅のデータを、前記第1ビット幅のデータに関連付けられたライトアドレスとともに出力し、
前記送信側ブリッジは、前記CPUから受けた前記第1ビット幅のデータを、前記第1ビット幅よりも長い第2ビット幅のデータに変換して、前記第2ビット幅のデータと前記ライトアドレスとを前記受信側ブリッジに送信し、
前記受信側ブリッジは、前記送信側ブリッジから受信した前記第2ビット幅のデータを前記第1ビット幅の単位で前記ライトアドレスが示す前記デュアルポートRAMのアドレスに書き込み、
前記カウンタは、リードアドレスを生成して前記デュアルポートRAMに入力するとともに、前記デュアルポートRAMが出力するデータを外部回路が受け取るために使用するクロックを前記外部回路に出力し、
前記デュアルポートRAMは、前記リードアドレスが示す前記デュアルポートRAMのアドレスに記憶したデータを、前記第1ビット幅の単位で外部回路に出力する、
伝送回路。
It is a transmission circuit including an HPS (Hard Processor System) section and an FPGA (Field Programmable Gate Array) section.
The HPS unit has a CPU and a transmission side bridge, and has a CPU and a transmission side bridge.
The FPGA unit has a receiving side bridge, dual port RAM, and a counter.
The CPU outputs the data of the first bit width obtained by converting the received serial data into parallel data together with the write address associated with the data of the first bit width.
The transmitting side bridge converts the data of the first bit width received from the CPU into the data of the second bit width longer than the first bit width, and the data of the second bit width and the write address. To the receiving bridge
The receiving side bridge writes the data of the second bit width received from the transmitting side bridge to the address of the dual port RAM indicated by the write address in the unit of the first bit width.
The counter generates a read address and inputs it to the dual port RAM, and outputs a clock used for receiving the data output by the dual port RAM to the external circuit.
The dual port RAM outputs data stored in the address of the dual port RAM indicated by the read address to an external circuit in units of the first bit width.
Transmission circuit.
前記カウンタは、前記デュアルポートRAMの記憶領域の全てに前記データが記憶されていることを条件として、前記リードアドレスを前記デュアルポートRAMに入力するとともに、前記クロックを前記外部回路に出力する、
請求項1に記載の伝送回路。
The counter inputs the read address to the dual port RAM and outputs the clock to the external circuit on condition that the data is stored in all the storage areas of the dual port RAM.
The transmission circuit according to claim 1.
前記カウンタは、前記クロックとともに、前記デュアルポートRAMが前記データを出力する期間を示すチップセレクト信号と、前記デュアルポートRAMが出力する前記データの終端を示すエンド信号とを出力する、
請求項1又は2に記載の伝送回路。
The counter outputs, together with the clock, a chip select signal indicating a period during which the dual port RAM outputs the data, and an end signal indicating the end of the data output by the dual port RAM.
The transmission circuit according to claim 1 or 2.
JP2020198222A 2020-11-30 2020-11-30 transmission circuit Active JP7376459B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020198222A JP7376459B2 (en) 2020-11-30 2020-11-30 transmission circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020198222A JP7376459B2 (en) 2020-11-30 2020-11-30 transmission circuit

Publications (2)

Publication Number Publication Date
JP2022086294A true JP2022086294A (en) 2022-06-09
JP7376459B2 JP7376459B2 (en) 2023-11-08

Family

ID=81894344

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020198222A Active JP7376459B2 (en) 2020-11-30 2020-11-30 transmission circuit

Country Status (1)

Country Link
JP (1) JP7376459B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115221082A (en) * 2022-07-18 2022-10-21 中国兵器装备集团自动化研究所有限公司 Data caching method and device and storage medium
CN117640783A (en) * 2024-01-25 2024-03-01 富瀚微电子(成都)有限公司 Data transmission method, system, electronic equipment and readable medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003298601A (en) 2002-04-02 2003-10-17 Canon Inc Packet sorting apparatus, overflow processing method, program and recording medium
JP5788308B2 (en) 2011-12-22 2015-09-30 ルネサスエレクトロニクス株式会社 Alignment circuit and receiving device
JP6094321B2 (en) 2013-03-28 2017-03-15 株式会社ソシオネクスト Buffer circuit and semiconductor integrated circuit

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115221082A (en) * 2022-07-18 2022-10-21 中国兵器装备集团自动化研究所有限公司 Data caching method and device and storage medium
CN117640783A (en) * 2024-01-25 2024-03-01 富瀚微电子(成都)有限公司 Data transmission method, system, electronic equipment and readable medium
CN117640783B (en) * 2024-01-25 2024-04-09 富瀚微电子(成都)有限公司 Data transmission method, system, electronic equipment and readable medium

Also Published As

Publication number Publication date
JP7376459B2 (en) 2023-11-08

Similar Documents

Publication Publication Date Title
JP7376459B2 (en) transmission circuit
JP2009021981A (en) Apparatus and method for generating error detection code
US10282343B2 (en) Semiconductor device
JP2021507363A (en) Serial communication device
US7895376B2 (en) Hardware configuration information system, method, and computer program product
JP2010097679A (en) Semiconductor memory device
JP2019507926A (en) Bus bridge for converting requests between module bus and AXI bus
US11093429B1 (en) Daisy-chained serial bus for multiple small footprint devices
KR101311963B1 (en) Semiconductor memory device capable of writing and reading safely from power attack and method thereof
TWI604303B (en) Inout/output expander chip and verification method therefor
JP4848324B2 (en) Serial-parallel conversion circuit and communication device
US10372655B1 (en) Memory-mapped state bus for integrated circuit
JP4956295B2 (en) Semiconductor memory device
JP4863279B2 (en) Memory system and memory access method
US9838561B2 (en) Serial data transfer using transfer type information to select a storage unit
JP6673021B2 (en) Memory and information processing device
JP2009058994A (en) Image processor and its control method
US10170166B1 (en) Data transmission apparatus for memory and data transmission method thereof
US20160291987A1 (en) Programmable cable and programming method thereof
US7263571B2 (en) Bus segment decoder
TWI571743B (en) Host controller of high speed data interface
US20030149932A1 (en) Transmission error checking in result forwarding
US10452579B2 (en) Managing input/output core processing via two different bus protocols using remote direct memory access (RDMA) off-loading processing system
TWI812395B (en) Microcontroller, method, and electronic system for logic analysis
JP7363344B2 (en) Memory control device and control method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20221209

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20231006

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20231012

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: 20231024

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231026

R150 Certificate of patent or registration of utility model

Ref document number: 7376459

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150