JPH03229338A - Rom testing method - Google Patents

Rom testing method

Info

Publication number
JPH03229338A
JPH03229338A JP2025427A JP2542790A JPH03229338A JP H03229338 A JPH03229338 A JP H03229338A JP 2025427 A JP2025427 A JP 2025427A JP 2542790 A JP2542790 A JP 2542790A JP H03229338 A JPH03229338 A JP H03229338A
Authority
JP
Japan
Prior art keywords
rom
address
data
bits
value
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.)
Pending
Application number
JP2025427A
Other languages
Japanese (ja)
Inventor
Mikio Ogisu
荻須 幹雄
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electronics 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 Matsushita Electronics Corp filed Critical Matsushita Electronics Corp
Priority to JP2025427A priority Critical patent/JPH03229338A/en
Publication of JPH03229338A publication Critical patent/JPH03229338A/en
Pending legal-status Critical Current

Links

Landscapes

  • For Increasing The Reliability Of Semiconductor Memories (AREA)
  • Storage Device Security (AREA)
  • Read Only Memory (AREA)

Abstract

PURPOSE:To make it difficult to decode contained ROM data and to realize the ROM copyright protection by varying the semantics of a ROM address at the time of test mode. CONSTITUTION:A value of a ROM address bus 6 selected by a regular operation mode signal 4 for determining a regular operating state of a single chip mode, etc., or a ROM test mode signal 5 for determining a simple output test state of a ROM is inputted as an input of a ROM address decoder 2 through a multiplexer group 3. The ROM address bus 6 selected by the regular operation mode signal 4 is constituted so that ROM data in a built-in ROM 1 corresponding to an address value is selected. Also, the ROM address bus 6 selected by the ROM test mode signal 5 is inputted at random so that the ROM data in the built-in ROM 1 corresponding to the address value is not selected. In such a way, it becomes difficult to decode the built-in ROM 1, and the ROM copyright protection can be realized.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、マイクロコンピュータのROMテストに於い
て、内蔵ROMデータをランダムに出力することにより
、ROMデータの解読を回避し、ROM著作権を保護す
るROMテスト方法に関するものである。
[Detailed Description of the Invention] Industrial Application Field The present invention prevents decoding of ROM data and protects ROM copyright by randomly outputting built-in ROM data in a ROM test of a microcomputer. This relates to a ROM test method.

従来の技術 従来、たとえば1チツプマイクロコンピユータに於いて
、内蔵しているROMが正しいかどうかを出荷時にテス
トするため、ROMデータをアドレス順にクロック同期
させて出力したり、ROMアドレスを外部から入力して
、ROMアドレスに対応するROMデータを出力する、
ROMテストモードを通常モードとは別に持っていた。
Conventional technology In the past, for example, in a one-chip microcomputer, in order to test whether the built-in ROM is correct at the time of shipment, the ROM data was output in address order with a clock synchronized, or the ROM address was input from the outside. outputs ROM data corresponding to the ROM address,
It had a ROM test mode separate from the normal mode.

発明が解決しようとする課題 ROMテストモードと通常モードの設定切り替えは、端
子設定方法などがあるが、一端ROMテストモードに設
定されてしまうと、内蔵ROMデータは外部から全て読
みとれ、長い期間、費用をかけて、開発された内蔵RO
Mデータ値、ノウハウが漏洩することがあった。本発明
は上記従来の課題を解決するもので、内蔵ROMデータ
の解読を困難にすることにより、ROM著作権保護を実
現するROMテスト方法を提供することを目的としてい
る。
Problems to be Solved by the Invention There are terminal setting methods to switch settings between ROM test mode and normal mode, but once ROM test mode is set, all internal ROM data can be read from the outside, resulting in a long period of time and expense. Built-in RO developed by
M data values and know-how were sometimes leaked. The present invention solves the above-mentioned conventional problems, and aims to provide a ROM testing method that realizes ROM copyright protection by making it difficult to decode built-in ROM data.

課題を解決するための手段 この課題を解決するために、本発明のROMテスト方法
は、ROMアドレスの意味づけ或いはROMデータの意
味づけをテストモード時に変えてしまい、またROM品
種ごとに意味づけの変更方法を変え、内蔵ROMデータ
の構成が解読できないように構成されている。
Means for Solving the Problem In order to solve this problem, the ROM test method of the present invention changes the meaning of the ROM address or the meaning of the ROM data during the test mode, and also changes the meaning for each ROM type. The modification method has been changed so that the structure of the built-in ROM data cannot be deciphered.

