JP2010055386A - Electric circuit and function restriction method - Google Patents

Electric circuit and function restriction method Download PDF

Info

Publication number
JP2010055386A
JP2010055386A JP2008219832A JP2008219832A JP2010055386A JP 2010055386 A JP2010055386 A JP 2010055386A JP 2008219832 A JP2008219832 A JP 2008219832A JP 2008219832 A JP2008219832 A JP 2008219832A JP 2010055386 A JP2010055386 A JP 2010055386A
Authority
JP
Japan
Prior art keywords
function
function restriction
memory
electric circuit
restriction
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
JP2008219832A
Other languages
Japanese (ja)
Other versions
JP5245650B2 (en
Inventor
Tetsuo Miyamoto
哲生 宮本
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.)
Fujitsu Semiconductor Ltd
Original Assignee
Fujitsu Semiconductor Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Semiconductor Ltd filed Critical Fujitsu Semiconductor Ltd
Priority to JP2008219832A priority Critical patent/JP5245650B2/en
Publication of JP2010055386A publication Critical patent/JP2010055386A/en
Application granted granted Critical
Publication of JP5245650B2 publication Critical patent/JP5245650B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Microcomputers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an electric circuit and a function restriction method that eliminate an unnecessary increase in the number of chip pads, the need to revise a mask for each combination of function restrictions, and the risk that a user or third party will remove function restrictions. <P>SOLUTION: The electric circuit includes a function restriction key storage memory 5 for storing key data for applying an optional combination of function restrictions to a plurality of prepared functions, a function restriction control circuit 4 for outputting a notification indicating memory areas of the functions to be restricted according to the key data read from the function restriction key storage memory, and a processing unit 3 for, in response to the notification, reading data on the plurality of functions and storing it in a functional block memory 9 after applying predetermined processing to the data on the functions to be restricted. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

この出願は、電気回路および機能制限方法に関し、特に、複数の機能を選択的に制限可能な電気回路および機能制限方法に関する。   This application relates to an electric circuit and a function limiting method, and more particularly to an electric circuit and a function limiting method capable of selectively limiting a plurality of functions.

従来、例えば、ケーブルテレビのSTB(セットトップボックス)を始めとする様々な端末装置において、予め複数の機能を準備しておき、ユーザ或いは仕様に応じて任意の組合せで機能を制限することが行われている。このとき、制限する機能は、ユーザや第三者により改ざんや解読がされることなく設定する必要がある。   2. Description of the Related Art Conventionally, for example, various terminal devices such as cable television STBs (set-top boxes) are prepared in advance with a plurality of functions, and the functions are limited in any combination according to the user or specifications. It has been broken. At this time, the function to be restricted needs to be set without being tampered with or deciphered by the user or a third party.

図1は従来の電気回路の一例を示すブロック図である。
図1に示されるように、電気回路(チップ)100は、CPU101,デコード回路/機能制限制御回路102,セレクタ103−1〜103−n,機能ブロック104−1〜104−nおよびパッド105を備える。
FIG. 1 is a block diagram showing an example of a conventional electric circuit.
As shown in FIG. 1, an electric circuit (chip) 100 includes a CPU 101, a decoding circuit / function restriction control circuit 102, selectors 103-1 to 103-n, functional blocks 104-1 to 104-n, and a pad 105. .

ここで、機能ブロック104−1〜104−nは、ハードおよびソフトのどちらであってもよく、例えば、JPEGデコーダ,オーディオデコーダ,拡大・縮小機能,或いは,様々なスクランブルの解除機能等のブロックである。また、CPU101は、ブートメモリ(Boot ROM)111を有している。   Here, the functional blocks 104-1 to 104-n may be either hardware or software, and may be blocks such as a JPEG decoder, an audio decoder, an enlargement / reduction function, or various scrambling release functions, for example. is there. The CPU 101 has a boot memory (Boot ROM) 111.

図1に示す電気回路は、例えば、チップ100の周囲に設けられた複数のパッド(Pad)105のうち、所定数のパッド105aを電源線Vccまたは接地線GNDに接続することで機能制限を設定する。ここで、パッド105aの電源線Vccまたは接地線GNDへの接続は、例えば、ボンディングオプションとして行う。   In the electric circuit shown in FIG. 1, for example, among a plurality of pads (Pad) 105 provided around the chip 100, a predetermined number of pads 105a are connected to the power supply line Vcc or the ground line GND to set a function restriction. To do. Here, the connection of the pad 105a to the power supply line Vcc or the ground line GND is performed as a bonding option, for example.

すなわち、パッド105aを電源線Vccまたは接地線GNDに接続することで、デコード回路/機能制限制御回路102に対して任意の組合せの機能制限を設定する。そして、例えば、ブートメモリ111からデータを読込んで行うブート時に、デコード回路/機能制限制御回路102からの制御信号によりセレクタ103−1〜103−nを制御して、対応する機能ブロック104−1〜104−nの機能制限を行う。   That is, by connecting the pad 105a to the power supply line Vcc or the ground line GND, any combination of function restrictions is set for the decode circuit / function restriction control circuit 102. For example, during booting by reading data from the boot memory 111, the selectors 103-1 to 103-n are controlled by a control signal from the decode circuit / function restriction control circuit 102, and the corresponding function blocks 104-1 to 104-1 are executed. The function limitation of 104-n is performed.

これにより、ユーザや第三者により機能の制限を改ざんや解読がされることなく、チップ100内部の機能ブロック104−1〜104−nを任意の組合せで機能制限するようになっている。   As a result, the functions of the function blocks 104-1 to 104-n in the chip 100 are limited in any combination without the function or the third party being tampered with or decoded.

