[go: up one dir, main page]

JPH1055272A - Semiconductor device - Google Patents

Semiconductor device

Info

Publication number
JPH1055272A
JPH1055272A JP8212312A JP21231296A JPH1055272A JP H1055272 A JPH1055272 A JP H1055272A JP 8212312 A JP8212312 A JP 8212312A JP 21231296 A JP21231296 A JP 21231296A JP H1055272 A JPH1055272 A JP H1055272A
Authority
JP
Japan
Prior art keywords
instruction code
interrupt
internal
pointer
rom
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
JP8212312A
Other languages
Japanese (ja)
Inventor
Shinichiro Miyashita
下 新 一 郎 宮
Hideyuki Fukuda
田 秀 之 福
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 Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP8212312A priority Critical patent/JPH1055272A/en
Publication of JPH1055272A publication Critical patent/JPH1055272A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Microcomputers (AREA)

Abstract

(57)【要約】 【課題】 LSIの変更を行わずにマスクプログラムの
一部を書き換える。 【解決手段】 動作中はプログラムポインタ6により内
蔵ROM4にアクセスし、その命令コードをデコーダ2
によりデコードする。割り込みアドレス検出部9は、実
行中のポインタ6を監視し、予めレジスタ10に書き込
まれた値とポインタ6の値が一致した時に、割り込みコ
ントローラ11に通知する。割り込みコントローラ11
は、ポインタ6に内蔵RAM5の先頭番地をロードする
処理を行い、以降ポインタ6は内蔵RAM5にアクセス
し、内蔵ROM4の命令コードの一部を内蔵RAM5の
命令コードに置き換える。
(57) [Summary] [PROBLEMS] To rewrite a part of a mask program without changing an LSI. During operation, a built-in ROM is accessed by a program pointer, and its instruction code is read by a decoder.
To decode. The interrupt address detector 9 monitors the pointer 6 being executed, and notifies the interrupt controller 11 when the value written in the register 10 and the value of the pointer 6 match each other. Interrupt controller 11
Performs a process of loading the start address of the internal RAM 5 into the pointer 6, and thereafter the pointer 6 accesses the internal RAM 5 and replaces a part of the instruction code of the internal ROM 4 with the instruction code of the internal RAM 5.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ディジタルセルラ
ー無線電話システム等の電子機器に使用される半導体装
置、特にディジタル信号処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a semiconductor device used for electronic equipment such as a digital cellular radio telephone system, and more particularly to a digital signal processing device.

【0002】[0002]

【従来の技術】従来、電子機器に使用されるディジタル
信号処理装置(以下DSPと略す。)は、ROMを内蔵
しており、この内蔵ROM内にその命令コードを格納
し、プログラムポインタは内蔵ROMのみを参照し、デ
コーダにより命令コードをデコードし、DSPを動作さ
せている。また、命令コードをLSI製造時にマスクを
使用して書き込むことにより、製造後の命令コード書き
込みを不要としている。
2. Description of the Related Art Conventionally, a digital signal processing device (hereinafter abbreviated as DSP) used in electronic equipment has a built-in ROM, which stores an instruction code in the built-in ROM, and a program pointer is stored in the built-in ROM. The instruction code is decoded by the decoder with reference to only the above, and the DSP is operated. Also, by writing the instruction code using a mask at the time of manufacturing the LSI, it is not necessary to write the instruction code after manufacturing.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記従
来のDSPでは、内蔵ROMの命令コードを一部でも変
更する必要が生じた場合、LSI製造工程のすべてを、
もう一度行わなければならないという問題があった。
However, in the above-mentioned conventional DSP, when it is necessary to change even a part of the instruction code of the built-in ROM, all of the LSI manufacturing steps are performed.
There was a problem that we had to do it again.

【0004】本発明は、このような従来の問題を解決す
るものであり、LSIの変更を行わずにマスクプログラ
ムの一部を置き換え可能な半導体装置を提供することを
目的とする。
An object of the present invention is to solve such a conventional problem, and an object of the present invention is to provide a semiconductor device which can replace a part of a mask program without changing an LSI.

【0005】[0005]

【課題を解決するための手段】本発明は、上記目的を達
成するために、内蔵ROMに格納された命令コードの一
部を内蔵RAMに格納された命令コードに置き換えるよ
うにしたものであり、LSIの変更を行わずにマスクプ
ログラムの一部を置き換えることができる。
According to the present invention, in order to achieve the above object, a part of an instruction code stored in a built-in ROM is replaced with an instruction code stored in a built-in RAM. Part of the mask program can be replaced without changing the LSI.

