JP2017022585A - Memory system - Google Patents

Memory system Download PDF

Info

Publication number
JP2017022585A
JP2017022585A JP2015139255A JP2015139255A JP2017022585A JP 2017022585 A JP2017022585 A JP 2017022585A JP 2015139255 A JP2015139255 A JP 2015139255A JP 2015139255 A JP2015139255 A JP 2015139255A JP 2017022585 A JP2017022585 A JP 2017022585A
Authority
JP
Japan
Prior art keywords
circuit
control circuit
clock
encryption
memory device
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
JP2015139255A
Other languages
Japanese (ja)
Other versions
JP6207551B2 (en
Inventor
崇彦 菅原
Takahiko Sugawara
崇彦 菅原
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.)
MegaChips Corp
Original Assignee
MegaChips 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 MegaChips Corp filed Critical MegaChips Corp
Priority to JP2015139255A priority Critical patent/JP6207551B2/en
Priority to US15/205,682 priority patent/US10152437B2/en
Publication of JP2017022585A publication Critical patent/JP2017022585A/en
Application granted granted Critical
Publication of JP6207551B2 publication Critical patent/JP6207551B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a memory system that comprises a host device and a memory device connected with it, and can simply achieve high-speed encryption communication between the devices at low cost.SOLUTION: A host device 2 comprises: a transmission control circuit 22 for controlling command transmission to a memory device 3 in synchronization with a clock C1; an encryption/decryption circuit 24 as an encryption circuit for generating an encryption command S5A by encrypting a command S5 to be transmitted to the memory device 3 in synchronization with the clock C1; a reception control circuit 23 for controlling data reception from the memory device 3 in synchronization with a clock C2; and the encryption/decryption circuit 24 as a decryption circuit for decrypting encryption data S7A received from the memory device 3 in synchronization with the clock C2.SELECTED DRAWING: Figure 1

Description

本発明は、ホスト装置とメモリ装置とを備えるメモリシステムに関する。   The present invention relates to a memory system including a host device and a memory device.

ホスト装置とそれに接続されるメモリ装置とを備えるメモリシステムにおいて、クロックに同期して動作するメモリシステムでは、その動作の高速化に伴い、両装置間で送受信されるクロックやデータの伝搬遅延が大きくなり、クロックの1サイクル内でのデータ転送が困難になりつつある。   In a memory system that operates in synchronization with a clock in a memory system that includes a host device and a memory device connected to the host device, the propagation delay of the clock and data transmitted and received between the two devices increases as the operation speed increases. Therefore, data transfer within one cycle of the clock is becoming difficult.

そこで、従来のメモリシステムでは、データ遅延量の増大に起因するデータの損失を防止すべく、システム内部で生成したデータストローブ信号に同期して両装置間でのデータの送受信が行われてきた(例えば下記特許文献1〜3参照)。   Therefore, in a conventional memory system, data transmission / reception has been performed between both devices in synchronization with a data strobe signal generated inside the system in order to prevent data loss due to an increase in the amount of data delay ( For example, see Patent Documents 1 to 3 below).

また、両装置間で暗号化通信を行う場合、従来のメモリシステムでは、共通の単一クロックに同期して暗号化処理及び復号化処理の双方が実行されていた。   Further, when performing encrypted communication between both devices, in the conventional memory system, both encryption processing and decryption processing are executed in synchronization with a common single clock.

特開2004−145999号公報JP 2004-145999 A 特開2011−216079号公報JP 2011-216079 A 特表2011−508311号公報Special table 2011-508311 gazette

しかし、単一クロックに同期して暗号化処理及び復号化処理の双方を実行する方式の暗号化通信では、通信速度の高速化に伴い、暗号化処理及び復号化処理を適切に同期化させることが困難になりつつある。   However, in encrypted communication that executes both encryption processing and decryption processing in synchronization with a single clock, the encryption processing and decryption processing must be appropriately synchronized as the communication speed increases. Is becoming difficult.

本発明はかかる事情に鑑みて成されたものであり、ホスト装置とそれに接続されるメモリ装置とを備えるメモリシステムにおいて、両装置間の高速化暗号通信を低コストかつ簡易に実現することが可能なメモリシステムを得ることを目的とするものである。   The present invention has been made in view of such circumstances, and in a memory system including a host device and a memory device connected thereto, high-speed encrypted communication between both devices can be realized at low cost and easily. The purpose is to obtain a simple memory system.

本発明の第1の態様に係るメモリシステムは、ホスト装置と、前記ホスト装置に接続されるメモリ装置と、を備え、前記ホスト装置は、第1のクロックに同期して前記メモリ装置へのコマンド送信を制御する送信制御回路と、前記メモリ装置へ送信するコマンドを第1のクロックに同期して暗号化することにより、暗号化コマンドを生成する暗号回路と、第2のクロックに同期して前記メモリ装置からのデータ受信を制御する受信制御回路と、前記メモリ装置から受信した暗号化データを第2のクロックに同期して復号化する復号回路と、を備えることを特徴とするものである。   A memory system according to a first aspect of the present invention includes a host device and a memory device connected to the host device, and the host device sends a command to the memory device in synchronization with a first clock. A transmission control circuit for controlling transmission; a cipher circuit for generating an encrypted command by encrypting a command to be transmitted to the memory device in synchronization with a first clock; and the synchronization circuit in synchronization with a second clock. A reception control circuit that controls reception of data from the memory device, and a decryption circuit that decrypts encrypted data received from the memory device in synchronization with a second clock.

第1の態様に係るメモリシステムによれば、送信制御回路及び暗号回路は第1のクロックに同期して動作し、受信制御回路及び復号回路は第2のクロックに同期して動作する。従って、通信速度が高速化した場合であっても暗号化処理及び復号化処理を適切に同期化させることができ、その結果、ホスト装置とメモリ装置との間の高速化暗号通信を低コストかつ簡易に実現することが可能となる。   According to the memory system of the first aspect, the transmission control circuit and the encryption circuit operate in synchronization with the first clock, and the reception control circuit and the decryption circuit operate in synchronization with the second clock. Therefore, even when the communication speed is increased, the encryption process and the decryption process can be appropriately synchronized. As a result, the high-speed encryption communication between the host device and the memory device can be performed at low cost and at a low cost. This can be realized easily.

本発明の第2の態様に係るメモリシステムは、第1の態様に係るメモリシステムにおいて特に、前記メモリ装置は、データが格納されたメモリアレイと、前記メモリアレイへのアクセスを制御する制御回路と、を有し、前記送信制御回路は、第1のクロックを前記制御回路に送信し、前記制御回路は、前記送信制御回路から受信した第1のクロックを第2のクロックとして前記受信制御回路に送信することを特徴とするものである。   The memory system according to a second aspect of the present invention is the memory system according to the first aspect, in particular, the memory device includes a memory array in which data is stored, and a control circuit that controls access to the memory array. The transmission control circuit transmits a first clock to the control circuit, and the control circuit uses the first clock received from the transmission control circuit as a second clock to the reception control circuit. It is characterized by transmitting.