図2は従来の電気回路の他の例を示すブロック図である。
図2に示されるように、電気回路200は、CPU201,デコード回路/機能制限制御回路202,セレクタ203−1〜203−n,機能ブロック204−1〜204−nおよび機能制限設定用マスクROM205を備える。
FIG. 2 is a block diagram showing another example of a conventional electric circuit.
As shown in FIG. 2, the electric circuit 200 includes a CPU 201, a decoding circuit / function restriction control circuit 202, selectors 203-1 to 203-n, function blocks 204-1 to 204-n, and a function restriction setting mask ROM 205. Prepare.

図2に示す電気回路は、例えば、機能制限設定用マスクROM205に対して予め所定のデータを書込むことで、デコード回路/機能制限制御回路202に対して任意の組合せの機能制限を設定する。そして、例えば、ブートメモリ211からデータを読込んで行うブート時に、デコード回路/機能制限制御回路202からの制御信号によりセレクタ203−1〜203−nを制御して、対応する機能ブロック204−1〜204−nの機能制限を行う。   The electric circuit shown in FIG. 2 sets arbitrary combinations of function restrictions for the decoding circuit / function restriction control circuit 202 by, for example, writing predetermined data in advance in the function restriction setting mask ROM 205. For example, during booting by reading data from the boot memory 211, the selectors 203-1 to 203-n are controlled by the control signal from the decoding circuit / function restriction control circuit 202, and the corresponding functional blocks 204-1 to 204-1 are executed. The function is limited to 204-n.

これにより、ユーザや第三者により機能の制限を改ざんや解読がされることなく、チップ200内部の機能ブロック204−1〜204−nを任意の組合せで機能制限するようになっている。   As a result, the functions of the functional blocks 204-1 to 204-n in the chip 200 are limited in any combination without the function or the third party being altered or deciphered by the user or a third party.

なお、上述のような予め複数の機能を準備しておき、ユーザ或いは仕様に応じて任意の組合せで行う機能制限は、ケーブルテレビのSTB等の端末装置だけでなく、様々な電気回路において幅広く適用され得るものである。   It should be noted that the above-described function restrictions prepared in advance and in any combination depending on the user or specifications are widely applied not only to terminal devices such as cable television STBs but also to various electric circuits. It can be done.

ところで、従来、セルラ電話などの電子システムの不正使用を防止するものとして、メインメモリの他に補助メモリを設け、その補助メモリに少なくとも1つの特有のコードをプログラムすることによって制御することが提案されている。ここで、補助メモリは、メインメモリのアレイ空間の外部で、永久的にロック可能なメモリである。   By the way, conventionally, in order to prevent unauthorized use of an electronic system such as a cellular phone, it has been proposed to provide an auxiliary memory in addition to the main memory and control by programming at least one specific code in the auxiliary memory. ing. Here, the auxiliary memory is a memory that can be permanently locked outside the array space of the main memory.

特表2002−514840号公報Special Table 2002-514840 Publication

上述したように、従来、予め複数の機能を準備しておいて任意の組合せで機能制限を行う電気回路としては、ボンディングオプションとして所定数のパッドをクリップし、或いは、内蔵されたマスクROMに機能制限用のデータを書込むものが知られていた。   As described above, conventionally, as an electric circuit for preparing a plurality of functions in advance and restricting functions in an arbitrary combination, a predetermined number of pads are clipped as a bonding option, or a function is provided in a built-in mask ROM. It was known to write data for restriction.

すなわち、図1に示す従来の電気回路の一例では、ボンディングオプションによって所定数のパッド105aを電源線Vccまたは接地線GNDに接続して任意の組合せで機能制限を行っていた。   That is, in the example of the conventional electric circuit shown in FIG. 1, a predetermined number of pads 105a are connected to the power supply line Vcc or the ground line GND by a bonding option to limit the function in an arbitrary combination.

しかしながら、図1の電気回路では、機能制限の対象となる機能ブロックの数に応じたパッドが必要になるため、パッドの数が増加してコストアップになってしまう。   However, in the electric circuit of FIG. 1, since pads corresponding to the number of functional blocks subject to function restriction are required, the number of pads increases and the cost increases.

また、図2に示す従来の電気回路の他の例では、機能制限設定用マスクROM205に対して予め所定のデータを書込んで任意の組合せで機能制限を行っていた。しかしながら、例えば、外部からの設定なし(CPU201に搭載されたファームウェアによるものを含む)で機能制限を行う場合、機能制限の組合せ毎にマスクの改版が必要になってしまう。   In another example of the conventional electric circuit shown in FIG. 2, the function restriction is performed in an arbitrary combination by writing predetermined data in advance in the function restriction setting mask ROM 205. However, for example, when function restriction is performed without setting from the outside (including those by firmware installed in the CPU 201), a mask revision is required for each combination of function restrictions.

この出願は、上述した課題に鑑み、チップのパッド数を必要以上に増加させず、また、各機能制限の組合せ毎にマスクの改版を行う必要がなく、さらに、ユーザまたは第三者により機能制限解除のリスクがない電気回路および機能制限方法の提供を目的とする。   In view of the above-described problems, this application does not increase the number of pads on the chip more than necessary, and does not require revision of the mask for each combination of function restrictions. An object is to provide an electric circuit and a function restriction method without risk of release.

第1実施形態によれば、機能制限鍵格納用メモリと、機能制限制御回路と、演算処理装置と、を備えることを特徴とする電気回路が提供される。   According to the first embodiment, an electric circuit including a function restriction key storage memory, a function restriction control circuit, and an arithmetic processing device is provided.