作用 この構成により、内蔵ROMを解読することが困難であ
り、ROM著作権保護を実現することができる。
Effect: With this configuration, it is difficult to decode the built-in ROM, and ROM copyright protection can be realized.

実施例 以下本発明の実施例について説明する。Example Examples of the present invention will be described below.

第1図は本発明のROMアドレスのビットの意味づけを
ROMテストモード時に変更する一実施例を示した図で
ある。内蔵ROMIはROMアドレスデコーダ2により
選択されたアドレスに対応するROMデータを出力する
。ROMアドレスデコーダ2の入力としてマルチプレク
サ群3を介して、シングルチップモードなどの通常動作
状態を決定する通常動作モード信号4或いはROMの単
純出力テスト状態を決定するROMテストモード信号5
によって選択されたROMアドレスバス6の値を入力す
る。通常動作モード信号4で選択するROMアドレスバ
ス6はアドレス値に対応する内蔵ROMI内のROMデ
ータが選択されるようになっており、またROMテスト
モード信号5で選択するROMアドレスバス6はアドレ
ス値に対応する内蔵ROMI内のROMデータが選択さ
れないようにランダムに入力する。第2図はROMアド
レスバス値とROMアドレスデコーダ入力値の関係を示
した図である。ROMアドレス/s+ス6上の値である
ROMアドレスバス値(ここではROMアドレス幅を4
ビツトで考える)の変化に対応し、マルチプレクサ群3
で選択されるROMアドレスデコーダ入力値は、通常動
作モード即ち、通常動作モード信号4がイネーブルのと
きはROMアドレスバス値と対応し、通常の動作で支障
がないようになっている。しかしながらROMテストモ
ード即ち、ROMテストモード信号5がイネーブルのと
きは、ROMアドレスバス値とROMアドレスデコーダ
値は一致せず、従って、出力されるROMデータの値は
ROMアドレスノくス上の値とは異なる値となる。RO
Mテストモードに於いて、ROMアドレスに対応するR
OMが出力されないため、解読が困難となり、ROMデ
ータの保護が可能である。
FIG. 1 is a diagram showing an embodiment of the present invention in which the meanings of bits of a ROM address are changed during a ROM test mode. The built-in ROMI outputs ROM data corresponding to the address selected by the ROM address decoder 2. As an input to the ROM address decoder 2, a normal operating mode signal 4 is sent via a multiplexer group 3 to determine a normal operating state such as single-chip mode, or a ROM test mode signal 5 is used to determine a simple output test state of the ROM.
The value of the ROM address bus 6 selected by the ROM address bus 6 is input. The ROM address bus 6 selected by the normal operation mode signal 4 selects ROM data in the built-in ROMI corresponding to the address value, and the ROM address bus 6 selected by the ROM test mode signal 5 selects the address value. input randomly so that the ROM data in the built-in ROMI corresponding to is not selected. FIG. 2 is a diagram showing the relationship between ROM address bus values and ROM address decoder input values. ROM address/s + ROM address bus value which is the value on bus 6 (here, the ROM address width is 4)
(considered in terms of bits), the multiplexer group 3
The ROM address decoder input value selected in corresponds to the ROM address bus value in the normal operation mode, that is, when the normal operation mode signal 4 is enabled, so that there is no problem in normal operation. However, in the ROM test mode, that is, when the ROM test mode signal 5 is enabled, the ROM address bus value and the ROM address decoder value do not match, and therefore the value of the output ROM data is the value on the ROM address node. have different values. R.O.
In M test mode, R corresponding to the ROM address
Since the OM is not output, it becomes difficult to decode and the ROM data can be protected.