第2の態様に係るメモリシステムによれば、メモリ装置の制御回路は、ホスト装置の送信制御回路から受信した第1のクロックをフィードバックすることにより、第2のクロックとしてホスト装置の受信制御回路に送信する。そして、受信制御回路は、フィードバックされた第2のクロックに同期してメモリ装置からのデータ受信を制御する。従って、第1及び第2のクロックとは別のデータストローブ信号を新たに生成する必要がないため、データストローブ信号の生成回路やタイミング調整回路の実装を省略でき、その結果、ホスト装置とメモリ装置との間の高速化暗号通信を低コストかつ簡易に実現することが可能となる。また、第1のクロックを第2のクロックとしてフィードバックしているため、メモリアレイから読み出したデータを第2のクロックに同期してメモリ装置からホスト装置に送信する際に、配線遅延及びバッファ遅延に伴う伝搬遅延量を第2のクロックとデータとで実質的に相殺でき、その結果、データの損失を防止することが可能となる。   According to the memory system of the second aspect, the control circuit of the memory device feeds back the first clock received from the transmission control circuit of the host device, so that the second clock is sent to the reception control circuit of the host device. Send. The reception control circuit controls data reception from the memory device in synchronization with the fed back second clock. Accordingly, since it is not necessary to newly generate a data strobe signal different from the first and second clocks, the mounting of the data strobe signal generation circuit and the timing adjustment circuit can be omitted. As a result, the host device and the memory device can be omitted. It is possible to easily realize high-speed encrypted communication with the network at low cost. Further, since the first clock is fed back as the second clock, when data read from the memory array is transmitted from the memory device to the host device in synchronization with the second clock, wiring delay and buffer delay are caused. The accompanying propagation delay amount can be substantially offset between the second clock and the data, and as a result, data loss can be prevented.

本発明の第3の態様に係るメモリシステムは、第2の態様に係るメモリシステムにおいて特に、前記ホスト装置は、前記送信制御回路及び前記受信制御回路を制御する主制御回路をさらに有し、前記主制御回路は、前記ホスト装置と前記メモリ装置との間の伝搬遅延量に基づいて、所定の補正値を決定し、前記送信制御回路は、前記主制御回路から入力された前記補正値に基づいて、前記メモリ装置からのデータ受信が開始されてから当該データ受信が完了するまでの第1のクロックのサイクル数を補正することを特徴とするものである。   The memory system according to a third aspect of the present invention is the memory system according to the second aspect, in particular, the host device further includes a main control circuit that controls the transmission control circuit and the reception control circuit, The main control circuit determines a predetermined correction value based on a propagation delay amount between the host device and the memory device, and the transmission control circuit is based on the correction value input from the main control circuit. Then, the cycle number of the first clock from the start of data reception from the memory device to the completion of the data reception is corrected.

第3の態様に係るメモリシステムによれば、ホスト装置の主制御回路は、ホスト装置とメモリ装置との間の伝搬遅延量に基づいて所定の補正値を決定し、送信制御回路は、当該補正値に基づいて、メモリ装置からのデータ受信が開始されてからデータ受信が完了するまでの第1のクロックのサイクル数を補正する。このように、不定の伝搬遅延量から決定された補正値に基づいて、通信プロトコルで規定された固定サイクル数を補正することにより、固定サイクル数を過不足なく確保でき、その結果、ホスト装置の暗号回路及び復号回路、並びにメモリ装置の暗号回路及び復号回路の内部状態を一致させることができるため、システムを正常に動作させることが可能となる。   According to the memory system of the third aspect, the main control circuit of the host device determines a predetermined correction value based on the propagation delay amount between the host device and the memory device, and the transmission control circuit Based on the value, the number of cycles of the first clock from the start of data reception from the memory device to the completion of data reception is corrected. In this way, by correcting the fixed cycle number specified by the communication protocol based on the correction value determined from the indefinite propagation delay amount, the fixed cycle number can be secured without excess or deficiency. Since the internal states of the encryption circuit and the decryption circuit and the encryption circuit and the decryption circuit of the memory device can be matched, the system can be operated normally.

本発明の第4の態様に係るメモリシステムは、第3の態様に係るメモリシステムにおいて特に、前記送信制御回路は、第1のクロックのサイクル数をカウントする第1のカウンタを含み、前記受信制御回路は、第2のクロックのサイクル数をカウントする第2のカウンタを含み、前記主制御回路は、前記メモリ装置へのコマンド送信が完了してから、前記メモリ装置からReady信号を受信するまでの前記第1のカウンタのカウント値と、前記メモリ装置から最初のBusy信号を受信してから、前記メモリ装置からReady信号を受信するまでの前記第2のカウンタのカウント値とに基づいて、前記補正値を決定することを特徴とするものである。   The memory system according to a fourth aspect of the present invention is the memory system according to the third aspect, in which the transmission control circuit includes a first counter that counts the number of cycles of the first clock, and the reception control The circuit includes a second counter that counts the number of cycles of the second clock, and the main control circuit is configured to receive a Ready signal from the memory device after command transmission to the memory device is completed. The correction is based on the count value of the first counter and the count value of the second counter from when the first Busy signal is received from the memory device to when the Ready signal is received from the memory device. It is characterized by determining a value.

第4の態様に係るメモリシステムによれば、主制御回路は、メモリ装置へのコマンド送信が完了してから、メモリ装置からReady信号を受信するまでの第1のカウンタのカウント値と、メモリ装置から最初のBusy信号を受信してから、メモリ装置からReady信号を受信するまでの第2のカウンタのカウント値とに基づいて、補正値を決定する。従って、配線遅延及びバッファ遅延に伴う不定の伝搬遅延量と、メモリアレイからのデータの読み出しに伴う不定のBusyサイクル数とに基づいて、補正値を正確に決定できるため、固定サイクル数を高精度に補正することが可能となる。   According to the memory system of the fourth aspect, the main control circuit includes the count value of the first counter until the Ready signal is received from the memory device after the command transmission to the memory device is completed, and the memory device The correction value is determined based on the count value of the second counter from the reception of the first Busy signal to the reception of the Ready signal from the memory device. Therefore, the correction value can be accurately determined based on the indefinite propagation delay amount associated with the wiring delay and the buffer delay and the indefinite busy cycle number associated with the data reading from the memory array. It becomes possible to correct to.

本発明の第5の態様に係るメモリシステムは、第3の態様に係るメモリシステムにおいて特に、前記送信制御回路は、第1のクロックのサイクル数をカウントする第1のカウンタを含み、前記主制御回路は、前記メモリ装置へのコマンド送信が完了してから、前記メモリ装置から最初のBusy信号を受信するまでの前記第1のカウンタのカウント値に基づいて、前記補正値を算出することを特徴とするものである。   The memory system according to a fifth aspect of the present invention is the memory system according to the third aspect, in which the transmission control circuit includes a first counter that counts the number of cycles of the first clock, and the main control The circuit calculates the correction value based on a count value of the first counter from completion of command transmission to the memory device to reception of a first Busy signal from the memory device. It is what.

第5の態様に係るメモリシステムによれば、主制御回路は、メモリ装置へのコマンド送信が完了してから、メモリ装置から最初のBusy信号を受信するまでの第1のカウンタのカウント値に基づいて、補正値を決定する。従って、配線遅延及びバッファ遅延に伴う不定の伝搬遅延量に基づいて補正値を簡易に決定することが可能となる。また、Busyサイクルの完了を待つことなく早期に補正値を決定できるため、補正値が異常値である場合に早期にエラー処理を開始することが可能となる。さらに、第2のカウンタが不要になるとともに、第1のカウンタのカウント値を削減できるため、全体としてホスト装置の回路規模を削減することが可能となる。   According to the memory system of the fifth aspect, the main control circuit is based on the count value of the first counter until the first Busy signal is received from the memory device after the command transmission to the memory device is completed. To determine the correction value. Therefore, the correction value can be easily determined based on the indefinite propagation delay amount accompanying the wiring delay and the buffer delay. In addition, since the correction value can be determined early without waiting for the completion of the Busy cycle, error processing can be started early when the correction value is an abnormal value. Furthermore, since the second counter is not necessary and the count value of the first counter can be reduced, the circuit scale of the host device as a whole can be reduced.

本発明の第6の態様に係るメモリシステムは、第1〜第5のいずれか一つの態様に係るメモリシステムにおいて特に、前記暗号回路及び前記復号回路として共通の暗号復号回路が実装されていることを特徴とするものである。   In the memory system according to the sixth aspect of the present invention, in the memory system according to any one of the first to fifth aspects, a common encryption / decryption circuit is mounted as the encryption circuit and the decryption circuit. It is characterized by.