機能制限鍵格納用メモリは、予め準備された複数の機能のうち、任意の組合せで機能制限を掛ける鍵データを格納する。また、機能制限制御回路は、機能制限鍵格納用メモリから読出した前記鍵データに従って、機能制限を掛ける機能のメモリ領域を示す通知を出力する。   The function-restricted key storage memory stores key data to be subjected to function restriction in an arbitrary combination among a plurality of functions prepared in advance. Further, the function restriction control circuit outputs a notification indicating the memory area of the function to which the function restriction is applied according to the key data read from the function restriction key storage memory.

さらに、演算処理装置は、機能制限制御回路からの通知を受け取って、複数の機能のデータを読出し、機能制限を掛ける機能のデータに対して所定の処理を行って機能ブロック用メモリに格納する。   Further, the arithmetic processing unit receives a notification from the function restriction control circuit, reads data of a plurality of functions, performs predetermined processing on the data of the function to which the function restriction is applied, and stores it in the function block memory.

第2実施形態によれば、予め準備された複数の機能のうち、任意の組合せで機能制限を掛ける電気回路の機能制限方法が提供される。   According to the second embodiment, there is provided a function limiting method for an electric circuit that limits the function in any combination among a plurality of functions prepared in advance.

まず、任意の組合せで機能制限を掛ける鍵データを予め機能制限鍵格納用メモリに格納しておく。さらに、電気回路のブート時に、機能制限鍵格納用メモリから読出した鍵データに従って、機能制限を掛ける機能のメモリ領域を演算処理装置に通知する。   First, key data to be subjected to function restriction in an arbitrary combination is stored in advance in a function restriction key storage memory. Further, at the time of booting the electric circuit, the arithmetic processing unit is notified of the memory area of the function to be subjected to the function restriction according to the key data read from the function restriction key storage memory.

そして、機能制限を掛ける機能のメモリ領域に対して所定の処理を行って機能ブロック用メモリに格納する。   Then, a predetermined process is performed on the memory area of the function to which the function is restricted, and the result is stored in the function block memory.

各実施形態によれば、チップのパッド数を必要以上に増加させず、また、各機能制限の組合せ毎にマスクの改版を行う必要がなく、さらに、ユーザまたは第三者により機能制限解除のリスクがない電気回路および機能制限方法を提供することができる。   According to each embodiment, it is not necessary to increase the number of pads on the chip more than necessary, and it is not necessary to update the mask for each combination of function restrictions. It is possible to provide an electric circuit and a function limiting method that are free of any problems.

以下、電気回路および機能制限方法の実施例を、添付図面を参照して詳述する。
図3は電気回路の一実施例を示すブロック図である。
Hereinafter, embodiments of an electric circuit and a function limiting method will be described in detail with reference to the accompanying drawings.
FIG. 3 is a block diagram showing an embodiment of an electric circuit.

図3に示されるように、本実施例の電気回路1は、CPU(演算処理装置)3,機能制限制御回路4,機能制限鍵格納用OTP(One Time Programmable)ROM5,書込み制御回路6,システムバス7,ブートROM8および機能ブロック用メモリ9を備える。   As shown in FIG. 3, the electric circuit 1 of this embodiment includes a CPU (arithmetic processing unit) 3, a function restriction control circuit 4, a function restriction key storage OTP (One Time Programmable) ROM 5, a write control circuit 6, and a system. A bus 7, a boot ROM 8 and a function block memory 9 are provided.

図3に示す電気回路は、例えば、外部メモリ2に格納されているソフトウェア機能0〜m(m=0,…,n)における機能制限の組合せに対応した任意ビット列のデータ(鍵データ)テーブルを予め作成しておく。なお、図示はしないが、外部メモリ2に格納するソフの機能以外に、ハードまたはソフトの機能を電気回路1の内部に設けることができるのはいうまでもない。   The electric circuit shown in FIG. 3 includes, for example, an arbitrary bit string data (key data) table corresponding to a combination of function restrictions in software functions 0 to m (m = 0,..., N) stored in the external memory 2. Create in advance. Although not shown, it goes without saying that hardware or software functions can be provided inside the electric circuit 1 in addition to the functions of the software stored in the external memory 2.

外部メモリ2に格納する機能0〜mは、ソフトウェアを示し、例えば、JPEG、JPEG200、MPEG、MPEG2、MPEG4、MPEG4-AVC(H.264)、MPEG1-Layer1,2,3、MPEG2-Layer1,2,3、或いは、MPEG2/AACの各種デコーダ等が挙げられる。また、外部メモリ2は、例えば、NOR型フラッシュメモリ、NAND型フラッシュメモリ、SDR−SDRAM、DDR−SDRAM、或いは、DDR2−SDRAM等のメモリで構成される。   Functions 0 to m stored in the external memory 2 indicate software. For example, JPEG, JPEG200, MPEG, MPEG2, MPEG4, MPEG4-AVC (H.264), MPEG1-Layer1,2,3, MPEG2-Layer1,2 , 3, or various MPEG2 / AAC decoders. The external memory 2 is configured by a memory such as a NOR flash memory, a NAND flash memory, an SDR-SDRAM, a DDR-SDRAM, or a DDR2-SDRAM, for example.

ここで、機能制限の組合せと鍵データの対応テーブルは、例えば、次の表1のように予め作成される。なお、表1では、m=2,鍵データが3ビットの場合の例を示している。

Figure 2010055386
Here, the function restriction combination and key data correspondence table is created in advance, for example, as shown in Table 1 below. Table 1 shows an example in which m = 2 and the key data is 3 bits.
Figure 2010055386