第3図は本発明のROMデータのビットの意味づけをR
OMテストモード時に変更する一実施例について示した
図である。内蔵ROMIの出力データは通常動作モード
信号4がイネーブルのとき出力データのビットの意味づ
けとROMデータバス8のビットの意味づけが対応する
ようにマルチプレクサ群7により選択される。ROMテ
ストモード信号5がイネーブルのときは出力データのビ
ットの意味づけとROMデータバス8のビットの意味づ
けが対応せず、内蔵ROMIの出力値とROMデータバ
ス8上の値が一致しない。内蔵ROMコードのビットが
ランダムになって出力されるため、解読が困難となり、
ROMデータの保護が可能である。
Figure 3 shows the meaning of bits of ROM data according to the present invention.
FIG. 6 is a diagram illustrating an example of changing during the OM test mode. The output data of the built-in ROMI is selected by the multiplexer group 7 such that when the normal operation mode signal 4 is enabled, the meanings of the bits of the output data correspond to the meanings of the bits of the ROM data bus 8. When the ROM test mode signal 5 is enabled, the meaning of the bits of the output data and the meaning of the bits of the ROM data bus 8 do not correspond, and the output value of the built-in ROMI and the value on the ROM data bus 8 do not match. The bits of the built-in ROM code are output in a random manner, making it difficult to decipher.
ROM data can be protected.

第4図は本発明のROMデータのビットの意味づけをR
OMアドレスの1ビツトに対応して変更する一実施例を
示した図である。通常動作モード信号4がイネーブルの
ときROM出力データのビット意味づけとROMデータ
バス80ビツトの意味づけが対応するようなROM出力
データC1lが選択され通常動作が行なえる。ROMテ
ストモード信号5がイネーブルのときはROM出力デー
タのビット意味づけとROMデータバス8のビットの意
味づけが対応しないROM出力データA9かROM出力
データBIOが、ROMアドレスバス12の値に依存し
て選択される。ROMアドレスバス12の値はインバー
タ回路14を介して、マルチプレクサ13に入力され、
ROMアドレスバス12の値が選択信号となってROM
出力データ八〇へいはROM出力データBIOが選び出
される。本発明の選択方法を第3図のマルチプレクサ群
7と置き換えることにより、ROMアドレスバスによる
、ROMテストモード時のROMデータバスの意味づけ
変更ができ、内蔵ROMを保護することができる。
Figure 4 shows the meaning of bits of ROM data of the present invention.
FIG. 6 is a diagram showing an example in which changes are made corresponding to one bit of an OM address. When the normal operation mode signal 4 is enabled, ROM output data C1l is selected such that the bit meanings of the ROM output data correspond to the meanings of the 80 bits of the ROM data bus, and normal operation can be performed. When the ROM test mode signal 5 is enabled, the ROM output data A9 or ROM output data BIO, where the bit meanings of the ROM output data and the bits of the ROM data bus 8 do not correspond, depend on the value of the ROM address bus 12. selected. The value of the ROM address bus 12 is input to the multiplexer 13 via the inverter circuit 14.
The value of the ROM address bus 12 becomes the selection signal and the ROM
The ROM output data BIO is selected as the output data 80. By replacing the selection method of the present invention with the multiplexer group 7 of FIG. 3, the meaning of the ROM data bus during the ROM test mode can be changed using the ROM address bus, and the built-in ROM can be protected.

第5図は本発明のコンタクトマスクによりROMアドレ
ス或いはROMデータのビットの意味づけを変更する一
実施例を示した図である。ROMアドレス或いはROM
データのバス15と、マルチプレクサ17のROMテス
トモード信号4で選択される入力ゲートの交点のいずれ
の場所にもコンタクト16が配置できるようにレイアウ
トすることにより、入力ゲートを形成するマスクとバス
15の配線を形成するマスクを接続するコンタクトマス
ク1枚で、バス15上の値とマルチプレクサ17を通過
して出力される値の意味づけが、ROMテストモード時
にコンタクト16の位置を変更するだけで可能である。
FIG. 5 is a diagram showing an embodiment in which the meaning of bits of a ROM address or ROM data is changed using a contact mask of the present invention. ROM address or ROM
By arranging the contact 16 at any intersection between the data bus 15 and the input gate selected by the ROM test mode signal 4 of the multiplexer 17, the mask forming the input gate and the bus 15 With a single contact mask that connects the masks forming the wiring, it is possible to assign meaning to the value on the bus 15 and the value output through the multiplexer 17 by simply changing the position of the contact 16 in the ROM test mode. be.