第6の態様に係るメモリシステムによれば、暗号回路及び復号回路として共通の暗号復号回路が実装されているため、暗号回路及び復号回路を個別に実装する場合と比較すると、ホスト装置の回路規模を削減することが可能となる。   According to the memory system of the sixth aspect, since the common encryption / decryption circuit is mounted as the encryption circuit and the decryption circuit, the circuit scale of the host device is compared with the case where the encryption circuit and the decryption circuit are individually mounted. Can be reduced.

本発明の第7の態様に係るメモリシステムは、第1〜第5のいずれか一つの態様に係るメモリシステムにおいて特に、前記暗号回路と前記復号回路とは個別に実装されていることを特徴とするものである。   A memory system according to a seventh aspect of the present invention is characterized in that, in the memory system according to any one of the first to fifth aspects, the encryption circuit and the decryption circuit are individually mounted. To do.

第7の態様に係るメモリシステムによれば、暗号回路と復号回路とは個別に実装されているため、暗号回路と復号回路とでそれぞれ最適な回路設計を容易に行うことが可能となる。   According to the memory system according to the seventh aspect, since the encryption circuit and the decryption circuit are individually mounted, it is possible to easily perform optimum circuit designs for the encryption circuit and the decryption circuit, respectively.

本発明の第8の態様に係るメモリシステムは、第7の態様に係るメモリシステムにおいて特に、前記送信制御回路は、第1の同期信号を前記暗号回路及び前記復号回路に入力することにより、前記暗号回路がコマンドの暗号化を実行している期間内において前記復号回路を動作させ、前記受信制御回路は、第2の同期信号を前記暗号回路及び前記復号回路に入力することにより、前記復号回路が暗号化データの復号化を実行している期間内において前記暗号回路を動作させることを特徴とするものである。   The memory system according to an eighth aspect of the present invention is the memory system according to the seventh aspect, in particular, the transmission control circuit inputs the first synchronization signal to the encryption circuit and the decryption circuit, thereby The decryption circuit operates by operating the decryption circuit within a period in which the encryption circuit executes command encryption, and the reception control circuit inputs a second synchronization signal to the encryption circuit and the decryption circuit, thereby Is characterized in that the encryption circuit is operated during a period in which the encrypted data is decrypted.

第8の態様に係るメモリシステムによれば、送信制御回路は、第1の同期信号を暗号回路及び復号回路に入力することにより、暗号回路がコマンドの暗号化を実行している期間内において復号回路を動作させる。また、受信制御回路は、第2の同期信号を暗号回路及び復号回路に入力することにより、復号回路が暗号化データの復号化を実行している期間内において暗号回路を動作させる。このように、暗号回路及び復号回路の一方が処理を実行している期間において他方を空回しで動作させることにより、暗号回路及び復号回路のキーストリーム等の内部状態を一致させることができ、その結果、適切な暗号通信を実現することが可能となる。   According to the memory system of the eighth aspect, the transmission control circuit inputs the first synchronization signal to the encryption circuit and the decryption circuit, so that the encryption circuit decrypts the command within the period during which the command is encrypted. Operate the circuit. In addition, the reception control circuit inputs the second synchronization signal to the encryption circuit and the decryption circuit, thereby operating the encryption circuit during the period in which the decryption circuit is decrypting the encrypted data. In this way, by operating one of the encryption circuit and the decryption circuit while the other is running, the internal state of the key stream of the encryption circuit and the decryption circuit can be matched, As a result, it is possible to realize appropriate encrypted communication.

本発明によれば、ホスト装置とメモリ装置との間の高速化暗号通信を低コストかつ簡易に実現することが可能なメモリシステムを得ることができる。   ADVANTAGE OF THE INVENTION According to this invention, the memory system which can implement | achieve the high-speed encryption communication between a host apparatus and a memory device easily at low cost can be obtained.

本発明の実施の形態1に係るメモリシステムの構成を示す図である。It is a figure which shows the structure of the memory system which concerns on Embodiment 1 of this invention. メモリシステムの読み出し動作を示すタイミングチャートである。3 is a timing chart showing a read operation of the memory system. 本発明の実施の形態2に係るメモリシステムの構成を示す図である。It is a figure which shows the structure of the memory system which concerns on Embodiment 2 of this invention. 変形例に係るメモリシステムの構成を示す図である。It is a figure which shows the structure of the memory system which concerns on a modification. メモリシステムの読み出し動作を示すタイミングチャートである。3 is a timing chart showing a read operation of the memory system.

以下、本発明の実施の形態について、図面を用いて詳細に説明する。なお、異なる図面において同一の符号を付した要素は、同一又は相応する要素を示すものとする。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In addition, the element which attached | subjected the same code | symbol in different drawing shall show the same or corresponding element.

<実施の形態1>
図1は、本発明の実施の形態1に係るメモリシステム1の構成を示す図である。図1に示すようにメモリシステム1は、ホスト装置2と、ホスト装置2に着脱自在に接続される半導体メモリ等のメモリ装置3とを備えて構成されている。
<Embodiment 1>
FIG. 1 is a diagram showing a configuration of a memory system 1 according to Embodiment 1 of the present invention. As shown in FIG. 1, the memory system 1 includes a host device 2 and a memory device 3 such as a semiconductor memory that is detachably connected to the host device 2.

ホスト装置2は、CPU11、内部メモリ12、及びメモリコントローラ13を備えている。メモリコントローラ13は、主制御回路21、送信制御回路22、受信制御回路23、及び暗号復号回路24を有している。送信制御回路22は、クロックC1に同期して、暗号復号回路24によるコマンドS5の暗号化処理、及び、メモリ装置3への暗号化コマンドS5の送信処理を制御する。受信制御回路23は、クロックC2に同期して、メモリ装置3からの暗号化データS7Aの受信処理、及び、暗号復号回路24による暗号化データS7Aの復号化処理を制御する。主制御回路21は、送信制御回路22及び受信制御回路23を制御する。図1に示すように、送信制御回路22はアクセス生成回路31及び送信カウンタ32を有しており、受信制御回路23は同期回路41及び受信カウンタ42を有している。   The host device 2 includes a CPU 11, an internal memory 12, and a memory controller 13. The memory controller 13 includes a main control circuit 21, a transmission control circuit 22, a reception control circuit 23, and an encryption / decryption circuit 24. The transmission control circuit 22 controls the encryption process of the command S5 by the encryption / decryption circuit 24 and the transmission process of the encryption command S5 to the memory device 3 in synchronization with the clock C1. The reception control circuit 23 controls the reception process of the encrypted data S7A from the memory device 3 and the decryption process of the encrypted data S7A by the encryption / decryption circuit 24 in synchronization with the clock C2. The main control circuit 21 controls the transmission control circuit 22 and the reception control circuit 23. As shown in FIG. 1, the transmission control circuit 22 includes an access generation circuit 31 and a transmission counter 32, and the reception control circuit 23 includes a synchronization circuit 41 and a reception counter 42.

主制御回路21、アクセス生成回路31、送信カウンタ32、暗号復号回路24、同期回路41、及び受信カウンタ42には、共通の基準クロックC0が入力される。アクセス生成回路31は、基準クロックC0に基づいてクロックC1を生成する。例えば、基準クロックC0を分周することにより、基準クロックC0の4サイクルを1サイクルとするクロックC1を生成する。   A common reference clock C0 is input to the main control circuit 21, the access generation circuit 31, the transmission counter 32, the encryption / decryption circuit 24, the synchronization circuit 41, and the reception counter. The access generation circuit 31 generates the clock C1 based on the reference clock C0. For example, by dividing the reference clock C0, a clock C1 having four cycles of the reference clock C0 as one cycle is generated.

メモリ装置3は、コンテンツデータ等の任意のデータS6が格納されたメモリアレイ52と、メモリアレイ52へのアクセスを制御する制御回路51とを有している。制御回路51は、暗号復号回路24と同様の暗号復号回路61を有している。   The memory device 3 includes a memory array 52 in which arbitrary data S6 such as content data is stored, and a control circuit 51 that controls access to the memory array 52. The control circuit 51 has an encryption / decryption circuit 61 similar to the encryption / decryption circuit 24.