【0006】[0006]

【発明の実施の形態】本発明の請求項1に記載の発明
は、内蔵ROMと同様に内蔵RAMを参照可能にしたプ
ログラムポインタと、このプログラムポインタを監視し
て、内蔵ROMの命令コードを内蔵RAMの命令コード
に置き換えるための割り込みを発生する手段とを備えた
ことを特徴とする半導体装置であり、内蔵ROMに格納
された命令コードの一部を内蔵RAMに格納された命令
コードに置き換えることにより、LSIの変更を行わず
にマスクプログラムの一部を置き換えることができる。
According to the first aspect of the present invention, there is provided a program pointer which makes it possible to refer to an internal RAM as well as an internal ROM, and monitors the program pointer to store an instruction code of the internal ROM. Means for generating an interrupt for replacing with an instruction code of a RAM, wherein a part of the instruction code stored in the internal ROM is replaced with an instruction code stored in the internal RAM. Thereby, a part of the mask program can be replaced without changing the LSI.

【0007】本発明の請求項2に記載の発明は、命令コ
ードを格納する内蔵ROMと、置き換える命令コードを
格納する内蔵RAMと、動作中に命令コードの番地を順
次指し示すプログラムポインタと、プログラムポインタ
の値を監視して、予め設定された値と一致した時に割り
込み通知を発生する割り込みアドレス検出部と、割り込
み通知を受けてプログラムポインタに内蔵RAMの先頭
アドレスを格納する割り込みコントローラとを備えた半
導体装置であり、内蔵ROMに格納された命令コードの
一部を内蔵RAMに格納された命令コードに置き換える
ことにより、LSIの変更を行わずにマスクプログラム
の一部を置き換えることができる。
According to a second aspect of the present invention, there is provided an internal ROM for storing an instruction code, an internal RAM for storing an instruction code to be replaced, a program pointer for sequentially indicating the address of the instruction code during operation, and a program pointer. A semiconductor device comprising: an interrupt address detecting unit that monitors the value of the above and generates an interrupt notification when the value matches a preset value; and an interrupt controller that receives the interrupt notification and stores the head address of the internal RAM in a program pointer. This is an apparatus, and by replacing a part of the instruction code stored in the internal ROM with the instruction code stored in the internal RAM, it is possible to replace a part of the mask program without changing the LSI.

【0008】(実施の形態)以下、本発明の実施の形態
を図面を参照して説明する。図1は本発明の実施の形態
におけるDSP内部の構成を示している。図1におい
て、1は演算部であり、DSPの各演算を行う。2はデ
コーダであり、演算部1に接続されて命令コードをデコ
ードする。3は命令レジスタであり、命令コードを一時
的に格納する。4は内蔵ROMであり、命令コードを格
納している。5は内蔵RAMであり、置き換え命令コー
ドを格納している。6はプログラムポインタであり、D
SP動作中に命令コードの番地を順次指し示す。7は内
部バスであり、演算部1、プログラムポインタ6、割り
込みレジスタ10、割り込みコントローラ11および外
部バス8に接続して、DSP動作に必要なデータの送受
信を行う。8は外部バスであり、CPU12や外部のメ
モリ13、内部バス7、内蔵RAM5等に接続してデー
タの送受信を行う。9は割り込みアドレス検出部であ
り、、プログラムポインタ6を監視する。10は割り込
みレジスタであり、割り込みアドレス検出部9を制御す
る。11は割り込みコントローラであり、割り込み発生
時にプログラムポインタ6等の制御を行う。12はCP
Uであり、装置内各部を制御する。13はCPU12に
よって参照されるメモリである。内蔵RAM5への置き
換え命令コードの格納は、予めCPU12および外部バ
ス8を介して行われる。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows a configuration inside a DSP according to an embodiment of the present invention. In FIG. 1, reference numeral 1 denotes an operation unit which performs each operation of the DSP. Reference numeral 2 denotes a decoder, which is connected to the operation unit 1 and decodes an instruction code. An instruction register 3 temporarily stores an instruction code. Reference numeral 4 denotes a built-in ROM, which stores an instruction code. Reference numeral 5 denotes a built-in RAM, which stores a replacement instruction code. 6 is a program pointer, and D
During the SP operation, the addresses of the instruction codes are sequentially indicated. Reference numeral 7 denotes an internal bus, which is connected to the arithmetic unit 1, the program pointer 6, the interrupt register 10, the interrupt controller 11, and the external bus 8 to transmit and receive data necessary for the DSP operation. An external bus 8 is connected to the CPU 12, the external memory 13, the internal bus 7, the built-in RAM 5, and the like to transmit and receive data. Reference numeral 9 denotes an interrupt address detection unit which monitors the program pointer 6. An interrupt register 10 controls the interrupt address detection unit 9. An interrupt controller 11 controls the program pointer 6 and the like when an interrupt occurs. 12 is CP
U controls each unit in the apparatus. Reference numeral 13 denotes a memory referred to by the CPU 12. The replacement instruction code is stored in the built-in RAM 5 via the CPU 12 and the external bus 8 in advance.