ROM毎にコンタクトの位置を変えることができ、RO
M品種毎の保護が可能である。
The contact position can be changed for each ROM, and RO
Protection for each M variety is possible.

発明の効果 以上のように本発明によれば、ROMデータの解読を簡
単に防ぐことができ、データの保護が可能である。
Effects of the Invention As described above, according to the present invention, ROM data can be easily prevented from being decoded, and data can be protected.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は第1の発明の詳細な説明するブロック図、第2
図はデータ関係図、第3図、第4図。 第5図はそれぞれ第2の発明、第3の発明、第4の発明
の詳細な説明するブロック図である。 1・・・・・・内i1ROM、2・・・・・・ROMア
ドレスデコーダ、3.7.13.17・・・・・・マル
チプレクサ、4・・・・・・通常動作モード信号、5・
・・・・・ROMテスl−11−−ド信!−,6,12
・・・・・・ROMアドレスバス、8・・・・・・RO
Mデータバス、9,10.11・・・−・ROM出力デ
ータ、14・・・・・・インバータ回路、〕5・・・・
・・ROMアドレスバスまたはROMデータバス、16
・・・・・・コンタクト。
FIG. 1 is a block diagram explaining the first invention in detail;
The figures are data relationship diagrams, Figures 3 and 4. FIG. 5 is a block diagram illustrating details of the second invention, the third invention, and the fourth invention, respectively. 1... i1ROM, 2... ROM address decoder, 3.7.13.17... multiplexer, 4... normal operation mode signal, 5...
...ROM test l-11--do message! −,6,12
...ROM address bus, 8...RO
M data bus, 9, 10.11...-ROM output data, 14... Inverter circuit, ]5...
...ROM address bus or ROM data bus, 16
······contact.

Claims (3)

【特許請求の範囲】[Claims] (1)マイクロコンピュータに於いて、通常動作モード
で使用するときは、ROMアドレスバスのビットの意味
づけと内蔵ROMアドレスデコーダに入力されるアドレ
スの意味づけが同じで、ROMアドレスバス上の値と内
蔵ROMアドレスデコーダに入力されるROMアドレス
値が一致し、ROMアドレスバス上の値に対応するRO
Mデータが出力され、ROMテストモードでは、ROM
アドレスバスのビットの意味づけと内蔵ROMアドレス
デコーダに入力されるアドレスの意味づけが異なり、R
OMアドレスバス上の値と内蔵ROMアドレスデコーダ
に入力されるROMアドレスが異なることにより、RO
Mアドレスバス上の値と対応しないROMデータを出力
することを特徴とするROMテスト方法。
(1) When a microcomputer is used in normal operation mode, the meaning of the bits on the ROM address bus and the meaning of the address input to the built-in ROM address decoder are the same, and the values on the ROM address bus The ROM address value input to the built-in ROM address decoder matches and the ROM corresponding to the value on the ROM address bus
M data is output, and in ROM test mode, ROM
The meaning of the address bus bits and the address input to the built-in ROM address decoder are different, and R
Due to the difference between the value on the OM address bus and the ROM address input to the built-in ROM address decoder, the ROM
A ROM test method characterized by outputting ROM data that does not correspond to a value on an M address bus.
(2)マイクロコンピュータに於いて、通常動作モード
で使用するときは、ROM出力データのビットの意味づ
けとROMデータバスのビットの意味づけが同じでRO
M出力データ値とROMデータバス上の値が一致し、R
OMテストモードではROM出力データのビットの意味
づけとROMデータバスのビットの意味づけが異なり、
ROM出力データ値と異なる値をROMデータバス上に
出力することを特徴とする請求項1記載のROMテスト
方法。
(2) When a microcomputer is used in normal operation mode, the meanings of the ROM output data bits and the ROM data bus bits are the same, and the ROM output data bits have the same meanings.
The M output data value and the value on the ROM data bus match, and the R
In OM test mode, the meanings of the ROM output data bits and the ROM data bus bits are different.
2. The ROM test method according to claim 1, further comprising outputting a value different from a ROM output data value onto the ROM data bus.
(3)マイクロコンピュータに於いて、ROMテストモ
ードで、入力されたROMアドレス値に対応してROM
出力データのビットの意味づけとROMデータバスの意
味づけが異なることを特徴とする請求項1記載のROM
テスト方法。 (3)マイクロコンピュータに於いて、ROMテストモ
ード時のROMアドレスバスのビットの意味づけと内蔵
ROMアドレスデコーダに入力されるアドレスの意味づ
け、或いはROM出力データのビットの意味づけとRO
Mデータバスのビットの意味づけを、トランジスタのゲ
ートを形成する部分と、配線用金属を形成する部分を接
続するコンタクト用のマスク1枚で変更でき、ROM品
種毎にビット対応を変更することを特徴とするROMテ
スト方法。
(3) In the microcomputer, in the ROM test mode, the ROM is
ROM according to claim 1, characterized in that the bits of the output data have different meanings and the ROM data bus has different meanings.
Test method. (3) In a microcomputer, the meaning of the bits of the ROM address bus in the ROM test mode and the meaning of the address input to the built-in ROM address decoder, or the meaning of the bits of the ROM output data and the RO
The meaning of the M data bus bits can be changed with a single contact mask that connects the part that forms the gate of the transistor and the part that forms the wiring metal, making it possible to change the bit correspondence for each ROM type. Characteristic ROM test method.
JP2025427A 1990-02-05 1990-02-05 Rom testing method Pending JPH03229338A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2025427A JPH03229338A (en) 1990-02-05 1990-02-05 Rom testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2025427A JPH03229338A (en) 1990-02-05 1990-02-05 Rom testing method

