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
JP7192599B2 - Clock domain crossing circuit, method and program - Google Patents
[go: Go Back, main page]

JP7192599B2 - Clock domain crossing circuit, method and program - Google Patents

Clock domain crossing circuit, method and program Download PDF

Info

Publication number
JP7192599B2
JP7192599B2 JP2019052717A JP2019052717A JP7192599B2 JP 7192599 B2 JP7192599 B2 JP 7192599B2 JP 2019052717 A JP2019052717 A JP 2019052717A JP 2019052717 A JP2019052717 A JP 2019052717A JP 7192599 B2 JP7192599 B2 JP 7192599B2
Authority
JP
Japan
Prior art keywords
memory
bits
predetermined number
data
writing
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.)
Active
Application number
JP2019052717A
Other languages
Japanese (ja)
Other versions
JP2020154738A (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 Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2019052717A priority Critical patent/JP7192599B2/en
Publication of JP2020154738A publication Critical patent/JP2020154738A/en
Application granted granted Critical
Publication of JP7192599B2 publication Critical patent/JP7192599B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Description

本開示は、クロック乗せ換え回路、方法及びプログラムに関するものであり、特に、回路規模を削減することが可能なクロック乗せ換え回路、方法及びプログラムに関する。 TECHNICAL FIELD The present disclosure relates to a clock domain crossing circuit, method and program, and more particularly to a clock domain crossing circuit, method and program capable of reducing circuit scale.

クロック乗せ換え方法の一つとして2ポートRAM(Random Access Memory)にデータを格納することで書き込み処理と読み出し処理の時間を分け、処理の競合による読み出しデータ誤りを回避する回路が知られている。また、複数のデータをまとめたフレーム単位で並び替える方法の一つとして2ポートRAMを2面構成で用い、書き込み側がアクセスしているRAMと、読み出し側がアクセスしているRAMと、を分けることにより書き込み及び読み出しを競合させずにアドレス制御を独立に行う回路が知られている。 As one of the clock transfer methods, a circuit is known in which data is stored in a two-port RAM (Random Access Memory) to divide the time for write processing and read processing, thereby avoiding read data errors due to processing conflicts. In addition, as one method of rearranging a plurality of data in units of frames, a two-port RAM is used in a two-sided configuration, and the RAM accessed by the writing side and the RAM accessed by the reading side are separated. A circuit is known in which address control is performed independently without contention between writing and reading.

特許文献1には、2ポートRAMにおいて、入力データが書き込まれる書き込みアドレスを制御する書き込みアドレス制御部と、書き込みアドレスにおいて、入力データが書き込まれないブランクアドレスを検出するブランクアドレス検出部と、2ポートRAMにおいて、ブランクアドレス以外の書き込みアドレスを、出力データが読み出される読み出しアドレスに変換する読み出しアドレス変換部と、を備えた2ポートRAMが開示されている。 Patent Document 1 discloses a 2-port RAM in which a write address control unit that controls a write address to which input data is written, a blank address detection unit that detects a blank address in which input data is not written in the write address, and a 2-port RAM. In the RAM, a two-port RAM is disclosed that includes a read address conversion unit that converts write addresses other than blank addresses into read addresses from which output data is read.

特開2012-238992号公報JP 2012-238992 A

上述のようなクロック乗せ換え回路においては、例えば、特許文献1に示すように、アドレス変換部が必要であり、回路規模を削減することが難しいという課題があった。 In the above-described clock domain switching circuit, for example, as shown in Patent Document 1, an address conversion section is required, and there is a problem that it is difficult to reduce the circuit scale.

本開示の目的は、上述した課題を解決するクロック乗せ換え回路、方法及びプログラムを提供することにある。 An object of the present disclosure is to provide a clock domain crossing circuit, method, and program that solve the above-described problems.

本開示に係るクロック乗せ換え回路は、
複数のデータを含む第1列データを所定のビット数毎に第1メモリと第3メモリに交互に書き込むことと並行して、複数の別のデータを含む第2列データを前記所定のビット数毎に第2メモリと第4メモリに交互に書き込む書込制御部と、
前記第1メモリ、前記第2メモリ、前記第3メモリ、及び前記第4メモリのそれぞれから、前記所定のビット数を読み出す読出制御部と、
前記第1メモリ、前記第2メモリ、前記第3メモリ、前記第4メモリの順番で、前記読み出したデータを出力する出力切替部と、
を備え、
前記所定のビット数を読み出す読出速度は、前記所定のビット数を書き込む書込速度と、列データの数と、を乗じて得た速度である。
A clock domain crossing circuit according to the present disclosure includes:
first column data containing a plurality of data are alternately written into the first memory and the third memory for each predetermined number of bits; a write control unit that alternately writes to the second memory and the fourth memory each time;
a read control unit that reads the predetermined number of bits from each of the first memory, the second memory, the third memory, and the fourth memory;
an output switching unit that outputs the read data in the order of the first memory, the second memory, the third memory, and the fourth memory;
with
The reading speed for reading the predetermined number of bits is a speed obtained by multiplying the writing speed for writing the predetermined number of bits by the number of column data.

本開示に係るクロック乗せ換え回路は、
複数のデータを含む第1列データを所定のビット数毎に第1メモリと第3メモリに交互に書き込むことと並行して、複数の別のデータを含む第2列データを前記所定のビット数毎に第2メモリと第4メモリに交互に書き込む書込制御部と、
前記第1メモリ、前記第2メモリ、前記第3メモリ、及び前記第4メモリのそれぞれから、前記所定のビット数を読み出す読出制御部と、
前記第1メモリ、前記第2メモリ、前記第3メモリ、前記第4メモリの順番で、前記読み出したデータを出力する出力切替部と、
を備え、
前記所定のビット数を読み出す読出速度は、前記所定のビット数を書き込む書込速度と、全ての列データの前記所定のビット数のうちの有効なビット数の割合と、を乗じて得た速度である。
A clock domain crossing circuit according to the present disclosure includes:
first column data containing a plurality of data are alternately written into the first memory and the third memory for each predetermined number of bits; a write control unit that alternately writes to the second memory and the fourth memory each time;
a read control unit that reads the predetermined number of bits from each of the first memory, the second memory, the third memory, and the fourth memory;
an output switching unit that outputs the read data in the order of the first memory, the second memory, the third memory, and the fourth memory;
with
The reading speed for reading the predetermined number of bits is a speed obtained by multiplying the writing speed for writing the predetermined number of bits by the ratio of the effective number of bits to the predetermined number of bits of all column data. is.

本開示に係る方法は、
複数のデータを含む第1列データを所定のビット数毎に第1メモリと第3メモリに交互に書き込むことと並行して、複数の別のデータを含む第2列データを前記所定のビット数毎に第2メモリと第4メモリに交互に書き込むことと、
前記第1メモリ、前記第2メモリ、前記第3メモリ、及び前記第4メモリのそれぞれから、前記所定のビット数を読み出すことと、
前記第1メモリ、前記第2メモリ、前記第3メモリ、前記第4メモリの順番で、前記読み出したデータを出力することと、
前記所定のビット数を読み出す読出速度を、前記所定のビット数を書き込む書込速度と、列データの数と、を乗じて得た速度に設定することと、
を備える。
A method according to the present disclosure includes:
first column data containing a plurality of data are alternately written into the first memory and the third memory for each predetermined number of bits; alternately writing to the second memory and the fourth memory every
reading the predetermined number of bits from each of the first memory, the second memory, the third memory, and the fourth memory;
outputting the read data in the order of the first memory, the second memory, the third memory, and the fourth memory;
setting the reading speed for reading the predetermined number of bits to a speed obtained by multiplying the writing speed for writing the predetermined number of bits by the number of column data;
Prepare.

本開示に係るプログラムは、
複数のデータを含む第1列データを所定のビット数毎に第1メモリと第3メモリに交互に書き込むことと並行して、複数の別のデータを含む第2列データを前記所定のビット数毎に第2メモリと第4メモリに交互に書き込むことと、
前記第1メモリ、前記第2メモリ、前記第3メモリ、及び前記第4メモリのそれぞれから、前記所定のビット数を読み出すことと、
前記第1メモリ、前記第2メモリ、前記第3メモリ、前記第4メモリの順番で、前記読み出したデータを出力することと、
前記所定のビット数を読み出す読出速度を、前記所定のビット数を書き込む書込速度と、列データの数と、を乗じて得た速度に設定することと、
をコンピュータに実行させる。
The program according to the present disclosure is
first column data containing a plurality of data are alternately written into the first memory and the third memory for each predetermined number of bits; alternately writing to the second memory and the fourth memory every
reading the predetermined number of bits from each of the first memory, the second memory, the third memory, and the fourth memory;
outputting the read data in the order of the first memory, the second memory, the third memory, and the fourth memory;
setting the reading speed for reading the predetermined number of bits to a speed obtained by multiplying the writing speed for writing the predetermined number of bits by the number of column data;
run on the computer.

本開示によれば、回路規模を削減することが可能なクロック乗せ換え回路、方法及びプログラムを提供することができる。 According to the present disclosure, it is possible to provide a clock domain crossing circuit, method, and program capable of reducing circuit scale.

実施の形態に係るクロック乗せ換え回路を例示するブロック図である。1 is a block diagram illustrating a clock domain switching circuit according to an embodiment; FIG. 実施の形態に係るクロック乗せ換え回路を例示するブロック図である。1 is a block diagram illustrating a clock domain switching circuit according to an embodiment; FIG. 実施の形態に係るクロック乗せ換え回路の書込動作を例示するタイミングチャートである。4 is a timing chart illustrating a write operation of the clock domain crossing circuit according to the embodiment; 実施の形態に係るクロック乗せ換え回路の読出動作を例示するタイミングチャートである。4 is a timing chart illustrating the read operation of the clock domain switching circuit according to the embodiment; 実施の形態に係るクロック乗せ換え回路の位相調整処理を例示するタイミングチャートである。9 is a timing chart illustrating phase adjustment processing of the clock transfer circuit according to the embodiment;

以下、図面を参照して本発明の実施の形態について説明する。各図面において、同一又は対応する要素には同一の符号が付されており、説明の明確化のため、必要に応じて重複説明を省略する。 BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, embodiments of the present invention will be described with reference to the drawings. In each drawing, the same reference numerals are given to the same or corresponding elements, and redundant description will be omitted as necessary for clarity of description.

[実施の形態]
先ず、実施の形態に係るクロック乗せ換え回路の概要を説明する。
図1は、実施の形態に係るクロック乗せ換え回路を例示するブロック図である。
[Embodiment]
First, the outline of the clock domain switching circuit according to the embodiment will be described.
FIG. 1 is a block diagram illustrating a clock domain crossing circuit according to an embodiment.

図1に示すように、クロック乗せ換え回路11は、記憶部111と、書込制御部112と、読出制御部113と、出力切替部114と、を備える。記憶部111は、第1メモリ1111と第2メモリ1112と第3メモリ1113と第4メモリ1114とを有する。 As shown in FIG. 1 , the clock transfer circuit 11 includes a storage section 111 , a write control section 112 , a read control section 113 and an output switching section 114 . The storage unit 111 has a first memory 1111 , a second memory 1112 , a third memory 1113 and a fourth memory 1114 .

書込制御部112は、複数のデータを含む第1列データを所定のビット数毎に第1メモリ1111と第3メモリ1113に交互に書き込む。書込制御部112は、これと並行して、複数の別のデータを含む第2列データを所定のビット数毎に第2メモリ1112と第4メモリ1114に交互に書き込む。 The write control unit 112 alternately writes the first column data including a plurality of data in the first memory 1111 and the third memory 1113 every predetermined number of bits. In parallel with this, the write control unit 112 alternately writes the second column data containing a plurality of different data into the second memory 1112 and the fourth memory 1114 for every predetermined number of bits.

具体的には、書込制御部112は、第1列データの最初の所定のビット数のデータを第1メモリ1111に書き込み、第1列データの次の所定のビット数のデータを第3メモリ1113に書き込む。書込制御部112は、これと並行して、第2列データの最初の所定のビット数のデータを第2メモリ1112に書き込み、第2列データの次の所定のビット数のデータを第4メモリ1114に書き込む。 Specifically, the write control unit 112 writes data of the first predetermined number of bits of the first column data to the first memory 1111, and writes data of the next predetermined number of bits of the first column data to the third memory. Write to 1113. In parallel with this, the write control unit 112 writes the first predetermined number of bits of the second column data to the second memory 1112, and writes the next predetermined number of bits of data to the fourth column data. Write to memory 1114 .

尚、所定のビット数のデータの時間的な幅をフレームと称する。よって、書込制御部112は、第1列データをフレーム毎(フレーム単位)に第1メモリ1111と第3メモリ1113に交互に書き込む。 A temporal width of data of a predetermined number of bits is called a frame. Therefore, the write control unit 112 alternately writes the first column data into the first memory 1111 and the third memory 1113 on a frame-by-frame basis.

読出制御部113は、第1メモリ1111、第2メモリ1112、第3メモリ1113、及び第4メモリ1114のそれぞれから、所定のビット数を読み出す。 The read control unit 113 reads a predetermined number of bits from each of the first memory 1111, second memory 1112, third memory 1113, and fourth memory 1114. FIG.

出力切替部114は、第1メモリ1111、第2メモリ1112、第3メモリ1113、第4メモリ1114の順番で、読出制御部113が読み出したデータを出力データとして出力する。このとき、読出制御部113が所定のビット数を読み出す読出速度は、書込制御部112が所定のビット数を書き込む書込速度と、列データの数と、を乗じて得た速度である。 The output switching unit 114 outputs the data read by the read control unit 113 as output data in the order of the first memory 1111, the second memory 1112, the third memory 1113, and the fourth memory 1114. FIG. At this time, the read speed at which the read control unit 113 reads the predetermined number of bits is the speed obtained by multiplying the write speed at which the write control unit 112 writes the predetermined number of bits by the number of column data.

例えば、書込速度は100メガヘルツの場合、読出速度は200メガヘルツである、 For example, if the write speed is 100 MHz, the read speed is 200 MHz.

次に、実施の形態に係るクロック乗せ換え回路の詳細を説明する。
図2は、実施の形態に係るクロック乗せ換え回路を例示するブロック図である。
Next, the details of the clock domain switching circuit according to the embodiment will be described.
FIG. 2 is a block diagram illustrating the clock domain crossing circuit according to the embodiment.

図2に示すように、クロック乗せ換え回路11は、パルスタイミング比較部115と位相信号生成部116と位相信号検出部117と位相比較部118とを備える。また、書込イネーブル生成部1121と書込アドレスカウンタ1122は、書込制御部112に含まれる。また、読出アドレスカウンタ1131は、読出制御部113に含まれる。 As shown in FIG. 2 , the clock transfer circuit 11 includes a pulse timing comparator 115 , a phase signal generator 116 , a phase signal detector 117 and a phase comparator 118 . A write enable generator 1121 and a write address counter 1122 are included in the write controller 112 . Also, read address counter 1131 is included in read control unit 113 .

クロック乗せ換え回路11は、第1列データ及び第2列データという2列で入力される列データを、第1メモリ1111から第4メモリ1114を用いて書込クロックから読出クロックに乗せ換える。 The clock transfer circuit 11 uses the first memory 1111 to the fourth memory 1114 to transfer the column data input in two columns, that is, the first column data and the second column data, from the write clock to the read clock.

尚、第1メモリ1111、第2メモリ1112、第3メモリ1113、及び第4メモリ1114のそれぞれは、例えば、2ポートRAM(Random Access Memory)を使用する。 Note that each of the first memory 1111, the second memory 1112, the third memory 1113, and the fourth memory 1114 uses, for example, a 2-port RAM (Random Access Memory).

また、クロック乗せ換え回路11は、動作中に書込処理と読出処理において、2ポートRAMのアドレスが重ならない範囲に初期位相を設定する。 In addition, the clock transfer circuit 11 sets the initial phase within a range in which the addresses of the two-port RAM do not overlap during write processing and read processing during operation.

書込アドレスカウンタ1122は、(2ポートRAMの深さ)の2倍の値を生成し、最上位ビットを除いた信号を書込アドレス信号WAとして第1メモリ1111から第4メモリ1114に出力する。 The write address counter 1122 generates a value twice as large as (the depth of the 2-port RAM) and outputs a signal excluding the most significant bit as a write address signal WA from the first memory 1111 to the fourth memory 1114. .

最上位ビットの信号により、第1メモリ1111と第2メモリ1112、又は、第3メモリ1113と第4メモリ1114の書込イネーブル信号(WE1からWE4)を切り替える。 The write enable signals (WE1 to WE4) of the first memory 1111 and the second memory 1112 or the third memory 1113 and the fourth memory 1114 are switched by the signal of the most significant bit.

書込イネーブル生成部1121は、書込アドレスカウンタ1122の値から、各メモリの書込イネーブル信号WE1から書込イネーブル信号WE4を生成する。 The write enable generator 1121 generates the write enable signal WE4 from the write enable signal WE1 of each memory based on the value of the write address counter 1122 .

読出アドレスカウンタ1131は、(2portRAMの深さ)の4倍の値を生成し、上位2ビットを除く信号を読出アドレス信号RAとして第1メモリ1111から第4メモリ1114に接続する。 The read address counter 1131 generates a value four times (the depth of the 2-port RAM) and connects the signal excluding the upper two bits to the first memory 1111 to the fourth memory 1114 as the read address signal RA.

出力切替部114は、読出アドレスカウンタ1131の値に基づいて第1経路から第4経路を切り替えて出力する。 The output switching unit 114 switches from the first path to the fourth path based on the value of the read address counter 1131 for output.

パルスタイミング比較部115は、入力フレームパルスの位相と書込アドレスカウンタ1122の位相とを比較し、書込アドレスカウンタ1122と読出アドレスカウンタ1131を初期化するための初期化信号S1を生成する。 The pulse timing comparator 115 compares the phase of the input frame pulse and the phase of the write address counter 1122 and generates an initialization signal S1 for initializing the write address counter 1122 and the read address counter 1131 .

書込アドレスカウンタ1122の値は、位相信号生成部116及び位相信号検出部117において同期クロックを書込クロックから読出クロックに乗せ換えた後、位相比較部118に位相信号の情報S2として出力される。 The value of the write address counter 1122 is output to the phase comparator 118 as phase signal information S2 after the synchronization clock is changed from the write clock to the read clock in the phase signal generator 116 and the phase signal detector 117. .

位相比較部118は、書込アドレス信号WAと読出アドレス信号RAの位相関係を監視する。位相比較部118は、位相関係が許容範囲を超えた場合、初期化信号S3を出力する。 A phase comparator 118 monitors the phase relationship between the write address signal WA and the read address signal RA. The phase comparator 118 outputs an initialization signal S3 when the phase relationship exceeds the allowable range.

次に、実施の形態に係るクロック乗せ換え回路の動作を説明する。
この例では、複数ビットであるK個のデータを、1フレームで2列(第1列データと第2列データ)入力し、クロック乗せ換えにより第1列データと第2列データを1フレームで出力することを説明する。ただし、Kは自然数とする。この例では、書込クロック(書込速度)は100メガヘルツとなり、読出クロック(読出速度)は200メガヘルツとなる。
Next, the operation of the clock domain switching circuit according to the embodiment will be described.
In this example, two columns (first column data and second column data) of K pieces of multi-bit data are input in one frame, and the first column data and the second column data are input in one frame by clock switching. Explain to output. However, let K be a natural number. In this example, the write clock (write speed) will be 100 MHz and the read clock (read speed) will be 200 MHz.

図3は、実施の形態に係るクロック乗せ換え回路の書込動作を例示するタイミングチャートである。図3は、入力側(書込み側)のデータ処理を示す。
図4は、実施の形態に係るクロック乗せ換え回路の読出動作を例示するタイミングチャートである。図4は、出力側(読出し側)のデータ処理を示す。
図5は、実施の形態に係るクロック乗せ換え回路の位相調整処理を例示するタイミングチャートである。
FIG. 3 is a timing chart illustrating the write operation of the clock domain crossing circuit according to the embodiment. FIG. 3 shows data processing on the input side (write side).
FIG. 4 is a timing chart illustrating the read operation of the clock domain switching circuit according to the embodiment. FIG. 4 shows data processing on the output side (read side).
FIG. 5 is a timing chart illustrating phase adjustment processing of the clock domain transfer circuit according to the embodiment.

図3及び図5に示すように、パルスタイミング比較部115は、起動後、最初の入力フレームパルスを検出した場合、書込アドレスカウンタ1122及び読出アドレスカウンタ1131を初期化するための初期化信号S1を出力する。読出アドレスカウンタ1131は、書込アドレスカウンタ1122の位相信号の情報S2に基づいて初期化される。 As shown in FIGS. 3 and 5, when the pulse timing comparator 115 detects the first input frame pulse after activation, the pulse timing comparator 115 outputs an initialization signal S1 for initializing the write address counter 1122 and the read address counter 1131. to output The read address counter 1131 is initialized based on the phase signal information S2 of the write address counter 1122 .

位相比較部118は、書込アドレスカウンタ1122の値と読出アドレスカウンタ1131の値とを比較し、設定された範囲を超えた場合、読出アドレスカウンタ1131を初期化する初期化信号S3を生成し、読出アドレスカウンタ1131に出力する。 The phase comparison unit 118 compares the value of the write address counter 1122 and the value of the read address counter 1131, and if the set range is exceeded, generates an initialization signal S3 for initializing the read address counter 1131, Output to read address counter 1131 .

書込イネーブル生成部1121は、書込アドレスカウンタ1122の最上位ビットが「0」の時、書込イネーブル信号WE1と書込イネーブル信号WE3をアサートする。そして、クロック乗せ換え回路11は、第1列データを第1メモリ1111と第3メモリ1113に書き込む。 The write enable generator 1121 asserts the write enable signal WE1 and the write enable signal WE3 when the most significant bit of the write address counter 1122 is "0". Then, the clock domain switching circuit 11 writes the first column data to the first memory 1111 and the third memory 1113 .

書込イネーブル生成部1121は、書込アドレスカウンタ1122の最上位ビットが「1」の時、書込イネーブル信号WE2と書込イネーブル信号WE4をアサートする。そして、クロック乗せ換え回路11は、第2列データを第2メモリ1112と第4メモリ1114に書き込む。 Write enable generator 1121 asserts write enable signal WE2 and write enable signal WE4 when the most significant bit of write address counter 1122 is "1". Then, the clock domain switching circuit 11 writes the second column data to the second memory 1112 and the fourth memory 1114 .

クロック乗せ換え回路11は、起動後、最初の入力フレームパルスを検出してから第1列データと第2列データの書き込みを開始する。 The clock transfer circuit 11 detects the first input frame pulse after activation and then starts writing the first column data and the second column data.

図4及び図5に示すように、出力切替部114は、読出アドレスカウンタ1131の上位2ビットの値から、第1メモリ1111から第4メモリ1114のうちのいずれかを選択する選択信号を生成する。出力切替部114は、第1メモリ1111、第2メモリ1112、第3メモリ1113及び第4メモリ1114から読み出したデータを選択信号に基づいて選択し、出力データとして出力する。 As shown in FIGS. 4 and 5, the output switching unit 114 generates a selection signal for selecting one of the first memory 1111 to the fourth memory 1114 from the value of the upper two bits of the read address counter 1131 . . The output switching unit 114 selects data read from the first memory 1111, the second memory 1112, the third memory 1113, and the fourth memory 1114 based on the selection signal, and outputs the selected data as output data.

実施の形態に係るクロック乗せ換え回路11は、複数の入力データをフレーム単位(フレーム毎)で並び替えてメモリに書き込むと共に、クロック乗せ換え処理を行い乗せ換え後の速度でデータを読み出して出力する。これにより、クロック乗せ換え回路11の回路規模を削減することができる。 The clock transfer circuit 11 according to the embodiment rearranges a plurality of input data on a frame-by-frame basis (frame by frame) and writes the data into a memory, performs clock transfer processing, and reads and outputs data at the post-transfer speed. . As a result, the circuit scale of the clock transfer circuit 11 can be reduced.

また、クロック乗せ換え回路11の回路規模が削減され処理時間が短縮されるので、処理遅延を低減することができる。 In addition, since the circuit scale of the clock transfer circuit 11 is reduced and the processing time is shortened, the processing delay can be reduced.

尚、実施の形態では、入力する列データの数を2列として説明したが、これには限定されない。実施の形態は、入力する列データの数を3列以上としてもよい。 In the embodiment, the number of input column data is two, but the number is not limited to this. In the embodiment, the number of input column data may be three or more columns.

また、クロック乗せ換え前後のクロック周波数の比率は、1対2に限定されない。クロック乗せ換え回路11が所定のビット数を読み出す読出速度を、所定のビット数を書き込む書込速度と、全ての列データの所定ビット数のうちの有効なビット数の割合と、を乗じて得た速度としてもよい。 Also, the ratio of the clock frequencies before and after clock switching is not limited to 1:2. The read speed at which the clock domain switching circuit 11 reads out a predetermined number of bits is obtained by multiplying the write speed at which the predetermined number of bits is written by the ratio of the effective number of bits to the predetermined number of bits of all column data. speed.

具体的には、図2に示す第1列データのN個と、第2列データの前半の(N/2)個を有効なデータとする場合、書込クロックの周波数を100メガヘルツとし、読出クロックの周波数を150メガヘルツとして有効なデータのみを乗せ換えてもよい。ただし、Nは2の倍数とする。 Specifically, when N pieces of the first column data and (N/2) pieces of the first half of the second column data shown in FIG. The clock frequency may be set to 150 megahertz and only valid data may be transferred. However, N is a multiple of 2.

なお、上記の実施の形態では、本発明をハードウェアの構成として説明したが、本発明はこれに限定されるものではない。本発明は、各構成要素の処理を、CPU(Central Processing Unit)にコンピュータプログラムを実行させることにより実現することも可能である。 Although the present invention has been described as a hardware configuration in the above embodiment, the present invention is not limited to this. The present invention can also be implemented by causing a CPU (Central Processing Unit) to execute a computer program to process each component.

上記の実施の形態において、プログラムは、様々なタイプの非一時的なコンピュータ可読媒体(non-transitory computer readable medium)を用いて格納され、コンピュータに供給することができる。非一時的なコンピュータ可読媒体は、様々なタイプの実態のある記録媒体(tangible storage medium)を含む。非一時的なコンピュータ可読媒体の例は、磁気記録媒体(具体的にはフレキシブルディスク、磁気テープ、ハードディスクドライブ)、光磁気記録媒体(具体的には光磁気ディスク)、CD-ROM(Read Only Memory)、CD-R、CD-R/W、半導体メモリ(具体的には、マスクROM、PROM(Programmable ROM)、EPROM(Erasable PROM))、フラッシュROM、RAM(Random Access Memory)を含む。また、プログラムは、様々なタイプの一時的なコンピュータ可読媒体(transitory computer readable medium)によってコンピュータに供給されてもよい。一時的なコンピュータ可読媒体の例は、電気信号、光信号、及び電磁波を含む。一時的なコンピュータ可読媒体は、電線及び光ファイバ等の有線通信路、又は無線通信路を介して、プログラムをコンピュータに供給できる。 In the above embodiments, the programs can be stored and delivered to computers using various types of non-transitory computer readable media. Non-transitory computer-readable media include various types of tangible storage media. Examples of non-transitory computer-readable media include magnetic recording media (specifically flexible disks, magnetic tapes, hard disk drives), magneto-optical recording media (specifically magneto-optical discs), CD-ROMs (Read Only Memory ), CD-R, CD-R/W, semiconductor memory (specifically, mask ROM, PROM (Programmable ROM), EPROM (Erasable PROM)), flash ROM, and RAM (Random Access Memory). The program may also be delivered to the computer on various types of transitory computer readable medium. Examples of transitory computer-readable media include electrical signals, optical signals, and electromagnetic waves. Transitory computer-readable media can deliver the program to the computer via wired channels, such as wires and optical fibers, or wireless channels.

なお、本発明は上記実施の形態に限られたものではなく、趣旨を逸脱しない範囲で適宜変更することが可能である。 It should be noted that the present invention is not limited to the above embodiments, and can be modified as appropriate without departing from the scope of the invention.

11…クロック乗せ換え回路
111…記憶部
1111…第1メモリ
1112…第2メモリ
1113…第3メモリ
1114…第4メモリ
112…書込制御部
1121…書込イネーブル生成部
1122…書込アドレスカウンタ
113…読出制御部
1131…読出アドレスカウンタ
114…出力切替部
115…パルスタイミング比較部
116…位相信号生成部
117…位相信号検出部
118…位相比較部
WA…書込アドレス信号
WE1、WE2、WE3、WE4…書込イネーブル信号
RA…読出アドレス信号
S1、S3…初期化信号
S2…位相信号の情報
DESCRIPTION OF SYMBOLS 11... Clock transfer circuit 111... Storage part 1111... 1st memory 1112... 2nd memory 1113... 3rd memory 1114... 4th memory 112... Write control part 1121... Write enable generation part 1122... Write address counter 113 ... read control section 1131 ... read address counter 114 ... output switching section 115 ... pulse timing comparison section 116 ... phase signal generation section 117 ... phase signal detection section 118 ... phase comparison section WA ... write address signals WE1, WE2, WE3, WE4 ... write enable signal RA ... read address signal S1, S3 ... initialization signal S2 ... phase signal information

Claims (7)

複数のデータを含む第1列データを所定のビット数毎に第1メモリと第3メモリに交互に書き込むことと並行して、複数の別のデータを含む第2列データを前記所定のビット数毎に第2メモリと第4メモリに交互に書き込む書込制御部と、
前記第1メモリ、前記第2メモリ、前記第3メモリ、及び前記第4メモリのそれぞれから、前記所定のビット数を読み出す読出制御部と、
前記第1メモリ、前記第2メモリ、前記第3メモリ、前記第4メモリの順番で、前記読み出したデータを出力する出力切替部と、
を備え、
前記所定のビット数を読み出す読出速度は、前記所定のビット数を書き込む書込速度と、列データの数と、を乗じて得た速度である、
クロック乗せ換え回路。
first column data containing a plurality of data are alternately written into the first memory and the third memory for each predetermined number of bits; a write control unit that alternately writes to the second memory and the fourth memory each time;
a read control unit that reads the predetermined number of bits from each of the first memory, the second memory, the third memory, and the fourth memory;
an output switching unit that outputs the read data in the order of the first memory, the second memory, the third memory, and the fourth memory;
with
The reading speed for reading the predetermined number of bits is a speed obtained by multiplying the writing speed for writing the predetermined number of bits by the number of column data,
Clock transfer circuit.
前記書込制御部は、
前記第1列データの最初の前記所定のビット数のデータを前記第1メモリに書き込み、前記第1列データの次の前記所定のビット数のデータを前記第3メモリに書き込み、
前記第2列データの最初の前記所定のビット数のデータを前記第2メモリに書き込み、前記第2列データの次の前記所定のビット数のデータを前記第4メモリに書き込む、
請求項1に記載のクロック乗せ換え回路。
The write control unit
writing data of the first predetermined number of bits of the first column data to the first memory, writing data of the predetermined number of bits subsequent to the first column data to the third memory;
writing the first data of the predetermined number of bits of the second column data to the second memory, and writing the data of the predetermined number of bits subsequent to the second column data to the fourth memory;
2. The clock domain crossing circuit of claim 1.
前記第1メモリ、前記第2メモリ、前記第3メモリ、及び前記第4メモリのそれぞれは、2ポートRAM(Random Access Memory)である、
請求項1又は2に記載のクロック乗せ換え回路。
Each of the first memory, the second memory, the third memory, and the fourth memory is a 2-port RAM (Random Access Memory),
3. A clock domain crossing circuit as claimed in claim 1 or 2.
前記書込速度は100メガヘルツであり、前記読出速度は200メガヘルツである、
請求項1乃至3のいずれか1つに記載のクロック乗せ換え回路。
the write speed is 100 megahertz and the read speed is 200 megahertz;
4. A clock domain crossing circuit as claimed in any one of claims 1 to 3.
複数のデータを含む第1列データを所定のビット数毎に第1メモリと第3メモリに交互に書き込むことと並行して、複数の別のデータを含む第2列データを前記所定のビット数毎に第2メモリと第4メモリに交互に書き込む書込制御部と、
前記第1メモリ、前記第2メモリ、前記第3メモリ、及び前記第4メモリのそれぞれから、前記所定のビット数を読み出す読出制御部と、
前記第1メモリ、前記第2メモリ、前記第3メモリ、前記第4メモリの順番で、前記読み出したデータを出力する出力切替部と、
を備え、
前記所定のビット数を読み出す読出速度は、前記所定のビット数を書き込む書込速度と、全ての列データの前記所定のビット数のうちの有効なビット数の割合と、を乗じて得た速度である、
クロック乗せ換え回路。
first column data containing a plurality of data are alternately written into the first memory and the third memory for each predetermined number of bits; a write control unit that alternately writes to the second memory and the fourth memory each time;
a read control unit that reads the predetermined number of bits from each of the first memory, the second memory, the third memory, and the fourth memory;
an output switching unit that outputs the read data in the order of the first memory, the second memory, the third memory, and the fourth memory;
with
The reading speed for reading the predetermined number of bits is a speed obtained by multiplying the writing speed for writing the predetermined number of bits by the ratio of the effective number of bits to the predetermined number of bits of all column data. is
Clock transfer circuit.
複数のデータを含む第1列データを所定のビット数毎に第1メモリと第3メモリに交互に書き込むことと並行して、複数の別のデータを含む第2列データを前記所定のビット数毎に第2メモリと第4メモリに交互に書き込むことと、
前記第1メモリ、前記第2メモリ、前記第3メモリ、及び前記第4メモリのそれぞれから、前記所定のビット数を読み出すことと、
前記第1メモリ、前記第2メモリ、前記第3メモリ、前記第4メモリの順番で、前記読み出したデータを出力することと、
前記所定のビット数を読み出す読出速度を、前記所定のビット数を書き込む書込速度と、列データの数と、を乗じて得た速度に設定することと、
を備える方法。
first column data containing a plurality of data are alternately written into the first memory and the third memory for each predetermined number of bits; alternately writing to the second memory and the fourth memory every
reading the predetermined number of bits from each of the first memory, the second memory, the third memory, and the fourth memory;
outputting the read data in the order of the first memory, the second memory, the third memory, and the fourth memory;
setting the reading speed for reading the predetermined number of bits to a speed obtained by multiplying the writing speed for writing the predetermined number of bits by the number of column data;
How to prepare.
複数のデータを含む第1列データを所定のビット数毎に第1メモリと第3メモリに交互に書き込むことと並行して、複数の別のデータを含む第2列データを前記所定のビット数毎に第2メモリと第4メモリに交互に書き込むことと、
前記第1メモリ、前記第2メモリ、前記第3メモリ、及び前記第4メモリのそれぞれから、前記所定のビット数を読み出すことと、
前記第1メモリ、前記第2メモリ、前記第3メモリ、前記第4メモリの順番で、前記読み出したデータを出力することと、
前記所定のビット数を読み出す読出速度を、前記所定のビット数を書き込む書込速度と、列データの数と、を乗じて得た速度に設定することと、
をコンピュータに実行させるプログラム。
first column data containing a plurality of data are alternately written into the first memory and the third memory for each predetermined number of bits; alternately writing to the second memory and the fourth memory every
reading the predetermined number of bits from each of the first memory, the second memory, the third memory, and the fourth memory;
outputting the read data in the order of the first memory, the second memory, the third memory, and the fourth memory;
setting the reading speed for reading the predetermined number of bits to a speed obtained by multiplying the writing speed for writing the predetermined number of bits by the number of column data;
A program that makes a computer run
JP2019052717A 2019-03-20 2019-03-20 Clock domain crossing circuit, method and program Active JP7192599B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019052717A JP7192599B2 (en) 2019-03-20 2019-03-20 Clock domain crossing circuit, method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019052717A JP7192599B2 (en) 2019-03-20 2019-03-20 Clock domain crossing circuit, method and program

Publications (2)

Publication Number Publication Date
JP2020154738A JP2020154738A (en) 2020-09-24
JP7192599B2 true JP7192599B2 (en) 2022-12-20

Family

ID=72559193

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019052717A Active JP7192599B2 (en) 2019-03-20 2019-03-20 Clock domain crossing circuit, method and program

Country Status (1)

Country Link
JP (1) JP7192599B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001308832A (en) 2000-04-24 2001-11-02 Oki Electric Ind Co Ltd Device for converting speed

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015001986A (en) * 2013-06-13 2015-01-05 富士通株式会社 Data transfer device, buffering circuit, and buffering method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001308832A (en) 2000-04-24 2001-11-02 Oki Electric Ind Co Ltd Device for converting speed

Also Published As

Publication number Publication date
JP2020154738A (en) 2020-09-24

Similar Documents

Publication Publication Date Title
KR100813424B1 (en) Delay line synchronizer apparatus and method
JP4843821B2 (en) Memory device and method having multiple internal data buses and memory bank interleaving
US8624647B2 (en) Duty cycle correction circuit for memory interfaces in integrated circuits
US8149643B2 (en) Memory device and method
US8154931B2 (en) Circuits, devices, systems, and methods of operation for capturing data signals
US8169851B2 (en) Memory device with pseudo double clock signals and the method using the same
US20160110286A1 (en) Data writing method and memory system
JP7192599B2 (en) Clock domain crossing circuit, method and program
KR20190047860A (en) Error information storage circuit and semiconductor apparatus including the same
JP2016115391A (en) Refreshing hidden edram memory
KR101092995B1 (en) Semiconductor memory device and operating method thereof
KR20130102398A (en) Circuit for parallel bit test of semiconductor memory device
KR20150051021A (en) Semiconductor integrated circuit
KR20140136203A (en) Semiconductor integrated circuit
JP2011060354A (en) Latency counter, semiconductor memory device including the same, and data processing system
JP4854258B2 (en) Data output time adjustment method for synchronous memory device
JP2014106969A (en) Data processing apparatus and method in plc system
KR100929833B1 (en) Output Enable Signal Generation Circuit and Generation Method
JP2011238331A (en) Address output timing control circuit for semiconductor device
KR100951571B1 (en) Address latch clock controller
JPH1027497A (en) Memory test device
US20080263290A1 (en) Memory control apparatus and memory control method
US12216925B2 (en) Memory control apparatus, method for controlling memory control apparatus, and storage medium
KR100903384B1 (en) Semiconductor memory device and driving method thereof
KR100586070B1 (en) Control circuit of semiconductor memory device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220203

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20221031

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221121

R151 Written notification of patent or utility model registration

Ref document number: 7192599

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151