【0009】次に本実施の形態の動作について説明す
る。DSP動作中は、プログラムポインタ6で示された
番地における内蔵ROM4の内容が、命令レジスタ3に
格納される。デコーダ2は、命令レジスタ3の内容をデ
コードし、演算部1に処理を伝える。演算部1は、デコ
ードされた内容の演算処理を行う。割り込みレジスタ1
0がセットされると、割り込みアドレス検出部9が動作
する。割り込みアドレス検出部9は、プログラムポイン
タ6を監視し、割り込みレジスタ10に設定された番地
とプログラムポインタ6の番地が一致した時に割り込み
コントローラ11にその旨を通知する。割り込みコント
ローラ11は、この通知を受けると、割り込みを発生さ
せてプログラムポインタ6に内蔵RAM5の先頭アドレ
スを格納する。この結果、プログラムポインタ6は、内
蔵RAM5の番地を順次指し示し始める。内蔵RAM5
内の置き換え命令コードの最後に、内蔵ROM4の戻り
番地をプログラムポインタ6に格納する命令コードを設
定しておくことにより、内蔵RAM5の命令コードを実
行後、プログラムポインタ6には内蔵ROM4の戻り番
地が格納されることになる。以降は、プログラムポイン
タ6は、元のように内蔵ROM4の番地を指し示す。
Next, the operation of this embodiment will be described. During the DSP operation, the contents of the internal ROM 4 at the address indicated by the program pointer 6 are stored in the instruction register 3. The decoder 2 decodes the contents of the instruction register 3 and transmits the processing to the operation unit 1. The arithmetic unit 1 performs arithmetic processing on the decoded content. Interrupt register 1
When 0 is set, the interrupt address detector 9 operates. The interrupt address detector 9 monitors the program pointer 6, and notifies the interrupt controller 11 when the address set in the interrupt register 10 matches the address of the program pointer 6. Upon receiving this notification, the interrupt controller 11 generates an interrupt and stores the start address of the internal RAM 5 in the program pointer 6. As a result, the program pointer 6 starts to sequentially point to the address of the internal RAM 5. Built-in RAM5
After the instruction code for storing the return address of the internal ROM 4 in the program pointer 6 is set at the end of the replacement instruction code, the instruction code of the internal RAM 5 is executed, and then the return address of the internal ROM 4 is stored in the program pointer 6. Will be stored. Thereafter, the program pointer 6 points to the address of the internal ROM 4 as before.

【0010】このように、本実施の形態によれば、DS
P内のプログラムポインタ6が内蔵ROM4と同様に内
蔵RAM5を参照できるようにし、割り込みアドレス検
出部9がプログラムポインタ6を監視して割り込みを発
生するようにしたので、内蔵ROM4の命令コードの一
部を内蔵RAM5の命令コードに置き換えることができ
る。
As described above, according to the present embodiment, DS
Since the program pointer 6 in P can refer to the built-in RAM 5 similarly to the built-in ROM 4, and the interrupt address detecting unit 9 monitors the program pointer 6 to generate an interrupt, a part of the instruction code of the built-in ROM 4 Can be replaced with the instruction code of the built-in RAM 5.

【0011】[0011]

【発明の効果】本発明は、上記実施の形態から明らかな
ように、内蔵ROMに格納された命令コードの一部を内
蔵RAMに格納された命令コードに置き換えるようにし
たものであり、LSIの変更を行わずにマスクプログラ
ムの一部を置き換えることができるという効果を有す
る。
According to the present invention, as apparent from the above embodiment, a part of the instruction code stored in the built-in ROM is replaced by the instruction code stored in the built-in RAM. This has the effect that a part of the mask program can be replaced without making any changes.

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

【図1】本発明の実施の形態におけるDSP内部の構成
を示すブロック図
FIG. 1 is a block diagram showing a configuration inside a DSP according to an embodiment of the present invention.

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