以下、メモリアレイ52に格納されているデータS7をメモリ装置3からホスト装置2に読み出す処理を例にとり、メモリシステム1の動作を説明する。以下の例では、通信プロトコルによってコマンド長が8バイト、読み出しデータ長が512バイトに固定され、レイテンシ方式としてReady/Busy方式が採用されたメモリシステムを前提とする。また、コマンド及び読み出しデータは暗号化の対象であり、Busy信号及びReady信号は暗号化の対象でない場合を例にとる。   Hereinafter, the operation of the memory system 1 will be described by taking as an example a process of reading the data S7 stored in the memory array 52 from the memory device 3 to the host device 2. The following example is based on a memory system in which the command length is fixed to 8 bytes and the read data length is fixed to 512 bytes according to the communication protocol, and the Ready / Busy method is adopted as the latency method. Further, the command and read data are objects of encryption, and the Busy signal and Ready signal are not examples of encryption.

図2は、メモリシステム1の読み出し動作を示すタイミングチャートである。CPU11は、アドレス情報及び読み出しサイズ等を含む読み出しコマンドを、主制御回路21に入力する。主制御回路21は、入力された読み出しコマンドをデコードすることにより、コマンドデータS1と、アクセス情報及びアクセス開始フラグを含む制御信号S2とを、送信制御回路22に入力する。   FIG. 2 is a timing chart showing the read operation of the memory system 1. The CPU 11 inputs a read command including address information and a read size to the main control circuit 21. The main control circuit 21 decodes the input read command and inputs the command data S1 and the control signal S2 including the access information and the access start flag to the transmission control circuit 22.

アクセス生成回路31は、入力されたアクセス情報に基づいて、メモリ装置3にアクセスするためのアクセス制御信号S4を生成し、当該アクセス制御信号S4をメモリ装置3に送信する。また、アクセス生成回路31は、上記の通り基準クロックC0に基づいてクロックC1を生成し、当該クロックC1をメモリ装置3に送信する。また、送信制御回路22は、クロックC1に同期する同期信号T1を生成し、当該同期信号T1を暗号復号回路24に入力する。また、送信制御回路22は、入力されたコマンドデータS1に基づいて非暗号のコマンドS5を生成し、当該コマンドS5を暗号復号回路24に入力する。   The access generation circuit 31 generates an access control signal S4 for accessing the memory device 3 based on the inputted access information, and transmits the access control signal S4 to the memory device 3. Further, the access generation circuit 31 generates the clock C1 based on the reference clock C0 as described above, and transmits the clock C1 to the memory device 3. In addition, the transmission control circuit 22 generates a synchronization signal T1 that is synchronized with the clock C1 and inputs the synchronization signal T1 to the encryption / decryption circuit 24. The transmission control circuit 22 generates a non-encrypted command S5 based on the input command data S1, and inputs the command S5 to the encryption / decryption circuit 24.

暗号復号回路24は、同期信号T1に同期してコマンドS5の暗号化処理を実行することにより、暗号化コマンドS5Aを生成し、当該暗号化コマンドS5AをクロックC1に同期してメモリ装置3に送信する。本実施の形態の例では、コマンド長が8バイトであり、クロックC1の1サイクルで1バイトのデータ転送が行われるため、クロックC1の8サイクルに相当する固定長の期間P1(図2)が、コマンド送信期間となる。送信制御回路22は、暗号化コマンドS5Aの最終バイト(第8バイト)の送信が完了すると、送信カウンタ32にカウント動作を開始させ、送信カウンタ32は以後のクロックC1のサイクル数をカウントする。また、送信制御回路22は、暗号化コマンドS5Aの最終バイト(第8バイト)の送信が完了すると、暗号復号回路24への同期信号T1の入力を停止する。これにより、コマンド送信期間P1の終了に伴って暗号復号回路24の動作が停止する。   The encryption / decryption circuit 24 executes encryption processing of the command S5 in synchronization with the synchronization signal T1, thereby generating an encryption command S5A, and transmits the encryption command S5A to the memory device 3 in synchronization with the clock C1. To do. In the example of the present embodiment, the command length is 8 bytes, and 1-byte data transfer is performed in one cycle of the clock C1, and therefore a fixed-length period P1 (FIG. 2) corresponding to 8 cycles of the clock C1 This is the command transmission period. When the transmission of the last byte (eighth byte) of the encrypted command S5A is completed, the transmission control circuit 22 causes the transmission counter 32 to start a count operation, and the transmission counter 32 counts the number of cycles of the clock C1 thereafter. Further, when the transmission of the last byte (eighth byte) of the encryption command S5A is completed, the transmission control circuit 22 stops inputting the synchronization signal T1 to the encryption / decryption circuit 24. Thereby, the operation of the encryption / decryption circuit 24 stops with the end of the command transmission period P1.

メモリ装置3の制御回路51は、ホスト装置2から受信したクロックC1をホスト装置2にフィードバックすることにより、クロックC1と同一周波数のクロックC2をホスト装置2に送信する。なお、クロックC1とは異なるクロックC2をメモリ装置3からホスト装置2に送信しても良い。   The control circuit 51 of the memory device 3 sends the clock C1 received from the host device 2 back to the host device 2, thereby transmitting the clock C2 having the same frequency as the clock C1 to the host device 2. Note that a clock C2 different from the clock C1 may be transmitted from the memory device 3 to the host device 2.

暗号復号回路61は、受信した暗号化コマンドS5Aを復号化することによって、非暗号のコマンドS5を復元する。また、制御回路51は、コマンドS5をデコードすることによって、メモリアレイ52から所望のデータS7を読み出す。制御回路51は、メモリアレイ52からのデータS7の読み出し処理、及び、暗号復号回路61によるデータS7の暗号化処理が完了するまでは、Busy信号S6をホスト装置2に送信する。そして、読み出し処理及び暗号化処理が完了するとReady信号S6を送信し、Ready信号S6に続けて暗号化データS7Aを送信する。Busy信号S6、Ready信号S6、及び暗号化データS7Aの送信は、クロックC2に同期して行われる。   The encryption / decryption circuit 61 restores the non-encrypted command S5 by decrypting the received encrypted command S5A. Further, the control circuit 51 reads desired data S7 from the memory array 52 by decoding the command S5. The control circuit 51 transmits the Busy signal S6 to the host device 2 until the process of reading the data S7 from the memory array 52 and the process of encrypting the data S7 by the encryption / decryption circuit 61 are completed. When the reading process and the encryption process are completed, the Ready signal S6 is transmitted, and the encrypted data S7A is transmitted following the Ready signal S6. The Busy signal S6, the Ready signal S6, and the encrypted data S7A are transmitted in synchronization with the clock C2.

図2を参照して、ホスト装置2が暗号化コマンドS5Aの最終バイトの送信を完了してから、Ready信号S6の受信を完了するまでの期間P2が、Ready/Busy期間となる。また、Ready/Busy期間P2に続く期間P3が、ホスト装置2がメモリ装置3から暗号化データS7Aを受信するデータ受信期間となる。本実施の形態の例では、読み出しデータ長が512バイトであり、クロックC2の1サイクルで1バイトのデータ転送が行われるため、クロックC2の512サイクルに相当する固定長の期間P3がデータ受信期間となる。但し、後述するように、クロックC1に関するデータ受信期間P3のサイクル数は補正される。   Referring to FIG. 2, a period P2 from when the host apparatus 2 completes transmission of the last byte of the encrypted command S5A to when reception of the Ready signal S6 is completed is a Ready / Busy period. Further, a period P3 following the Ready / Busy period P2 is a data reception period in which the host device 2 receives the encrypted data S7A from the memory device 3. In the example of the present embodiment, the read data length is 512 bytes, and data transfer of 1 byte is performed in one cycle of the clock C2, so that a fixed length period P3 corresponding to 512 cycles of the clock C2 is a data reception period. It becomes. However, as will be described later, the number of cycles of the data reception period P3 related to the clock C1 is corrected.

