JPH0644141A - Memory information read system - Google Patents

Memory information read system

Info

Publication number
JPH0644141A
JPH0644141A JP4197965A JP19796592A JPH0644141A JP H0644141 A JPH0644141 A JP H0644141A JP 4197965 A JP4197965 A JP 4197965A JP 19796592 A JP19796592 A JP 19796592A JP H0644141 A JPH0644141 A JP H0644141A
Authority
JP
Japan
Prior art keywords
rom
cpu
data
ram
memory
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.)
Withdrawn
Application number
JP4197965A
Other languages
Japanese (ja)
Inventor
Yutaka Tomii
豊 冨依
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP4197965A priority Critical patent/JPH0644141A/en
Publication of JPH0644141A publication Critical patent/JPH0644141A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the content of general-purpose ROM from illegally being read and analyzed from an external in a device using CPU and general-purpose ROM. CONSTITUTION:CPU 1 is connected with an address decoder 2, RAM 3 and ROM 4 by an address bus 7 and is connected with ROM 4 by data lines 8 and 9, a data line switching circuit 5, a data bus 10 and a data conversion circuit 6 exchanging the bit of data. The address decoder 2 selects RAM 3 and ROM 4 and controls the line switching circuit 5. When CPU 1 reads ROM 4, it reads data whose bit is exchanged by the data conversion circuit 6. Furthermore, the circuits, namely, at least parts except for RAM 3 and ROM 4 are composed of the control circuit 13 of the same single package LSI.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はメモリ情報読出方式に関
し、特にCPUの外部メモリに対するメモリ情報読出方
式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory information reading system, and more particularly to a memory information reading system for an external memory of a CPU.

【0002】[0002]

【従来の技術】CPUの動作のための情報(ソフトウェ
ア)をROMなどのメモリに保有し、アドレスライン、
データラインでROMとCPUとを接続してCPUを動
作させる方法は一般に普及している。その場合、ROM
には動作させるCPUの機能仕様に応じた言語・書式で
情報が記憶されており、CPUはROMから読み出され
た情報を予め定められた仕様に従って読み出し認識し動
作する。またCPUの機能仕様は一般に各機種毎に広く
公開されている。
2. Description of the Related Art Information (software) for the operation of a CPU is retained in a memory such as a ROM, an address line,
The method of operating the CPU by connecting the ROM and the CPU with a data line is generally popular. In that case, ROM
Stores information in a language and format according to the functional specifications of the CPU to be operated, and the CPU reads and recognizes the information read from the ROM according to predetermined specifications and operates. The functional specifications of the CPU are generally widely disclosed for each model.

【0003】従来のメモリ情報読出方式は、ソフトウェ
アを記憶させたマスクROMを、CPUと同一のLSI
に内蔵したタイプのワンチップの制御回路において、C
PUの内蔵ROMの容量は最大32kバイト程度しかな
く、複雑な機能を実現するには不十分である上に、マス
クROMは記憶内容の書換えが不可能なため開発期間の
長期化やコストアップを招く要因ともなりかねず、それ
らの理由から、CPUの外部に汎用ROMを試用し、そ
の外部の汎用ROMをアドレスライン,データラインで
接続して、CPUがこの汎用ROMの内容を読出す方式
となっている。
In the conventional memory information reading method, a mask ROM storing software is used in the same LSI as the CPU.
In the one-chip control circuit of the type built into
The capacity of the built-in ROM of the PU is only 32 kbytes at the maximum, which is insufficient for realizing complicated functions, and the mask ROM cannot rewrite the stored contents, which lengthens the development period and increases the cost. For these reasons, a general-purpose ROM is tried outside the CPU, the external general-purpose ROM is connected by an address line and a data line, and the CPU reads the contents of the general-purpose ROM. Has become.

【0004】[0004]