具体的に、表1において、例えば、機能0〜機能2を全て制限して使用不可とする場合には、鍵データを「111」とし、機能0および〜機能1を制限せずに使用可能とし、機能2を制限して使用不可とする場合には、鍵データを「001」とする。   Specifically, in Table 1, for example, when all functions 0 to 2 are restricted and cannot be used, the key data is “111”, and functions 0 and 1 can be used without being restricted. When the function 2 is restricted and cannot be used, the key data is set to “001”.

本実施例の電気回路によれば、各機能の制限の組合せに対応した任意の長さの鍵データを機能制限鍵格納用OTPROM5に書込み、その鍵データ機能制限制御回路4が読出してCPU3へ通知することで機能制限を行う。   According to the electric circuit of this embodiment, key data of an arbitrary length corresponding to the combination of restriction of each function is written in the function restriction key storage OTPROM 5, and the key data function restriction control circuit 4 reads out and notifies the CPU 3 of the key data. By doing so, the function is limited.

すなわち、CPU3は、外部メモリ2からデータ(ソフトウェア)を順次読出して機能ブロック用メモリ9の指定したメモリ領域に書込む。ここで、本実施例において、機能ブロック用メモリ9は、電気回路1の内部に設けられた組込み型の密結合メモリ(TCM:Tightly Coupled Memory)として構成されている。   That is, the CPU 3 sequentially reads data (software) from the external memory 2 and writes it in the designated memory area of the function block memory 9. Here, in the present embodiment, the functional block memory 9 is configured as a built-in tightly coupled memory (TCM) provided in the electric circuit 1.

このように、機能ブロック用メモリとして電気回路1の内部に設けた密結合メモリ9を使用するのは、例えば、対象となる機能(ソフトウェア)の容量が小さい場合や使用頻度が多い場合に好ましい。   Thus, the use of the tightly coupled memory 9 provided in the electric circuit 1 as the function block memory is preferable, for example, when the target function (software) has a small capacity or is frequently used.

機能制限が掛けられた機能に対応した外部メモリ2のアドレス領域からの読出し処理が発生した場合、対応する機能ブロック用メモリ9のメモリ領域に対して、固定値を書込むか、或いは、その領域を飛ばして書込みを行う。これにより、機能制限が掛けられた外部メモリ2の機能は制限されて使用不可となる。   When read processing from the address area of the external memory 2 corresponding to the function to which the function is restricted occurs, a fixed value is written in the memory area of the corresponding function block memory 9 or the area is written. Write by skipping. Thereby, the function of the external memory 2 to which the function restriction is applied is restricted and cannot be used.

このように、本実施例の電気回路によれば、外部からは機能制限鍵格納用OTPROM5に対する鍵データの書込みに必要なパッドだけで所望の組合せの機能制限を掛けることができる。   As described above, according to the electric circuit of the present embodiment, it is possible to limit the functions of a desired combination from the outside by using only the pads necessary for writing the key data to the function-limiting key storage OTPROM 5.

ここで、CPU3は、機能制限鍵格納用OTPROM5、機能制限制御回路4、並びに、書込み制御回路6へのアクセスはできない構成になっているため、ユーザや第3者による鍵データの解読や機能の制限解除を行うことは困難となっている。   Here, since the CPU 3 is configured such that it cannot access the function-restricted key storage OTPROM 5, the function-restricted control circuit 4, and the write-controlled circuit 6, the decryption of key data or the function of the user or a third party is prevented. It is difficult to remove restrictions.

なお、各機能のソフトウェアを格納する外部メモリ2は、バイナリデータとなっているため、ユーザや第3者によるデータ自体の改ざんや解読は困難となっている。また、機能制限鍵格納用メモリ5は、OTPROM以外のメモリ、例えば、紫外線照射によりデータの消去が可能なUV−EPROM等を適用することも可能である。   Since the external memory 2 for storing software of each function is binary data, it is difficult for a user or a third party to tamper or decode the data itself. The function restriction key storage memory 5 may be a memory other than the OTPROM, for example, a UV-EPROM capable of erasing data by ultraviolet irradiation.

図4は図3に示す電気回路における鍵データ書込み処理の一例を示すフローチャートである。
鍵データ書込み処理を開始すると、まず、ステップST11において、OTPROM書込み制御端子を有効にしてステップST12に進み、外部リセット解除を行う。
FIG. 4 is a flowchart showing an example of key data writing processing in the electric circuit shown in FIG.
When the key data writing process is started, first, in step ST11, the OTPROM writing control terminal is validated and the process proceeds to step ST12 to cancel the external reset.

さらに、ステップST13に進んで、機能制限を掛けたいソフトウェアの組合せに対応した任意ビット長の鍵データを入力する。ここで、鍵データは、例えば、前述した表1のような機能制限の組合せと鍵データの対応テーブルを予め作成しておき、必要とする機能制限の組合せに対応した鍵データを入力する。   Further, the process proceeds to step ST13, and key data having an arbitrary bit length corresponding to the combination of software whose function is to be restricted is input. Here, for the key data, for example, a correspondence table between the combination of function restrictions and the key data as shown in Table 1 is created in advance, and the key data corresponding to the required combination of function restrictions is input.

これにより、書込み制御回路6は、機能制限鍵格納用OTPROM5を書込み状態に設定し、入力された鍵データを機能制限鍵格納用OTPROM5に書込む。すなわち、ステップST14において、機能制限鍵格納用OTPROM5へのデータ書込みを完了して、鍵データ書込み処理を終了する。   As a result, the write control circuit 6 sets the function restriction key storage OTPROM 5 to the write state, and writes the input key data to the function restriction key storage OTPROM 5. That is, in step ST14, data writing to the function-restricted key storage OTPROM 5 is completed, and the key data writing process is terminated.