ホスト装置2とメモリ装置3との間で暗号化コマンド及び暗号化データの送受信を行う場合には、両装置間の配線遅延とメモリ装置3の入出力バッファのバッファ遅延とに起因して、不定長の伝搬遅延が発生する。そして、高周波のクロックC1,C2を用いて高速化通信を行う場合には、その伝搬遅延量がクロックC1,C2の1サイクルよりも大きくなる。図2に示すように、暗号化コマンドS5Aの最終バイトの送信が完了してから、先頭のBusy信号S6の受信を開始するまでの間に、クロックC1,C2の1サイクルを超える伝搬遅延PDが発生している。伝搬遅延PDの遅延量は不定であり、また、Busy信号が継続するサイクル数も不定であるため、Ready/Busy期間P2は不定長となる。   When an encrypted command and encrypted data are transmitted / received between the host device 2 and the memory device 3, the host device 2 and the memory device 3 are indefinite due to the wiring delay between both devices and the buffer delay of the input / output buffer of the memory device 3 A long propagation delay occurs. When high-speed communication is performed using the high-frequency clocks C1 and C2, the propagation delay amount becomes larger than one cycle of the clocks C1 and C2. As shown in FIG. 2, the propagation delay PD exceeding one cycle of the clocks C1 and C2 is between the end of transmission of the last byte of the encrypted command S5A and the start of reception of the leading Busy signal S6. It has occurred. Since the delay amount of the propagation delay PD is indefinite and the number of cycles in which the Busy signal continues is also indefinite, the Ready / Busy period P2 has an indefinite length.

図1を参照して、ホスト装置2の受信制御回路23は、メモリ装置3から順に送信されたBusy信号S6、Ready信号S6、及び暗号化データS7AをクロックC2に同期して受信する。受信制御回路23は、Busy信号S6及びReady信号S6を主制御回路21に入力し、暗号化データS7Aを暗号復号回路24に入力する。また、同期回路41は、Busy信号S6を受信する毎に、Busy信号S6を基準クロックC0で同期化することによって同期信号T2を生成し、当該同期信号T2を主制御回路21に入力する。また、同期回路41は、先頭のBusy信号S6を受信すると、受信カウンタ42にカウント動作を開始させ、受信カウンタ42は以後の同期信号T2のサイクル数をカウントする。なお、Ready/Busy期間P2も暗号化の対象期間とする場合には、同期信号T2は暗号復号回路24に入力される。   Referring to FIG. 1, the reception control circuit 23 of the host device 2 receives the Busy signal S6, the Ready signal S6, and the encrypted data S7A, which are sequentially transmitted from the memory device 3, in synchronization with the clock C2. The reception control circuit 23 inputs the Busy signal S6 and the Ready signal S6 to the main control circuit 21, and inputs the encrypted data S7A to the encryption / decryption circuit 24. Further, every time the Busy signal S6 is received, the synchronization circuit 41 generates the synchronization signal T2 by synchronizing the Busy signal S6 with the reference clock C0, and inputs the synchronization signal T2 to the main control circuit 21. Further, when the synchronization circuit 41 receives the leading Busy signal S6, the synchronization counter 41 causes the reception counter 42 to start counting, and the reception counter 42 counts the number of cycles of the subsequent synchronization signal T2. When the Ready / Busy period P2 is also the encryption target period, the synchronization signal T2 is input to the encryption / decryption circuit 24.

主制御回路21は、受信制御回路23からReady信号S6が入力されると、その時点でのカウント値S3,S8を送信カウンタ32及び受信カウンタ42からそれぞれ取得する。そして、カウント値S3からカウント値S8を減算することによって遅延サイクル補正値を算出し、当該遅延サイクル補正値をアクセス情報としてアクセス生成回路31に入力する。また、主制御回路21は、受信制御回路23からReady信号S6が入力されることにより、Ready/Busy期間P2を終了し、続けてデータ受信期間P3に移行する。   When the Ready signal S6 is input from the reception control circuit 23, the main control circuit 21 acquires the count values S3 and S8 at that time from the transmission counter 32 and the reception counter 42, respectively. Then, the delay cycle correction value is calculated by subtracting the count value S8 from the count value S3, and the delay cycle correction value is input to the access generation circuit 31 as access information. Further, when the Ready signal S6 is input from the reception control circuit 23, the main control circuit 21 ends the Ready / Busy period P2, and then proceeds to the data reception period P3.

アクセス生成回路31は、入力された遅延サイクル補正値に基づいて、データ受信期間のサイクル数を補正する。本実施の形態の例では、読み出しデータ長が512バイトであり、クロックC1の1サイクルで1バイトのデータ転送が行われるため、本来は、Ready/Busy期間P2が終了してからクロックC1が512サイクル進行した時点が、データ受信期間P3の終点となる。アクセス生成回路31は、通信プロトコルで規定されたデータ受信期間のサイクル数(この例では512サイクル)から、入力された遅延サイクル補正値に相当するサイクル数を減算することにより、データ受信期間P3のサイクル数を補正する。例えば、遅延サイクル補正値が「2サイクル」である場合には、データ受信期間P3の終点は、Ready/Busy期間P2が終了してからクロックC1が510(=512−2)サイクル進行した時点となる。   The access generation circuit 31 corrects the number of cycles in the data reception period based on the input delay cycle correction value. In the example of the present embodiment, the read data length is 512 bytes, and data transfer of 1 byte is performed in one cycle of the clock C1, so that the clock C1 is originally 512 after the Ready / Busy period P2 ends. The end point of the data reception period P3 is the time when the cycle has progressed. The access generation circuit 31 subtracts the number of cycles corresponding to the input delay cycle correction value from the number of cycles of the data reception period specified in the communication protocol (512 cycles in this example), thereby obtaining the data reception period P3. Correct the number of cycles. For example, when the delay cycle correction value is “2 cycles”, the end point of the data reception period P3 is the time when the clock C1 has progressed 510 (= 512-2) cycles after the Ready / Busy period P2 ends. Become.

補正後のデータ受信期間P3において、受信制御回路23は、メモリ装置3から受信した暗号化データS7Aを暗号復号回路24に入力する。また、同期回路41は、暗号化データS7Aを受信する毎に、暗号化データS7Aを基準クロックC0で同期化することによって同期信号T3を生成し、当該同期信号T3を暗号復号回路24に入力する。   In the corrected data reception period P3, the reception control circuit 23 inputs the encrypted data S7A received from the memory device 3 to the encryption / decryption circuit 24. Further, every time the encrypted circuit S7A is received, the synchronization circuit 41 generates the synchronization signal T3 by synchronizing the encrypted data S7A with the reference clock C0, and inputs the synchronization signal T3 to the encryption / decryption circuit 24. .

暗号復号回路24は、同期信号T3に同期して暗号化データS7Aの復号化処理を実行することにより、非暗号のデータS7を復元し、当該データS7を主制御回路21に入力する。主制御回路21は、受信制御回路23から順に入力されたデータS7をCPU11に転送する。   The encryption / decryption circuit 24 restores the non-encrypted data S7 by executing the decryption process of the encrypted data S7A in synchronization with the synchronization signal T3, and inputs the data S7 to the main control circuit 21. The main control circuit 21 transfers the data S7 sequentially input from the reception control circuit 23 to the CPU 11.