【発明が解決しようとする課題】この従来のメモリ情報
読出方式では、CPUの動作仕様が広く公開されている
ので、CPUの外部の汎用ROMに動作情報を格納する
構成であるところのある装置を入手した第三者が、その
汎用ROMのメモリ内容を読み出して装置の動作を解析
することが比較的容易であるという問題点がある。
In this conventional memory information reading method, the operating specifications of the CPU are widely disclosed, so that an apparatus having a structure for storing the operating information in a general-purpose ROM outside the CPU may be used. There is a problem that it is relatively easy for the obtained third party to read the memory contents of the general-purpose ROM and analyze the operation of the device.

【0005】又、昨今装置の不正な使用や盗難を防ぐな
どの目的で、限定された操作によってしか動作しないな
どの安全策をメモリ内に保有されるソフトウェアで構築
する事が多く、その場合上述のように汎用ROM内の情
報(ソフトウェア)を第三者が容易に解読できることは
装置の不正使用を可能にするという問題がある。更に、
上述のような安全策を保有してない場合でも、ソフトウ
ェアを第三者が自由に読みだし、解読する事ができるこ
とは著作権その他製造者の権利侵害を招き易いという問
題点がある。
Further, in recent years, for the purpose of preventing illegal use or theft of the device, it is often the case that a safety measure that operates only by a limited operation is constructed by software stored in the memory. As described above, the fact that the information (software) in the general-purpose ROM can be easily decrypted by a third party causes a problem that the device can be illegally used. Furthermore,
Even if the software does not have the above-mentioned security measures, the fact that the software can be freely read and decrypted by a third party has a problem that copyright and other rights of the manufacturer are likely to be infringed.

【0006】更に、また、先に述べたように、ワンチッ
プにマスクROMを内蔵したタイプの制御回路を使用す
れば、外部からマスクROMの情報を読み出せないため
セキュリティの問題は解決するが、そのマスクROMの
容量の限界から現実的手段とはなり得ないという問題点
がある。
Further, as described above, if a control circuit of a type in which a mask ROM is built in one chip is used, the information of the mask ROM cannot be read from the outside, but the security problem is solved. There is a problem that it cannot be a practical means due to the limitation of the capacity of the mask ROM.

【0007】[0007]

【課題を解決するための手段】本発明のメモリ情報読出
方式は、CPUと、このCPUの動作情報を記憶するメ
モリと、前記CPUおよび前記メモリ間のデータ送受の
為の信号線と、前記CPUを実装する制御回路内に前記
信号線の総てあるいは一部内に構成し、前記メモリから
読み出されたデータを予め定められたある一定の法則に
従って変換する変換回路とを有している。
According to the memory information reading method of the present invention, a CPU, a memory for storing operation information of the CPU, a signal line for transmitting and receiving data between the CPU and the memory, and the CPU And a conversion circuit that is configured in all or a part of the signal line and that converts the data read from the memory according to a certain predetermined rule.

【0008】[0008]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0009】図1は本発明の第1の実施例を適用する制
御回路のブロック図、図2は図1に示す制御回路におけ
るデータ変換回路の一例を示す図である。
FIG. 1 is a block diagram of a control circuit to which the first embodiment of the present invention is applied, and FIG. 2 is a diagram showing an example of a data conversion circuit in the control circuit shown in FIG.

【0010】図1に示す本適用例の制御回路13におい
て、CPU1は8ビットCPUでありアドレスバス7で
RAM3およびROM4と接続されており、更にアドレ
スデコーダ2がCPU1からのアドレス情報をデコード
する事によってRAMセレクト信号11およびROMセ
レクト信号12を制御することによってRAM3/RO
M4へのアクセスの切替を行っている。またCPU1の
データライン8はデータライン切替回路5と接続されて
おり、さらにデータライン切替回路5はデータ変換回路
6とデータライン9によって接続されている。さらにデ
ータライン切替回路5、データ変換回路6およびRAM
3、ROM4は全てデータバス10によって接続されて
いる。
In the control circuit 13 of this application example shown in FIG. 1, the CPU 1 is an 8-bit CPU, is connected to the RAM 3 and the ROM 4 by the address bus 7, and the address decoder 2 decodes the address information from the CPU 1. RAM3 / RO by controlling the RAM select signal 11 and the ROM select signal 12 by
Switching access to M4. The data line 8 of the CPU 1 is connected to the data line switching circuit 5, and the data line switching circuit 5 is connected to the data conversion circuit 6 by the data line 9. Further, the data line switching circuit 5, the data conversion circuit 6 and the RAM
3 and the ROM 4 are all connected by the data bus 10.