このように、書込み制御回路6に対して、OTPROM書込み制御端子を有効にして鍵データを入力すると、書込み制御回路6は、機能制限鍵格納用OTPROM5に供給する書込み制御信号を有効として鍵データを機能制限鍵格納用OTPROM5に書込む。   Thus, when the key data is input to the write control circuit 6 with the OTPROM write control terminal enabled, the write control circuit 6 validates the write control signal supplied to the function-restricted key storage OTPROM 5 and receives the key data. Write to the function-restricted key storage OTPROM 5.

ここで、OTPROM書込み制御端子を有効にするのは、例えば、所定のパッドに対して動作時の電源電圧よりも高い電圧を印加する等により行う。また、機能制限鍵格納用OTPROM5は、その性質上、一度書込みを実施すると、その書込みを実施した個所のデータは2度と値を消去できないようになっている。   Here, the OTPROM write control terminal is made effective, for example, by applying a voltage higher than the power supply voltage during operation to a predetermined pad. In addition, the function-restricted key storage OTPROM 5 is designed such that once data is written, the data at the location where the data is written cannot be erased again.

図5は図3に示す電気回路における機能制限処理の一例を示すフローチャートであり、図6は図3に示す電気回路における内部メモリのマッピングの一例を示す図である。   FIG. 5 is a flowchart showing an example of function restriction processing in the electric circuit shown in FIG. 3, and FIG. 6 is a diagram showing an example of mapping of internal memory in the electric circuit shown in FIG.

機能制限処理を開始すると、まず、ステップST21において、外部リセット解除を行って、ステップST22およびステップST23に進む。ここで、ステップST22(ST22およびST25〜ST27)はCPU3の処理であり、また、ステップST23およびST24は機能制限制御回路4の処理である。   When the function restriction process is started, first, in step ST21, the external reset is canceled, and the process proceeds to step ST22 and step ST23. Here, step ST22 (ST22 and ST25 to ST27) is a process of the CPU 3, and steps ST23 and ST24 are a process of the function restriction control circuit 4.

CPU4は、ステップST22において、ブートROM8に格納された命令に従ってブート処理を開始してステップST25に進み、また、機能制限制御回路4は、ステップST23およびST24の処理を行う。   In step ST22, the CPU 4 starts boot processing in accordance with the instruction stored in the boot ROM 8 and proceeds to step ST25, and the function restriction control circuit 4 performs steps ST23 and ST24.

ステップST23において、機能制限制御回路4は、機能制限の鍵データが格納された機能制限鍵格納用OTPROM5へアクセスしてステップST24に進む。ステップST24において、機能制限制御回路4は、機能制限鍵格納用OTPROM5から読出した鍵データに対応した通知(a)をCPU3に出力する。   In step ST23, the function restriction control circuit 4 accesses the function restriction key storage OTPROM 5 in which the function restriction key data is stored, and proceeds to step ST24. In step ST24, the function restriction control circuit 4 outputs a notification (a) corresponding to the key data read from the function restriction key storage OTPROM 5 to the CPU 3.

ここで、機能制限制御回路4からCPU4に対する通知(a)は、例えば、図6のメモリマップ情報から機能制限を掛ける機能に対応したアドレス領域に関するものである。   Here, the notification (a) from the function restriction control circuit 4 to the CPU 4 relates to, for example, an address area corresponding to the function to which the function restriction is applied from the memory map information of FIG.

さらに、ステップST25に進んで、機能制限の掛かったメモリ空間からのソフトウェア読出しの際、全て任意の固定値(例えば、全て『0』)を読出すか、または、対応するメモリ空間をスキップする。   Further, the process proceeds to step ST25, and when software is read from the memory space where the function is restricted, all fixed values (for example, all “0”) are read, or the corresponding memory space is skipped.

通常は、外部メモリ2からデータを読出して機能ブロック用メモリ9の指定したメモリ領域にデータ書込みを行う。   Normally, data is read from the external memory 2 and written into a designated memory area of the function block memory 9.

そして、機能制限を掛ける機能に対応したアドレス領域からの読出し処理が発生した場合、機能ブロック用メモリ9における書込み対象のメモリ領域へ固定値を書込むか、或いは、その領域を飛ばして書込みを行う。なお、外部メモリ2は、例えば、フラッシュメモリ等で構成される。   When a read process from the address area corresponding to the function to which the function is restricted occurs, a fixed value is written into the write target memory area in the function block memory 9, or the area is skipped for writing. . The external memory 2 is composed of, for example, a flash memory.

具体的に、例えば、表1の鍵データが「001」(機能2をOFF)だった場合、機能制限制御回路4からCPU3への通知(a)は、「0x00006000h」および「0x00007fffh」のアドレス情報となる。   Specifically, for example, when the key data in Table 1 is “001” (function 2 is OFF), the notification (a) from the function restriction control circuit 4 to the CPU 3 is the address information of “0x00006000h” and “0x00007fffh”. It becomes.

そして、CPU3は、固定値書込みの場合、ブート処理の最中に、図6のメモリ領域2(「0x00006000h」〜「0x00007fffh」)の読出しに差し掛かった際、図3のシステムバス7からCPU3への読出し値を任意の固定値(例えば、『0』)とする。   In the case of fixed value writing, when the CPU 3 starts to read the memory area 2 (“0x00006000h” to “0x00007fffh”) in FIG. The read value is an arbitrary fixed value (for example, “0”).

或いは、CPU3は、領域スキップの場合、ブート処理の最中、先頭アドレス「0x0006000」の読出しに差し掛かった際、機能2のメモリ領域を飛ばして機能3のメモリ領域の先頭アドレス「0x00008000h」から読出しを行う。   Alternatively, in the case of area skip, when the start of the start address “0x0006000” is reached during the boot process, the CPU 3 skips the function 2 memory area and reads from the start address “0x00008000h” of the function 3 memory area. Do.