このように本実施の形態に係るメモリシステム1によれば、送信制御回路22及び暗号回路としての暗号復号回路24はクロックC1(第1のクロック)に同期して動作し、受信制御回路23及び復号回路としての暗号復号回路24はクロックC2(第2のクロック)に同期して動作する。従って、通信速度が高速化した場合であっても暗号化処理及び復号化処理を適切に同期化させることができ、その結果、ホスト装置2とメモリ装置3との間の高速化暗号通信を低コストかつ簡易に実現することが可能となる。   Thus, according to the memory system 1 according to the present embodiment, the transmission control circuit 22 and the encryption / decryption circuit 24 as the encryption circuit operate in synchronization with the clock C1 (first clock), and the reception control circuit 23 and The encryption / decryption circuit 24 as a decryption circuit operates in synchronization with the clock C2 (second clock). Therefore, even when the communication speed is increased, the encryption process and the decryption process can be appropriately synchronized. As a result, the high-speed encryption communication between the host device 2 and the memory device 3 can be reduced. It can be realized easily and cost-effectively.

また、メモリ装置3の制御回路51は、ホスト装置2の送信制御回路22から受信したクロックC1をフィードバックすることにより、クロックC2としてホスト装置2の受信制御回路23に送信する。そして、受信制御回路23は、フィードバックされたクロックC2に同期してメモリ装置3からのデータ受信を制御する。従って、クロックC1,C2とは別のデータストローブ信号を新たに生成する必要がないため、データストローブ信号の生成回路やタイミング調整回路の実装を省略でき、その結果、ホスト装置2とメモリ装置3との間の高速化暗号通信を低コストかつ簡易に実現することが可能となる。また、クロックC1をクロックC2としてフィードバックしているため、暗号化データS7AをクロックC2に同期してメモリ装置3からホスト装置2に送信する際に、配線遅延及びバッファ遅延に伴う伝搬遅延量をクロックC2と暗号化データS7Aとで実質的に相殺でき、その結果、データの損失を防止することが可能となる。   Further, the control circuit 51 of the memory device 3 feeds back the clock C1 received from the transmission control circuit 22 of the host device 2 to transmit it to the reception control circuit 23 of the host device 2 as the clock C2. The reception control circuit 23 controls data reception from the memory device 3 in synchronization with the fed back clock C2. Accordingly, since it is not necessary to newly generate a data strobe signal different from the clocks C1 and C2, mounting of a data strobe signal generation circuit and a timing adjustment circuit can be omitted. As a result, the host device 2 and the memory device 3 It is possible to easily realize high-speed encrypted communication between the two at low cost. Since the clock C1 is fed back as the clock C2, when the encrypted data S7A is transmitted from the memory device 3 to the host device 2 in synchronization with the clock C2, the propagation delay amount associated with the wiring delay and the buffer delay is clocked. C2 and encrypted data S7A can be substantially offset, and as a result, data loss can be prevented.

また、ホスト装置2の主制御回路21は、ホスト装置2とメモリ装置3との間の伝搬遅延量に基づいて遅延サイクル補正値を決定し、送信制御回路22は、当該遅延サイクル補正値に基づいて、メモリ装置3からのデータ受信が開始されてからデータ受信が完了するまでのクロックC1のサイクル数を補正する。このように、不定の伝搬遅延量から決定された遅延サイクル補正値に基づいて、通信プロトコルで規定された固定サイクル数を補正することにより、固定サイクル数を過不足なく確保でき、その結果、ホスト装置2の暗号回路及び復号回路(上記の例では暗号復号回路24)、並びにメモリ装置3の暗号回路及び復号回路(上記の例では暗号復号回路61)の内部状態を一致させることができるため、システムを正常に動作させることが可能となる。   Further, the main control circuit 21 of the host device 2 determines a delay cycle correction value based on the propagation delay amount between the host device 2 and the memory device 3, and the transmission control circuit 22 is based on the delay cycle correction value. Thus, the cycle number of the clock C1 from the start of data reception from the memory device 3 to the completion of data reception is corrected. In this way, by correcting the fixed cycle number specified by the communication protocol based on the delay cycle correction value determined from the indefinite propagation delay amount, the fixed cycle number can be secured without excess or deficiency. Since the internal state of the encryption circuit and the decryption circuit (the encryption / decryption circuit 24 in the above example) of the device 2 and the encryption circuit and the decryption circuit (the encryption / decryption circuit 61 in the above example) of the memory device 3 can be matched, The system can be operated normally.

また、主制御回路21は、メモリ装置3へのコマンド送信が完了してから、メモリ装置3からReady信号S6を受信するまでの送信カウンタ32のカウント値S3と、メモリ装置3から最初のBusy信号S6を受信してから、メモリ装置3からReady信号S6を受信するまでの受信カウンタ42のカウント値S8とに基づいて、遅延サイクル補正値を決定する。従って、配線遅延及びバッファ遅延に伴う不定の伝搬遅延量と、メモリアレイ52からのデータの読み出しに伴う不定のBusyサイクル数とに基づいて、遅延サイクル補正値を正確に決定できるため、固定サイクル数を高精度に補正することが可能となる。   In addition, the main control circuit 21 counts the count value S3 of the transmission counter 32 from the completion of command transmission to the memory device 3 to the reception of the Ready signal S6 from the memory device 3, and the first Busy signal from the memory device 3. The delay cycle correction value is determined based on the count value S8 of the reception counter 42 from when S6 is received until the Ready signal S6 is received from the memory device 3. Accordingly, the delay cycle correction value can be accurately determined based on the indefinite propagation delay amount accompanying the wiring delay and the buffer delay and the indefinite Busy cycle number accompanying reading of data from the memory array 52, so that the fixed cycle number Can be corrected with high accuracy.

また、暗号回路及び復号回路として共通の暗号復号回路24が実装されているため、暗号回路及び復号回路を個別に実装する場合と比較すると、ホスト装置2の回路規模を削減することが可能となる。   Further, since the common encryption / decryption circuit 24 is mounted as the encryption circuit and the decryption circuit, the circuit scale of the host device 2 can be reduced as compared with the case where the encryption circuit and the decryption circuit are individually mounted. .

<実施の形態2>
図3は、本発明の実施の形態2に係るメモリシステム1の構成を示す図である。図1に示した暗号復号回路24に代えて、暗号回路24A及び復号回路24Bが個別に実装されている。
<Embodiment 2>
FIG. 3 is a diagram showing a configuration of the memory system 1 according to the second embodiment of the present invention. Instead of the encryption / decryption circuit 24 shown in FIG. 1, an encryption circuit 24A and a decryption circuit 24B are individually mounted.

コマンド送信期間P1において、非暗号のコマンドS5から暗号化コマンドS5Aを生成するために、コマンドS5は送信制御回路22から暗号回路24Aに入力される。その際、暗号回路24Aを動作させるための同期信号T1は、送信制御回路22から暗号回路24Aに入力されるとともに、復号回路24Bにも入力される。   In the command transmission period P1, the command S5 is input from the transmission control circuit 22 to the encryption circuit 24A in order to generate the encrypted command S5A from the non-encrypted command S5. At this time, the synchronization signal T1 for operating the encryption circuit 24A is input from the transmission control circuit 22 to the encryption circuit 24A and also input to the decryption circuit 24B.

データ受信期間P3において、暗号化データS7Aを非暗号のデータS7に復元するために、暗号化データS7Aは受信制御回路23から復号回路24Bに入力される。その際、復号回路24Bを動作させるための同期信号T3は、受信制御回路23から復号回路24Bに入力されるとともに、暗号回路24Aにも入力される。   In the data reception period P3, the encrypted data S7A is input from the reception control circuit 23 to the decryption circuit 24B in order to restore the encrypted data S7A to the non-encrypted data S7. At this time, the synchronization signal T3 for operating the decryption circuit 24B is input from the reception control circuit 23 to the decryption circuit 24B and also to the encryption circuit 24A.

このように本実施の形態に係るメモリシステム1によれば、暗号回路24Aと復号回路24Bとが個別に実装されているため、暗号回路24Aと復号回路24Bとでそれぞれ最適な回路設計を容易に行うことが可能となる。   As described above, according to the memory system 1 according to the present embodiment, since the encryption circuit 24A and the decryption circuit 24B are individually mounted, it is easy to optimally design each of the encryption circuit 24A and the decryption circuit 24B. Can be done.