【0011】ここでデータライン切替回路5はアドレス
デコーダ2から与えられるRAMセレクト信号11およ
びROMセレクト信号12によって、RAM3が選択さ
れたときはデータライン8がデータバス10へ接続さ
れ、ROM4が選択されたときはデータライン8がデー
タライン9へ接続される様構成されている。
Here, in the data line switching circuit 5, when the RAM 3 is selected by the RAM select signal 11 and the ROM select signal 12 provided from the address decoder 2, the data line 8 is connected to the data bus 10 and the ROM 4 is selected. In this case, the data line 8 is connected to the data line 9.

【0012】またデータ変換回路6は、図2に示すよう
に、8ビットのデータライン9のD0〜D7とデータバ
ス10のD0〜D7とを入れ替え互いに接続するよう構
成されている。
Further, as shown in FIG. 2, the data conversion circuit 6 is configured so that D0 to D7 of the 8-bit data line 9 and D0 to D7 of the data bus 10 are interchanged and connected to each other.

【0013】更に、本適用例はCPU1、アドレスデコ
ーダ2、データライン切替回路5、データ変換回路6及
びデータライン8が全て同一単一パッケージに収められ
たLSIの制御回路13の内部回路として構成され、装
置へ実装されたときは、制御回路13およびRAM3、
ROM4の3つのICがアドレスバス7、データバス1
0およびRAMセレクト信号11、ROMセレクト信号
12によって接続されている回路構成となっている。
Further, in this application example, the CPU 1, the address decoder 2, the data line switching circuit 5, the data conversion circuit 6 and the data line 8 are all configured as an internal circuit of the control circuit 13 of the LSI which is housed in the same single package. , The control circuit 13 and the RAM 3 when mounted on the device,
The three ICs of the ROM 4 are the address bus 7 and the data bus 1
0, the RAM select signal 11, and the ROM select signal 12 are connected.

【0014】上記の回路構成により、CPU1がRAM
3にアクセスする時はデータはビット入れ替えをする事
無くCPU1−RAM3間を伝えられ、CPU1がRO
M4を読み出すときはデータ変換回路6によってビット
を入れ換えられたデータを読み出すことになる。ROM
4に格納されたデータは予めデータ変換回路6によって
ビットを入れ換えられた時にCPU1から見て正しい書
式で読める様にビットを入れ換えて書き込まれている。
With the above circuit configuration, the CPU 1 is a RAM
When accessing 3, the data is transmitted between CPU1 and RAM3 without exchanging bits and CPU1 is
When reading M4, the data whose bits have been exchanged by the data conversion circuit 6 is read. ROM
The data stored in 4 is written by exchanging the bits so that the data can be read in the correct format when viewed from the CPU 1 when the bits are exchanged by the data conversion circuit 6 in advance.

【0015】図2は本発明の第2の実施例を適用する制
御回路のブロック図である。
FIG. 2 is a block diagram of a control circuit to which the second embodiment of the present invention is applied.

【0016】図2に示す本適用例の制御回路13aは、
図1に示す制御回路13と一部異なり、データライン切
替回路5aの制御信号14がRAMセレクト信号11お
よびROMセレクト信号12とは独立し、アドレスデコ
ーダ回路2によってCPU1がある決められたアドレス
をアクセスした場合にデータライン切替回路5aを切り
替える様に構成されている。
The control circuit 13a of this application example shown in FIG.
Differently from the control circuit 13 shown in FIG. 1, the control signal 14 of the data line switching circuit 5a is independent of the RAM select signal 11 and the ROM select signal 12, and the address decoder circuit 2 allows the CPU 1 to access a predetermined address. In this case, the data line switching circuit 5a is switched.