なお、メモリ2から読出されたデータは、対応する機能ブロック用メモリ9に書込まれるが、例えば、機能3のメモリ領域に対応するメモリ領域には、全て任意の固定値(例えば、全て『0』)が書込まれることになる。   The data read from the memory 2 is written into the corresponding function block memory 9. For example, all the memory areas corresponding to the memory area of the function 3 have arbitrary fixed values (for example, all “0”). ]) Will be written.

さらに、上述したステップST26の処理を行った後、ステップST27に進んで、ブート処理が完了したか否かを判別し、ブート処理が完了していない場合には、ステップST25に戻り、ブート処理が完了するまで同様の処理を繰り返す。そして、ステップST27において、ブート処理が完了したと判別されると、次の処理へ進むことになる。   Further, after performing the process of step ST26 described above, the process proceeds to step ST27 to determine whether or not the boot process is completed. If the boot process is not completed, the process returns to step ST25 and the boot process is performed. The same process is repeated until completion. If it is determined in step ST27 that the boot process has been completed, the process proceeds to the next process.

図7は電気回路の他の実施例を示すブロック図である。
図7と前述した図3との比較から明らかなように、図7に示す実施例では、図3の実施例における密結合メモリとして構成された機能ブロック用メモリ9を、電気回路1の外部に設けたDRAM等のメモリ9’として構成されている。
FIG. 7 is a block diagram showing another embodiment of the electric circuit.
As is clear from the comparison between FIG. 7 and FIG. 3 described above, in the embodiment shown in FIG. 7, the functional block memory 9 configured as the tightly coupled memory in the embodiment of FIG. It is configured as a memory 9 ′ such as a provided DRAM.

このように、機能ブロック用メモリとして電気回路1の外部に設けたメモリ9’を使用するのは、例えば、対象となる機能(ソフトウェア)の容量が大きい場合や使用頻度が少ない場合であり、電気回路1の回路規模を増大させる必要がなくなる。   As described above, the memory 9 ′ provided outside the electric circuit 1 is used as the function block memory when, for example, the capacity of the target function (software) is large or the frequency of use is low. There is no need to increase the circuit scale of the circuit 1.

なお、機能ブロック用メモリを電気回路1の外部に設けたDRAM等のメモリ9’として構成した場合でも、例えば、メモリ9’に格納されるデータにおいて、機能制限を掛けるデータは、全て任意の固定値(例えば、全て『0』)またはスキップされており、ユーザまたは第3者による機能制限解除のリスクはない。   Even when the functional block memory is configured as a memory 9 ′ such as a DRAM provided outside the electric circuit 1, for example, in the data stored in the memory 9 ′, all the data subject to function restriction are arbitrarily fixed. The value (for example, all “0”) or skipped, there is no risk of releasing the function restriction by the user or a third party.

上述したように、各実施例によれば、チップのパッド数を必要以上に増加させず、また、各機能制限の組合せ毎にマスクの改版を行う必要がなく、さらに、ユーザまたは第三者により機能制限解除のリスクがない電気回路および機能制限方法を提供することが可能になる。   As described above, according to each embodiment, it is not necessary to increase the number of pads on the chip more than necessary, and it is not necessary to perform mask revision for each combination of function restrictions. It is possible to provide an electric circuit and a function restriction method without risk of function restriction release.

以上の実施例を含む実施形態に関し、さらに、以下の付記を開示する。
(付記1)
予め準備された複数の機能のうち、任意の組合せで機能制限を掛ける鍵データを格納する機能制限鍵格納用メモリと、
前記機能制限鍵格納用メモリから読出した前記鍵データに従って、前記機能制限を掛ける機能のメモリ領域を示す通知を出力する機能制限制御回路と、
前記通知を受け取って、前記複数の機能のデータを読出し、前記機能制限を掛ける機能のデータに対して所定の処理を行って機能ブロック用メモリに格納する演算処理装置と、を備えることを特徴とする電気回路。
The following supplementary notes are further disclosed regarding the embodiment including the above examples.
(Appendix 1)
A function-restricted key storage memory for storing key data to be subjected to function restriction in an arbitrary combination among a plurality of functions prepared in advance;
A function restriction control circuit that outputs a notification indicating a memory area of a function to which the function restriction is applied according to the key data read from the function restriction key storage memory;
An arithmetic processing unit that receives the notification, reads the data of the plurality of functions, performs predetermined processing on the data of the function to which the function restriction is applied, and stores the data in a function block memory; Electrical circuit to do.

(付記2)
付記1に記載の電気回路において、
前記演算処理装置は、前記通知に含まれる前記機能制限を掛ける機能のメモリ領域の情報に従って、前記機能制限を行う機能のメモリ領域から読出したデータを全て任意の固定値にするか、或いは、前記機能制限を行う機能のメモリ領域をスキップして読出すことを特徴とする電気回路。
(Appendix 2)
In the electrical circuit described in Appendix 1,
The arithmetic processing unit, according to the information of the memory area of the function to be subjected to the function restriction included in the notification, all the data read from the memory area of the function to perform the function restriction to an arbitrary fixed value, or An electric circuit characterized by skipping and reading a memory area of a function for performing function restriction.

(付記3)
付記1または2のいずれか1項に記載の電気回路において、
前記機能制限鍵格納用メモリは、OTPROMであることを特徴とする電気回路。
(Appendix 3)
In the electrical circuit according to any one of appendices 1 and 2,
The electric circuit, wherein the function restriction key storage memory is an OTPROM.