また、送信制御回路22は、同期信号T1(第1の同期信号)を暗号回路24A及び復号回路24Bに入力することにより、暗号回路24AがコマンドS5の暗号化を実行している期間内において復号回路24Bを動作させる。また、受信制御回路23は、同期信号T3(第2の同期信号)を暗号回路24A及び復号回路24Bに入力することにより、復号回路24Bが暗号化データS7Aの復号化を実行している期間内において暗号回路24Aを動作させる。このように、暗号回路24A及び復号回路24Bの一方が処理を実行している期間において他方を空回しで動作させることにより、暗号回路24A及び復号回路24Bのキーストリーム等の内部状態を一致させることができ、その結果、適切な暗号通信を実現することが可能となる。   Also, the transmission control circuit 22 inputs the synchronization signal T1 (first synchronization signal) to the encryption circuit 24A and the decryption circuit 24B, so that the encryption circuit 24A decrypts the command S5 within the period. The circuit 24B is operated. In addition, the reception control circuit 23 inputs the synchronization signal T3 (second synchronization signal) to the encryption circuit 24A and the decryption circuit 24B, so that the decryption circuit 24B performs the decryption of the encrypted data S7A. The cryptographic circuit 24A is operated at In this way, by operating one of the encryption circuit 24A and the decryption circuit 24B while the other is executing a process, the internal state of the key stream or the like of the encryption circuit 24A and the decryption circuit 24B is matched. As a result, appropriate encryption communication can be realized.

<変形例>
図4は、上記実施の形態1の変形例に係るメモリシステム1の構成を示す図である。図1に示した構成から受信カウンタ42が省略されている。図5は、メモリシステム1の読み出し動作を示すタイミングチャートである。
<Modification>
FIG. 4 is a diagram showing a configuration of the memory system 1 according to a modification of the first embodiment. The reception counter 42 is omitted from the configuration shown in FIG. FIG. 5 is a timing chart showing the read operation of the memory system 1.

アクセス生成回路31は、暗号化コマンドS5Aの最終バイト(第8バイト)の送信が完了すると、送信カウンタ32にカウント動作を開始させ、送信カウンタ32は以後のクロックC1のサイクル数をカウントする。   When the transmission of the last byte (eighth byte) of the encrypted command S5A is completed, the access generation circuit 31 causes the transmission counter 32 to start a count operation, and the transmission counter 32 counts the number of cycles of the clock C1 thereafter.

主制御回路21は、受信制御回路23から先頭のBusy信号S6が入力されると、その時点でのカウント値S3を送信カウンタ32から取得する。そして、カウント値S3で示されるサイクル数を遅延サイクル補正値として決定し、当該遅延サイクル補正値をアクセス情報としてアクセス生成回路31に入力する。   When the leading Busy signal S6 is input from the reception control circuit 23, the main control circuit 21 acquires the count value S3 at that time from the transmission counter 32. Then, the number of cycles indicated by the count value S3 is determined as a delay cycle correction value, and the delay cycle correction value is input to the access generation circuit 31 as access information.

アクセス生成回路31は、通信プロトコルで規定されたデータ受信期間のサイクル数(この例では512サイクル)から、入力された遅延サイクル補正値に相当するサイクル数を減算することにより、データ受信期間P3のサイクル数を補正する。例えば、遅延サイクル補正値が「2サイクル」である場合には、データ受信期間P3の終点は、Ready/Busy期間P2が終了してからクロックC1が510(=512−2)サイクル進行した時点となる。   The access generation circuit 31 subtracts the number of cycles corresponding to the input delay cycle correction value from the number of cycles of the data reception period specified in the communication protocol (512 cycles in this example), thereby obtaining the data reception period P3. Correct the number of cycles. For example, when the delay cycle correction value is “2 cycles”, the end point of the data reception period P3 is the time when the clock C1 has progressed 510 (= 512-2) cycles after the Ready / Busy period P2 ends. Become.

このように本変形例に係るメモリシステム1によれば、主制御回路21は、メモリ装置3への暗号化コマンドS5Aの送信が完了してから、メモリ装置3から最初のBusy信号S6を受信するまでの送信カウンタ32のカウント値S3に基づいて、遅延サイクル補正値を決定する。従って、配線遅延及びバッファ遅延に伴う不定の伝搬遅延量に基づいて遅延サイクル補正値を簡易に決定することが可能となる。また、Ready/Busy期間P2の完了を待つことなく早期に遅延サイクル補正値を決定できるため、遅延サイクル補正値が異常値である場合に早期にエラー処理を開始することが可能となる。さらに、受信カウンタ42が不要になるとともに、送信カウンタ32のカウント値を削減できるため、全体としてホスト装置2の回路規模を削減することが可能となる。   Thus, according to the memory system 1 according to this modification, the main control circuit 21 receives the first Busy signal S6 from the memory device 3 after the transmission of the encryption command S5A to the memory device 3 is completed. The delay cycle correction value is determined based on the count value S3 of the transmission counter 32 until the above. Therefore, it becomes possible to easily determine the delay cycle correction value based on the indefinite propagation delay amount accompanying the wiring delay and the buffer delay. Further, since the delay cycle correction value can be determined early without waiting for the completion of the Ready / Busy period P2, error processing can be started early when the delay cycle correction value is an abnormal value. Furthermore, since the reception counter 42 is not required and the count value of the transmission counter 32 can be reduced, the circuit scale of the host device 2 can be reduced as a whole.

なお、以上の説明では上記実施の形態1に本変形例を適用する例を述べたが、本変形例は上記実施の形態2に適用することも可能であり、上記と同様の効果を得ることができる。   In addition, although the example which applies this modification to the said Embodiment 1 was described in the above description, this modification can also be applied to the said Embodiment 2, and can acquire the effect similar to the above. Can do.

1 メモリシステム
2 ホスト装置
3 メモリ装置
21 主制御回路
22 送信制御回路
23 受信制御回路
24 暗号復号回路
24A 暗号回路
24B 復号回路
51 制御回路
52 メモリアレイ
DESCRIPTION OF SYMBOLS 1 Memory system 2 Host apparatus 3 Memory apparatus 21 Main control circuit 22 Transmission control circuit 23 Reception control circuit 24 Encryption / decryption circuit 24A Encryption circuit 24B Decryption circuit 51 Control circuit 52 Memory array

Claims (8)