【0017】本発明の趣旨は、以上の二つの適用例に見
られるような構成によって、RAM3、ROM4あるい
はパネル上で、制御回路13,13aの外部に流れてい
るデータの全てまたは一部分についてそのビットを入れ
替え、CPU1が読むデータすなわちビット入れ替えが
復号されたデータは制御回路13,13aの内部信号と
してしか存在しない回路を構成することにある。
The gist of the present invention is that the bits of all or a part of the data flowing to the outside of the control circuits 13 and 13a on the RAM 3, ROM 4 or panel are set by the configurations as seen in the above two application examples. , And the data read by the CPU 1, that is, the data obtained by decoding the bit replacement is to form a circuit that exists only as an internal signal of the control circuits 13 and 13a.

【0018】[0018]

【発明の効果】以上説明したように本発明では、CPU
が読むデータすなわちビット入れ替えが復号されたデー
タがCPUを実装する制御回路の内部信号としてしか存
在せず、第三者が制御回路を搭載した装置から制御回路
に接続するROMを取り出したり、あるいは装置上のデ
ータラインから信号を取り出してデータ解析を試みて
も、ビット入れ替えされたデータしか容易には読み取れ
ず、一般に広く公開されているところのCPUの仕様に
基づく書式でのデータ解析を不可能にすることができる
効果がある。
As described above, according to the present invention, the CPU
The data read by the CPU, that is, the data in which the bit permutation is decoded exists only as an internal signal of the control circuit mounting the CPU, and a third party takes out the ROM connected to the control circuit from the device equipped with the control circuit, or the device. Even if a signal is taken out from the upper data line and an attempt is made to analyze the data, only the bit-swapped data can be easily read, making it impossible to analyze the data in a format that is widely disclosed to the CPU specifications. There is an effect that can be.

【0019】従って、本発明は、CPUに外部接続する
ROMのデータを解析すること、すなわちこのCPUを
実装した制御回路を搭載した装置の動作を解析すること
を著しく困難にさせ、それによってソフトウェアの機密
をより強く保護することができるという効果が有る。
Therefore, the present invention makes it extremely difficult to analyze the data in the ROM externally connected to the CPU, that is, to analyze the operation of the device equipped with the control circuit in which the CPU is mounted, whereby the software There is an effect that the confidentiality can be protected more strongly.

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

【図1】本発明の第1の実施例を適用する制御回路のブ
ロック図である。
FIG. 1 is a block diagram of a control circuit to which a first embodiment of the present invention is applied.

【図2】本第1の実施例におけるデータ変換回路の一例
を示す図である。
FIG. 2 is a diagram showing an example of a data conversion circuit in the first embodiment.

【図3】本発明の第2の実施例を適用する制御回路のブ
ロック図である。
FIG. 3 is a block diagram of a control circuit to which a second embodiment of the present invention is applied.

【符号の説明】[Explanation of symbols]

1 CPU 2 アドレスデコーダ 3 RAM 4 ROM 5,5a データライン切替回路 6 データ変換回路 7 アドレスバス 8 データライン(8ビットパラレル) 9 データライン(8ビットパラレル) 10 データバス(8ビットパラレル) 11 RAMセレクト信号 12 ROMセレクト信号 13,13a 制御回路 1 CPU 2 Address Decoder 3 RAM 4 ROM 5, 5a Data Line Switching Circuit 6 Data Conversion Circuit 7 Address Bus 8 Data Line (8 Bit Parallel) 9 Data Line (8 Bit Parallel) 10 Data Bus (8 Bit Parallel) 11 RAM Select Signal 12 ROM select signal 13, 13a control circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 CPUと、このCPUの動作情報を記憶
するメモリと、前記CPUおよび前記メモリ間のデータ
送受の為の信号線と、前記CPUを実装する制御回路内
に前記信号線の総てあるいは一部内に構成し、前記メモ
リから読み出されたデータを予め定められたある一定の
法則に従って変換する変換回路とを有して、前記ある一
定の法則を知らない者が前記メモリ内に保有する情報を
読み出して解読する事を防止することを特徴とするメモ
リ情報読出方式。
1. A CPU, a memory for storing operation information of the CPU, a signal line for transmitting and receiving data between the CPU and the memory, and all of the signal lines in a control circuit for mounting the CPU. Alternatively, a conversion circuit that is configured in a part and converts data read from the memory according to a predetermined predetermined law is provided in the memory by a person who does not know the predetermined law. A memory information reading method, which prevents reading and decoding the stored information.
JP4197965A 1992-07-24 1992-07-24 Memory information read system Withdrawn JPH0644141A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4197965A JPH0644141A (en) 1992-07-24 1992-07-24 Memory information read system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4197965A JPH0644141A (en) 1992-07-24 1992-07-24 Memory information read system