(付記4)
付記1〜3のいずれか1項に記載の電気回路において、
前記通知に従った処理は、前記電気回路のブート時に行うことを特徴とする電気回路。
(Appendix 4)
In the electrical circuit according to any one of appendices 1 to 3,
The processing according to the notification is performed when the electrical circuit is booted.

(付記5)
付記1〜4のいずれか1項に記載の電気回路において、
前記予め準備された複数の機能は、前記電気回路の外部に設けられた不揮発性メモリのデータとして格納されたソフトウェアであることを特徴とする電気回路。
(Appendix 5)
In the electric circuit according to any one of appendices 1 to 4,
The plurality of functions prepared in advance are software stored as data in a nonvolatile memory provided outside the electrical circuit.

(付記6)
付記1〜5のいずれか1項に記載の電気回路において、
前記機能ブロック用メモリは、前記電気回路の内部に設けられた密結合メモリであることを特徴とする電気回路。
(Appendix 6)
In the electric circuit according to any one of appendices 1 to 5,
The electric circuit according to claim 1, wherein the functional block memory is a tightly coupled memory provided in the electric circuit.

(付記7)
予め準備された複数の機能のうち、任意の組合せで機能制限を掛ける電気回路の機能制限方法であって、
前記任意の組合せで機能制限を掛ける鍵データを予め機能制限鍵格納用メモリに格納しておき、
前記電気回路のブート時に、前記機能制限鍵格納用メモリから読出した前記鍵データに従って、前記機能制限を掛ける機能のメモリ領域を演算処理装置に通知し、
前記機能制限を掛ける機能のメモリ領域に対して所定の処理を行って機能ブロック用メモリに格納することを特徴とする機能制限方法。
(Appendix 7)
A function limiting method of an electric circuit that applies a function limitation in an arbitrary combination among a plurality of functions prepared in advance,
Store key data to be subjected to function restriction in any combination in advance in a function restriction key storage memory,
When the electrical circuit is booted, according to the key data read from the function restriction key storage memory, the memory area of the function to be subjected to the function restriction is notified to the arithmetic processing unit,
A function restriction method comprising: performing a predetermined process on a memory area of a function to which the function restriction is applied and storing the memory area in a function block memory.

(付記8)
付記7に記載の機能制限方法において、
前記機能制限を行う機能のメモリ領域に対する所定の処理は、前記機能制限を行う機能のメモリ領域から読出したデータを全て任意の固定値にするか、或いは、前記機能制限を行う機能のメモリ領域をスキップして読出すことを特徴とする機能制限方法。
(Appendix 8)
In the function restriction method described in appendix 7,
The predetermined processing for the memory area of the function that performs the function restriction may be performed by setting all of the data read from the memory area of the function that performs the function restriction to an arbitrary fixed value, or the memory area of the function that performs the function restriction. A function restriction method characterized by skipping and reading.

従来の電気回路の一例を示すブロック図である。It is a block diagram which shows an example of the conventional electric circuit. 従来の電気回路の他の例を示すブロック図である。It is a block diagram which shows the other example of the conventional electric circuit. 電気回路の一実施例を示すブロック図である。It is a block diagram which shows one Example of an electric circuit. 図3に示す電気回路における鍵データ書込み処理の一例を示すフローチャートである。It is a flowchart which shows an example of the key data writing process in the electric circuit shown in FIG. 図3に示す電気回路における機能制限処理の一例を示すフローチャートである。It is a flowchart which shows an example of the function restriction | limiting process in the electric circuit shown in FIG. 図3に示す電気回路における内部メモリのマッピングの一例を示す図である。It is a figure which shows an example of the mapping of the internal memory in the electric circuit shown in FIG. 電気回路の他の実施例を示すブロック図である。It is a block diagram which shows the other Example of an electric circuit.

符号の説明Explanation of symbols

1,100,200 電気回路(チップ)
2 外部メモリ
3,101,201 CPU(演算処理装置)
4 機能制限制御回路
5 機能制限鍵格納用OTPROM
6 書込み制御回路
7 システムバス
8,111,211 ブートROM
9,9’ 機能ブロック用メモリ
102,202 デコード回路/機能制限制御回路
103−1〜103−n,203−1〜203−n, セレクタ
104−1〜104−n,204−1〜204−n 機能ブロック
105,105a パッド
205 機能制限制設定用マスクROM
1,100,200 Electric circuit (chip)
2 External memory 3, 101, 201 CPU (arithmetic processing unit)
4 Function restriction control circuit 5 OTPROM for function restriction key storage
6 Write Control Circuit 7 System Bus 8, 111, 211 Boot ROM
9, 9 'function block memory 102, 202 decode circuit / function restriction control circuit 103-1 to 103-n, 203-1 to 203-n, selector 104-1 to 104-n, 204-1 to 204-n Function block 105, 105a Pad 205 Function restriction system setting mask ROM

Claims (4)