ホスト装置と、
前記ホスト装置に接続されるメモリ装置と、
を備え、
前記ホスト装置は、
第1のクロックに同期して前記メモリ装置へのコマンド送信を制御する送信制御回路と、
前記メモリ装置へ送信するコマンドを第1のクロックに同期して暗号化することにより、暗号化コマンドを生成する暗号回路と、
第2のクロックに同期して前記メモリ装置からのデータ受信を制御する受信制御回路と、
前記メモリ装置から受信した暗号化データを第2のクロックに同期して復号化する復号回路と、
を備える、メモリシステム。
A host device;
A memory device connected to the host device;
With
The host device is
A transmission control circuit for controlling command transmission to the memory device in synchronization with a first clock;
An encryption circuit for generating an encrypted command by encrypting a command to be transmitted to the memory device in synchronization with a first clock;
A reception control circuit for controlling data reception from the memory device in synchronization with a second clock;
A decryption circuit for decrypting encrypted data received from the memory device in synchronization with a second clock;
A memory system.
前記メモリ装置は、
データが格納されたメモリアレイと、
前記メモリアレイへのアクセスを制御する制御回路と、
を有し、
前記送信制御回路は、第1のクロックを前記制御回路に送信し、
前記制御回路は、前記送信制御回路から受信した第1のクロックを第2のクロックとして前記受信制御回路に送信する、請求項1に記載のメモリシステム。
The memory device includes:
A memory array in which data is stored;
A control circuit for controlling access to the memory array;
Have
The transmission control circuit transmits a first clock to the control circuit;
The memory system according to claim 1, wherein the control circuit transmits the first clock received from the transmission control circuit to the reception control circuit as a second clock.
前記ホスト装置は、前記送信制御回路及び前記受信制御回路を制御する主制御回路をさらに有し、
前記主制御回路は、前記ホスト装置と前記メモリ装置との間の伝搬遅延量に基づいて、所定の補正値を決定し、
前記送信制御回路は、前記主制御回路から入力された前記補正値に基づいて、前記メモリ装置からのデータ受信が開始されてから当該データ受信が完了するまでの第1のクロックのサイクル数を補正する、請求項2に記載のメモリシステム。
The host device further includes a main control circuit that controls the transmission control circuit and the reception control circuit,
The main control circuit determines a predetermined correction value based on a propagation delay amount between the host device and the memory device,
The transmission control circuit corrects the number of cycles of the first clock from the start of data reception from the memory device to the completion of the data reception based on the correction value input from the main control circuit. The memory system according to claim 2.
前記送信制御回路は、第1のクロックのサイクル数をカウントする第1のカウンタを含み、
前記受信制御回路は、第2のクロックのサイクル数をカウントする第2のカウンタを含み、
前記主制御回路は、前記メモリ装置へのコマンド送信が完了してから、前記メモリ装置からReady信号を受信するまでの前記第1のカウンタのカウント値と、前記メモリ装置から最初のBusy信号を受信してから、前記メモリ装置からReady信号を受信するまでの前記第2のカウンタのカウント値とに基づいて、前記補正値を決定する、請求項3に記載のメモリシステム。
The transmission control circuit includes a first counter that counts the number of cycles of the first clock,
The reception control circuit includes a second counter that counts the number of cycles of the second clock,
The main control circuit receives the count value of the first counter from the completion of command transmission to the memory device to reception of a Ready signal from the memory device, and the first Busy signal from the memory device. The memory system according to claim 3, wherein the correction value is determined based on a count value of the second counter until a Ready signal is received from the memory device.
前記送信制御回路は、第1のクロックのサイクル数をカウントする第1のカウンタを含み、
前記主制御回路は、前記メモリ装置へのコマンド送信が完了してから、前記メモリ装置から最初のBusy信号を受信するまでの前記第1のカウンタのカウント値に基づいて、前記補正値を算出する、請求項3に記載のメモリシステム。
The transmission control circuit includes a first counter that counts the number of cycles of the first clock,
The main control circuit calculates the correction value based on a count value of the first counter from completion of command transmission to the memory device to reception of a first Busy signal from the memory device. The memory system according to claim 3.
前記暗号回路及び前記復号回路として共通の暗号復号回路が実装されている、請求項1〜5のいずれか一つに記載のメモリシステム。   The memory system according to claim 1, wherein a common encryption / decryption circuit is mounted as the encryption circuit and the decryption circuit. 前記暗号回路と前記復号回路とは個別に実装されている、請求項1〜5のいずれか一つに記載のメモリシステム。   The memory system according to claim 1, wherein the encryption circuit and the decryption circuit are individually mounted. 前記送信制御回路は、第1の同期信号を前記暗号回路及び前記復号回路に入力することにより、前記暗号回路がコマンドの暗号化を実行している期間内において前記復号回路を動作させ、
前記受信制御回路は、第2の同期信号を前記暗号回路及び前記復号回路に入力することにより、前記復号回路が暗号化データの復号化を実行している期間内において前記暗号回路を動作させる、請求項7に記載のメモリシステム。
The transmission control circuit inputs a first synchronization signal to the encryption circuit and the decryption circuit, thereby operating the decryption circuit within a period in which the encryption circuit is executing command encryption,
The reception control circuit operates the encryption circuit during a period in which the decryption circuit performs decryption of encrypted data by inputting a second synchronization signal to the encryption circuit and the decryption circuit. The memory system according to claim 7.
JP2015139255A 2015-07-10 2015-07-10 Memory system Active JP6207551B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2015139255A JP6207551B2 (en) 2015-07-10 2015-07-10 Memory system
US15/205,682 US10152437B2 (en) 2015-07-10 2016-07-08 Memory system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015139255A JP6207551B2 (en) 2015-07-10 2015-07-10 Memory system

Publications (2)

Publication Number Publication Date
JP2017022585A true JP2017022585A (en) 2017-01-26
JP6207551B2 JP6207551B2 (en) 2017-10-04

Family

ID=57888536

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015139255A Active JP6207551B2 (en) 2015-07-10 2015-07-10 Memory system

Country Status (1)

Country Link
JP (1) JP6207551B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0575880A (en) * 1991-09-13 1993-03-26 Dainippon Printing Co Ltd Concealing method for transmission original
JPH1125029A (en) * 1997-07-04 1999-01-29 Fujitsu Ltd Memory sub-system
JP2001077805A (en) * 1999-04-07 2001-03-23 Sony Corp Security device, memory device, data processor and method
JP2001110183A (en) * 1999-10-08 2001-04-20 Fujitsu Ltd Semiconductor memory
JP2008140104A (en) * 2006-12-01 2008-06-19 Megachips Lsi Solutions Inc Memory system and memory access method
JP2017021608A (en) * 2015-07-10 2017-01-26 株式会社メガチップス Memory system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0575880A (en) * 1991-09-13 1993-03-26 Dainippon Printing Co Ltd Concealing method for transmission original
JPH1125029A (en) * 1997-07-04 1999-01-29 Fujitsu Ltd Memory sub-system
JP2001077805A (en) * 1999-04-07 2001-03-23 Sony Corp Security device, memory device, data processor and method
JP2001110183A (en) * 1999-10-08 2001-04-20 Fujitsu Ltd Semiconductor memory
JP2008140104A (en) * 2006-12-01 2008-06-19 Megachips Lsi Solutions Inc Memory system and memory access method
JP2017021608A (en) * 2015-07-10 2017-01-26 株式会社メガチップス Memory system

Also Published As

Publication number Publication date
JP6207551B2 (en) 2017-10-04

Similar Documents

Publication Publication Date Title
US11689440B2 (en) Method and apparatus for transmit time timestamping
US11387980B2 (en) Hardware multiple cipher engine
JP6222802B2 (en) Random value generation method and system
JP7147024B2 (en) RANDOM NUMBER GENERATOR AND RANDOM NUMBER GENERATION METHOD
US10152437B2 (en) Memory system
CN109792384B (en) Communication apparatus, communication method, and recording medium
US7555121B2 (en) Methods and apparatus for implementing a cryptography engine
US8504865B2 (en) Dynamic phase alignment
JP2013078019A (en) Communication device, reception control method and transmission control method
JP6207551B2 (en) Memory system
CN109792385B (en) Communication apparatus, communication method, communication system, and recording medium
US10057524B2 (en) Image capturing apparatus
WO2020118583A1 (en) Data processing method, circuit, terminal device storage medium
JP6188246B2 (en) Memory system
US11677727B2 (en) Low-latency MACsec authentication
US10872173B2 (en) Secure low-latency chip-to-chip communication
US8654969B2 (en) Cipher independent interface for cryptographic hardware service
TW200303676A (en) System for providing a calibrated clock and methods thereof
JP2015154233A (en) Data transmission device, data transmission system, calibration method, and program
TWI547134B (en) Decryption engine and decryption method
JP2010039779A (en) Reader/writer, information reading method, communication system, and communication method
JP2015216413A (en) Terminal, server, encryption communication system, and encryption communication method
JP2007060402A (en) Semiconductor device
KR19990070750A (en) Time Division Multiple Access Portable Wireless Terminal Device
JP2012244415A (en) Cryptographic processing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170613

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20170613

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20170628

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170803

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170817

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170905

R150 Certificate of patent or registration of utility model

Ref document number: 6207551

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250