Publications (1)

Publication Number Publication Date
JPH0644141A true JPH0644141A (en) 1994-02-18

Family

ID=16383272

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4197965A Withdrawn JPH0644141A (en) 1992-07-24 1992-07-24 Memory information read system

Country Status (1)

Country Link
JP (1) JPH0644141A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07295893A (en) * 1994-04-28 1995-11-10 Nec Corp Device and method for reading in memory information of microrprocessor
US6211802B1 (en) 1998-03-24 2001-04-03 Nec Corporation Semiconductor integrated circuit for performing data transfer
JP2001222423A (en) * 2000-02-14 2001-08-17 Nintendo Co Ltd Semiconductor memory and program discrimination system
JP2003018565A (en) * 2001-06-28 2003-01-17 Pioneer Electronic Corp Video signal transmitting system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07295893A (en) * 1994-04-28 1995-11-10 Nec Corp Device and method for reading in memory information of microrprocessor
US6211802B1 (en) 1998-03-24 2001-04-03 Nec Corporation Semiconductor integrated circuit for performing data transfer
JP2001222423A (en) * 2000-02-14 2001-08-17 Nintendo Co Ltd Semiconductor memory and program discrimination system
JP4594475B2 (en) * 2000-02-14 2010-12-08 任天堂株式会社 Program discrimination system
JP2003018565A (en) * 2001-06-28 2003-01-17 Pioneer Electronic Corp Video signal transmitting system

Similar Documents

Publication Publication Date Title
US4523271A (en) Software protection method and apparatus
US5214697A (en) Program execution apparatus for ensuring security of a program
EP0768601B1 (en) Device for executing enciphered program
US6453417B1 (en) Microcontroller with secure signature extraction
JP2000076133A (en) Security guarantee method for program data inside memory writable only once
EP1172731B1 (en) Data processing apparatus and integrated circuit
US7409251B2 (en) Method and system for writing NV memories in a controller architecture, corresponding computer program product and computer-readable storage medium
US20130318363A1 (en) Security system for code dump protection and method thereof
JPS5947646A (en) Computer data processing apparatus and method
JP2004199688A (en) Secure driver
JP2007310601A (en) Microcomputer and method for protecting its software
US7891556B2 (en) Memory access controller and method for memory access control
JPS63293637A (en) Data protecting microcomputer
JPH0644141A (en) Memory information read system
US5657444A (en) Microprocessor with secure programmable read only memory circuit
US20090055660A1 (en) Security flash memory, data encryption device and method for accessing security flash memory
JP2002244757A (en) Semiconductor circuit
US20030163725A1 (en) Method and configuration for the transmission of signals from generating functional units to processing functional units of electrical circuits
JP3705255B2 (en) Semiconductor device and in-circuit emulator using the same
JP2003288564A (en) Memory card
WO2007020758A1 (en) Lsi for ic card
JP3234959B2 (en) Microcomputer and card incorporating the same
JPS61173341A (en) Method and apparatus for protecting safeguard program from illegal use in microcomputer
JPH09160831A (en) Information processor
JP3019590B2 (en) Microprocessor

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19991005