Publications (1)

Publication Number Publication Date
JPH03229338A true JPH03229338A (en) 1991-10-11

Family

ID=12165669

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2025427A Pending JPH03229338A (en) 1990-02-05 1990-02-05 Rom testing method

Country Status (1)

Country Link
JP (1) JPH03229338A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100212265A1 (en) * 2007-08-23 2010-08-26 Junghans Joachim Method and apparatus, in a bottling plant, for packing beverage bottles in cases with and without dividers and a method and apparatus for packing containers in cases with and without dividers

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5987546A (en) * 1982-11-12 1984-05-21 Hitachi Yonezawa Denshi Kk Software protecting system
JPS6011931A (en) * 1983-06-30 1985-01-22 Fujitsu Ltd One-chip microcomputer
JPS6347831A (en) * 1986-08-15 1988-02-29 Nec Corp Microcomputer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5987546A (en) * 1982-11-12 1984-05-21 Hitachi Yonezawa Denshi Kk Software protecting system
JPS6011931A (en) * 1983-06-30 1985-01-22 Fujitsu Ltd One-chip microcomputer
JPS6347831A (en) * 1986-08-15 1988-02-29 Nec Corp Microcomputer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100212265A1 (en) * 2007-08-23 2010-08-26 Junghans Joachim Method and apparatus, in a bottling plant, for packing beverage bottles in cases with and without dividers and a method and apparatus for packing containers in cases with and without dividers

Similar Documents

Publication Publication Date Title
US4905277A (en) Method for enciphering and deciphering instructions in a microcomputer, and a microcomputer used for effecting same
US5214697A (en) Program execution apparatus for ensuring security of a program
US4764959A (en) Single-chip microcomputer with encryptable function on program memory
KR960015518A (en) Signal processor
KR960008543A (en) Integrated circuit microprocessor with programmable memory access interface type and associated method
JP2845433B2 (en) Integrated circuit device
JPH03229338A (en) Rom testing method
JPH0668740B2 (en) Data secret protection device in data processing device
JP2570985B2 (en) Semiconductor associative memory device
JPH09106690A (en) Rom with copy preventing function
JPS609235A (en) Selective call receiving method
JPS5987546A (en) Software protecting system
KR970050868A (en) Parallel CRC decoder
JPH06119251A (en) Read only memory
JPH04359320A (en) Electronic apparatus incorporating prom
JPH03257557A (en) Microcomputer
JPS6313200A (en) Integrated circuit
JPH0659886A (en) Arithmetic operation circuit
JPH01288944A (en) Cpu circuit
JPS60221843A (en) Deciding device
JPS58200345A (en) One-chip microcomputer
JPH04159700A (en) Verifying method for data
JPS5958698A (en) Semiconductor integrated circuit storage device
JPH11232092A (en) Controller for microprocessor
JPH04188247A (en) Micro computer incorporating prom