予め準備された複数の機能のうち、任意の組合せで機能制限を掛ける鍵データを格納する機能制限鍵格納用メモリと、
前記機能制限鍵格納用メモリから読出した前記鍵データに従って、前記機能制限を掛ける機能のメモリ領域を示す通知を出力する機能制限制御回路と、
前記通知を受け取って、前記複数の機能のデータを読出し、前記機能制限を掛ける機能のデータに対して所定の処理を行って機能ブロック用メモリに格納する演算処理装置と、を備えることを特徴とする電気回路。
A function-restricted key storage memory for storing key data to be subjected to function restriction in an arbitrary combination among a plurality of functions prepared in advance;
A function restriction control circuit that outputs a notification indicating a memory area of a function to which the function restriction is applied according to the key data read from the function restriction key storage memory;
An arithmetic processing unit that receives the notification, reads the data of the plurality of functions, performs predetermined processing on the data of the function to which the function restriction is applied, and stores the data in a function block memory; Electrical circuit to do.
請求項1に記載の電気回路において、
前記演算処理装置は、前記通知に含まれる前記機能制限を掛ける機能のメモリ領域の情報に従って、前記機能制限を行う機能のメモリ領域から読出したデータを全て任意の固定値にするか、或いは、前記機能制限を行う機能のメモリ領域をスキップして読出すことを特徴とする電気回路。
The electrical circuit according to claim 1,
The arithmetic processing unit, according to the information of the memory area of the function to be subjected to the function restriction included in the notification, all the data read from the memory area of the function to perform the function restriction to an arbitrary fixed value, or An electric circuit characterized by skipping and reading a memory area of a function for performing function restriction.
請求項1または2のいずれか1項に記載の電気回路において、
前記機能制限鍵格納用メモリは、OTPROMであることを特徴とする電気回路。
The electric circuit according to any one of claims 1 and 2,
The electric circuit, wherein the function restriction key storage memory is an OTPROM.
予め準備された複数の機能のうち、任意の組合せで機能制限を掛ける電気回路の機能制限方法であって、
前記任意の組合せで機能制限を掛ける鍵データを予め機能制限鍵格納用メモリに格納しておき、
前記電気回路のブート時に、前記機能制限鍵格納用メモリから読出した前記鍵データに従って、前記機能制限を掛ける機能のメモリ領域を演算処理装置に通知し、
前記機能制限を掛ける機能のメモリ領域に対して所定の処理を行って機能ブロック用メモリに格納することを特徴とする機能制限方法。
A function limiting method of an electric circuit that applies a function limitation in an arbitrary combination among a plurality of functions prepared in advance,
Store key data to be subjected to function restriction in any combination in advance in a function restriction key storage memory,
When the electrical circuit is booted, according to the key data read from the function restriction key storage memory, the memory area of the function to be subjected to the function restriction is notified to the arithmetic processing unit,
A function restriction method comprising: performing a predetermined process on a memory area of a function to which the function restriction is applied and storing the memory area in a function block memory.
JP2008219832A 2008-08-28 2008-08-28 Electric circuit and function limiting method Active JP5245650B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008219832A JP5245650B2 (en) 2008-08-28 2008-08-28 Electric circuit and function limiting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008219832A JP5245650B2 (en) 2008-08-28 2008-08-28 Electric circuit and function limiting method

Publications (2)

Publication Number Publication Date
JP2010055386A true JP2010055386A (en) 2010-03-11
JP5245650B2 JP5245650B2 (en) 2013-07-24

Family

ID=42071229

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008219832A Active JP5245650B2 (en) 2008-08-28 2008-08-28 Electric circuit and function limiting method

Country Status (1)

Country Link
JP (1) JP5245650B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013114490A (en) * 2011-11-29 2013-06-10 Sharp Corp Electronic apparatus system and electronic apparatus

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001166941A (en) * 1999-12-07 2001-06-22 Sony Corp Device and method for processing information and recording medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001166941A (en) * 1999-12-07 2001-06-22 Sony Corp Device and method for processing information and recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013114490A (en) * 2011-11-29 2013-06-10 Sharp Corp Electronic apparatus system and electronic apparatus

Also Published As

Publication number Publication date
JP5245650B2 (en) 2013-07-24

Similar Documents

Publication Publication Date Title
US8850102B2 (en) Flash memory with small data programming capability
US20070214309A1 (en) Nonvolatile storage device and data writing method thereof
US8843695B2 (en) Reversible write-protection for non-volatile semiconductor memory device
TW200847169A (en) Memory device architectures and operation
JP2006209744A (en) Card and host apparatus
JPWO2007000862A1 (en) MEMORY CONTROLLER, NONVOLATILE MEMORY DEVICE, NONVOLATILE MEMORY SYSTEM, AND DATA WRITE METHOD
JP2007250101A (en) Nonvolatile memory device and control method therefor
US20090043969A1 (en) Semiconductor memory devices that are resistant to power attacks and methods of operating semiconductor memory devices that are resistant to power attacks
KR20030084702A (en) Non-volatile semiconductor memory device
KR20140062842A (en) Non-volatile memory device and method of operating the same
JP5245650B2 (en) Electric circuit and function limiting method
US8874981B2 (en) Method of creating target storage layout table referenced for partitioning storage space of storage device and related electronic device and machine-readable medium
US20080216635A1 (en) Sound data processing apparatus
JP2009176147A (en) Electronic equipment and method for determining permission of access to memory of electronic equipment
JP2009009279A (en) Memory controller, non-volatile storage module, and non-volatile storage system
US20090055574A1 (en) NAND Flash Memory Device And Related Method Thereof
US8423705B2 (en) Semiconductor device and method for controlling thereof
JP2007048184A (en) Memory card
JP2003151285A (en) Semiconductor memory
JP2005107608A (en) Electronic device, nonvolatile memory, and method for rewriting data of nonvolatile memory
US7941589B2 (en) Semiconductor memory and information processing system
JP2009289155A (en) Semiconductor memory device
JP4018085B2 (en) Nonvolatile memory, memory card using the same, information processing apparatus, and software write protection control method for nonvolatile memory
US7987316B2 (en) Programming device for non-volatile memory and programming method thereof
JP2006331233A (en) Memory controller, flash memory system, and control method for flash memory

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110502

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130227

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130325

R150 Certificate of patent or registration of utility model

Ref document number: 5245650

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20160419

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350