1 演算部 2 デコーダ 3 命令レジスタ 4 内蔵ROM 5 内蔵RAM 6 プログラムポインタ 7 内部バス 8 外部バス 9 割り込みアドレス検出部 10 割り込みレジスタ 11 割り込みコントローラ 12 CPU 13 メモリ DESCRIPTION OF SYMBOLS 1 Operation part 2 Decoder 3 Instruction register 4 Built-in ROM 5 Built-in RAM 6 Program pointer 7 Internal bus 8 External bus 9 Interrupt address detection part 10 Interrupt register 11 Interrupt controller 12 CPU 13 Memory

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 内蔵ROMと同様に内蔵RAMを参照可
能にしたプログラムポインタと、このプログラムポイン
タを監視して、内蔵ROMの命令コードを内蔵RAMの
命令コードに置き換えるための割り込みを発生する手段
とを備えたことを特徴とする半導体装置。
1. A program pointer which makes it possible to refer to an internal RAM similarly to an internal ROM, and means for monitoring the program pointer and generating an interrupt for replacing an instruction code of the internal ROM with an instruction code of the internal RAM. A semiconductor device comprising:
【請求項2】 命令コードを格納する内蔵ROMと、置
き換える命令コードを格納する内蔵RAMと、動作中に
命令コードの番地を順次指し示すプログラムポインタ
と、プログラムポインタの値を監視して、予め設定され
た値と一致した時に割り込み通知を発生する割り込みア
ドレス検出部と、割り込み通知を受けてプログラムポイ
ンタに内蔵RAMの先頭アドレスを格納する割り込みコ
ントローラとを備えた半導体装置。
2. An internal ROM for storing an instruction code, an internal RAM for storing an instruction code to be replaced, a program pointer for sequentially pointing to the address of the instruction code during operation, and a value of a program pointer which is monitored in advance. A semiconductor device comprising: an interrupt address detection unit that generates an interrupt notification when the value matches the interrupted value; and an interrupt controller that receives the interrupt notification and stores the start address of the internal RAM in a program pointer.
JP8212312A 1996-08-12 1996-08-12 Semiconductor device Pending JPH1055272A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8212312A JPH1055272A (en) 1996-08-12 1996-08-12 Semiconductor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8212312A JPH1055272A (en) 1996-08-12 1996-08-12 Semiconductor device

Publications (1)

Publication Number Publication Date
JPH1055272A true JPH1055272A (en) 1998-02-24

Family

ID=16620476

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8212312A Pending JPH1055272A (en) 1996-08-12 1996-08-12 Semiconductor device

Country Status (1)

Country Link
JP (1) JPH1055272A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004526233A (en) * 2001-01-26 2004-08-26 デルタ サーチ ラブズ インコーポレイテッド A modular microcontroller that manages CPUs and devices without an operating system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004526233A (en) * 2001-01-26 2004-08-26 デルタ サーチ ラブズ インコーポレイテッド A modular microcontroller that manages CPUs and devices without an operating system

Similar Documents

Publication Publication Date Title
US6496882B2 (en) Method and system for virtual memory compression in an embedded system
US6175890B1 (en) Device for efficiently handling interrupt request processes
US6195107B1 (en) Method and system for utilizing virtual memory in an embedded system
US6349388B1 (en) Timer processing engine for supporting multiple virtual minimum time timers
JPH1055272A (en) Semiconductor device
US6718405B2 (en) Hardware chain pull
US4979103A (en) Data processing method and apparatus having plural bus interfaces
US20090077364A1 (en) Data-processing arrangement
US5594913A (en) High speed memory access system for a microcontroller with directly driven low order address bits
JPH08241194A (en) Video game system, information processing device, and its software storage means
JP2914538B2 (en) Programmable controller
JP2501393B2 (en) Direct memory access device
JP2524673B2 (en) Direct memory access device
JPH01199232A (en) Microprogram controller
CN116414423A (en) Method for updating cured code in chip, memory and computer equipment
JPH1040165A (en) Data read method and read buffer
JP2000215042A (en) Operation program update method
JP3269435B2 (en) Bus interface unit
JP2002007154A (en) Information processor
JPH117398A (en) Program debugging device
JP2000194554A (en) Arithmetic processor
JPH1185565A (en) CPU debugging method and system
JPH02242445A (en) Debugging mechanism for information processor
JPH09305399A (en) Instruction supply device
JP2000276398A (en) Data read control device for CPU