TW432326B - Microcomputer - Google Patents

Microcomputer Download PDF

Info

Publication number
TW432326B
TW432326B TW085114414A TW85114414A TW432326B TW 432326 B TW432326 B TW 432326B TW 085114414 A TW085114414 A TW 085114414A TW 85114414 A TW85114414 A TW 85114414A TW 432326 B TW432326 B TW 432326B
Authority
TW
Taiwan
Prior art keywords
instruction
register
data
code
processing unit
Prior art date
Application number
TW085114414A
Other languages
Chinese (zh)
Inventor
Hiroshi Ohsuga
Atsushi Kiuchi
Hironobu Hasegawa
Toru Baji
Koki Noguchi
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority claimed from US09/229,147 external-priority patent/US6434690B1/en
Application granted granted Critical
Publication of TW432326B publication Critical patent/TW432326B/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline or look ahead
    • G06F9/3877Concurrent instruction execution, e.g. pipeline or look ahead using a slave processor, e.g. coprocessor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7839Architectures of general purpose stored program computers comprising a single central processing unit with memory
    • G06F15/7842Architectures of general purpose stored program computers comprising a single central processing unit with memory on one IC chip (single chip microcontrollers)
    • G06F15/7857Architectures of general purpose stored program computers comprising a single central processing unit with memory on one IC chip (single chip microcontrollers) using interleaved memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30145Instruction analysis, e.g. decoding, instruction word fields
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30145Instruction analysis, e.g. decoding, instruction word fields
    • G06F9/3016Decoding the operand specifier, e.g. specifier format
    • G06F9/30167Decoding the operand specifier, e.g. specifier format of immediate specifier, e.g. constants
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline or look ahead
    • G06F9/3824Operand accessing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Executing Machine-Instructions (AREA)
  • Advance Control (AREA)
  • Microcomputers (AREA)
  • Memory System (AREA)

Abstract

Embedded registers are divided to the first registers 5, 7 and the second registers 4, 6. Via the third major lines XAB, XDB along with the second major lines YAB, YDB, they can be accessed in parallel. Consequently, core 2 of CPU can simultaneously transfer two data to DSP engine 3. The third major lines XAB, XDB and the second major lines YAB, YDB together with the first major lines IAB, IDB of external port as well as the second major lines YAB, YDB together with the first major lines IAB, IDB of external port are all individualized. Core 2 of CPU is parallel with the second register 4, 6 and the access of the first registers 5, 7 can be done externally.

Description

經濟部中央榡準局員工消費合作社印製 :: C 0 ^ Ό A7 ____B7_五、發明説明(i ) 〔發明之技術領域〕 本發明係與具有中央處理機組及數字信號處理機組之 半導體集成電路化之邏輯L S I有關,即與適用於需當速 運算處理之微電腦有效之技術有關。 .〔先前之技術〕 . 例如記載於將乘法器與算術邏輯運算器裝置於同~基 片之微電腦,有日本特願平4 — 296 778號或美國專 利申請第1 4 5 1 5 7號。依上述專利,如微電腦之邏輯 LS I基片具有中央處理機組,總線,存儲器,乘法器, 尤其具有在自存儲器讀出數據時,自中央處理機組將關該 讀出數據之乘算命令之指令轉送於乘法器之信號線。結果 ,由於在中央處理機組自存儲器讀出數據時*自中央處理 機組將關於讀出數據之乘算命令之指令轉送於乘法器,故 可直接將數據轉送存儲器與乘法器之間。 〔發明欲解決之課題〕 本發明人等曾對將數字信號處理機與中央處理機組一 同裝於一雙L S I使數字信號處理高速化之問題加以研討 。當時,先述先前之技術雖可自存儲器直接收數據轉送給 乘法器以實現乘算處理高速化,惟並未考慮在擬以中央處 理機組實行指令之管線處理時,中央處理機組應實行指令 之取週期與乘算處理用之存儲存取週期競合之事態。又, 亦未考慮以並聯自存儲器讅出加算或乘算用之複數操作數 本紙張尺度通用中國國家標準(CNS ) A4規格(210X297公釐} - 4 - (請先閲讀背面之注意事項再填寫本頁) 4 3 入.Μ Α7 Β7 _ 五、發明説明(2 ) 使運算處理高速化之問題。更看出此時若不考慮依中央處 理機組之與外部存取關係’則微電腦將有使用不良之情形 *又·發現將數字信號處理機組裝於一雙L s 1時’在欲 極力抑制指令譯碼電路等邏輯規模增大上’亦必須考量 CPU 令與DSP指令之分配或DSP 令之格式》 本發明之目的在將數字信號處理機組與中央處理機組 一同裝於一雙L S I使數字信號處理高速化。本發明之另 一目的在將數字信號數字機組與中央處理機組一同裝於一 隻L S I時,極力抑制其物理規模之增大。 本發明之前述及其他目的及新式特徵,由本說明書之 記述及附圖應可了解》 〔解決問題之方法〕 茲簡單說明本申請揭示之發明中具代表性之概要如下 〇 即微電腦,係將:中央處理機組(2) *及 I» I _----- - - - «. 士又- · I _ I I------ 丁 U3. -τ (請先閱讀背面之注意事項再填寫本頁) 經濟部中央標準局員工消费合作社印製 線 總Printed by the Consumer Cooperative of the Central Bureau of Standards, Ministry of Economic Affairs: C 0 ^ Ό A7 ____B7_ V. Description of Invention (i) [Technical Field of Invention] The present invention relates to a semiconductor integrated circuit with a central processing unit and a digital signal processing unit. The related logic LSI is related to the effective technology applicable to microcomputers that need to be processed quickly. [Previous technology]. For example, a microcomputer in which a multiplier and an arithmetic logic operation device are installed on the same substrate is disclosed in Japanese Patent Application No. 4—296 778 or US Patent Application No. 1 4 5 1 5 7. According to the above patents, for example, the logic LS I chip of the microcomputer has a central processing unit, a bus, a memory, and a multiplier. In particular, when reading data from the memory, the central processing unit will instruct the multiplication command of the read data. Transfer to the signal line of the multiplier. As a result, when the central processing unit reads the data from the memory *, the instruction on the multiplication command of the read data is transferred from the central processing unit to the multiplier, so the data can be directly transferred between the memory and the multiplier. [Problems to be Solved by the Invention] The present inventors have studied the problem of speeding up digital signal processing by installing a digital signal processor and a central processing unit in a pair of L SIs. At that time, although the previous technology mentioned above can directly receive data from the memory and transfer it to the multiplier to achieve high-speed multiplication processing, it did not consider that the central processing unit should implement the instruction fetch when the pipeline processing is intended to be executed by the central processing unit. A situation where the cycle coincides with the storage access cycle used for multiplication processing. Also, it is not considered that the complex operands used for adding or multiplying from the memory are calculated in parallel. The paper size is common Chinese National Standard (CNS) A4 specification (210X297 mm)-4-(Please read the precautions on the back before filling (This page) 4 3 into. Μ Α7 Β7 _ V. Description of the invention (2) The problem of speeding up the calculation processing. It is also clear that at this time, if the relationship between the central processing unit and the external access relationship is not considered, the microcomputer will be used. Unfavorable situation * Also, it is found that when the digital signal processor is assembled on a pair of L s 1 'in order to suppress the increase of logic scale such as the instruction decoding circuit as much as possible', it is also necessary to consider the allocation of CPU instructions and DSP instructions or DSP instructions Format "The purpose of the present invention is to install the digital signal processing unit and the central processing unit in a pair of LSIs to speed up digital signal processing. Another object of the present invention is to install the digital signal digital unit and the central processing unit in one. In the case of LSI, the increase of its physical scale is strongly suppressed. The foregoing and other objects and new features of the present invention should be understood from the description of this specification and the drawings. 〕 Here is a brief description of the representative outline of the invention disclosed in this application. The microcomputer is: the central processing unit (2) * and I »I _--------«. 士 又-· I _ I I ------ Ding U3. -Τ (Please read the precautions on the back before filling out this page) The Central Office of Standards of the Ministry of Economy Staff Consumer Cooperatives Printed Line General Manager

址 地 3 第 至 IX 第 之 址 地及 Μ ) 傳 Β 擇 A 選 X 組, 機 B 理 A 處 Y 央, 中 B 述 A 前 I 自 CAddress 3 and IX address and M) pass B select A select X group, machine B manages Y at A, middle B said A before I from C

線’ 總 5 址ί 地器 2 儲 第存 及 1 } 第 Β 之 Α 取 I存 C 址 線地 線之 址組 地機 1 理 第處 述央 前中 於由 接, 連 B A Y 及Line ’s total 5 sites, ground devices, 2 storages, 1 storage, 1}, Β, Α, I storage, C storage, C, line, ground, address group, ground machine, 1 machine, and 1st place.

線 < 總器 址儲 地存 3 2 第第 及之 } 取 B 存 A 址 I 地 C 之 線組 總機 址理 地處 1 央 第中 述由 前, 於} 接 B I- ί 連 A X 4 及 本紙張尺度通用中國國家標芈(CNS > Α4規格(210Χ297公釐)-5 - ^ 3 : s A7 B7 經濟部中央樣準局貝工消費合作杜印装 五、 發明説明 (3 ' 1 I 連 接 於 1 刖 述 第 1 及 第 2 存 儲 器 及 刖 述 中 央 處 理 機組傳 1 1 遞 數據 之 第 1 數據 總 線 ( I D B ) > 及 1 1 » 連 接 於 刖 述 第 1 存 儲 器 傳 遞 數 據 之 第 2 數 據 總 線 ( 1 I 請 [ 1 Y D B ) t 及 先 閲 ί f * 刖 讀 l 連 接 於 述 第 2 存 儲 器 傳 遞 數 據 之 第 3 數 據 總 線 C 背 1 j 之 ! Y D B ) 1 及 注 音 1 前 事 1 連 接 於 述 第 1 地 址 總 線 及 第 1 數 據 總 線 之 外 部 接 □ 項 再 ! 填 1 電 路 ( 1 2 ) * 及 寫 本 裝 1 連 接 於 前 述 第 1 至 jiste 第 3 之 數 據 總 線 t 同 於 中 央 處 理 機 頁 1 1 組 動 作 之 數 字 信 號 處 理 機 組 ( 3 ) 及 1 1 白 中 央 處 理 機 組 將 控 制 刖 述 數 字 信 號 處 理 機 組 之 動 作 1 1 之 D S P 控 制 信 跪 ( 2 0 ) 傳 遞 於 數 字 信 號 處 理 機組 之 控 訂 1 制 信 號 會 於 1 基 片 予 以 半 導 體 集 成 電 路 化 而 成 〇 1 I 依 上 述 方 法 內藏 存 儲 器 係 考 慮 數 字 信 號 處 理 機 ( 3 1 1 I ) 之 積 和 運 算 2 面 於 第 1 存 儲 器 ( 5 7 ) 及 第 2 存 儲 器 1 1 '( 4 6 ) 由 第 3 總 線 ( X A B X D B ) 及 第 2 總 線 Ί ( Y A B Y D B ) 分 別 可 並 聯 存 取 0 因 此 C P U 心 2 ! 1 可 白 內 藏 存 儲 器 同 時 將 2 個 數 據 轉 .ΓΊΓ 送 於 數 字 信 號 處 理 機 組 1 信 號 0 又 1 第 3 之 總 線 ( X A B 9 X D B ) 及 第 2 總 線 ( 1 I Y A B • Y D B ) 與外部 接 □ 之 第 1 總 線 ( I A B 1 Ί I I D B ) — 同 個 別 化 » 故 中 央 處 理 機 組 係 平 行 於 第 2 存 儲 ί 1 \ 器 ( 4 i 6 ) 及 第 1 存 儲 器 ( 5 > 7 ) 之 存 取 亦 可 外 部 存 1 1 儲 器 存 取 9 如 上 述 因 有 分 別 連 接 於 中 央 處 理 機 組 ( 2 ) 之 ! 1 第 1 至 第 3 之 種 地 址 總 線 ( I A B > X A B » Y A B ) 1 1 本紙張尺度適用中國國家標準(CNS) A4規格(2丨OX297公釐)-6 - A7 43 23 2 6 B7 五、發明説明(4 ) ^^1 - -- I - - - II - - - -1— . ^^1 - 1 - (請先閲讀背面之注意事項再填寫本頁) 及數據總線(IDB,XDB,YDB),故使用該三種 內部總線*即可以同一時間週期實施不同之存儲存取動作 。故亦容易對應程序或數據存在於外部存儲器之情形而可 實現運算處理之高速化。 爲了提高微電腦之使用性以R AM及R 0M分別構成 前述第1存儲器及第2存儲器即可》 爲了前述中央處理機組之積和運算等之反覆運算用之 地址形高速化,中央處理機組具備模數地址输出部( 2 0 0 )爲宜。此時,模數地址輸出部形成之地址以可選 擇輸出於前述第2或第3之址址總線爲佳》 前述數字信號處理機係含與第1至第3數據總線( 1 DB,YDB,XDB)個別接口之第1至第3數據緩 衝裝置(MDB I ,MDBY,MDBX)及經內部總線 可連接於各數據緩衝裝置之複數寄存裝置(3 0 5〜 經濟部中央標準局員工消费合作社印裝 3 0 8 ),及連接於前述內部總線之乘法器(304)及 算術邏輯運算器(302),及將前述DSP控制信號譯 碼以控制前述數據緩衝裝置,乘法器邏輯運算器,及寄存 裝置之動作之譯碼器(3 4 )而成》 著眼於所謂指令代碼時微電腦,即將中央處理機組( 2 ) 1及由前述中央處理機組存取控制之存儲器(4〜7 ),及在前述存儲器與中央處理機組之間傳遞數據同步於 中央處理機組動作之數字信號處理機組(3 )會於1基片 予以半導體集成電路化。可由該微電腦實行之指令系統, 含中央處理機組(2 )應實行之C P U指令,及由中央處 本紙浪尺度適用中國國家標準(CNS ) A4規格(210X 297公釐) 4 3 2 3 2 6 經濟部_央標隼局員工消费合作社印製 A7 B7_五、發明説明(5 ) 理機組負擔取數據用之地址運算等一部份處理’數字信號 處理機組(3)應實行之OSP指令* 前述中央處理機組係含經前述數據總線取出中央處理 機組用之1 6位固定長之C P U指令及數字信號處理機組 用之1 6位或3 2位長之D S P指令之指令記錄器(2 5 ),及依據前述指令記錄器取出之指令之一部份之複數位 ,識別C P U指令及D S P指令,隨識別結果形成前述數 字信號處理機組之動作控制用D S P控制信號(2 0 )及 中央處理機組之動作控制用C P U控制信號之譯碼器( 2 4 )而成 例如CPU指令係將指令代碼之最上位4位分配於^ 0000,~1 10,之範圍"DSP指令係將指令 代碼之最上位4位分配於>1 1 1 之範圍。更將指令 代碼之最上位6位分配於1 1 1 0C^及' 1 1 1 1 0 1"範圍之指令,係亦將DSP指令成爲1 6 位長之指令代碼。指令代碼之最上位6位爲a 1 1 1 1 1 之指令’係成爲3 2位長之指令代碼。在 指令代碼之最上位6位爲1 1 1 1 之範圍並未分 配指令,將其範圍做爲未使用領域’如上述,由於在對最 大3 2位之指令之代碼分配設如上述之規則,將各指令代 碼之一部份例如最上位側6位譯碼’即可以小邏輯規模之 譯碼器判定該指令寬爲cpu指令,16位長之DSP指 令,或3 2位長之D s p指令,而無需經常將3 2位全部 以一次譯碼· ]>! -- I — I HI . I .....- · 1 - I. 1-- - - - In .I \~~^ (請先閱讀背面之注意事項再填寫本頁) 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐)-8 - 43 '3 A7 B7 經濟部中央標準局員工消費合作杜印製 五、發明説明(6 ) 前述譯碼器係含:將命記錄器之上位6位譯碼,形成 前述C PU譯碼信號(2 4 3 )及DSP譯碼信號( 244)之第1譯碼電路(240),及在第1譯碼電路 識別3 2位長之D S P指令時輸出將指令記錄器之下位 1 6位編碼之信號。而在識別其以外之指令時•輸出意味 輸出無效之代碼之代碼更操電路( 2 4 2 ),而將前述 D S P譯碼信號及代碼變換電路之輸出做爲D S P控制信 號(2 0 ) * 著眼於D S P指令之指令格式時微電腦係含中央處理 機組(2) •及同步於前述中央處理機組動作之數字信號 處理機組(3 )及共同連接前述中央處理機組及前述數字 信號處理機組之內部總線(IDB),予以半導體集成電 路化而成之微電腦,其中 前述中央處理機組係具備•具有實施對該中央處理機 組規定數字信號處理機組間之數字轉送之第1代碼領域( 圖1 8所示之1 6位D S P指令之9位〜0位)之第1格 式指令,及具有與前述第1代碼領域同格式之第2代碼領 域,(圖20,圖21例示之32位DSP指令之A領域 )並對數字信號處理機組規定使用該第2代碼領域規定之 送數字之運算處理之第3代碼領域(圖2 0,圖2 1例示 之3 2位元D S P指令之B領域)之第2格式指令用之實 施控制裝置而成。 因此·實行控制裝置,在實施第1及第2格式之各指 令時可對第1之代碼領域及第2代碼領域採用具有共同譯 (請先閲讀背面之注意事項再填寫本頁) 本紙張尺度適用中國®家標準(CNS)A4规格(2[0Χ297公釐)_ g _ A7 4 3 2 3 2 6 五、發明説明( 碼邏輯之譯碼裝置,有益於微電腦之邏輯規模之縮小。 即述第1格式指令及第2格式指令,具有表示其爲第 1格式或第2格式用之第4領域(例如1 6位〇 S P指令 之1 5位〜1 〇位3 2位DSP指令之3 2位〜2 6位)Line & main site storage and storage 3 2nd and first} Take B and store A address I and C The line group switchboard physical location is located in the middle of the first place, and then connect to B I- ί AX 4 And this paper size is in accordance with the Chinese National Standard (CNS > A4 size (210 × 297 mm)-5-^ 3: s A7 B7. The Central Bureau of Standards, Ministry of Economic Affairs, Shellfish, Consumers, Cooperation, Printing, Printing, Printing 5.) Description of the invention (3 '1 I is connected to the first memory 1 and the second memory and the central processing unit transmits 1 1 the first data bus (IDB) > and 1 1 »connects to the second memory and transmits the second data Bus (1 I Please [1 YDB) t and read first f * read it l is connected to the third data bus of the second memory to transfer data C back 1 j of YDB) 1 and Zhuyin 1 antecedent 1 is connected to the description 1st address bus and 1st number The external connection of the bus □ item again! Fill in 1 circuit (1 2) * and write the book 1 Connect the data bus t connected to the aforementioned 1st to jiste 3rd digital signal processing unit with the same operation as the central processor page 1 1 set (3 ) And 1 1 The white central processing unit will control the operation of the digital signal processing unit 1 1 The DSP control signal (2 0) will be transmitted to the control unit of the digital signal processing unit 1 The signal will be sent to the semiconductor integrated circuit on 1 substrate 〇1 I The built-in memory according to the above method considers the product and operation of the digital signal processor (3 1 1 I). The two memories are stored in the first memory (5 7) and the second memory 1 1 ′ (4 6). The third bus (XABXDB) and the second bus Ί (YABYDB) can access 0 in parallel, so the CPU core 2! 1 can transfer 2 data at the same time with the built-in memory. ΓΊΓ is sent to the digital signal Processing unit 1 signal 0 and 1 The 3rd bus (XAB 9 XDB) and the 2nd bus (1 IYAB • YDB) are connected to the external 1st bus (IAB 1 Ί IIDB) — the same as the individual »so the central processing unit system Parallel to the access of the 2nd storage unit 1 (4 i 6) and the 1st storage unit (5 > 7), the external storage 1 1 storage unit can also be accessed 9 as mentioned above because it is separately connected to the central processing unit (2 ) Of! 1 1st to 3rd address bus (IAB > XAB »YAB) 1 1 This paper size applies to China National Standard (CNS) A4 specification (2 丨 OX297 mm) -6-A7 43 23 2 6 B7 V. Description of the Invention (4) ^^ 1--I---II----1—. ^^ 1-1-(Please read the precautions on the back before filling this page) and data bus (IDB , XDB, YDB), so using these three internal buses * can implement different memory access actions at the same time period. Therefore, it is easy to cope with the situation that the program or data exists in the external memory and speed up the arithmetic processing. In order to improve the usability of the microcomputer, R AM and R 0M may constitute the first memory and the second memory, respectively. "In order to speed up the address form for the repeated calculation of the product and operation of the central processing unit, the central processing unit is provided with a module. The number address output section (2 0 0) is suitable. At this time, the address formed by the modulo address output section is preferably output on the second or third address bus. The aforementioned digital signal processor includes the first to third data buses (1 DB, YDB, XDB) The first to third data buffering devices (MDB I, MDBY, MDBX) of individual interfaces and the multiple storage devices (3 05 ~ printed by the staff consumer cooperative of the Central Standards Bureau of the Ministry of Economy) 3 0 8), and a multiplier (304) and an arithmetic logic operator (302) connected to the aforementioned internal bus, and decode the aforementioned DSP control signal to control the aforementioned data buffering device, multiplier logic operator, and register The decoder (3 4) of the operation of the device is composed of a microcomputer focusing on the so-called instruction code, that is, the central processing unit (2) 1 and the memory (4 ~ 7) controlled by the aforementioned central processing unit, and in the aforementioned The digital signal processing unit (3) that transfers data between the memory and the central processing unit to synchronize with the operation of the central processing unit will be semiconductor integrated circuit on a substrate. The instruction system that can be implemented by the microcomputer, including the CPU instruction that the central processing unit (2) should implement, and the paper size of the central office that applies the Chinese National Standard (CNS) A4 specification (210X 297 mm) 4 3 2 3 2 6 Economy Department _ Printed by the Central Consumers 'Bureau Employee Consumer Cooperative A7 B7_ V. Description of the invention (5) Processing of address calculation and other part of the processing unit's burden to take data.' Digital signal processing unit (3) OSP instruction to be implemented * The central processing unit is an instruction recorder (2 5) containing a 16-bit fixed-length CPU instruction for the central processing unit and a 16-bit or 32-bit DSP instruction for the digital signal processing unit taken out via the aforementioned data bus. And according to the plural digits of a part of the instruction taken by the foregoing instruction recorder, the CPU instruction and the DSP instruction are identified, and the control signal of the DSP control signal (20) for the operation of the digital signal processing unit and the operation of the central processing unit are formed with the recognition result. The decoder (2 4) of the CPU control signal for control is formed, for example, the CPU instruction allocates the upper 4 bits of the instruction code to ^ 0000, ~ 1 10, and the range of "DSP instruction" refers to Most of the code partitioned upper 4 > range 111. The uppermost 6 digits of the instruction code are assigned to the 1 1 1 0C ^ and '1 1 1 1 0 1 " range of instructions. The DSP instructions are also 16-bit long instruction codes. The command with the highest 6 digits of the command code being a 1 1 1 1 1 is a command code with a length of 32 digits. There is no instruction assigned in the range of 1 1 1 1 in the top 6 digits of the instruction code, and the range is regarded as an unused area. As described above, since the code allocation for the instruction with a maximum of 32 digits is set as the above rule, Decoding a part of each instruction code, for example, the uppermost 6-bit decode ', that is, a decoder of a small logical scale can determine that the instruction width is a cpu instruction, a 16-bit DSP instruction, or a 32-bit D sp instruction. Without having to decode all 3 and 2 bits all at once ...] >!-I — I HI. I .....- · 1-I. 1-----In .I \ ~~ ^ (Please read the precautions on the back before filling out this page) This paper size is applicable to Chinese National Standard (CNS) A4 specification (210X297 mm) -8-43 '3 A7 B7 Staff Consumer Cooperation of the Central Standards Bureau of the Ministry of Economic Affairs 6. Description of the invention (6) The aforementioned decoder includes: a first decoding circuit that decodes the upper 6 bits of the recorder to form the aforementioned CPU decoding signal (2 4 3) and DSP decoding signal (244). (240), and when the first decoding circuit recognizes a 32-bit long DSP instruction, it outputs a signal that encodes the lower 16 bits of the instruction recorder. When identifying other instructions, output the code that means outputting invalid code to the circuit (2 4 2), and use the output of the aforementioned DSP decoding signal and code conversion circuit as the DSP control signal (2 0) * Focus on In the instruction format of the DSP instruction, the microcomputer includes a central processing unit (2) and a digital signal processing unit (3) synchronized with the operations of the aforementioned central processing unit, and an internal bus (connecting to the aforementioned central processing unit and the aforementioned digital signal processing unit) IDB), a microcomputer integrated with semiconductor integrated circuits, in which the aforementioned central processing unit is equipped with the first code field that implements digital transfers between digital signal processing units that specify the central processing unit (Figure 1 6-bit DSP instructions (9 to 0 bits) of the first format instruction, and the second code area with the same format as the aforementioned first code area, (Figure A, Area A of the 32-bit DSP instruction illustrated in Figure 21) and For the digital signal processing unit, use the third code area specified in the second code area for the digital processing operation (Figure 20, Figure 21, exemplified by 32 bits D) SP area (B area)) The second format instruction is implemented by the control device. Therefore, the implementation of the control device, when implementing the instructions of the first and second format, can have a common translation of the first code area and the second code area (please read the precautions on the back before filling this page) Applicable to China® Home Standard (CNS) A4 specification (2 [0 × 297 mm) _ g _ A7 4 3 2 3 2 6 V. Description of the invention (The decoding device of code logic is beneficial to the reduction of the logic scale of microcomputers. The first format instruction and the second format instruction have a fourth field indicating that they are in the first format or the second format (for example, 16-bit 0 SP instructions, 15--10 bit 3, 2-bit DSP instructions 3 2 Bit ~ 2 6 bit)

Q 前述實施控制裝置,係含共用於前述第1格式指令及 第2格式指令之指令寄存器(25),及 將含於前述指令寄存器取出之指令之前述第1代碼領 域及第4代碼領域或第2代碼領域及第4代碼領域譯碼之 譯碼裝置(240),及 依其譯碼結果實地址運算實施前述數據轉送控制之實 施裝置而成· 前述指令,寄存器,具有共用保持前述第1代碼領域 及第4代碼領域或第2代碼領域及第4代碼領域之上位領 域(U I R)及利用於保持前述第3代碼領域之下位領域 (L I R),而前述譯碼裝置係依據前述第4領域之譯碼 結果,輸出表示前述指令寄存器保持第2格式指令之控制 信號(248),依據其控制信號,自前述下位領域向前 述數字信號處理機組供給第3代碼領域之代碼數據之裝置 242,242A,242B。 〔實施例〕 圖1表示本發明之一實施例有關之微電腦1全部方塊 圖。同圖所示之微電腦係以半導體集成電路製造技術形成 本紙張尺度適用t國國家標準(CNS)A4規格(210X297公釐)-1〇 - (請先閲請背面之注意事項再填寫本頁〕 裝. 訂 經濟部中央標準扃負工消費合作社印掣 432326 A7 B7 經濟部中央標率局負工消費合作社印装 五、發明説明(8 ) 如單結晶矽之一個半導體基板。微電腦1係由中央處理機 組之CPU芯2 (CPU Co r e) 2,數字信號處理 機組之 DSP 引擎(DSP Engine) 3 > X -R0M4,Y — R0M5 -X — RAM6,Y — RAM7 ,分配控制器(Interrupt Controller) 8,總線控制器 (Bus state conttroller」)9 ,內藏周邊電路( Peripheral circnit) 1 0,1 1 ,外部存儲接口( External Memory Interface) 1 2 * 時鐘脈衝生成器( 〇?0)13構成。前述又一尺〇乂4,¥ —尺〇\15係 存儲指令或常數數據等用之讀出專用或可以電換寫之閱讀 儲存器,X — RAM6 ,Y-RAM7係做爲數據之一時 存儲或C P U芯2及D S P引擎3之作業領域等利用之捷 進存儲器。前述X — R0M4及X — RAM6總稱爲內部 指令/數據用之父存_儲器(Internal Instrnecution/ Data X Mem)而將Y-R0M5及Y-RAM7總稱爲內 部指令/數據用之Y存儲器(Internal丨nstrnction/ Data Y Mem) ° 本實施例之微電腦1其總線構成具備:結合於外部存 儲接α12之內部地址總線IAB及未結合於內部數據總 線I DB,外部存儲接口 1 2之內部地址總線ΧΑΒ及未 結合於內部數據總線XD Β,外部存儲接口 1 2之內部地 址總線ΥΑΒ及內部數據總線YDB,而內藏周邊電路 1 ◦ ’ 1 1用之周邊地址總線ΡΑΒ及周邊數據總線 P D Β。又,控制總線係省略其圖示係分別對應成對之地 ^nm i I - - - - ·: i - - -- -- - - n -- 一eJ (請先閲讀背面之注意事項再填寫本頁) 本紙張尺度適用中國國家標準(CNS) A4規格T 210X 297公釐)_ 11 經濟部中央橾準局員工消費合作社印製 43 23 2 6 a? ___B7五、發明説明(9 ) 址總線及數據總線設置。 CPU芯2連接經過外部存儲接口12可連接於基片 之數據總線I DB,自分控制器8供給分配信號8 0。 C P U芯2將控制D S P引擎3用之控制信號2 0供給 DSP引擎3。CPU芯2更將地址信號輸出於經外部存 儲接口 1 2可連接於基片外部之地址總線I A B及未連接 於外部存儲接口 1 2之地址總線XAB,YAB。CPU 芯2係將時鐘脈衝生成器(CPG) 13輸出之非重叠雙 相之時鐘信號Ci ockl ,Cl ock2爲動作基準時 鐘信號動作。關於CPU芯2容後詳述,惟圖1之CPU 芯2,圖示代表性之寄存器堆2 1,算術邏輯運算器( ALU) 22,地址加算器(Add-ALU) 23譯碼 器24,指令寄存器(JR) 25。寄存器堆21係任意 利用爲地址寄存器或數據寄存器,又含程序計數器,以及 控制寄存器。譯碼器2 4係將指令寄存器2 5所取指令譯 碼形成內部控制信號(圖1中省略其圖示)及控制信號 20。指令寄存器(IR) 25 *分別由16位之上位側 領域(ϋ I R)及下位側領域(L I R)而成。詳情容後 述,惟下位側領域(L I R)之值可選擇移位於上位側領 域(UIR)。又省略控制中斷等例外發生時之指令實施 順序,或以硬體控制對例外發生之內部狀態之退避復歸用 之順序控制電路之圖示。 DSP引擎3係連接於前述數據總線I DB,XDB ,YDB,將時鐘信號Cl ockl ,C 1 ock2爲動 本紙張尺度適用中國囤家標準(CNS ) A4規格(210X297公着) ~ -- (請先聞讀背面之注意事項再填寫本頁)Q The aforementioned implementation control device includes an instruction register (25) for the first format instruction and the second format instruction, and the first code area and the fourth code area or the first code area for the instruction contained in the aforementioned instruction register. The decoding device (240) for decoding in the 2nd code area and the 4th code area, and the implementation device for implementing the aforementioned data transfer control based on the real address operation of the decoding result. The aforementioned instructions, registers, and the first code are held in common. Field and 4th code field or 2nd code field and 4th code field upper field (UIR) and used to maintain the 3rd code field lower field (LIR), and the decoding device is based on the 4th field. As a result of the decoding, a control signal (248) indicating that the aforementioned instruction register holds the second format instruction, and based on the control signal, means 242, 242A for supplying the code data of the third code domain from the lower-level domain to the digital signal processing unit, 242B. [Embodiment] Fig. 1 shows all block diagrams of a microcomputer 1 according to an embodiment of the present invention. The microcomputer shown in the figure is formed by semiconductor integrated circuit manufacturing technology. This paper is applicable to the national standard (CNS) A4 specification (210X297 mm) -10- (please read the precautions on the back before filling this page) Install. Set the central standard of the Ministry of Economic Affairs and the printout of the Consumer Cooperative Cooperative 432326 A7 B7 Printout of the Consumers' Cooperative Work of the Central Standards Bureau of the Ministry of Economic Affairs. 5. Description of the invention (8) A semiconductor substrate such as monocrystalline silicon. CPU core 2 (CPU Co re) 2 of the processing unit, DSP Engine 3 of the digital signal processing unit > X -R0M4, Y — R0M5 -X — RAM6, Y — RAM7, Interrupt Controller 8. Bus controller (Bus state conttroller) 9. Built-in peripheral circuit (Peripheral circnit) 1 0, 1 1 and external memory interface (External Memory Interface) 1 2 * Clock pulse generator (〇? 0) 13. The aforementioned another ruler 〇4, ¥-ruler 〇 \ 15 is a reading memory dedicated for reading instructions or constant data, or can be exchanged and rewritten, X — RAM6 and Y-RAM7 are stored as one of the data Or C Agile memory used in PU core 2 and DSP engine 3's operating fields, etc. The aforementioned X—R0M4 and X—RAM6 are collectively referred to as the internal instruction / data parent memory_memory (Internal Instrnecution / Data X Mem) and the Y- R0M5 and Y-RAM7 are collectively referred to as internal memory for internal instructions / data (Internal 丨 nstrnction / Data Y Mem) ° The microcomputer 1 of this embodiment has a bus structure including: an internal address bus IAB combined with external storage connected to α12 and unbound On the internal data bus I DB, the internal address bus XΑΒ of the external memory interface 12 and the internal address bus XD Β, external memory interface 12 and the internal data bus YDB of the external memory interface 12, and peripheral circuits 1 are built in. '1 1 Peripheral address bus PAB and peripheral data bus PD Β. The control bus is omitted and its illustration corresponds to a pair of places ^ nm i I----·: i----- -n-One eJ (Please read the notes on the back before filling this page) This paper size applies to Chinese National Standard (CNS) A4 size T 210X 297 mm) _ 11 Printed by the Central Consumers Bureau of the Ministry of Economic Affairs, Consumer Cooperatives 43 23 2 6 a? ___B7 V. Description of the invention (9) Address bus and data bus settings. The CPU core 2 is connected to the data bus I DB of the substrate via the external storage interface 12, and the sub-controller 8 supplies a distribution signal 80. The CPU core 2 supplies the DSP engine 3 with a control signal 20 for controlling the DSP engine 3. The CPU core 2 further outputs the address signals to the address buses I A B which can be connected to the outside of the substrate through the external memory interface 1 and the address buses XAB and YAB which are not connected to the external memory interface 1 2. CPU core 2 is a non-overlapping two-phase clock signal Ci ockl output by the clock pulse generator (CPG) 13 and Cl ock2 is the reference clock signal action. The CPU core 2 will be described in detail later, except that the CPU core 2 in FIG. 1 shows a representative register file 21 1, an arithmetic logic operator (ALU) 22, an address adder (Add-ALU) 23 decoder 24, Instruction Register (JR) 25. The register file 21 is arbitrarily used as an address register or a data register, and includes a program counter and a control register. The decoder 2 4 decodes the instruction fetched by the instruction register 25 to form an internal control signal (not shown in FIG. 1) and a control signal 20. Instruction register (IR) 25 * The 16-bit upper-side area (ϋ I R) and the lower-side area (L I R). Details will be described later, but the value of the lower-side area (L I R) can be optionally shifted to the upper-side area (UIR). It also omits the execution order of instructions when an exception occurs, such as controlling interrupts, or the diagram of a sequence control circuit that uses hardware to control the retraction and return of the internal state of the exception. The DSP engine 3 is connected to the aforementioned data buses I DB, XDB, YDB, and the clock signals Cl ockl and C 1 ock2 are used as the standard. The paper size is applicable to the Chinese storehouse standard (CNS) A4 specification (210X297) ~-(Please (Read the notes on the back before filling out this page)

d3222S Α7 經濟部中央樣準局負工消費合作社印装 Β7五、發明説明(10 ) 作基準時鐘信號動作。關於D S P引擎3容後詳述惟圖1 之DSP引擎3,圖示代表性之數據寄存器堆3 1 ,算術 邏輯運算器及移位器(A L U/Shifter) 3 2,乘算器 (MAC) 3 3,及譯碼器34。數據寄存器堆3 1係利 用於積和運算等"譯碼器3 4將C P U芯2供給之控制信 號2 0譯碼,形成DSP引擎3之內部控制信號(圖1中 省略其圖示)。 X — ROM4及X — RAM6係連接於地址總線 I AB,XAB 與數據總線 I DB,XDB。Y-ROM 5及Y — RAM7係連接於地址總線ΙΑΒ,YAB與數 據總線IDB,YDB。內藏存儲器係考慮DSP引擎3 之積和運算,2面化於X存儲器4,6與Y存儲器5,7 ,可由內部總線XAB,XDB與YAB,YDB分別以 並聯存取。更因內部總線XAB,XDB與YAB · YDB與在外部接口之線線IAB,IDB,均予個別化 *故與X存儲器4,6與Y存儲器5 · 7之存取平行亦可 外部存儲之存取。X存儲器4,6及Y存儲器5,7做爲 D S P引擎3之積和運算用之數據時記億領域,常數數據 之記憶領域等利用。又,X — RAM,Y — RAM當亦可 做爲C P U芯2之數據時記憶領域或工作領域* 前述中斷控制器8,輸入內藏周邊電路1 0 1 1 1等 之中斷要求信號(Interrupts) 8 1 ^依對各種中斷要求 之優先順位或對中斷要求之遮蔽用情報調受理中斷要求, 將隨受理之中斷要求之中斷向量(Interrupt Vector) 本紙張尺度適ϋ國國家標準(CNS > A4規格(210X 297公釐)_ Ί _ (請先閲讀背面之注意事項再填寫本頁) 4 〇 c ν) ,;ι Ο Β7 經濟部"央標準局角工消費合作杜印製 五、 發明説明 (] 11 ) 1 I 8 2 輸出 於 地 ‘址 總 線 I A B, 更 將中 斷 信 號 8 0 輸出 於 1 1 C Ρ U芯 2 〇 1 總線狀 態 控 制 器 9 係連接 於 地址 總 線 I A Β • Ρ A B /«-Ν 1 1 請 I 卜 «rh-t 興 數 據總 線 I D Β 1 Ρ D B, 控制連 接 於 地 址 總 線Ρ A Β 先 閲 1 I 讀 1 及 數 據總 線 之 內 藏 周 邊 電路1 0 ,1 1 與 C P U 芯2 之接 背 f 之 1 □ 控 制。 . 注 意 1 外部 存 儲 接 □ 1 2 係連接 於 地址 總 線 I A Β 與數 據總 項 再 1 填 1 線 I D B t 連 接 微 電 腦 1之基 片 之外 部 之 省 略 圖 示之 地址 寫 A 裝 頁 [ 總 線 與數 據 總 線 f 實 施 與外部 之 接口 控 制 Q 1 圖2 表 示 微 電 腦 1 之地址 標 誌之 一 例 〇 本 實 施例 之微 1 1 電 腦 1係 管 理 以 3 2 位 規定之 地 址空 間 〇 前述 地 址總線 1 1 I A B之 位 幅 爲 3 2 位 。在其 地 址空 間 中 存 在 例外 處理 訂 i 向 量 領域 X 一 R 0 Μ 空間( 分 配於 X — R 0 Μ 4之 地址 1 I 空 間 ), X 一 R A Μ 空 間(分 配 X - R A Μ 7 地 址空 間) 1 1 I T — R 0 Μ 空 間 ( 分 配 於Y - R 0 Μ 5 之 地 址 空 間) Υ - 1 ] R A Μ空 間 ( 分 配 於 Υ -R A Μ 7之 地 址 空 間 ) ,內 藏周 1 邊 電 路分 配 空 間 C 內 藏 周邊電 路 10 1 1 分 配 之地 址空 1 I 間 ) 等。 1 cf.l 圖 2 之 例 之 分 配情形 各 爲X — R 0 Μ 4 係2 4 Κ 1 B ! X - R A Μ 6 係 4 Κ B, Υ 一 R 0 Μ 5 係 2 4 Κ Β - 1 1 Y — R A Μ 7 係 4 Κ Β 〇 I 依圖 2 ♦ 1 β 進 數 表中在 Η ^ 0 0 0 0 0 0 0 0 1 1 I Η 0 0 0 0 0 3 F F 之空間 之 2 5 6 Β 領 域 分 配例 外處 1 1 理 向 量領 域 〇 在 Η - 0 0 0 0 0 4 0 0 i 1 Η j» 0 1 F F F F F F 分配可 使 用之 通 常 空 間 0 通常 空間 1 1 本紙張尺度適用中國國家標车(CNS ) Α4规格(210X 297公釐)_ 14 經濟部中央標準局具工消費合作社印裝 五、發明説明(l2 ) 係做爲可連接微電腦1外部之存儲領域。在 H'02000000 〜H/〇2005FFF,分配 X —ROM 空間。在 Η — 02006000 〜 H< 02006FFF ,分配 X — RAM 空間. Η<02007000〜H>02007FFF成爲X— R A Μ — Mirror空間,存取此處時實際上即存取 Η·*〇200600 0 〜H — 02006FFF 之 X-RAM空間。02008000〜 H,0200FFFF 成爲 X — RAM,RAM — Mirror空間,存取此處,實際上即存取 H-02000000 〜H>02007FFFF 之 X-RAM— ROM空間及X — RAM空間, ^1一〇2010000〜9>2015尸??分配丫 — ROM空間》在ΗΌ2016000〜 Η 一 020 1 6FFF,分配 Y — RAM空間。 Η一0201700〜H'02017FFF係成爲Y-RAM - Mirror空間,存取此處,實際上即存取 Η 一 02016000 〜H>02016FFF 之 Y-RAM空間。02018000 〜 H一0201FFFF係成爲Y-ROM,RAM— Mirror空間’存取此處實際上即存取 H/〇2010〇〇〇~H'〇2017FFF 之 Y-ROM空間及 Y — RAM空間》H — 02020000 〜 Η — 〇 7FFFFFFF分配通常空間》在 本紙張尺度適用中國國家標準(CNS)A4规格(210X297公釐)_ 15 - (請先閱讀背面之注意事項再填寫本頁) 432328 A7 B7 經濟部中央標隼局員工消费合作社印製 五、 發明説明 (13、> 1 1 Η 0 8 0 0 0 0 0 0 Η 1 F F F F F F F F > 分 配 1 I 約 領域 〇 該 予 約 領 域 9 在 用 戶 基 片 ( 實 基 片 ) 時 即 無法存 1 1 [ 取 7 評 價 基 片 ( 利 用 於 仿 效 等 之 評 價 用 基 片 ) 時 分 配 爲 1 I 請 \ A S E 空 間 ( 仿 效 用 之 控 制 空 間 ) 領域 0 在 先 聞 1 I 讀 1 Η 2 0 0 0 0 0 0 0 Η 2 7 F F F F F F F 分 配 背 面 之 1 1 通 常 空 間 9 在 Η 〆 2 8 0 0 0 0 0 0 •«V 意 婁 i Η F F F F F 0 F F 9 份 配 予 約 領 域 0 在 項 再 1 導 裝 | Η F F F F F F 0 0 Η F F F F F F F F 分 配 分 本 配 內 藏 周 邊 電 路 之 寄 存 器 地 址 值 之 內 藏 周 邊 電 路 分 配 領 域 Ά 1 1 ! 1 圖 3 表 示 詳 細 表 示 模 數 地 址 輸 出 部 之 C P U 芯 2 之方 1 1 1 訂 1 塊 1 «d.l 圈 a At 圖 3 中 以 虛 線 包 圍 之 部 份 爲 模數 地 址 输 出 部 2 0 0 0 模數 地 址 輸 出 部 2 0 0 係將 由 模 數 地 址 寄 存 器 ( 1 1 例 如 A 0 X ) 輸 出 之值 終 緩 衝 器 ( 例 如 Μ A B X ) 輸 出 於 1 I 地 址 總 線 ( 例 如 X A B ) 同 時 以 加 算 裝 置 ( 例如 A L U 1 1 严 ) 加 算 由 模 數 地 址 寄存 器 ( A 0 X ) 輸 出 之 值 實 施 再 存 儲 1 I 於 模 數 地 址 寄 存 器 ( A 0 X ) 之 地 址 更 新 输 出 動 作 等 之 電 1 1 路 方 塊 依 序 更 新 形 成 如 積 和 運 算 反 覆 運 算 用 之 數 據 存 取 1 I 地 址 〇 記 載 爲 隨 機 邏 輯 電 路 ( Random Log i c C i r cu it ) f 1 2 0 1 之 電 路 方 塊 係 含 圓 1 之 譯 碼 器 2 4 或 前 述 順 序 控 制 | 電 路 » 以 及 控 制 寄 存 器 或 狀 態 寄 存 器 等 之 電 路 方 塊 9 1 I raj 圖 3 中 1 C 1 > C 2 » D R » A 1 > B 1 A 2 1 1 1 Β 2 ) 0 W 分 別 表 示 C P U 芯 2 內 部 之 代 表 性 總 線 〇 C P I 1 U 芯 2 與 數 據 總 線 I D B 之 接 □ 係 在 前 述 指 令 寄 存 器 ( I 1 1 本紙張尺度適用中國國家標準(CNS ) Λ4規格(2丨OX 297公釐)_ ^ 經濟部中夬標準局員工消费合作社印袈 Μ r- 4 d - ' 4 3 23 2,6 Β7 _ 五、發明説明(14 ) R) 2 5及數據緩衝器(Data Buffer) 2 0 3實施》指 令寄存器(I R) 2 5所取之指令供給於隨機邏輯電路(d3222S Α7 Printed by the Consumer Procurement Cooperative of the Central Procurement Bureau of the Ministry of Economic Affairs Ⅴ7. Description of the invention (10) Acts as a reference clock signal. The DSP engine 3 will be described in detail later, but the DSP engine 3 shown in FIG. 1 shows a representative data register file 3 1, an arithmetic logic operator and a shifter (ALU / Shifter) 3 2, and a multiplier (MAC) 3 3, and the decoder 34. The data register file 3 1 is used for product and operation calculations. "The decoder 3 4 decodes the control signal 20 provided by the CPU core 2 to form the internal control signal of the DSP engine 3 (the illustration is omitted in Fig. 1). X — ROM4 and X — RAM6 are connected to the address buses I AB and XAB and the data buses I DB and XDB. Y-ROM 5 and Y-RAM 7 are connected to the address buses IAB, YAB and data buses IDB, YDB. The built-in memory considers the product and operation of the DSP engine 3. The two sides are integrated into the X memory 4, 6 and Y memory 5, 7 and can be accessed in parallel by the internal buses XAB, XDB and YAB, YDB, respectively. Furthermore, the internal buses XAB, XDB and YAB · YDB and the external lines IAB and IDB are all individualized. * Parallel to the access of X memory 4, 6 and Y memory 5 · 7, external memory can also be stored. take. The X memory 4, 6 and the Y memory 5, 7 are used as data for the product and operation of the D S P engine 3, and are used in the field of memory, constant data, and the like. In addition, X — RAM, Y — RAM can also be used as the memory area or work area when the data of CPU core 2 is used. * The aforementioned interrupt controller 8 is used to input the interrupt request signals (Interrupts) of the built-in peripheral circuits 1 0 1 1 1 etc. 8 1 ^ Accept the interrupt request according to the priority order of various interrupt requests or the masking of the interrupt request. The interrupt request will be accepted according to the interrupt vector of the accepted interrupt request. This paper is in accordance with the national standard (CNS > A4). Specifications (210X 297mm) _ Ί _ (Please read the notes on the back before filling out this page) 4 〇c ν),; ι 〇 Β7 Ministry of Economic Affairs " Central Standards Bureau, Consumer and Industrial Cooperation, Du Printing 5. Inventions Explanation (] 11) 1 I 8 2 is output on the address bus IAB, and the interrupt signal 8 0 is output on 1 1 C Ρ U core 2 〇1 The bus status controller 9 is connected to the address bus IA Β • PB AB / «-Ν 1 1 Please I« rh-t Data bus ID Β 1 Ρ DB, control and connection to the address bus PB A Β Read 1 I Read 1 and data total Built-in peripheral circuit 1 0, 1 1 and C P U core 2 back connection f 1 □ control. . Note 1 External memory connection □ 1 2 is connected to the address bus IA Β and the total data and then 1 fill 1 line IDB t connected to the microcomputer 1 outside the substrate, the address is omitted (not shown) write A [page and bus] f Implementation of external interface control Q 1 Figure 2 shows an example of the address mark of microcomputer 1. The micro 1 1 computer 1 of this embodiment manages the address space specified by 32 bits. The bit width of the aforementioned address bus 1 1 IAB is 3 2 digits. There are exceptions in its address space. The vector field X_R 0 Μ space (address 1 I space allocated at X — R 0 Μ 4), X_RA Μ space (allocation X-RA Μ 7 address space) 1 1 IT — R 0 Μ space (address space allocated to Y-R 0 Μ 5) Υ-1] RA Μ space (address space allocated to Υ-RA Μ 7), the internal circuit allocation space C of 1 side Hidden peripheral circuits 10 1 1 allocated address space 1 I) and so on. 1 cf.l The distribution of the example in Figure 2 is X — R 0 Μ 4 series 2 4 Κ 1 B! X-RA Μ 6 series 4 κ B, Υ 1 R 0 Μ 5 series 2 4 κ Β-1 1 Y — RA Μ 7 is 4 κ Β 〇I according to Figure 2 ♦ 1 β in the progression table is Η ^ 0 0 0 0 0 0 0 1 1 I Η 0 0 0 0 0 3 FF 2 5 6 Β Area allocation exception 1 1 Logic vector area 0 in Η-0 0 0 0 0 4 0 0 i 1 Η j »0 1 FFFFFF Normal space available for allocation 0 Normal space 1 1 This paper scale is applicable to China National Standard Vehicle (CNS ) Α4 size (210X 297 mm) _ 14 Printed by the Central Standards Bureau of the Ministry of Economic Affairs, printed by the Industrial Cooperative Cooperative V. Invention Description (l2) is used as a storage area that can be connected to the outside of the microcomputer 1. From H'02000000 to H / 〇2005FFF, X-ROM space is allocated. At Η — 02006000 to H < 02006FFF, X — RAM space is allocated. Η < 02007000 to H > 02007FFF becomes X — RA Μ — Mirror space. When accessing this, you actually access Η ** 200200 0 0 to H — 02006FFF X-RAM space. 02008000 ~ H, 0200FFFF becomes X — RAM, RAM — Mirror space, access here, actually access H-02000000 ~ H > 02007FFFF X-RAM-ROM space and X-RAM space, ^ 1-1002010000 ~ 9 > 2015 corpse? ? Allocate y — ROM space ”in ΗΌ2016000 ~ Η a 020 1 6FFF, allocate Y — RAM space. ΗOne 0201700 ~ H'02017FFF is the Y-RAM-Mirror space. When you access it, you actually access it. ΗOne 02016000 ~ H> 02016FFF Y-RAM space. 02018000 ~ H-0201FFFF becomes Y-ROM, RAM-Mirror space 'access here is actually access to H / 〇2010〇〇〇 ~ H'〇2017FFF Y-ROM space and Y-RAM space "H- 02020000 ~ Η — 〇7FFFFFFF Allotment of general space ”Applies Chinese National Standard (CNS) A4 (210X297 mm) to this paper size_ 15-(Please read the notes on the back before filling this page) 432328 A7 B7 Central Printed by the Standards Bureau Consumer Cooperatives V. Description of the Invention (13, > 1 1 Η 0 8 0 0 0 0 0 0 Η 1 FFFFFFFF > Allocation 1 I Appropriate Area 0 The Promise Area 9 In the user base (real base 1) [Take 7 evaluation substrates (used for emulation, etc.) when assigning 1 I Please \ ASE space (control space for emulation) Field 0 in the news 1 I read 1 Η 2 0 0 0 0 0 0 0 Η 2 7 FFFFFFF Allocate 1 on the back 1 1 Normal space 9 in Η 8 2 8 0 0 0 0 0 0 • «V Yilou i Η FFFFF 0 FF 9 portions of the contract area 0 field and 1 guides | Η FFFFFF 0 0 Η FFFFFFFF allocation of the register address value of the built-in peripheral circuit with the built-in peripheral circuit allocation field Ά 1 1! 1 Figure 3 shows the details of the CPU core 2 of the modulo address output section. 1 1 1 Order 1 block 1 «dl circle a At Figure 3 The part enclosed by the dotted line in the figure is the modulo address output section 2 0 0 0 modulo address The output unit 2 0 0 outputs the value output from the modulo address register (1 1 such as A 0 X) to the 1 I address bus (such as XAB) and the final buffer (such as Μ ABX). ) Add the value output from the modulo address register (A 0 X) and store it again. 1 I update the address in the modulo address register (A 0 X) and output the electric power. The data access 1 I address used for the repeated operation of the product sum operation is recorded as a random logic circuit (Random Logic C ir cu it) f 1 2 0 1 The circuit block is a decoder 2 4 containing the circle 1 or the foregoing Sequence control | Circuits »Circuit blocks such as control registers or status registers 9 1 I raj 1 C 1 > C 2» DR »A 1 > B 1 A 2 1 1 1 Β 2) in 0 The representative bus inside CPU core 2 〇CPI 1 The connection between U core 2 and data bus IDB is in the aforementioned instruction register (I 1 1 This paper size applies to China National Standard (CNS) Λ4 specification (2 丨 OX 297 mm) _ ^ Indian Consumer Standards Cooperative Standards Bureau of the China Standards Bureau of the Ministry of Economic Affairs r- 4 d-'4 3 23 2,6 Β7 _ V. Description of the invention (14) R) 2 5 and Data Buffer 2 0 3 Implementation "The instruction fetched by the instruction register (IR) 2 5 is supplied to the random logic circuit (

Random Logic Cibcuit) 2 0 1 之目U 述譯碼器 2 4等。C P U芯2與地址總線I AB之接口係在程序計數器(P C )2 0 4及地址緩衝器(Address Buffer) 2 0 5實施。 C P U芯2與地址總線XAB之接口係在存儲地址緩衝器 (从厶8父)2 0 6實施,〇卩1;芯2與地址總線丫八8 之接口係在存儲地址緩衝器(MABY) 2 0 7實施。地 址情報輸入地址緩衝器2 0 5之徑路,可自總數C 1, A 1 ,A 2中選擇,而地址情報輸入存儲地址緩衝器 206,207之徑路,可自總線Cl ’ C2 ’A1, A2中選擇。算術運算器(AU) 208利用於程序計數 器204值之增加》209係通用寄存器(Reg) 2 1 0係利用地址之加下標修飾之變址寄存器(I X), 2 11係同樣利用於加下標修飾之變址寄存器(Iy), 2 1 2係地址運算專用之加算器(PAU) ,21 3係算 術邏輯運算器(ALU) 〇 控制位MXY係指定對地址總線XA B或地址總線 YAB之任一地址實施模數運算,以邏輯值'1〃指定地 址總線AB *以邏輯值指定地址總線YAB。控制 位DM指示實施模數運算否,以邏輯值^ 1 _指示實施模 數運算,以邏輯值”0"指示不實施模數運算。模數開始 地址寄存器(MS ) 2 1 4存儲模數運算開始地址,模終 了地址寄存器(ME) 2 1 5存儲模數運算終了地址· 本紙張尺度適用中國國家標準(CNS ) A4规格(210X 297公釐)~ ~~ ---.-------^------ΐτ------一 I (請先閲讀背面之注意事項再填寫本頁) A7 B7 經濟部中央標準局員工消費合作社印裝 五、 發明説明 (15 ) 1 | 模 數 地 址 寄 存 器 ( A 0 X » A 1 X ) 2 1 6 係 存 儲 現 1 [ 在 之 模 數 地 址 之 電 地 址 寄 存 器 2 1 7 係 比 較 模 數 終 了 地 1 址 寄 存 器 ( Μ Ε ) 2 1 5 之 值 與 模 數 地 址 寄 存 器 ( A 0 X 1 I 諳 1 > A 1 X ) 2 1 6 之 值 之 比 較 器 ( C Μ P ) 2 1 8 係 對 比 先 閱 1 I 讀 1 較 器 2 1 7 ) 之 輸 出 控 制 出 Μ X Y * D Μ 之 3 輸 入 採 邏 輯 背 ώ 1 | 之 1 值 之 與 門 > 2 1 9 係 選 擇 總 線 C 1 之 值 與 模 數 開 始 地 址 寄 注 | I 存 器 ( Μ S ) 2 1 4 之 值 之 選 擇 器 上 述 各 件 係 利 用 於 關 事 項 再 1 1 填 1 於 地 址 總 線 X A B 之 模 數 運 算 0 選 擇 器 2 1 9 係 由 與 門 寫 本 Φ- I 2 1 8 之 邐 輯 值 1 輸 出 選 擇 寄 存 器 ( Μ S ) 2 1 4 之 頁 1 1 值 將 選 擇 之 值 給 予 模 數 地 址 寄 存 器 ( A 0 X A 1 X ) 1 1 2 1 6 ) 〇 模 數 地 址 寄 存 器 2 1 6 係 選 擇 利 用 A 0 X 或 ί 1 A 1 X 之 任 . 方 訂 1 模 數 地 址 寄 存 器 ( A 0 y A 1 y ) 2 2 6 係 存 儲 現 1 I 在 之 模 數 地 址 之 電 流地 址 寄 存 器 1 2 2 7 係 比 較 模 數 終 了 1 I 地 址 寄 存 器 ( Μ E ) 2 1 5 之值與模 數 地 址 寄 存 器 ( 1 1 f,A A 0 y A 1 y ) 2 1 6 之 值 之 比較 器 ( C Μ P ) 1 2 2 8 係 比 較 器 2 2 7 之 輸 出 «a 興 控 制 位 Μ X y 之 反 轉 位 與 1 i 擯 0 Μ 之 3 輸 入 採 邏 輯 積 之 與 門 2 2 9 係 選 擇 總 線 C 2 1 之 值 與 模 數 開 始 地 址 寄 存 器 ( Μ S ) 2 1 4 之 值 之 選 擇 w 1 I 上 述 各 件 係 利 用 於 關 地 址 總 線 Υ A B 之 模 數 運 算 9 選 擇 器 I 2 2 9 係 由 與 門 2 2 8 之 玀 JQB 辑 值 1 輸 出 選 擇 寄 存 器 ( 1 1 I Μ S ) 2 1 4 之 值 將 選 擇 之 值 給 予 模 數 地址 寄存 器 ( 1 1 I A 0 y A 1 y ) 2 2 6 模 數 地 址 寄 存 器 2 2 6 係 選 擇 1 1 利 用 A 0 y 或 A 1 y 之 任 何 一 方 9 1 1 本紙張尺度適用中國國家標準(CNS)A4規格(2Ϊ0Χ297公釐)_ 18 _ 432326 A7 B7 五、發明説明(16 ) 模數地址寄存器(A〇y,Aly) 226係存儲現 在之模數地址之電流地址寄存器2 2 7係比較模數終了地 址寄存器(ME) 2 15之值與模數地址寄存器(AOy ,Aly) 216之值之比較器(CMP) ,228係對 比較器2 2 7之输出與控制位MXY之反轉位與控制位 ΌΜ之3輸入採邏輯積之與門,2 2 9係選擇總線C 2之 值與模數開始地址寄存器(MS ) 2 1 4之值選擇器,上 述各件係利用於關於地址總線YA B之模數運算。選擇器 2 2 9係由與門2 2 8之邏辑值"^1'輸出選擇寄存器( M S ) 2 1 4之值,將選擇之值給予模數地址寄存器( A〇y,Aly) 226。模數地址寄存器226係選擇 利用AOy或Aly之任一方* 又,記載於隨機邏輯電路2 0 1之0 P Code係意指 指令寄存器2 5供給之指之飮代碼,CONST意指常數值。 茲說明C P U芯2之模數運算動作,例如使用模數地 址寄存器(A〇x) 2 1 6,在模數運算形成供給地址總 線XAB之地址情報之動作。 經濟部中央楳準局貝工消費合作社印裝 ! >1-- - - I— I u n* n i H ------- 丁 (請先閲讀背面之注^|^項再填寫本頁) 首先分別將模數運算開始地址寫進模數開始地址寄存 器(MS) 2 1 4,將模數運算終了地址寫進模數終了地 址寄存器(ME) 2 1 5。將開始模數運算地址值寫進模 數地址寄存器(AOx)。其次因對地址總線XAB之地 址實施模數運算,故對決定對XAB,YAB之任何一方 地址實施模數運算之控制位MXY寫進邏輯值*1〃 (對 地址總線YAB實施模數運算時,將邏輯值'0〃寫進控 本紙張尺度適用中國國家標準(CNS)A4規格( 210X297公釐)_ IQ _ 經 濟 部 中 標 準 局 員 工 消 合 作 杜 印 裝 4 3^ ^ ^" A7 B7 五、 發明説明 (17 ) 1 I 制 位 Μ X Υ ) 9 最 後 將 邏 輯 值 % 1 寫 進 判 定 實 施 模 數 運 1 I 算 否 之 控 制位 D Μ 0 1 i J 模 數 運 ΛύΓ 算 指 令 例 如 爲 Μ 0 V S ♦ W @ A X t D X 0 該 1 1 請 f 指 令 記 述 中 A X 爲 模 數 地 址 寄 存器 ( A 0 X ) 2 1 6 或 模 先 閲 1 數 地 址 寄 存 器 ( A 1 X ) 2 1 6 D X 係 對 應 D S P 引 擎 背 τδ 1 1 3 內 之 寄 存 器 〇 圖 3 未 圖 示 D X 9 實 施 上 述 模 數 運 算 指 令 注 意 事 1 時 j 由 模數 地 址 寄 存 器 ( A 0 X ) 2 1 6 讀 出 值 > 輸 入 存 項 再 1 1 儲 地 址 緩 衝 器 ( Μ A B X ) 2 0 6 及 算 術 Μ 輯 運 算 器 ( $ 窝 本 A L U ) 2 1 3 〇 輸 入 存 儲 地 址 緩 衝 器 ( Μ A B X ) 頁 ! I 2 0 6 之 值 照 舊 輸 出 地 址 總 線 X A B » 指 定 X R 0 Μ 4 或 I I X R A Μ 6 之 地 址 0 一 方 面 输 入 算 術 邏 輯 運 算 器 ( I | A L U ) 2 1 3 之 模 數 地 址 寄 存 器 ( A 0 X ) 2 1 6 之 值 訂 I 係 加 算 級 変 化 寄 存 器 ( I X ) 2 1 0 之 值 或 常 數 ( Const〕 I I I 實 施 與 變 址 寄 存 器 ( I X ) 2 1 0 之 加 算 時 爲 實 施 指 I I 令 Μ 0 V S W @ A X I X ) D X 等 時 加 算 常 時 係 I I 實 指 令 Μ 0 V S W @ A X D X 等 時 該 加 算 結 果 係 由 t' I 算 術 邏 輯 運 算 器 ( A L U ) 2 1 3 輸 出 〇. 由 算 術 邏 輯 運 算 I | 器 ( A L U ) 2 1 3 输 出 之 值 係 進 入 選 擇 器 2 1 9 〇 該 選 I t 擇 器 2 1 9 之 另 — 方 之 輸 出 , 係 存 儲 於 模 數 開 始 地 址 寄 存 I 器 ( Μ S ) 2 1 4 之 模 數 運 算 開 始 地 址 j 選 擇 器 2 1 9 之 輸 出 完 成 爲 算 術 邏 輯 運 算 器 ( A L U 1 1 ) 2 1 3 之 輸 出 » 或 模 數 開 始 地 址 寄 存 器 ( Μ S ) 2 1 4 1 1 之 值 9 決 定 如 下 〇 模 數 地 址 寄 存 器 ( A 0 X ) 2 1 6 之 值 1 I 與 模 數 終 了 地 址 寄 存 器 ( Μ Ε ) 2 1 5 之 值 » 係 經 常 由 比 1 i 本紙張尺度適用中國國家標隼{CNS)A4規格(2IOX297公慶)戀20 _ A7 B7 經濟部中央標準局員工消費合作杜印裝 五、 發明説明 (18 1 I 較 器 ( C Μ P ) 比 較 9 若 不 致即 輸 出 邏 輯 值 0 0 白 1 I 比 較 器 ( C Μ Ρ ) 2 1 7 输 出 之值 係 與 控 制 位 D Μ » ί I Μ X Y __ 同 在 irtn 興 門 2 1 8 採 邇 輯積 ( 此 例 9 因 D Μ , 1 i 請 1 Γ Μ X Y 均 邏 輯 值 1 1 故 比 較器 2 1 7 之 值 照 舊 白 與 門 先 閲 1 I 讀 I 2 1 8 輸 出 0 ) 輸 入 選 擇 器 2 19 0 選 擇 器 2 1 9 在 白 ftrt 興 背 1 1 .門 2 1 8 輸 入 之 值 爲 邏 輯 值 1 , 時 選 擇 模數 開 始 地 址 寄 注 意 事 1 存 器 ( Μ S ) 2 1 4 之 值 1 而 在邏 輯 值 % 0 Μ 值 選 擇 白 算 項 再 1 填 ϊ i 術 輯 運 算 器 ( A L U ) 2 1 3之 輸 出 值 0 % 本 裝 1 在 白 與 門 2 1 8 Λτλ. 輸 入 之 值 爲邏 辑 值 0 期 間 因 繼 頁 ν^<· 1 1 續 選 擇 算 術 邏 輯 ( A L U ) 2 13 之 輸 出 值 • 故 輸 出 地 址 1 t 總 線 X A Β 之 值 依 序 更 新 模 數終 了 地 址 寄 存 器 ( Μ Ε ) 1 1 2 1 5 之 值 與 模 數 地 址 緩 衝 器 C A 0 X ) 2 1 6 之 值 Ρ 致 訂 I 時 白 與 門 2 1 8 輸 入 選 擇 器 2 1 9 之 值 成 邏 輯 值 1 1 I j 選 擇 模數 開 始 地 址 寄 存 器 ( MS ) 2 1 4 之 值 因 此 , 1 1 I 模 數 地 址 寄存 器 ( A 0 X ) 2 16 係 由 模 數 開 始 地 址 寄 存 1 1 器 ( Μ S ) 2 1 4 之 值 初 期 化 a i 1 上 述 模 數 運 算 說 明 了 利 用 模數 地 址 寄 存 器 ( A 0 X ) 1 1 2 1 6 時 之 動 作 惟 亦 可 將 模 數指 令 Μ 0 V S * W @ A X ί » D X 之 A X 指 定 於 模 數 地 址 寄存 器 ( A 1 X ) 2 1 6 0 1 I 又 將 邏 輯 值 0 指 定 於 控 制 MX Y 即 可 對 地 址 總 線 I Υ A Β 模 數 運 算 » 此 時 1 必 須 將模 數 運 算 指 令 Μ 0 V S t 1 1 Ι W @ A X 1 D X 之 A X 變 更 爲指 定 指 數 地 址 寄 存 器 ( I 1 A 0 y ) 2 2 6 或 ( A 1 y ) 2 2 6 用 之 值 A y 〇 又 將 0 ! 1 指 定 於 控 制 位 D Μ > 亦 可 称 ΖΓΓ 止 模數 運 算 之 實 施 〇 1 1 用 通 度 尺 紙 本 準 標 家 國 囤 晛 釐 公 7 9 2 4 3 2 3 2 6 A7 B7 經濟部中央標隼局貝工消費合作社印製 五、 發明説明 (19 ) 1 [ 圚 4 表 示 D S P 引 擎 3 之 — 例 方 塊 圖 ) 記 載 爲 隨機 邏 1 1 輯 電 路 ( Ran c 01D Logic Cir CU lit) 3 0 1 之 電 路 方 塊131 1 ί I 係 含 圖 1 之 譯 碼 器3 4 及 控 制 電 路 ! 以 及 控 制 寄 存 器及 狀 1 ! 請 Γ 態 寄 存 器 等 之 電 路方 塊 9 其 他 D S P 引 擎 3 具 備 > 算術 邏 先 閱 1 1 讀 | 輯 運 算 器 ( A L U ) 3 0 2 * 移 位 器 ( S F T ) 3 0 3 > 背 面 1 1 乘 算 器 ( Μ A C )3 0 4 » 寄 存 器 ( R e S ) 3 0 5, 寄 注 意 本 [ 存 器 ( A 0 A 1 ) 3 0 6 9 寄 存 器 ( Y 0 Y 1 ) 項 再 1 1 3 0 7 寄 存 器 (X 0 > X 1 ) 3 0 8 存 儲 數 據 緩衝 器 寫 本 百 裝 I ( Μ D B I ) 3 0 9 存 儲數 據 緩 衝 器 ( Μ D B X ) 男 1 1 I 3 1 0 存 儲 數 據緩 衝 器 ( Μ D B Y ) 3 1 1 0 存 儲數 據 [ ! 緩 衝 器 ( Μ D B Y ) 3 1 1 係 連 接 數 據 總 線 Y D B 與總 線 1 1 D 2 0 存 儲 數 據 緩衝 器 ( Μ D B X ) 3 1 0 係 連 接 數據 /pB 訂 1 線 X D B 與 總 線 D 1 〇 存 儲數 據 緩 衝 器 ( Μ D B I ) 1 1 3 0 9 係 連 接 於 數據 總 線 I D B 與 總 線 C 1 D 1 ,A 1 i 1 Β 1 0 乘 算 器 (Μ A C ) 3 0 4 係 白 總 線 A 1 及 B 1 輸 1 1 1 产 入 數 據 將 其 所 對應 之乘 算 結 果 輸 出 於 總 線 C 1 及 D 1 〇 1 J 移 位 器 ( S F T )3 0 3 白 總 線 A 2 輸 入 數 據 將 移位 運 1 I 算 結 果 輸 出 於 總 線C 2 9 算 術 邏 輯 運 算 器 ( A L U ) 1 3 0 2 白 總 線 A 2及 B 2 输 入 數 據 , 將 運 具 結 果 輸 出於 總 1 1 線 C 2 1 圖 5 表 示 微 電腦 1 之 指 令 系 統 所 含 指 令 之 格 式 及指 令 1 1 代 碼 之 — 例 〇 微 電腦 1 支 持 C P U 指 令 及 D S P 指 令之 2 1 1 I 種 指 令 0 C P U 指令 全 部 及 D S P 指 令 之 一 部 分 » 係1 6 1 1 位 長 之 指 令 代 碼 .餘 D S Ρ 指 令 成 爲 3 2 位 長 之 指 令代 碼 1 1 本紙張尺度適用中國國家橾準(CNS)A4規格(2〖〇X297公釐)-22 - 經濟部中央樣準局員工消費合作杜印装 4 3 2 3 2 6 A7 _____ B7___五、發明説明(2〇 ) 。CPU指令,即無須使DSP引擎了動作,專由CPU 芯2實施之指令。D S P指令係將地址運算或操作數存取 等一部份處理負擔於CPU芯2,DSP引擎了實施之指 令。 CPU指令係將指令代碼之最上位4位分配於、 0 000"〜'1 1 10〃之範圍《DSP指令係將指令 代碼之最上位4位分配於'I 1 1 1#之範圍*更將指令 代碼之最上位6位分配於1 1 1 00'及t 1 1 1 1 0 1"範圍之指令,係亦將DS P指令成爲1 6 位長之指令代碼。指令代碼之最上位6位爲t 1 1 1 1 10"之指令,係成爲32位長之指令代碼。在 指令代碼之最上位6位爲1 1 1 1 1〃之範圔並未分 配指令,將其範圍做爲未使用領域未定義指令領域’將利 用此領域即可更擴張指令代碼。由該指令格式可知’將各 指令代碼之最上位側6位譯碼,即可以小邏輯規模之譯碼 器判定該指令寬爲CPU指令,16位長之DSP指令, 或3 2位長之D S P指令或未定義指令。 圖5之C P U指令格式中,η η η η係目的操作數之 指定領域dddd係位移之指令領域i i i i i i i i係 立即值之指定領域。又,ADD指令等之nnnn亦爲源 操作數之指定領域,將運算結果存儲於n n n n *又,依 圖3說明之前述模數運算指令,係對應圖5之指令 MOVS,W@R2,AO ’惟圖5之指令記述係操作數 指之記述形態與圖3說明之內容不同°此種形式上之不同 本紙張尺度適用中國國家樣準(CNS)A4規格公釐)一 _ ---:---^----參------<玎------- (請先閲讀背面之注意事項再填寫本頁)Random Logic Cibcuit) The purpose of 2 0 1 is to describe the decoder 2 4 and so on. The interface between C P U core 2 and the address bus I AB is implemented in a program counter (P C) 2 0 4 and an address buffer (Address Buffer) 2 0 5. The interface between the CPU core 2 and the address bus XAB is implemented in the memory address buffer (from the 8th parent) 2 0, 1; the interface between the core 2 and the address bus 38 is in the memory address buffer (MABY) 2 0 7 implementation. The address information is input to the path of the address buffer 2 0 5 and can be selected from the total number C 1, A 1, A 2, and the address information is input to the path of the address buffer 206 and 207, which can be selected from the bus Cl 'C2' A1 , A2 is selected. The arithmetic operator (AU) 208 is used to increase the value of the program counter 204. 209 is a general-purpose register (Reg). 2 1 0 is an index register (IX) modified by adding an address and a subscript. 2 11 is also used to add Index modified index register (Iy), 2 1 2 is a special adder (PAU) for address operation, 21 3 is an arithmetic logic operator (ALU) 〇 control bit MXY is designated to address bus XA B or address bus YAB Perform modulo operation on any address, specify address bus AB with logical value '1' * specify address bus YAB with logical value. The control bit DM indicates whether the modulo operation is performed or not, with a logical value ^ 1 _ indicates that the modulo operation is performed, and the logical value "0 " indicates that no modulo operation is performed. The modulo start address register (MS) 2 1 4 stores the modulo operation Start address, modulo end address register (ME) 2 1 5 Stores modulo operation end address. · This paper size applies Chinese National Standard (CNS) A4 specification (210X 297 mm) ~ ~~ ---.----- -^ ------ ΐτ ------ 一 I (Please read the notes on the back before filling this page) A7 B7 Printed by the Consumer Cooperatives of the Central Standards Bureau of the Ministry of Economic Affairs 5. Description of the invention (15) 1 | Modular Address Register (A 0 X »A 1 X) 2 1 6 is the current storage 1 [The electrical address register in the modulo address 2 1 7 is the modulo end address 1 address register (Μ Ε) 2 1 The value of 5 is compared with the modulo address register (A 0 X 1 I 谙 1 > A 1 X) 2 1 6 The value of the comparator (C MP) 2 1 8 is a comparison first read 1 I read 1 comparator 2 1 7) Output control Μ XY * D Μ 3 inputs are logically backed 1 | AND gate of 1 value > 2 1 9 Selects the value of the bus C 1 and the modulo start address Remarks | I Register (Μ S) 2 1 Selector of the value of 4 The above items are used for related matters and then 1 1 Fill in the modulo operation of the address bus XAB 0 Selector 2 1 9 is the value 1 output by the AND gate script Φ- I 2 1 8 Selection register (MS) 2 1 4 Page 1 1 Value Gives the selected value to the modulo address register (A 0 XA 1 X) 1 1 2 1 6) modulo address register 2 1 6 is selected to use A 0 X Or ί 1 A 1 X. Square 1 modulo address register (A 0 y A 1 y) 2 2 6 is the current address register that stores the modulo address of the current 1 I in 1 2 2 7 is the end of the comparison modulo 1 I address register (Μ E) 2 1 5 and modulo address register (1 1 f, AA 0 y A 1 y) 2 1 6 Comparator (C MP) 1 2 2 8 is the output of comparator 2 2 7 «a control bit MX X y reversal bit and 1 i 之 0 Μ 3 AND logic gate of the product 2 2 9 Selection of the value of the bus C 2 1 and the value of the modulo start address register (MS) 2 1 4 w 1 I The above components are used for the modulo operation of the address bus Υ AB 9 selector I 2 2 9 The value of the JQB series 1 output selection register (1 1 I M S) by the AND gate 2 2 8 gives the selected value to the modulo address register (1 1 IA 0 y A 1 y) 2 2 6 Modular address register 2 2 6 System selection 1 1 Use either A 0 y or A 1 y 9 1 1 This paper size applies to China National Standard (CNS) A4 (2Ϊ0 × 297 mm) _ 18 _ 432326 A7 B7 V. Description of the invention (16) modulo address register (A〇y, Aly) 226 is a current address register that stores the current modulo address 2 2 7 series compares the value of the modulo final address register (ME) 2 15 with the modulo Address register (AOy, Aly) 216 value of the comparator (CMP), 228 is the output of the comparator 2 2 7 and the control bit MXY inversion bit and the control bit Ό 3 of the logical input product AND gate, 2 2 9 is a selector for selecting the value of the bus C 2 and the value of the modulo start address register (MS) 2 1 4. The above items are used for the modulo operation of the address bus YA B. The selector 2 2 9 is a logical value of the AND gate 2 2 8 " ^ 1 'outputs the value of the selection register (MS) 2 1 4 and gives the selected value to the modulo address register (A〇y, Aly) 226 . The modulo address register 226 chooses to use either AOy or Aly *. Also, it is recorded in the random logic circuit 2 0 1 0 P Code means the code provided by the instruction register 25 and CONST means a constant value. The modulo operation of the CPU core 2 will be described below. For example, the modulo address register (A0x) 2 16 is used to perform the modulo operation to form the address information for the address bus XAB. Printed by the Shellfish Consumer Cooperative of the Central Bureau of Standards and Quarantine of the Ministry of Economic Affairs! ≫ 1----I— I un * ni H ------- Ding (Please read the notes on the back ^ | ^ before filling this page ) First write the modulo operation start address into the modulo start address register (MS) 2 1 4 and write the modulo operation end address into the modulo end address register (ME) 2 1 5 respectively. Write the starting modulo operation address value into the modulo address register (AOx). Second, because the modulo operation is performed on the address bus XAB, the control bit MXY that decides to perform modulo operation on any of the addresses of XAB and YAB is written with a logical value * 1〃 (When performing modulo operation on the address bus YAB, Write the logical value '0〃 into the paper. The paper size is applicable to the Chinese National Standard (CNS) A4 specification (210X297 mm) _ IQ _ Cooperating with the staff of the Bureau of Standards of the Ministry of Economic Affairs Du printed 4 3 ^ ^ ^ " A7 B7 5 、 Description of the invention (17) 1 I system M X Υ) 9 Finally, the logical value% 1 is written into the control bit for determining whether to perform modulo operation 1 I D Μ 0 1 i J modulo operation ΛύΓ The calculation instruction is, for example, Μ 0 VS ♦ W @ AX t DX 0 This 1 1 Please refer to the f instruction description. AX is the modulo address register (A 0 X) 2 1 6 or the modulo first read 1 digit address register (A 1 X) 2 1 6 DX is corresponding The registers in the DSP engine back τδ 1 1 3 〇 Figure 3 DX 9 is not shown At 1 hour, j is read from the modulo address register (A 0 X) 2 1 6 > input storage item and then 1 1 store the address buffer (Μ ABX) 2 0 6 and arithmetic M series arithmetic unit ($ 本 ALU ) 2 1 3 〇 Input memory address buffer (Μ ABX) page! The value of I 2 0 6 is still output address bus XAB »Specify the address 0 of XR 0 Μ 4 or IIXRA Μ 6 On the one hand, input the arithmetic logic unit (I | ALU) 2 1 3 modulo address register (A 0 X) 2 1 6 The value of I is the addition level register (IX) 2 1 0 value or constant (Const) III Implementation and index register (IX) 2 The addition of 1 0 is the implementation of the instruction II. M 0 VSW @ AXIX) DX Isochronous addition is always the II real instruction MU 0 VSW @ AXDX etc. The addition result is obtained by the t 'I arithmetic logic operator (ALU) 2 1 3 Output 〇. Arithmetic logic operation I | device (ALU) 2 1 3 The output value enters the selector 2 1 9 The output of this selector I t selector 2 1 9 is stored in the modulo start address register I (MS) 2 1 4 and the output of the modulo operation start j selector 2 1 9 is arithmetic. The output of the logic operator (ALU 1 1) 2 1 3 »or the modulo start address register (MS) 2 1 4 1 1 The value 9 is determined as follows. 0 The modulo address register (A 0 X) 2 1 6 value 1 The value of I and the modulo final address register (ΜΕ) 2 1 5 »is often more than 1 i This paper size applies to the Chinese national standard {CNS) A4 specification (2IOX297 public celebration) Love 20 _ A7 B7 Central Bureau of Standards, Ministry of Economic Affairs Du Yinzhuang, Employee Consumption Cooperation V. Invention Description (18 1 I Comparator (C MP) Comparison 9 If not, it will output logical value 0 0 White 1 I Comparator (C MP) 2 1 7 Output value system and control Bit D Μ »ί I Μ XY __ Same in irtn Xingmen 2 1 8 Collection of product (in this example 9 because D Μ, 1 i please 1 Γ Μ XY average logic value 1 1 Therefore, the value of comparator 2 1 7 is the same as the white AND gate first read 1 I read I 2 1 8 output 0) input selector 2 19 0 selector 2 1 9 in the white ftrt back 1 1. The input value of gate 2 1 8 is logical value 1. When the modulo start address is selected, the note 1 register (MS) 2 1 4 is the value 1 and the logical value% 0 Μ value is selected as the white calculation item and 1 is filled. i The output value of the arithmetic operation unit (ALU) 2 1 3 is 0%. This equipment 1 is at the white AND gate 2 1 8 Λτλ. The input value is a logical value 0. During the following period, ν ^ < · 1 1 Continue to select arithmetic Output value of logic (ALU) 2 13 • So output address 1 t The value of bus XA Β updates the modulo final address register (Μ Ε) 1 1 2 1 5 and the modulo address buffer CA 0 X) 2 The value of 1 6 is the white AND gate when ordering I 2 1 8 The value of the input selector 2 1 9 becomes a logical value 1 1 I j Select The value of the digital start address register (MS) 2 1 4 Therefore, the 1 1 I modulo address register (A 0 X) 2 16 is initialized by the value of the modulo start address 1 1 (MS) 2 1 4 1 The above modulo operation explained the operation when using the modulo address register (A 0 X) 1 1 2 1 6 However, the modulo instruction M 0 VS * W @ AX »AX of DX can be specified in the modulo address register (A 1 X) 2 1 6 0 1 I Specify the logic value 0 to control MX Y to address the address bus I Υ A Β Modular operation »At this time, 1 must execute the modulo operation instruction M 0 VS t 1 1 Ι W @ AX 1 AX AX is changed to the specified index address register (I 1 A 0 y) 2 2 6 or (A 1 y) 2 2 6 The value A y is used, and 0! 1 is assigned to the control bit D Μ & gt It can also be referred to as the implementation of the modulo calculation of ΓΓΓ 〇 1 1 Use a ruler on paper to mark the standard of the home country 7 centimeters 7 9 2 4 3 2 3 2 6 A7 B7 Printed by the cooperative V. Description of the invention (19) 1 [圚 4 represents the DSP engine 3 — example block diagram] recorded as a random logic 1 1 series circuit (Ran c 01D Logic Cir CU lit) 3 0 1 circuit block 131 1 ί I refers to the decoder 3 4 and control circuit in Figure 1! And the control register and state 1! Please refer to the circuit block of the state register, etc. 9 Other DSP engines 3 have > Read first for arithmetic logic 1 1 Read | ALU) 3 0 2 * Shifter (SFT) 3 0 3 > Back 1 1 Multiplier (Μ AC) 3 0 4 »Register (R e S) 3 0 5, please note this [Register (A 0 A 1) 3 0 6 9 register (Y 0 Y 1) item and then 1 1 3 0 7 register (X 0 > X 1) 3 0 8 store data buffer write one hundred pack I (Μ DBI) 3 0 9 store data Buffer (Μ DBX) Male 1 1 I 3 1 0 Store data buffer (Μ DBY) 3 1 1 0 Store data [! Buffer (Μ DBY) 3 1 1 connects the data bus YDB and the bus 1 1 D 2 0 stores the data buffer (Μ DBX) 3 1 0 connects the data / pB 1 line XDB and the bus D 1 〇 stores the data buffer (Μ DBI) 1 1 3 0 9 is connected to data bus IDB and bus C 1 D 1, A 1 i 1 Β 1 0 multiplier (Μ AC) 3 0 4 is white bus A 1 and B 1 input 1 1 1 input data Output the corresponding multiplication result to the bus C 1 and D 1 〇1 J Shifter (SFT) 3 0 3 White bus A 2 The input data will be shifted 1 I The output result will be output to the bus C 2 9 Arithmetic logic Arithmetic unit (ALU) 1 3 0 2 White bus A 2 and B 2 input data and output the result of the vehicle to the total 1 1 line C 2 1 Figure 5 shows the format and instructions of the instructions contained in the instruction system of the microcomputer 1 1 code — — Example 0 Microcomputer 1 supports CPU instructions and DSP instructions 2 1 1 Type I instructions 0 All CPU instructions and DSP instructions A part »is a 1 6 1 long command code. The DS DS command becomes a 3 2 long command code 1 1 This paper size is applicable to China National Standard (CNS) A4 (2 〖〇X297mm) -22 -Consumption cooperation between employees of the Central Bureau of the Ministry of Economic Affairs, Du Duanzhuang 4 3 2 3 2 6 A7 _____ B7___ V. Description of the invention (2). CPU instructions, that is, instructions that are implemented by CPU core 2 without having to make the DSP engine act. The DSP instruction is a part of processing such as address operation or operand access to CPU core 2. The DSP engine implements the instruction. The CPU instruction allocates the highest 4 digits of the instruction code in the range of 0 000 " ~ '1 1 10〃 "The DSP instruction allocates the highest 4 digits of the instruction code in the range of' I 1 1 1 # * more The uppermost 6 digits of the instruction code are allocated in the range of 1 1 1 00 'and t 1 1 1 1 0 1 ". The DS P instruction is also a 16-bit long instruction code. The uppermost 6 digits of the instruction code are t 1 1 1 1 10 ", which are 32-bit long instruction codes. In the uppermost 6 digits of the instruction code, the range 1 1 1 1 1 is not assigned instructions, and its range is used as an unused area. An undefined instruction area 'will use this area to further expand the instruction code. From the instruction format, it can be known that 'the uppermost 6 bits of each instruction code are decoded, that is, a decoder of a small logic scale can determine that the instruction width is a CPU instruction, a 16-bit DSP instruction, or a 32-bit DSP. Instruction or undefined instruction. In the C P U instruction format of FIG. 5, η η η η is the designated area of the destination operand. Dddd is the shifted instruction area. I i i i i i i i is the designated area of the immediate value. In addition, the nnnn of the ADD instruction is also the designated field of the source operand, and the operation result is stored in nnnn * Furthermore, the aforementioned modulo operation instruction described in FIG. 3 corresponds to the instruction MOVS, W @ R2, AO of FIG. 5 However, the instruction description in Figure 5 is different from that described in Figure 3. ° This paper is different in this form. The paper size applies to China National Standard (CNS) A4 (mm). _ ---:- -^ ---- 参 ------ < 玎 ------- (Please read the notes on the back before filling in this page)

A7 B7 經濟部中央橾準局員工消費合作社印裝 五、 發明説明 (21 ) 1 | J 實 際 上 相 同 〇 1 I 圖 6 表 示 C P U -f+* 心 2 之 譯 碼 器 2 4 與 D S P 引 擎 3 之 1 1 I 譯 碼 器 3 4 之 連 接構 成 例 9 依 微 電 腦 之 指 令 取 出 爲 3 2 位 1 I 請 f 單 位 > 於 指 示 寄 存 器 ( I R ) 2 5 實 施 〇 譯 碼 器 2 4 具 備 先 閲 1 I 讀 I 第 1 譯 碼 電 路 2 4 0 > 第 2 譯 碼 電 路 2 4 1 » 及 代 碼 變 換 背 面 Jf 1 1 電 路 2 4 2 第 1 譯 碼 電 路 2 4 0 係 將 指 令 寄 存 器 ( I R 注 意 畫 | ) 2 5 之 上 位 側 1 6 位 之 領 域 ( C I R ) 值 譯 磚 1 依 該 指 Ψ 項 再 1 填 令 爲 C P U 指 令 1 或 1 6 位 之 D S P 指 令 1 或 3 2 位 % 本 裝 I D S P 指 令 * 形 成 C P U 譯 碼 信 號 2 4 3 , D S P 譯 碼 信 頁 •w 1 ί r 號 2 4 4 1 代 碼 變 換 控 制 信 號 2 4 5 及 移 位 控 制 信 號 1 1 2 4 6 0 第 2 譯 碼 電 路 2 4 1 係 將 C P U 譯 碼 信 號 2 4 3 1 1 譯 碼 形 成 實 施 C P U 芯 2 內 部 之 運 算 器 或 寄 存 器 選 擇 等 訂 1 之 各 種 內 部 控 制 信 π* 谎 ( C P U 控 制 信 號 ) 2 4 7 〇 代 碼 變 1 | 換 電 路 2 4 2 係 在 代 碼 變 換控制 信 號 2 4 5 活 性 化 時 壓 1 I 縮 或 仍 舊 輸 出 指 令 寄存 器 ( I R ) 2 5 之 下 位側 1 6 之 領 1 1 y- 域 ( L I R ) 保 持 之 情 報 位 數 在 代 碼 變 換 控 制 信 號 2 4 5 1 非 活 性 化 時 輸 出 表 示 其 輸 出 無 效 之 情 報 ( Won - 1 I Op er at ion Code) 〇 代 碼 變 換 電 路 2 4 2 係 以 輸 出 無 效 之 1 情 報 代 替 信 號 2 4 5 爲 非 活 性 狀 態 時 下 位 側 1 6 位 之 領域 1 1 ( L I R ) 值 之 意 思 9 亦 可 以 選 擇 器 實 現 D S P 譯 碼 信 I 號 2 4 4 及 代 碼 變 換 電 路 2 4 2 之 輸 出 > 係 做 爲 刖 述 1 1 I D S P 控 制 信 號 2 0 供 給 D S P 引 擎 3 之 譯 碼 器 3 4 0 刖 1 1 述 第 1 譯 碼 電 路 2 4 0 1 由 於 將 存 儲 於 指 令 寄 存 W ( I R 1 1 ) 2 5 之 上 位 側 1 6 位 之 領 域 ( U I R ) 之 最 上 位 側 6 位 1 i 本紙浪尺度適用中國國家榡準(CNS ) A4規格(210X297公釐)_ 24A7 B7 Printed by the Consumer Cooperatives of the Central Bureau of Standards of the Ministry of Economic Affairs. 5. Description of the invention (21) 1 | J is actually the same. 1 I decoder 3 4 connection configuration example 9 is taken out according to the instructions of the microcomputer as 3 2 bits 1 I please f unit> in the instruction register (IR) 2 5 implementation 0 decoder 2 4 has a read 1 I read I The first decoding circuit 2 4 0 > the second decoding circuit 2 4 1 »and the code conversion back Jf 1 1 circuit 2 4 2 The first decoding circuit 2 4 0 is the instruction register (IR note drawing |) 2 5 Upper 16-bit field (CIR) value translation brick 1 according to the instruction and then 1 fill in the instructions for CPU instructions 1 or 16 for DSP instructions 1 or 32 for 2 bits% IDSP instructions installed * to form CPU decoding Signal 2 4 3, DSP decoded letter page • w 1 ί r No. 2 4 4 1 Code conversion control signal 2 4 5 and shift control signal 1 1 2 4 6 0 2nd decoding circuit 2 4 1 Decodes the CPU decoding signal 2 4 3 1 1 to form the processor or register inside the CPU core 2 Select various internal control signals of order 1 * lie (CPU control signal) 2 4 7 〇 Code change 1 | Switch circuit 2 4 2 Press the code to change the control signal 2 4 5 when activated 1 I shrink or still output instructions Register (IR) 2 5 Lower side 16 1 1 y-field (LIR) The number of bits of information held in the code conversion control signal 2 4 5 1 When inactive, information indicating that its output is invalid (Won-1 I Op er at ion Code) 〇 The code conversion circuit 2 4 2 replaces the signal with the output of the invalid 1 information 2 4 5 When the inactive state is on the lower side of the 16-bit field 1 1 (LIR) the meaning of the value 9 You can also choose Implements DSP decoding signal I 2 4 4 and code conversion circuit 2 The output of 4 2 is described as 1 1 IDSP control signal 2 0 is supplied to the decoder 3 of the DSP engine 3 4 0 刖 1 1 is described as the first decoding circuit 2 4 0 1 Because it is stored in the instruction register W ( IR 1 1) 2 5 16-bit upper field (UIR) 6-bit top 1 1 This paper wave scale is applicable to China National Standard (CNS) A4 specification (210X297 mm) _ 24

4 3 2 G A7 B7 經濟部中央標準局負工消費合作社印袈 五、 發明説明 (22 ) ! 1 譯 碼 r 即 可 判 定 該 指 令 代 碼 爲 C P U 指 令 » 或 1 6 位 之 1 J D S P 指 令 或 3 2 位 之 D S P 指 令 〇 1 ! I 譯 碼 之 指 令 爲 1 6 位 指 令 時 * 代 碼 變 換 控 制 信 號 1 I 請 1 2 4 5 成 爲 非 活 性 狀 態 1 因 此 代 碼 變 換 電 路 2 4 2 輸 出 表 先 閱 1 1 讀 \ 示 輸 出 無 效 之 Won Op e r at ion Code 〇 又 ,譯碼之指令之1 6 背 面 1 1 位 指 令 時 將 移 位 控 制 信 號 2 4 6 活 性 化 9 接 受 此 之 指 令 寄 注 意 事 1 存 器 ( I R ) 2 5 係 將 其 下 位側 1 6 位 之 領域 ( L I R ) 項 再 1 填 值移 位 於 上 位 側 1 6 位 之 領 域 ( L I R ) » 將 移 位 之 指 令 本 裝 I 利 用 爲 真 次 應 實 施 指 令 之 全 部 或 — 部 份 利 用 ό 茲 就 例 如 在 頁 1 1 指 令 寄 存 器 I R 之 上 位 側 1 6 位 頜 域 U I R 存 儲 1 6 位 [ 1 C P U 指 令 在 下 側 位 領 域 L I R 存 儲 3 2 位 D S Ρ 指 令 1 1 之 上 位 1 6 位 之 指 令 代 碼 之 情 形 說 明 〇 首 先 存 儲 於 上 位 訂 1 側 1 6 位 領 域 U I R 之 1 6 位 C P U 指 令 在 第 1 譯 碼 電 路 1 I 2 4 0 譯 碼 依 其 結果 C P U -F+- 心 2 實 施 其 指 令 存 儲 下 位 1 1 | 側 1 6 位 領 域 L I R 之 3 2 位 D S P 指 令 之 上 位 1 6 位 之 1 1 疒 指 令 代 碼 數 據 係 轉 送 於 上 位 側 1 6 位 領 域 U I R 〇 此 時 1 隨 機 邏 輯 電 路 2 0 1 對 算 術 運 算 器 A U 2 0 8 實 施 應 1 1 存 儲 於 程 序 計 數 器 P C 之 地 址 之 地 址 運 算 9 程 序 計 數 器 1 P C 存 儲 依 算 術 運 算 器 A U 2 0 8 運 算 之 地 址 運 算 結 果 i 1 之 地 址 〇 依存 儲 於 程 序 計 數 器 P C 之 地 址 上 述 3 2 位 I D S P 指 令 之 下 位 1 6 位 之 指 令 代 碼 數據 1 白 將 其 存 儲 之 1 1 I 指 令 存 儲 器 轉 送 於 指 令 寄 存 器 1 R 之 下 位 側 1 6 位 領域 1 1 L I R 0 因 此 ♦ 將 3 2 位 D S P 指 令 存 儲 於 指 令 寄 存 器 1 1 I R 〇 而 存 儲 於 該 指 令 I R 之 3 2 位 D S P 指 令 » 係 經 譯 1 1 準 標 祕 經濟部中央標準扃員工消费合作社印製 4 3 ?))、 -、-* .·、'ί五、發明説明(23 ) 碼器24供給DSP指令引擎3之譯碼器34。又,其他 方法,雖未圖示,惟將複數指令預取緩衝器設於C PU芯 2內》複數預取緩衝器係自現在實施之指令預取數週期前 應實施之指定》沒有此種預取緩衝器係在如上述將3 2位 D S P指令之上位1 6位指令代碼數據自下位領域L I R 轉送於上位側1 6位領域V I R時,隨機邏輯電路2 0 1 ,選擇上述3 2位D S P指令之下位1 6位指令代碼數據 預取之指令預取緩衝器。自該選擇之指令預取緩衝器讀出 3 2位D S P指令之下位1 6位之指定代碼數據,存儲於 指令寄存器IR之下側位領域LLR。 複譯碼之指令爲1 6位之C PU指令時,D S P譯碼 信號2 4 4成爲表示TTon-Operatiori之代碼。被譯碼之指 令爲16位之DSP指令時,CPU控制信號247依據 CPU譯碼信號243形成第2譯碼電路241 ,DSP 引擎3內部之控制信號係實質上譯碼器3 4解讀形成 DSP譯碼信號244 »被譯碼之指令爲32位之DSP 指令時,CPU控制信號247依依據譯碼信號243形 成第2譯碼電路24 1 ,DSP引擎3內部之控制信號係 譯碼器3 4解讀形成D S P譯碼信號2 4 4及代碼變換電 路2 4 2之输出。 微電腦1之指令系統有指令代碼表1 6位及3 2位, 如上述因1 6位長指令與3 2位長指令之處理不同,故分 別詳述其動作。 先說明1 6位長指令3第1譯碼竈路240係將指令 A7 B7 . U3. (請先閡讀背面之注意事項再填寫本頁) 本紙乐尺度通用中國國家橾率(CNS)A4規格(2丨0X297公釐)_ 26 - 4 3 2^-26 A7 B7 經濟部中央標準局員工消費合作杜印製 五、 發明説明 (24 ) 1 I 寄 存 器 ( 2 R ) 2 5 取 出 之 3 2 位 之 指 令 碼 中 上 位 1 6 1 1 I 位 譯 碼 > 在 第 1 譯 碼 電 路 2 4 0 ♦ 因 知 指 令 代 碼 之 最 上 位 1 ] 6 位 之 代 碼 爲 % 1 1 1 1 1 0 1 1 1 1 1 維 以 外 時 1 I 請 J 1 爲 1 6 位 長 指 令 » 故 此 時 與 C P U 指 令 譯 碼 信 號 2 4 3 及 先 閲 1 I 讀 1 D S P 指 令 譯 碼 信 號 2 4 4 之 輸 出 — 同 9 將 指 令 寄 存 器 ( 背 面 1 I I R ) 2 5 之 下 位 1 6 位 領 域 L I R 之 指 令 代 碼 數 據 移 位 之 注 意 [ I 於 上 位 1 6 位 領 域 U 2 R 之 移 位 控 制 信 號 2 4 6 活 性 化 9 事 項 JL 1 1 填 1 受 咭 性 化 之 移 位 控 制 信 wE 2 4 6 之 指 令 寄 存 器 ( I R ) 寫 本 裝 1 2 5 係 將 存 儲 於 下 位 1 6 位 領 域 L I R 之 指 令 代 碼 移 位 於 頁 1 1 上 位 1 6 位 領 域 U 2 R 9 移 位 之 指 令 代 碼 係 接 著 以 第 1 譯 1 1 碼 電 路 2 4 0 予 以 譯 碼 0 由 譯 碼 器 2 4 輸 出 之 C P U 指 令 1 1 譯 碼 信 號 2 4 3 係 輸 出 於 第 2 譯 碼 電 路 2 4 1 將 D S P 訂 I 譯 碼 信 號 2 4 4 供給 D S P 引 擎 3 〇 又 t 第 1 譯 碼 電 路 1 I 2 4 0 知 曉 爲 1 6 位長 指 令 時 使 代 碼 變 換 控 制 信 2 4 5 1 1 I 爲 非 活 性 因 此 代 碼 變 換 電 路 2 4 2 將 表 示 下 位 1 6 位 1 1 之 指 令 代 碼 無效 之 代 碼 n.t- 做 爲 D S Ρ 控 制 信 號 之 部 份 形 成 Ί 〇 在 D S P 引 擎 3 側 9 將 由 第 1 譯 碼 電 路 2 4 0 输 出 之 1 [ D S P 譯 碼 信 號 2 4 4 及 由 代 碼 變 換 電 路 2 4 2 輸 出 之 代 1 碼 信 號 做 爲 D S P 控 制 信 疏 2 0 輸 入 時 > 譯 碼 器 3 4 實 施 1 1 該 D S P 控 制 信 號 2 0 之 譯 碼 〇 1 6 位 之 D S P 指 令 之 由 •丨 I 代 碼 變 換 電 路 2 4 2 輸 出 之 D S Ρ 控制 信 號 因 成 爲 表 示 無 1 1 效 之 信 號 9 故 譯 碼 器 3 4 著 眼 於 D S P 譯 碼 信 2 4 4 t 輸 1 1 出 在 D S P 引 擎 3 內 之 乘 算 器 ( Μ A C ) 3 0 4 » 算 術 邏 1 1 輯 運 算 器 ( A L U ) 3 0 2 ) 及 移 位 器 C S F 丁 ) 3 0 3 1 1 本紙张尺度適用中國國家標準(CW)A4規格(210X 297公釐)_ 27 - 經濟部中央標準局員工消費合作社印裝 3 23 2 6 A7 B7五、發明説明(25 ) 等之控制信。D S P引擎3係依各該控制信實施運算處理 〇 其次說明3 2位長指令。在CPU芯2內部之第1譯 碼電路2 4 0,將3 2位之指令代碼存儲於指令寄存器( LR)25。而將上位16位以第1譯碼電路240譯碼 ,输出譯碼信號243·244^在第1譯碼電路240 ,因知指令代碼之最上位6位之代碼爲>1 1 1 1 1 時爲3 2位長指令,故將代碼變換控信號2 4 5活性化’ 因此代碼變換電路242 ’將指令寄存器(IR) 25之 下位1 6位之指令代碼做代碼轉換*經代碼轉換之情報係 與D S P譯碼信號2 4 4 —同做爲D S P控制信號2 0供 給》譯碼器3 4係將D S P指令控制信號2 0譯碼形成 DSP引擎3之控制信號。又,譯碼器24,34可在例 如隨機邏輯電路實現。 圖1 7表示對應圓6之另一實施例。圖6之實施例’ 說明將指令寄存器2 5之下位領域L I R之指令數據移位 於上位領域U I R。圖1 7之實施例’係在前述指令寄存 器2 5與內部數據總線I D B間’具備構成指令預取隊列 之串聯2段之指令預取緩衝器2 5 0,2 5 1 ’以選擇器 2 5 2選擇指令預取緩衝器2 5 0 ’ 2 5 1之保持數據供 給指令寄存器2 5。各指令預取緩衝器2 5 0,2 5 1及 指令寄存器2 5係以3 2位單位保持數據’其保持動作’ 係由控制信號01〜¢3 (同步於CLK1)控制*雖未 特別圖示,各指令預取緩衝器2 5 0 ’ 2 5 1及指令寄存 ^紙張尺度適用中國國家標準(CNS > A4規格(210X 297公ft ) _ π - --- ---- - I- n n ·11 . ^^1 In 1^1 fn n (請先閲讀背面之注意事項再填寫本頁) 經濟部中央標準局員工消費合作社印製 132326 A7 _____B7五、發明説明(26 ) 器2 5 ’具有主縱之構造,主段係同步於對應之控制信號 之上昇實施輸入之閂鎖動作。因此,將預取之前後指令數 據存儲於串聯2段之指令預取緩衝器2 5 0,2 5 1。 前述選擇器2 5係依選擇控制信號<6 4,選擇供給端 口 P a之3 2位之指令數據或供給端口 P b之3 2位指令 數據供給指令寄存器2 5 ?對前述端口 P a供給將指令預 取緩衝器2 5 0之上位1 6位領域C P B 1爲下位側,將 指令預取緩衝器2 5 1之下位1 6位領域L P B 2爲上位 側之3 2位指令數據。對端口 P b供給存儲於指令預取緩 衝器251之32位之原指令數據* 由此,指令預取緩衝器2 5 1保持3 2位之D SP指 令時選擇器2 5 2,選擇端口 Pb之輸出即可將該3 2位 之D S P指令設定於指令寄存器2 5。指令預取緩衝器 2 5 1將1 6位之DSP指令或1 6位之CPU指令保持 於上位領域UPB2時選擇器252,選擇端口 Pb之輸 出,即可將該1 6位指令設定於指令寄存器2 5之上位領 域U I R »指令預取緩衝器2 5 1將1 6位之D SP指令 或1 6位之CPU指令保持於下位領域LPB2時,由於 選擇器252 *選擇端口 Pa之輸出,即可將該16位之 指令’設定於指令寄存器2 5之上位領域U I R。指令預取 緩衝器2 5 1將1 6位D S P指令之上位1 6位指令代碼 保持於下位領域L P B 2,而指令預取緩衝器2 5 0將該 3 2位D S P指令之下位側1 6位指令代碼保持於其上位 領域UPB 1時,由於選擇器2 5 2,選擇端口 P a之輸 本紙伕尺度適用中國國家標準(cns)m規格(2!〇χ297公釐)_ 29 _ — ' ------:----ΐ衣------ίτ------1 I {請先閱讀背面之注意事項再填寫本頁} 經濟部令央樣準局負工消費合作社印裝 A7 _ B7 五、發明説明(27 ) 出即可將該3 2位D S P指令設定於指令寄存器2 5 * 圖1 7中2 5 3係形成前述指令預取緩衝器之閂鎖控 制信號ίώ 1 ,ίώ 2,指令寄存器2 5之閂鎖控制信號0 3 ,及前述選擇控制信號4 4之控制邏辑。該控制邏輯 2 5係依表示1 6位指令或3 2位指令之控制信號2 4 8 及指令預取緩衝器2 5 0 ; 2 5 1之各領域未實施殘留之 指令代碼狀態,形成前述控制信號0 1〜。該控制邏 輯2 5 3係構成指令取出用之控制邏輯之一部份。又,前 述控制信號2 4 8係第1譯碼電路2 4 0將自指令寄存器 2 5之上位領域U I R供給之指令代碼數據之上位6側位 譯碼形成者,其詳細情形容後申述。 依前述控制邏輯2 5 3將指令代碼數據設定於指令寄 存器2 5如下。由外部之指令取出係在C PU芯2之指令 取出時間(例如在後述複數段管線階段之指令取出階段 IF),指令預取緩衝器250有重新存儲32位之指令 代碼數據之餘地時實施。以其時間實施指令取出時*指令 預取緩衝器2 5 1殘留未實施之指令。存儲於指令預取緩 衝器2 5 1之.領域UPB 2,LPB 2之指令代碼雙方未 實施之第1狀態時,指令預取緩衝器2 5 1之3 2位输出 經端口 Pb由選擇器2 5 2選擇設定於指令寄存器2 5。 —方面僅存儲於指令預取緩衝器2 5 1之下位領域L P B 2之指令代碼未實施之第2狀態時,將預取指令預取緩衝 器2 5 0之上位領域UPB 1及指令預取緩衝器2 5 1之 下位領域L PB 2之指令代碼數據經端口 P a設定於指令 本紙浪尺度適用中國国家標準(CNS ) A4規格(210X297公釐)_ ~ U. - - - I - I I —- - - - . I - - I —i ^^1 (請先M讀背面之注意事項再填寫本頁) 4 A7 B7 五、發明説明(28 ) 寄存器2 5。 在前述第1狀態下,譯碼電路2 4 0將設定於指令寄 存器2 5之上位領域U I R之指令代碼數據譯碼之結果, 爲構成3 2位指令時,在指令預取緩衝器2 5 0預取之 3 2位指令代碼數據乃舊轉送於指令預取緩衝器2 5 1。 —方面,由譯碼結果檢出爲1 6位指令時,不實施自指令 預取緩衝器2 5 0至次段緩衝器2 5 1之數據移位。 在前述第2狀態下,經端口 P a對指令寄存器2 5之 數據設定後,指令預取緩衝器2 5 0所預取之3 2位之指 令代碼數據,仍舊移位設定於指令預取緩衝器2 5 1。該 移位後*若指令預取緩衝器2 5 0當存在未實施之指令代 碼數據時,在指令預取緩衝器2 5 0於次一指令預取時間 預取指令代碼數據。 由此種控制,指令取出時間後,未處理之指令代碼數 據設定於指令寄存器2 5 *此時,應實施之指令,爲1 6 位CPU指令1 6位DSP指令或3 2位DSP指令,一 其上位側1 6位必供給第1譯碼電路2 4 0。 經濟部中央標準局員工消費合作社印裝 —----^--------裝-- (請先閲讀背面之注$項再填寫本頁) 圖6說明之代碼轉換電路2 4 2 |在圖1 7係由選擇 器2 4 2_ A及代碼轉換邏輯2 4 2 B構成=又,第1譯碼 電路2 4 0,在圖6說明,依其譯碼之指令代碼是否爲 1 6位指令形成控制其水平之控制信號2 4 5,2 4 6, 而在圖1 7例中,輸出識別其譯碼之指令代碼1 6位指令 或3 2位指令(本實施例中3 2位指令爲D S P指令)用 之控制信號248。選擇器242A,在控制信號248 本紙張尺度.適用中國國家標準(CNS ) A4規格(2丨0X297公庚)_ μ A7 4 3 2 3 2 6 ____B7_ 五、發明说明(29 ) ί ^^^1 · k n ^^^1 In m 1 JT (請先閲讀背面之注項再填寫本頁) 表示1 6位指令時’選擇Ν ο η 0 p e r a t i 〇 n C 〇 d e w ο p供給代 碼轉換邏輯242B,控制信號248表示32位DSP 指令時,將指令寄存器2 5之下位領域L I R之指令代碼 供給代碼轉換邏輯242B »代碼轉換邏輯242B ,雖 未特別限制,惟將指令寄存器2 5之下位領域L I R之指 令代碼數據之一部份例如寄存器選擇用之代碼情報修正爲 適於D S P引擎3之譯碼器3 4之形態输出。 經濟部中央標準局負工消費合作社印製 圖1 7之實施例中,第1譯碼電路240解讀指令寄 存器2 5之上位領域U I R保持之1 6位之指令代碼數據 •將所得CPU譯碼信號2 4 3供給第2譯碼電路243 ,又將DSP譯碼信號244供給譯碼器34。CPU譯 碼信號2 4 3在C P U指令及D S P指令之任一中均成有 意,供給第2譯碼電路241·第2譯碼電路241,將 C P U譯碼信號2 4 3譯碼,輸出C P U芯2應實施之地 址運算及數據運算用之控制情報,及內部存儲X — ROM 4,Y-ROM5,X — RAM,Y-RAM 以及外部存 儲存取用之地止總線及數據線線之選擇控制情報等'如前 述,對D S P指令,其所必需之地址運算及數據總線之選 擇,亦由CPU芯2實施》 前述D S P譯碼信號2 4 4係如前述,供給第1譯碼 電路2 4 〇之指令代碼爲D S P指令用之代碼數據時成爲 有意之譯碼信號。有意D S P譯碼信號2 4 4含例如,在 依C P U芯2實施之地址運算存取之存儲器間交接數據之 D S P引擎3內之寄存器等之指定情報。供給第丨譯碼電 本紙浪尺度適用中國國家標隼(CNS)A4规格(2丨0X297公瘦)_ 32 _ 4r、广Λ -Λ -+、广Ν ci c ο ^ Ο Α7 Β7 經濟部中央樣準局員工消費合作社印製 五、 發明説明 (30 ) 1 路 2 4 0之 指令代碼 爲C P U指令 時,D S P 譯 碼信號 1 1 2 4 4成爲 表示無效 之代碼 9 1 1 茲更詳 述含於微 電腦1 之指令 系統之前述 D S P指 令 1 1 I 之 代 碼。圖 1 8及圖 1 9分 別表示 1 6位之D S P指令 之 請 先 閲 1 ί 1 指 令 代碼圖 2 0及圖 2 1表 示3 2 位之D S P 指 令之指 令 讀 背 1 代 碼 。如前 述,D S P指令 係將指 令代碼之最 上 位側之 4 之 注 意 1 位 分 配於' 1111 歸,指 令代碼 之最上位側 之 6位爲 % 事 項 再 1 1 1 1 110 0 ,及' 111 10 1 ^係1 6位 之 D S P 指 4 寫 本 k 令 T 指命代 碼之最上 位側之 6位爲 '1111 1 0 '之 指 頁 1 f 令 係 成爲3 2位之D S P指 令g 1 I 圖1 8 之第1櫊 (X Side of Data Transfer)所示 1 1 1 6 位D S P指令之 指令格 式係X 存儲器(X — ROM 4 訂 I » X -R A Μ 6 )與 DSP 引擎3 之內藏寄存 器 間之數 據 1 I 轉 送 指令。 上述指令格式中 > A X ,A y係指 定 含於 1 I C P U芯2 所含寄存 器陣列 2 0 9 (參照圖3 ) 之寄存 器 1 1 f » A X , 0 ^係指 定寄存 器R 4 ,A X = ' 1 ^係指 定 1 | 寄 存 器R 5 » A y = "0 ^ 係指定 寄存器R 6 1 Ay' 1 1 1 I 係 指定寄 存器R 7 。D X ,D y , D a係 指 定含於 1 D S P引擎 之寄存器 ,D X =' 0 〃指定寄存 器 X 〇, D 1 1 X = , 係指定寄 存器X 1,D y = ' 0 " 係 指定寄 存 1 器 Y 0,D y = ' 1 〃係指 定寄存 器 Y 1 ’ D a =,0 /f 1 1 係 指 定寄存 器A 0, D a = •ft 1 f 係指定寄存 器 A 1 g 1 1 I X ,I y 表示立即 值。 1 I 圖1 9 所示1 6 位D S P指令 之指令格式 係 連接於 微 1 1 本紙浪尺度適用中国國家標準(CNS)A4規格(210Χ297公釐)_ 33 _ 經濟部中央標隼局員工消費合作社印製 A7 _B7_ 五、發明説明(31 ) 電腦1外部之未圖示之存儲器與d s p引擎3之內藏寄存 器間之數據轉送指令。A s指定內藏C P U芯2之寄存器 陣列2 0 9 (參照圖3 )所含寄存器,D s係指定內藏於 DSP指令引擎之寄存器XI ,X0,Y1 ,Y0,A1 •AO及寄存器陣列305(參照圖4)所含寄存器。 3 2位D S P指令之格式,係大別爲表示3 2位 DSP指令之代碼1 1 1 之領域(位31〜位 26) ,A信息組(位25 —位16)及B信息組(位 1 5〜位0)。圖2 0表示著眼於A信息組之代碼及其所 對應之助記,圖2 1表示著眼B信息組時之該信息之代碼 及其所對應之助記。 圖2 0所示A信息組之代碼’係與圖1 8所示1 6位 D S P指令之位9〜位0之代碼相同之第2 0之第1欄( X Side of Data Transter)所示A信息組之代碼係規定X 存儲器(X-R0M4,,X - RAM6)與 DSP 引擎 3 之內藏寄存器間之中數據轉送,第2攔(Y Side of Data Transter)所不A信息組之代碼係規定Y存儲器( y r〇M5,Y-RAM7)與DSP引擎3之內藏寄 存器間之數據轉送。該A信息組所含之位Ax ’ Ay ’ Dx ,Dy ,Da指定之內容與圖1 8完全相同* 圖2 1所示B信息組之代碼規定在D S P引擎3內部 實施之算術運算,邏輯運算’移位運算’寄存器間之負載 /存儲等處理。例如規定D s p引擎3內部實施之乘算( P M U L S ),減算(PSXJB),加算(PADD)拾 本紙張尺度適用t國國家標準(cns ) Α4規格(公釐)-34 ——---------裝------訂 (請先聞讀背面之注意事項再填寫本頁) 經濟部中央標準局員工消費合作社印装 432326 A7B7五、發明説明(32 ) 入(PRND),移位(PSHL),邏輯積(PAND ),排他的邏輯和(XOR),邏輯和(OR),加( P I N C ),減(PDEC),清除(CLR)等之運算 或在D S P引擎3內部實施之負載(P LDS)及存儲 (PSTS)等。圖 21 之第 3 攔(3 0 Operand Optr-ation with Condition)係附有條件之代碼’其條件( if cc)係可選擇D C (數據完成)位(表示數據處理完 了之位)之邏輯值或視。 實際之3 2位D S P指令,記述成B信息組代碼與A 信息組代碼之任意組合。即,3 2位之D S P指令,取出 .微電腦1之內部或外部之運算對象之操作,規定將其在D S P引擎內部運算之處理。由上述說明可知,操作數取出 用地址運算及數據總線之選擇係由CPU 2實施。3 2位 D S P指令中規定操作數取出之A信息組之代碼係與1 6 位之D S P指令相同》1 6位D S P指令係利用於對 DSP引擎3內部之寄存器之初期設定等。 參照圖1 7等所示構成示明瞭3 2位D S P指令之A 信息組之代碼數據係設定於指令寄存器2 5之上位領域 U I R »又,具有與A信息組同一格式之1 6位D S P指 令亦設定於上位領域U I R »故無論任一項,CPU芯2 ,同樣實施所需之地址運算及數據取出(或操作數取出) 必要之數據總線之選擇即可•換言之,將實施3 2位 D S P指令用之數據取出(或操作數取出)及實施1 6位 D S P指令用之數據取出(或操作數)所需之譯碼電路 本紙張尺度適用中國國家標準(CNS ) A4規格(210X 297公釐)_ (請先閱讀背面之注意事項再填寫本頁) -*---Γ -裝·4 3 2 G A7 B7 Printed by the Central Standards Bureau of the Ministry of Economic Affairs, Consumer Cooperatives. 5. Description of the invention (22)! 1 Decode r to determine whether the instruction code is a CPU instruction »or 16-bit 1 JDSP instruction or 3 2 Bit DSP instruction 〇1! I When the decoded instruction is 16-bit instruction * Code conversion control signal 1 I Please 1 2 4 5 becomes inactive 1 So the code conversion circuit 2 4 2 Read the output table first 1 1 Read \ Won Op er at ion Code showing invalid output 〇 Also, decoded instruction 1 6 back 1 1 Shift instruction signal when 1-bit instruction 2 4 6 Activation 9 Accept this instruction and send a note 1 Register (IR) 2 5 is to move the lower 16-bit field (LIR) item by 1 and fill the value to the upper 16-bit field (LIR) »Use the shifted instruction I as a true second instruction All or part of it is used, for example, on the page 1 1 instruction register IR above the 16th jaw area UIR store 16 bits [1 CPU instruction in the lower side area LIR store 3 2 bits DS P instruction 1 1 of Description of the upper 16-bit instruction code 〇 First stored in the upper order 1 side 16 16-bit field UIR 16 6-bit CPU instruction in the first decoding circuit 1 I 2 4 0 decoding according to the result CPU -F +-heart 2 implements its instruction storage lower 1 1 | side 1 6-bit field LIR 3 2 bit DSP instruction above 16-bit 1 1 疒 instruction code data is transferred to upper-side 16-bit field UIR 〇 at this time 1 random logic circuit 2 0 1 The arithmetic operation unit AU 2 0 8 should be implemented. 1 1 The address stored in the program counter PC is calculated. 9 The program counter 1 PC stores the address calculated by the arithmetic operation unit AU 2 0 8. The address i 1 is calculated. According to the address stored in the program counter PC, the above 3 2 digits of the IDSP instruction are lower than the 16 digits of the instruction code data 1 and the stored 1 is 1 1 I The instruction memory is transferred to the lower side of the instruction register 1 6 bit area 1 1 LIR 0 Therefore ♦ 32-bit DSP instructions are stored in the instruction register 1 1 IR 〇 and 32-bit DSP instructions stored in the instruction IR 2 2-bit DSP instructions »Translated 1 1 Central Standard of the Ministry of Economic Affairs 扃 Printed by Employee Consumer Cooperatives 4 3 ?)),-,-*. ·, 'Ί V. Invention Description (23) The encoder 24 is provided to the decoder 34 of the DSP instruction engine 3. Also, although other methods are not shown, the plural instruction pre-fetch buffer is set in the CPU core 2. The plural pre-fetch buffer is a designation that should be implemented before the current instruction pre-fetch cycle. The prefetch buffer transfers the 32-bit DSP instructions above the 16-bit instruction code data from the lower-level LIR to the upper-side 16-bit VIR as described above. The random logic circuit 2 0 1 selects the 32-bit DSP above. The lower 16 bits of the instruction is the instruction prefetch buffer for data prefetch. Read the specified code data of the lower 16 bits of the 32-bit DSP instruction from the selected instruction prefetch buffer and store them in the LLR in the lower bit area of the instruction register IR. When the complex decoded instruction is a 16-bit CPU instruction, the D S P decoded signal 2 4 4 becomes a code representing TTon-Operatiori. When the decoded instruction is a 16-bit DSP instruction, the CPU control signal 247 forms a second decoding circuit 241 according to the CPU decoding signal 243. The control signals inside the DSP engine 3 are essentially decoded by the decoder 34 to form a DSP translation. Code signal 244 »When the decoded instruction is a 32-bit DSP instruction, the CPU control signal 247 forms a second decoding circuit 24 1 according to the decoded signal 243. The control signal inside the DSP engine 3 is decoded by the decoder 3 4 The outputs of the DSP decoding signal 2 4 4 and the code conversion circuit 2 4 2 are formed. The instruction system of the microcomputer 1 has 16-bit and 32-bit instruction code tables. As described above, since 16-bit long instructions are processed differently from 32-bit long instructions, their actions are described in detail. First explain 16-bit long instruction 3 The first decoding stove 240 is the instruction A7 B7. U3. (Please read the precautions on the back before filling this page) This paper is a universal Chinese standard (CNS) A4 specification (2 丨 0X297mm) _ 26-4 3 2 ^ -26 A7 B7 Printed by the consumer cooperation of the Central Standards Bureau of the Ministry of Economic Affairs. 5. Description of the invention (24) 1 I register (2 R) 2 5 Take out 3 2 digits The upper order of the instruction code is 1 6 1 1 I-bit decoding> In the first decoding circuit 2 4 0 ♦ The highest order of the instruction code is known 1] The 6-bit code is% 1 1 1 1 1 0 1 1 1 1 1 For other than 1-dimension, 1 I please J 1 is a 16-bit long instruction »Therefore, at this time, the CPU decodes the signal 2 4 3 and reads first 1 I Read 1 The DSP instruction decodes the signal 2 4 4 — same as the 9 register (Back 1 IIR) 2 5 Lower 1 16-bit area LIR instruction code data shifting attention [I in upper 1 16-bit area U 2 R shift control signal 2 4 6 Sexuality 9 items JL 1 1 Fill in 1 Intrinsic shift control letter wE 2 4 6 Instruction register (IR) 1 2 5 This is to move the instruction code stored in the lower 16-bit LIR to the page 1 1 High-order 16-bit field U 2 R 9 Shift instruction code is followed by first 1 1 code circuit 2 4 0 decoded 0 CPU instruction output by decoder 2 4 decoded signal 2 4 3 is output to the second decoding circuit 2 4 1 The DSP order I decoding signal 2 4 4 is supplied to the DSP engine 3 〇 t t 1st decoding circuit 1 I 2 4 0 Makes a code conversion when it is known as a 16-bit long instruction The control letter 2 4 5 1 1 I is inactive, so the code conversion circuit 2 4 2 forms a code nt- indicating that the instruction code of the lower 16 16 bits 1 1 is invalid as a part of the DS P control signal. 〇 On the DSP engine 3 Side 9 will output 1 of the first decoding circuit 2 4 0 [DSP decoding signal 2 4 4 and Code conversion circuit 2 4 2 The generation 1 code signal is used as the DSP control signal. 2 When it is input> Decoder 3 4 Implementation 1 1 The decoding of the DSP control signal 2 0. The reason for the 6-bit DSP instruction • 丨 I code conversion circuit 2 4 2 The output of the DS ρ control signal is a signal indicating that there is no 1 1 effect. Therefore, the decoder 3 4 focuses on the DSP decoding signal 2 4 4 t and outputs 1 1 to the DSP engine 3. Multiplier (Μ AC) 3 0 4 »Arithmetic logic 1 1 Series arithmetic unit (ALU) 3 0 2) and shifter CSF Ding) 3 0 3 1 1 This paper size applies to China National Standard (CW) A4 (210X 297 mm) _ 27-Control letter printed by the Consumer Cooperatives of the Central Standards Bureau of the Ministry of Economic Affairs 3 23 2 6 A7 B7 V. Description of the invention (25). The DSP engine 3 performs arithmetic processing according to each control signal. Next, a 32-bit long instruction will be described. The first decoding circuit 2 40 in the CPU core 2 stores a 32-bit instruction code in an instruction register (LR) 25. The upper 16 bits are decoded by the first decoding circuit 240, and the decoded signal 243 · 244 ^ is output at the first decoding circuit 240. It is known that the highest 6 bits of the instruction code are > 1 1 1 1 1 It is a 32-bit long instruction, so the code conversion control signal 2 4 5 is activated. Therefore, the code conversion circuit 242 'transcodes the instruction code of the lower 16 bits of the instruction register (IR) 25 *. It is the same as the DSP decoding signal 2 4 4-It is supplied as the DSP control signal 2 0. The decoder 3 4 decodes the DSP instruction control signal 2 0 to form the control signal of the DSP engine 3. The decoders 24 and 34 can be implemented in, for example, random logic circuits. FIG. 17 shows another embodiment corresponding to the circle 6. The embodiment of FIG. 6 illustrates that the instruction data of the lower field L I R of the instruction register 25 is shifted to the upper field U I R. The embodiment of FIG. 17 'is between the aforementioned instruction register 25 and the internal data bus IDB' and has a series of two-stage instruction prefetch buffers 2 5 0, 2 5 1 'forming the instruction prefetch queue. The selector 2 5 2 Select instruction prefetch buffer 2 5 0 '2 5 1 holds data to instruction register 25. Each instruction prefetch buffer 2 5 0, 2 5 1 and instruction register 2 5 hold data in 3 2-bit units, and its holding action is controlled by control signals 01 to ¢ 3 (synchronized with CLK1) * Although not shown in the figure Instruction, each instruction prefetch buffer 2 5 0 '2 5 1 and instruction register ^ The paper size applies to the Chinese national standard (CNS > A4 specification (210X 297 ft)) _ π---- -----I- nn · 11. ^^ 1 In 1 ^ 1 fn n (Please read the notes on the back before filling out this page) Printed by the Staff Consumer Cooperative of the Central Bureau of Standards of the Ministry of Economics 132326 A7 _____B7 V. Description of Invention (26) Device 2 5 ' It has a main vertical structure. The main segment is synchronized with the rising of the corresponding control signal to implement the latching action of the input. Therefore, the pre-fetch instruction data is stored in the two-stage serial instruction pre-fetch buffer 2 5 0, 2 5 1. The aforementioned selector 2 5 selects the 3 or 2 bits of command data supplied to port P a or the 3 2 bits of command data supplied to port P b according to the selection control signal < 6 4. a Supply the instruction pre-fetch buffer 2 5 0 upper 1 16-bit area CPB 1 is the lower side, the instruction pre-fetch Buffer 2 5 1 Lower-order 1 6-bit area LPB 2 is upper-order 3 2-bit instruction data. Port P b is supplied with 32-bit original instruction data stored in the instruction prefetch buffer 251 * Thus, instruction prefetch Buffer 2 5 1 Selector 2 5 2 when holding 3 2-bit D SP instruction. Select the output of port Pb to set the 32-bit DSP instruction in the instruction register 2 5. Instruction prefetch buffer 2 5 1 When holding 16-bit DSP instructions or 16-bit CPU instructions in the upper field UPB2, the selector 252 selects the output of the port Pb to set the 16-bit instructions in the command register 2 5 upper field UIR »Instruction When the prefetch buffer 2 5 1 holds 16-bit D SP instructions or 16-bit CPU instructions in the lower field LPB2, since the selector 252 * selects the output of the port Pa, the 16-bit instruction can be set. In the instruction register 25, the upper field UIR. The instruction prefetch buffer 2 5 1 holds the 16-bit DSP instruction upper 16 bit instruction code in the lower field LPB 2, and the instruction prefetch buffer 2 5 0 sets the 3 When the 16-bit instruction code of the lower-order side of the 2-bit DSP instruction is held at UPB 1 of its upper-level area, Due to the selector 2 5 2, the paper size of the paper used to select the port P a applies to the Chinese National Standard (cns) m specification (2! 〇χ297 mm) _ 29 _ — '------: ----: Clothing ------ ίτ ------ 1 I {Please read the precautions on the back before filling out this page} Printed by the Ministry of Economic Affairs Central Procurement Bureau Off-line Consumer Cooperatives A7 _ B7 V. Description of the invention ( 27) The 32-bit DSP instruction can be set in the instruction register 2 5 * * 2 5 3 in Fig. 17 forms the latch control signal of the aforementioned instruction prefetch buffer 1, 2, and 2 of the instruction register 2 5 The control logic of the latch control signal 0 3 and the aforementioned selection control signal 44. The control logic 2 5 is based on the control signal 2 4 8 indicating the 16-bit instruction or the 32-bit instruction and the instruction prefetch buffer 2 50 0; the remaining instruction code states of each field are not implemented to form the aforementioned control. Signal 0 1 ~. The control logic 2 5 3 forms part of the control logic for instruction fetch. In addition, the aforementioned control signal 2 4 8 is the first decoding circuit 2 4 0 to decode the command code data supplied from the upper register U 5 of the upper register field 5 to the upper 6 bits, and the details will be described later. The instruction code data is set in the instruction register 2 5 according to the aforementioned control logic 2 5 3 as follows. The instruction fetch from the outside is the instruction fetch time of the CPU core 2 (for example, the instruction fetch stage IF in the plural stage pipeline stage described later), and the instruction prefetch buffer 250 is implemented when there is room to re-store 32-bit instruction code data. When the instruction fetch is executed at its time * instruction The prefetch buffer 2 5 1 leaves unimplemented instructions. Stored in the instruction prefetch buffer 2 51. In the first state of the UPB 2 and LPB 2 instruction codes that are not implemented by both parties, the instruction prefetch buffer 2 5 1 to 3 2-bit output is sent by the selector 2 through port Pb. 5 2 Select and set to command register 2 5. —Only stored in the instruction prefetch buffer 2 5 1 in the lower area LPB 2 instruction code is not implemented in the second state, the prefetch instruction prefetch buffer 2 50 0 in the upper area UPB 1 and the instruction prefetch buffer The command code data of the lower field L PB 2 of the controller 2 5 1 is set via the port P a to the paper size of the instruction book. The applicable Chinese National Standard (CNS) A4 specification (210X297 mm) _ ~ U.---I-II —- ---. I--I —i ^^ 1 (Please read the notes on the back before filling in this page) 4 A7 B7 V. Description of the invention (28) Register 2 5 In the first state described above, the decoding circuit 2 40 decodes the result of the instruction code data set in the upper field UIR of the instruction register 25. In order to form a 32-bit instruction, the instruction prefetch buffer 2 5 0 The pre-fetched 3 2-bit instruction code data is previously transferred to the instruction pre-fetch buffer 2 5 1. -On the other hand, when a 16-bit instruction is detected from the decoding result, the self-instruction pre-fetch buffer 2 50 to the secondary buffer 2 51 are not shifted. In the aforementioned second state, after the data of the instruction register 25 is set by the port Pa, the 32-bit instruction code data pre-fetched by the instruction pre-fetch buffer 2 50 is still shifted and set in the instruction pre-fetch buffer.器 2 5 1. After the shift * If the instruction prefetch buffer 2 50 has unimplemented instruction code data, the instruction prefetch buffer 2 50 prefetches the instruction code data in the next instruction prefetch time. With this kind of control, after the instruction fetch time, the unprocessed instruction code data is set in the instruction register 2 5 * At this time, the instructions to be implemented are 16-bit CPU instructions, 16-bit DSP instructions, or 32-bit DSP instructions. The upper 16 bits must be supplied to the first decoding circuit 24 0. Printed by the Consumer Cooperatives of the Central Standards Bureau of the Ministry of Economic Affairs ------ ^ ---------- (Please read the note on the back before filling this page) Figure 6 Code Conversion Circuit 2 4 2 | In Fig. 1 7 is composed of a selector 2 4 2_ A and a code conversion logic 2 4 2 B = Also, the first decoding circuit 2 4 0, it is illustrated in Fig. 6 whether the decoded instruction code is 1 or not. The 6-bit instruction forms a control signal 2 4 5, 2 4 6 to control its level, and in the example in FIG. 17, an instruction code identifying the decoding thereof is output. 1 6-bit instruction or 32-bit instruction (3 2 in this embodiment) The bit instruction is a control signal 248 used by the DSP instruction. Selector 242A, the control signal 248 paper size. Applicable to China National Standard (CNS) A4 specification (2 丨 0X297 hex) _ μ A7 4 3 2 3 2 6 ____B7_ V. Description of the invention (29) ί ^^^ 1 · Kn ^^^ 1 In m 1 JT (please read the note on the back first and then fill in this page) It means that when selecting 16-bit instructions, 'select Ν ο η 0 perati 〇n C 〇dew ο p provides code conversion logic 242B, control Signal 248 indicates that when 32-bit DSP instructions are used, the instruction code of the lower-level area LIR of the instruction register 25 is provided to the code conversion logic 242B »Code conversion logic 242B. Although not specifically limited, the instruction code of the lower-level area LIR instruction code of the instruction register 25 A part of the data, such as code information for register selection, is modified to a form output suitable for the decoder 34 of the DSP engine 3. In the embodiment of Figure 17 printed by the Central Bureau of Standards, Ministry of Economic Affairs and Consumer Cooperatives, the first decoding circuit 240 interprets the 16-bit instruction code data held by the instruction register 25 in the upper field UIR. • Decodes the obtained CPU signal. 2 4 3 is supplied to the second decoding circuit 243, and DSP decoding signal 244 is supplied to the decoder 34. The CPU decoding signal 2 4 3 is intentional in either the CPU instruction or the DSP instruction, and is supplied to the second decoding circuit 241 and the second decoding circuit 241 to decode the CPU decoding signal 2 4 3 and output the CPU core. 2Control information for address calculation and data calculation to be implemented, and internal storage X — ROM 4, Y-ROM5, X — RAM, Y-RAM, and external storage access, stop bus and data line selection and control Information, etc. 'As mentioned above, for the DSP instruction, the necessary address calculation and data bus selection are also implemented by the CPU core 2. The aforementioned DSP decoding signals 2 4 4 are supplied to the first decoding circuit 2 4 as described above. When the instruction code is code data for DSP instruction, it becomes an intentional decoding signal. The intentional D S P decoding signal 2 4 4 contains, for example, designated information such as a register in the D S P engine 3 that transfers data between the memories accessed by the address operation performed by the CPU core 2. The paper scale for the first decoded electric paper is applicable to the Chinese National Standard (CNS) A4 specification (2 丨 0X297 male thin) _ 32 _ 4r, Guang Λ -Λ-+, Guang N ci c ο ^ 〇 Α7 Β7 Central Ministry of Economic Affairs Printed by the sample consumer cooperative of the staff. V. Description of the invention (30) When the instruction code of 1 2 4 0 is a CPU instruction, the DSP decoded signal 1 1 2 4 4 becomes an invalid code 9 1 1 More details are included. Code of the aforementioned DSP instruction 1 1 I in the instruction system of the microcomputer 1. Figure 18 and Figure 19 respectively show the 16-digit D S P instruction. Please read the 1 1 instruction code diagram 20 and Figure 21 for the 32-digit D S P instruction. Read the back 1 code. As mentioned above, the DSP instruction allocates the first 1 bit of the 4 most significant side of the instruction code to '1111, and the 6 most significant side of the instruction code is%. Then 1 1 1 1 110 0, and' 111 10 1 ^ 16 DSP instructions of 6 bits k. Let 6 bits of the highest order side of T instruction code be '1111 1 0'. Page 1 f Let DSP instructions of 32 bits be 1 g. I Figure 1 of 8 The instruction format of the 1 1 16-bit DSP instruction shown in Section 1 (X Side of Data Transfer) is the data between the X memory (X — ROM 4 and I »X -RA Μ 6) and the built-in registers of the DSP engine 3. 1 I transfer instruction. In the above instruction format > AX, A y are designated to be included in the register array 2 0 9 (refer to Figure 3) of the ICPU core 2 register 1 1 f »AX, 0 ^ is the designated register R 4, AX = '1 ^ Is designated 1 | register R 5 »A y = " 0 ^ is designated register R 6 1 Ay '1 1 1 I is designated register R 7. DX, D y, D a are designated registers included in 1 DSP engine, DX = '0 〃 designated registers X 〇, D 1 1 X =, designated registers X 1, D y =' 0 " designated registers 1 Device Y 0, D y = '1 is designated register Y 1' D a =, 0 / f 1 1 is designated register A 0, D a = • ft 1 f is designated register A 1 g 1 1 IX, I y Represents an immediate value. 1 I Figure 1 9 The instruction format of the 16-bit DSP instruction is connected to the micro 1 1 The paper scale is applicable to the Chinese National Standard (CNS) A4 specification (210 × 297 mm) _ 33 _ Employee Consumer Cooperatives, Central Bureau of Standards, Ministry of Economic Affairs Print A7 _B7_ V. Description of the invention (31) The data transfer instruction between the unillustrated memory outside the computer 1 and the built-in register of the dsp engine 3. A s specifies the registers included in the register array 2 0 9 (refer to FIG. 3) of the built-in CPU core, and D s specifies the registers XI, X0, Y1, Y0, A1 that are built in the DSP instruction engine. AO and register array 305 (See Figure 4) Registers included. The format of the 32-bit DSP instruction is a field representing the code of the 1-bit DSP instruction (bit 31 to bit 26), a block A (bit 25 to bit 16) and a block B (bit 1 5 to bit 0). Figure 20 shows the code of the information group A and its corresponding mnemonic, and Figure 21 shows the code of the information and the corresponding mnemonic when it looks at the B group. The code of the A field shown in FIG. 20 is the same as the code of bit 9 to bit 0 of the 16-bit DSP instruction shown in FIG. 18, and it is shown in column A of the 20th column (X Side of Data Transter). The code of the block is to specify the data transfer between the X memory (X-R0M4 ,, X-RAM6) and the built-in registers of the DSP engine 3. The code of the block A in the second block (Y Side of Data Transter) Provides data transfer between Y memory (yrOM5, Y-RAM7) and the built-in registers of DSP engine 3. The contents of the bits Ax 'Ay' Dx, Dy, Da contained in the A block are exactly the same as those in Figure 18 * Figure 2 The code of the B block shown in Figure 1 specifies the arithmetic operations and logical operations implemented in the DSP engine 3 Load / store processing between 'shift operations' registers. For example, stipulate that the multiplication (PMULS), subtraction (PSXJB), and addition (PADD) implemented in the D sp engine 3 are applicable to the national standard (cns) A4 specification (mm) -34 -------- ----- Installation ------ Order (please read the notes on the back before filling out this page) Printed by the Consumers' Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs 432326 A7B7 V. Description of Invention (32) Enter (PRND) , Shift (PSHL), logical product (PAND), exclusive logical sum (XOR), logical sum (OR), add (PINC), subtract (PDEC), clear (CLR) and other operations or within the DSP engine 3 Implemented load (PLDS) and storage (PSTS). The third block (3 0 Operand Optr-ation with Condition) in Figure 21 is a conditional code. Its condition (if cc) is a logical value that can select the DC (data completion) bit (indicating that the data has been processed) or See. The actual 32-bit D S P instruction is described as an arbitrary combination of the B field code and the A field code. That is, the 32-bit D S P instruction fetches the operation object of the internal or external computing object of the microcomputer 1, and specifies the processing to be performed inside the D S P engine. As can be understood from the above description, the address calculation for operand fetching and the selection of the data bus are implemented by the CPU 2. The 32-bit D S P instruction specifies the code of the A field to be fetched from the 16-bit D S P instruction. The 16-bit D S P instruction is used to initialize the internal registers of the DSP engine 3. Referring to FIG. 17 and the like, it is shown that the code data of the A field of the 32-bit DSP instruction is set in the instruction register 2 5 upper field UIR »Also, the 16-bit DSP instruction having the same format as the A field is also Set in the upper field UIR »Therefore, no matter what, CPU core 2 will also perform the required address calculation and data fetch (or operand fetch). The necessary data bus can be selected. In other words, 3 2 bit DSP instructions will be implemented. Decoding circuit for data fetching (or operand fetching) and data fetching (or operand) for implementing 16-bit DSP instructions. This paper size applies the Chinese National Standard (CNS) A4 specification (210X 297 mm). _ (Please read the precautions on the back before filling this page)-* --- Γ-

*1T 4 3 23 2 6 經濟部中央標準局員工消費合作杜印裝 A7 B7_五、發明説明(33 ) 240,241共用化,此點,亦有益於微電腦1之邏輯 規模之縮小。3 2位D S P指令之A信息組指定之D S P 引擎3內部寄存器之指定情報及1 6位D S P指令指定之 D S P引擎3之內部寄存器之指定情報係做爲前述D S P 譯碼信號244供給DSP引擎3。將DSP譯碼信號 2 4 4爲有意與否,係由前述第1譯碼電路2 4 0將上位 領域UIR之最上位側之4位予以譯碼決定。 其次,參照圖7至圖1 6之指令實施時間表說明本實 施例之微電腦之運算控制之內容。本實施例之微電腦1係 實施 I F,ID,EX,MA,WB/DSP 階段之 5 段 管線動作。IF係指令取出階段·ID係指令譯碼階段, E X係運算實施階段,MA係存儲器存取階段, WB/D S P係將自存儲器取得之數據取進C P U芯2之 寄存器之階段或D S P引擎3實施D S P指令之階段。各 圖中,Instrnction/Data Access表示經內部總線I AB ,IDB之存儲器存取,存取對象係內藏存儲器4〜7外 亦可能爲微電腦1之外部存儲器》X Y Mem,Access表示內 部總XAB, XDB及YAB, YDB之存儲器存取•存取對象僅限於內 藏存儲器4〜7。Isnt, Fetch指指令寄存器(I R〕2 5 之指令取出時間,Fetch,Reg表示指令寄存器(I R ) 2 5 ,Sonrce Data Ont 指源數據輸出,Destination In 指目的數據之输入時間> Destination Register係指目的 寄存器。Pointer Reg意指指文字寄存器,Address Calc ,指地址運算* Deta Fetch指數據取出,Dsp C.ontrol (請先閲讀背面之注意事項再填寫本頁) 本紙乐尺度適用中圉國家標準(CNS)A4规格(210Χ 297公釐)_ 36 - 經濟部中央揉準局貞工消费合作杜印裝 432326 A7 B7五、發明説明(34 ) Signal Decord Timing意指以譯碼器3 4之D S P控制 信號2 0之譯碼時間。 圖7表示C P U芯2內部之ALU運算指令之實施時 間圖。茲將ADD Rm,Rn爲ALU運算指令之一例 將存儲同步於I F階段直前之時鐘信號ciock2之上 昇之時間,應實施之指令(ADD,Rm,Rn)之地址 輸出於地址總線之I A B。在Instruct i on Data Mem, Access I F階段實施存儲器存取動作。具體而言,在時 鐘信號Clock 1之上昇至時鐘信號Clock2之上昇期間實施 地址總線I AB指定之地址之譯碼,而在I F階段之時鐘 信號Clocfc2之上昇至次一時鐘信號Clocltl之上昇期間實 施指令存取。因此,自I F階段之時鐘信號Clock2之上 昇將指令輸出於數據總線。輸出於數據總線I D B之指令 係同步於I D階段之時鐘信號Clock 1之上昇時間,取進 指令寄存器(I R) 2 5。在〗D階段實施取進指令寄存 器(I R) 2 5之數據之譯碼。同步於E X階段之時鐘信 號Clockl之上昇時間,存取存儲源數據之寄存器*將寄 存器之值輪出於CPU芯2之內部總線Al ,B1 «在指 令ADD Rm,Rn將指定於Rm及Rn之寄存器成爲 源寄存器。Rm及Rn可指令CPU芯2內部之任意寄存 器(圖3中,可指定寄存器209內之任意寄存器AOx ,Alx’ Ix*A〇y’Aly· Iy,- Rm 及 Rn ?輸出於CPU芯2之內部總線A1 ,B 1之數據係在算 本紙張尺度適用中國國家標準(CNS ) A4規格(2丨0X297公釐)_ π _ (請先閎讀背面之注意事項再填寫本頁) •裝- 3 2 6 A7 B7 ____ 五、發明説明(35 ) 術邏輯運算器(ALU) 2 1 3實施加算運算’其結果係 輸出於CPU芯2之內部總線C1。輸出於CPU芯2之 內部總線C 1之運算結果係同步於E X階段之時鐘信號 Clock2之上昇時間,存儲於目的寄存器(目的寄存器係 成爲以ADD Rm及Rn指令指定於Rn之寄存器)。 如上述,在CPU芯2之内部之ALU運算指令,以IF ,I D,EX之3段之管線階段完成指令實施動作* 圖8表示自存儲器向C P U芯2之數據讀進動作之時 間圖。茲舉MOV,L@Rm,Rn爲自存儲器向CPU 芯2之數據讀進動作之一例說明其動作。因至指令取出( IF),指令譯碼(I D)之動作與圖7相同,故省略其 部份之詳細說明。 同步於E X階段之時鐘信號Clockl之上昇時間,做 爲地址指示字之寄存器之數據係輸出於C P U芯2之內部 總線A 1。此例中,成爲地址指示字之寄存器係成爲Rm 指定之寄存器。可指定於Rm之寄存器爲含於OP U芯2 之任意寄存器(圖3中,可指定含於R e g之任意寄存器 ’AOx’Alx, Ix,A〇y,Aly’ ly做爲 Rm)。输出於CPU芯2之內部總線A1之數據,係存 儲於地址緩衝器2 0 5,同步於E X階段之時鐘信號 Clock2之上昇時間輸出於地址總線。一方面輸出於C P U芯2之內部總線A 1之數據係在算術邏輯運算器( ALU) 2 13實施運算》此時,算術邏輯運算器( ALU) 2 13實施0加算運算《其結果係輸出於 本紙張尺度適用中國S家標準(CNS > A4規格(2I0X297公缝)_ 38 _ 11 I I I -~ I I n (請先閱讀背面之注意事項再填寫本頁) 經濟部中央標準局負工消費合作社印製 經濟部中央標準局員工消費合作社印裝 432326 A7 ____ B7 五、發明説明(36 ) CPU芯2之內部總線Cl。輸出於CPU芯2之內部總 線C 1之運算結果,係同步於E X階段之時鐘信號Clock 2之上昇時間,存儲於指示字寄存器(此時,以Rm指定 之寄存器)。在 Instrnction/Data Mem, Aecess中,於 Μ A階段之時鐘信號Clock 1之上昇至時鐘信號Cl ock2之 上昇期間,同步於EX階辱:之時鐘信號Clock 2之上昇時 間’實施輪出於地址總線I AB之地址之譯碼’在MA階 段之時鐘信號Clock 2之上昇至次一時鐘信號Clockl之上 昇期間實施數據存取。因此,自MA階段之時鐘信號 Clock2之上昇將數據输出於數據總線1 D B 4输出於數 據總線1 DB之數據係同步於WB/DSP階段之時鐘信 號Clock 1之上昇時間取進CPU芯2 ’將數據輸出於C P U芯2之內部總線DW。同步於WB/D S P階段之時 鐘信號Clock2之上昇時間,將C Ρ ϋ芯2之內部總線 DW上之數據存儲於目的寄存器’完成動作β此例中’目 的寄存器成爲指定於R η之寄存器β可指定於R η之寄存 器係含於CPU芯2之任意之寄存器(圖3中,可指定 Reg內之任意寄存器’ A〇x,Alx ’ I X,A〇y ,Aly,Iy爲Rn) »如以上自存儲器向CPU心2 之數據讀進動作指令,以I F,I D,EX,MA /D S P之5段之管線階段完成指令實施動作e 圖9表示自C P U芯2向存儲器之數據寫進動作指令 之時間圖。茲舉MOV,LRm,@Rn爲自向CPU芯 2向存儲器之數據讀進動作之—例說明其動作。因至指令 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐)—39 - ί—:------^------.η------I (請先閲讀背面之注意事項再填寫本頁) 經濟部中央搮準局貝工消費合作社印装 A7 B7五、發明説明(37 ) 取出(IF),指令譯碼(ID)之動作與圖8相同,故 省略其部份之詳細說明。 同步於E X階段之時鐘信號Clock 1之上昇時間,做 爲地址指示字之寄存器之數據係輸出於C PU芯2之內部 總線A 1。此例中,成爲地址指示字之寄存器係成爲Rm 指定之寄存器。可指定於R η之寄存器爲含於C P U芯2 之任意寄存器(圖3中,可指定含於R e g之任意寄存器 ,A〇x,Alx, Ix,A〇y,Aly’ Iy做爲 Rn)。输出於CPU芯2之內部總線A1之數據,係存 儲於地址緩衝器2 0 5,同步於E X階段之時鐘信號 Clock2之上昇時間输出於地址總線I A B。一方面輸出 於C P U芯2之內部總線A 1之數據係在算術邏辑運算器 (ALU) 213實施運算^此時,算術邏輯運算器( ALU) 213實施0加算運算。其運算結果係輸出於 CPU芯2之內部總線C1«輸出於CPU芯2之內部總 線c 1之運算結果,係同步於EX階段之時鐘信號Clock 2之上昇時間,存儲於指 字譯碼(此時,以Rn指定之 寄存器),指令MOV,L中Rn,@Rn時,於Ex階 段實施地址運算,同時,實施將應寫進存儲器之數據輸出 於數據總線I D B之準備。同步於E X階段之時鐘信號 Clockl之上昇時間,由存儲應寫進存儲器之數據之寄存 器將值輪出於CPU芯2之內部總線DR。此例中•存儲 應寫進存儲器之數據之譯碼,係成爲Rm指定之寄存器。 可指定於Rm之寄存器係含於C P U芯2之任意之譯碼( I ·*_.1 I -! I -1. i I —r^i 1^1 1. ^^1 (請先閲讀背面之注項再填寫木育) 訂 本紙張尺度適用中國國家橾準(CNS ) Λ4現格(210X 297公釐)_ 432^26 經濟部中央樣隼局負工消費合作社印製 A7 B7五、發明説明(38 ) 圖3中,可指定Reg,內於任意寄存器,AOx, Alx,Ix,A〇y,Aly,Iy 爲 Rm)。輸出於 C P U芯2之內部總線d r之值*係同步於ΜΑ階段之時 鐘信號Clock2之上昇時間輸出數據總線I D Β。在 Instrnction/Data Mem. Access於 Μ A 階段之時鐘信號 Cl ockl之上昇至時鐘信號.Clock 2之上昇期間’同步於 E X階段之時鐘信號Clock 2之上昇時間實施輸出地址總 線I AB之地址之譯碼,同步於MA階段之時鐘信號 Clock 2之上昇時間寫進輪出於數據總線I D B之數據’ 完成爲動作。自存儲器向CPU芯2之數據寫進動作指令 ,因C P U芯2在將數據輸出數據總線I D B之時點完成 動作,故於IF,ID,EX,MA之4段管線階段完成 動作β 圖1 0表示實施D S Ρ指令時之時間圖。舉 PADDC Sx,Sy,Dz NOPX,N〇PY 爲 D S P指令之一例說明其動作。該指令係實施存儲於 D S P引擎3內之寄存器之數據之加算,不實施D S P引 擎 3 與 X - R0M4 及 X — RAM6 ,及 Y — R0M5 及 Y — RAM7間之數據轉送之指令。 指令取出動作因與圓7相同故省略其部份之詳細說明 。在I D階段,實施於時鐘信號Clockl至時鐘信號 Clock2期間C P U芯2取進之指令代碼之譯碼,將於 I D階段之時鐘信號Clock2之時間將指令代碼譯碼之結 果做爲DSP控制信號20輸出於DSP引擎3。在 本紙張尺度適用中國國家標準(CNS ) A4规格(210X 297公釐)_ ‘I - " (請先閱讀背面之注意事項再填寫本頁) •裝· 訂 _B7____ , 五、發明説明(39 ) DSP引擎3。自CPU芯2輸入DSP控制信號2〇時 ,將至MA階段期間輸入之D S P控制信號予以譯碼4同 步於WB/D S P階段之時鐘信號Clockl之上昇時間’ 存取存儲源數據之寄存器,將寄存器之值輸出於D S P引 擎3之內部總線A2,B2。此例中,存儲源數據之寄存 器成爲S X及S y指定之寄存器,可指定於S X及S y之 寄存器係D S P引擎3內部之任意之寄存器(圖4中’ Reg*內之任意寄存器可指定爲Sx及Sy)。輸出 DSP引擎3內部總線A2,B2之數據在算術邏輯運算 器(ALU) 302實施運算,其結果係輸出於DSP弓ί 擎3之內部總線C2。输出DSP引擎3之內部總線C2 之運算結果係同步於WB/D S P階段之時鐘信號Clock 2之上昇時間存儲於目的寄存器。此例中,目的寄存器成 爲D z指定之寄存器。可指定於D 2之寄存器係D S P引 擎3內部之任意之寄存器(圖4係R e g內之任意之寄存 器)。如以上之DSP指令,係以IF, ID,EX, MA *WB/DSP之5段管線階段完成動作。 經濟部中夬標準局貝工消費合作社印装 (請先W讀背面之注意事項再填寫本頁} 圊1 1表示自X,Y存儲器4 — 7向DSP引擎3之 數據讀進動作指令之時間圖。茲舉MOVX. W,@AX ,DX,M0VY. W@Ay,Dy 做爲自 X,Y 存儲器 4〜7向D S P引擎3之數據讀進作指令之一例說明其動 作。該指令係將存儲於A X及A y指定之地址之數據轉送 於D X及D y指定之寄存器之指令。指令取出,指令譯碼 器之動作因與圖10相同故省略該部份之詳細說明- 本紙張尺度適用中國國家標準(CNS)A4規格(2丨0X 297公嫠)_ 42 - 經濟部中央標隼局員工消費合作杜印製* 1T 4 3 23 2 6 The consumer cooperation of the Central Bureau of Standards of the Ministry of Economic Affairs of the People's Republic of China Du Yinzhuang A7 B7_ V. Description of invention (33) 240, 241 is shared, which is also beneficial to the reduction of the logical scale of microcomputer 1. The designated information of the internal register of the D S P engine 3 designated by the A field of the 3-bit D S P instruction and the designated information of the internal register of the D S P engine 3 designated by the 16-bit D S P instruction are supplied to the DSP engine 3 as the aforementioned DSP decoding signal 244. Whether the DSP decoded signal 2 4 4 is intentional or not is determined by decoding the 4 bits of the uppermost side of the upper field UIR by the first decoding circuit 2 4 0 described above. Next, the content of the arithmetic control of the microcomputer of this embodiment will be described with reference to the instruction implementation schedule of Figs. The microcomputer 1 of this embodiment implements five stages of pipeline operations in the stages of I F, ID, EX, MA, WB / DSP. IF is the instruction fetching phase, ID is the instruction decoding phase, EX is the operation implementation phase, MA is the memory access phase, and WB / DSP is the phase of fetching data obtained from the memory into the registers of the CPU core 2 or the DSP engine 3 implementation DSP instruction phase. In each figure, Instrnction / Data Access indicates the memory access via the internal bus I AB and IDB. The access object is the built-in memory 4 ~ 7 and may also be the external memory of the microcomputer 1 "XY Mem. Access indicates the internal total XAB, XDB, YAB, YDB memory access and access objects are limited to built-in memory 4 ~ 7. Isnt, Fetch refers to the instruction fetch time of the instruction register (IR) 2 5; Fetch, Reg means the instruction register (IR) 2 5; Sonrce Data Ont refers to the source data output; Destination In refers to the input time of the destination data> Destination Register means Destination register. Pointer Reg means text register, Address Calc, address calculation * Deta Fetch means data fetch, Dsp C.ontrol (Please read the precautions on the back before filling this page) This paper's music standards are applicable to the Chinese National Standards ( CNS) A4 specification (210 × 297 mm) _ 36-Central Ministry of Economic Affairs, Central Bureau of Justice, Consumer Cooperation, Du printed 432326 A7 B7 V. Description of the invention (34) Signal Decorated Timing means DSP control with decoder 3 4 Decoding time of signal 2 0. Figure 7 shows the implementation time chart of the ALU operation instruction inside CPU core 2. Here we will add ADD Rm, Rn as an example of ALU operation instruction. Synchronize the storage with the rising of the clock signal ciock2 immediately before the IF phase. Time, the address of the instruction (ADD, Rm, Rn) to be implemented is output to the IAB of the address bus. The memory access operation is implemented in the Instruct i on Data Mem, Access IF stage Specifically, the decoding of the address specified by the address bus I AB is performed during the rising of the clock signal Clock 1 to the rising of the clock signal Clock 2, and is implemented during the rising of the clock signal Clocfc2 in the IF phase to the rising of the next clock signal Cloctl. Instruction access. Therefore, the clock signal Clock2 from the IF phase rises and the instruction is output to the data bus. The instruction output from the data bus IDB is synchronized with the rise time of the clock signal Clock1 in the ID phase and is taken into the instruction register (IR) 2 5. In the D phase, implement the decoding of the data taken into the instruction register (IR) 2 5. Synchronize with the rise time of the clock signal Clockl in the EX phase, access the register that stores the source data * and round the value of the register to The internal bus Al, B1 of CPU core 2 «In the instruction ADD Rm, Rn will make the registers specified in Rm and Rn become source registers. Rm and Rn can instruct any register in CPU core 2 (in Figure 3, you can specify the register 209 Any of the registers AOx, Alx 'Ix * A〇y'Aly · Iy,-Rm and Rn? Output to the internal bus A1 of CPU core 2, and the data of B 1 are in the paper size application National Standard (CNS) A4 Specification (2 丨 0X297mm) _ π _ (Please read the precautions on the back before filling this page) • Equipment-3 2 6 A7 B7 ____ 5. Description of the invention (35) Operation logic operation (ALU) 2 1 3 performs the addition operation. The result is output to the internal bus C1 of the CPU core 2. The calculation result output on the internal bus C1 of the CPU core 2 is synchronized with the rise time of the clock signal Clock2 in the E and X phases, and is stored in the destination register (the destination register becomes the register specified in Rn by the ADD Rm and Rn instructions). As described above, the ALU operation instructions inside the CPU core 2 complete the instruction implementation operations in the pipeline stages of IF, ID, and EX *. Figure 8 shows the timing of the data read operation from the memory to the CPU core 2. Here MOV, L @ Rm, Rn is an example of the data read operation from the memory to the CPU core 2 to describe its operation. Since the operations of instruction fetch (IF) and instruction decode (ID) are the same as those in Fig. 7, detailed descriptions of the parts are omitted. The rise time of the clock signal Clockl, which is synchronized with the E X phase, is used as the data of the register of the address pointer to be output on the internal bus A 1 of the CPU core 2. In this example, the register that becomes the address pointer is the register designated by Rm. The register that can be specified in Rm is an arbitrary register included in OP U core 2 (in FIG. 3, any register that is included in Reg can be designated ‘AOx’ Alx, Ix, A〇y, Aly ’ly as Rm). The data output on the internal bus A1 of the CPU core 2 is stored in the address buffer 205, and the rise time of the clock signal Clock2 synchronized with the E X phase is output on the address bus. On the one hand, the data output on the internal bus A 1 of the CPU core 2 is performed by the arithmetic logic operation unit (ALU) 2 13 "At this time, the arithmetic logic operation unit (ALU) 2 13 performs 0 addition operation" The result is output in This paper size applies to Chinese standards (CNS > A4 size (2I0X297)) _ 38 _ 11 III-~ II n (Please read the precautions on the back before filling this page) Central Office of Standards, Ministry of Economic Affairs, Consumer Cooperatives Printed by the Consumer Standards Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs 432326 A7 ____ B7 V. Description of the Invention (36) The internal bus Cl of CPU core 2. The results of the computation on internal bus C 1 of CPU core 2 are synchronized at the EX stage The rise time of the clock signal Clock 2 is stored in the pointer register (in this case, the register designated by Rm). In the Instrnction / Data Mem, Aecess, the clock signal Clock 1 in the M A phase rises to the clock signal Cl ock2 During the rising period, it is synchronized with the EX stage: the rising time of the clock signal Clock 2 'implementation of the address from the address bus I AB'. The clock signal Clock 2 in the MA phase rises to the next clock Data access is implemented during the rising of Clockl. Therefore, the clock signal Clock2 from the MA phase rises to output data on the data bus 1 DB 4 and the data on the data bus 1 DB is synchronized to the clock signal Clock 1 of the WB / DSP phase. The rise time is taken into the CPU core 2 'and the data is output to the internal bus DW of the CPU core 2. The rise time of the clock signal Clock2 synchronized to the WB / DSP phase stores the data on the internal bus DW of the CP core 2 Destination register 'Complete action β' In this example, the destination register becomes the register specified in R η β The register that can be specified in R η is any register included in CPU core 2 (In Figure 3, any register in Reg can be specified ' A〇x, Alx 'IX, A〇y, Aly, Iy is Rn) »As above, read the data from the memory to the CPU core 2 into the action instructions, using the IF, ID, EX, MA / DSP pipeline stage 5 Complete the instruction implementation action e Figure 9 shows the time chart of writing action instructions from the CPU core 2 to the memory. Here are MOV, Lrm, @Rn for the action of reading data from the CPU core 2 to the memory—exemplary description Action. Due to instruction Paper size applies Chinese National Standard (CNS) A4 specification (210X297 mm) —39-ί —: -------- ^ ------. Η ------ I (Please read the Please fill in this page again.) Printed on the A7 B7 of the Central Bureau of Standards and Quarantine of the Ministry of Economic Affairs. Fifth, the description of the invention (37) The operation of fetching (IF) and instruction decoding (ID) is the same as that in Figure 8, so its parts are omitted. Detailed description. The rise time of the clock signal Clock 1 which is synchronized with the E X phase, and the data of the register as the address pointer is output on the internal bus A 1 of the CPU core 2. In this example, the register that becomes the address pointer is the register designated by Rm. The register that can be specified in R η is any register that is included in CPU core 2 (in Figure 3, any register that is included in R eg can be specified, and A〇x, Alx, Ix, A〇y, and Aly 'Iy as Rn) . The data output on the internal bus A1 of the CPU core 2 is stored in the address buffer 205, and the rise time of the clock signal Clock2 synchronized with the E X phase is output on the address bus I A B. On the one hand, the data outputted to the internal bus A 1 of the CPU core 2 is performed by the arithmetic logic unit (ALU) 213 ^ At this time, the arithmetic logic unit (ALU) 213 performs 0 addition operation. The calculation result is output to the internal bus C1 of the CPU core 2 «The calculation result output to the internal bus c 1 of the CPU core 2 is the rise time of the clock signal Clock 2 synchronized with the EX phase and stored in the finger decoding (this When registering Rn and @Rn in MOV, L, the address calculation is performed in the Ex stage, and at the same time, the preparation of outputting the data to be written into the memory to the data bus IDB is implemented. The rise time of the clock signal Clockl which is synchronized with the stage of E X is transferred from the internal bus DR of the CPU core 2 by the register storing the data to be written into the memory. In this example, the decoding of the data that should be written into the memory becomes a register designated by Rm. The register that can be specified in Rm is any decoding included in CPU core 2 (I · * _. 1 I-! I -1. I I —r ^ i 1 ^ 1 1. ^^ 1 (Please read the back first Note: Please fill in Mu Yu again.) The paper size of the edition is applicable to China National Standards (CNS). Λ4 is current (210X 297 mm) _ 432 ^ 26. Printed by A7 B7. Explanation (38) In FIG. 3, Reg can be specified in any register, and AOx, Alx, Ix, A0y, Aly, and Iy are Rm). The value of the internal bus d r output to the CP core 2 is the data bus I D Β which is synchronized with the rising time of the clock signal Clock2 in the MA stage. In Instrnction / Data Mem. Access, the clock signal Cl ockl rises to the clock signal in the phase A. The rise time of Clock 2 is synchronized with the rise time of the clock signal Clock 2 in the EX phase. The translation of the address of the output address bus I AB The code is synchronized with the rise time of the clock signal Clock 2 in the MA phase and written into the wheel for the completion of the data from the data bus IDB. The action instructions are written from the memory to the data of the CPU core 2. Since the CPU core 2 completes the operation at the time when the data is output to the data bus IDB, the operation is completed in the four-stage pipeline stage of IF, ID, EX, MA β Figure 10 shows Time chart when the DS P instruction is implemented. Take PADDC Sx, Sy, Dz NOPX, NoPY as an example of D S P instruction to explain its operation. This instruction implements the addition of the data stored in the registers in DS Engine 3, and does not implement the data transfer instructions between DS Engine 3 and X-R0M4 and X-RAM6, and Y-R0M5 and Y-RAM7. The instruction fetching operation is the same as circle 7, so detailed description of the part is omitted. In the ID stage, the instruction code decoded by the CPU core 2 during the clock signal Clock1 to the clock signal Clock2 is implemented, and the result of the instruction code decoding will be output as the DSP control signal 20 at the time of the clock signal Clock2 in the ID stage. In DSP Engine 3. Applicable to China Paper Standard (CNS) A4 (210X 297 mm) _ 'I-" (Please read the precautions on the back before filling this page) • Binding and _B7____, V. Description of the invention ( 39) DSP engine 3. When the DSP control signal 2 is input from the CPU core 2, the DSP control signal input during the MA phase is decoded. 4 Synchronize with the rise time of the clock signal Clockl of the WB / DSP phase. The value is output to the internal buses A2 and B2 of the DSP engine 3. In this example, the register storing the source data becomes the register designated by SX and S y, and the register that can be designated in SX and S y is any register in DSP Engine 3 (any register in 'Reg * in Figure 4 can be designated as Sx and Sy). The data of the internal bus A2 and B2 of the DSP engine 3 are output to the arithmetic logic operation unit (ALU) 302. The result is output to the internal bus C2 of the DSP engine 3. The output result of the internal bus C2 of the DSP engine 3 is synchronized with the rise time of the clock signal Clock 2 in the WB / D SP phase and stored in the destination register. In this example, the destination register becomes the register designated by D z. The register that can be specified in D 2 is any register in D S P engine 3 (Figure 4 is any register in Reg). The above DSP instructions are completed in five pipeline stages of IF, ID, EX, MA * WB / DSP. Printed by Shelley Consumer Cooperative of China Standards Bureau of the Ministry of Economic Affairs (please read the precautions on the back before filling in this page) 圊 1 1 indicates the time from the X, Y memory 4-7 to read the data into the DSP engine 3 action instructions Figure. Here is an example of MOVX. W, @AX, DX, M0VY. W @ Ay, Dy as instructions for reading data from X, Y memory 4 ~ 7 to DSP engine 3. This instruction will The data stored in the addresses specified by AX and A y are transferred to the instructions specified by DX and D y. The instruction fetching and the operation of the instruction decoder are the same as those in Figure 10, so the detailed description of this part is omitted-this paper size applies China National Standard (CNS) A4 Specification (2 丨 0X 297 public address) _ 42-Duplicate printing of employee cooperation of the Central Standards Bureau of the Ministry of Economic Affairs

五、 發明説明 (40 實 施 白 X t Υ 存儲器4〜7向D S P引擎3之數據讀 進 動 作 指 令 時 f 存 取之存儲器之地址形成CPU芯2。因 此 同 步 於 E X 階 段 之時鐘信號Clockl之上昇時間,存取 存 儲 應 存 取 之 地 址 之寄存器,將寄存器之值輸出於C Ρ ϋ 心 2 之 內 部 總 線 A 1〜A 2。此例中存儲應存取之地址之 寄 存 器 係 成 爲 A X ,Ay指定之寄存器。可指定於Αχ之 寄 存 器 係 含有 C P U芯2之寄存器ΑΟχ,Α1χ,而可 指 定 於 A y 之 寄 存 器係含於CPU芯2之寄存器A〇y, A 1 y 0 彻 出 於 C PU芯2之內部總線A 1〜A 2之數據 係 存 儲 於 存 儲 地 址 緩衝器(MABX,MAB Y)同步於 E X 階 段 之 時 鐘 信 號Clock 2之上昇時間輸出於地址總線 X A B Y A B β —方面輸出C P U芯2之內部總線A 1 A 2 之 數 據 係 以 ALU[213,PAU212 實施地址 運 算 〇 此 時 A L U 21 3及PAU 2 1 2實施0加算運算 9 該 運 算 結 果 係 輸 出於CPU芯2之內部總線C 1及C 2 T 输 出於 C P U 心 2之內部總線C 1及C 2之運算結果係 同 步 於 E X 階 段 之 時鐘信號Clock2之上昇間存儲於指示 字 寄 存 器 ( 即 以 A X及Ay指定之寄存器P在X,Y存儲 器 4 7 t 於 Μ A 階段之時鐘信號Clockl之上昇至時鐘 信 號 Clock2之上昇期間,實施以E X階段時鐘信號Cloc- k2之上昇時間输出於地址總線XAB,YAB之地址之 譯 碼 » 在 Μ A 階 段 之時鐘信號Clock2之上昇至次一時鐘 信 號 Cl 0C k ] .之上昇期間實施數據存取。因此,自ΜΑ階 段 之 時 鐘 信 號 C1 0 C k2之上昇將數據輸出數據總線X D B 本紙張尺度適用中國國家標率(CNS)A4規格(210X 297公釐)_ 43 ~ 43 23 26 Α7 Α7 Β7 經濟部中央標準局貝工消費合作杜印裝 五、發明説明(41 ) ,YDB。输出數據總線XDB ,YDB之數據,係同步 於WB/D S P階段之時鐘信號Clockl之上昇時間取進 DSP引擎3將數據供給DSP引擎3之內部總線D1, D 2 »同步於WB/D S P階段之時鐘信號Clock2之上 昇時間將DSP引擎3之內部總線D1’D2上之數據存 儲於目的寄存器,完成動作。該例中,目的寄存器係成爲 指定於DX及DY之寄存器。可指定於D X之寄存器’係 含於DSP引擎3之寄存器Χ0,XI ,而可指定於Dy 之寄存器係含於DSP引擎3之寄存器YO ’Y1。如以 上,自存儲器向D S P引擎3之數據讀進動作指令係以 I F,I D,EX,MA,WB/DSP 之 5 段管線階段 完成動作》斯項並聯之數據讀進動作,係因經相互獨立之 總線XAB,XDB與YAB,YDB使CPU芯2可存 取X,Y存儲器4〜7之故。 圖1 2表示自DSP引擎3向X,Y存儲器6 ,7之 數據寫進動作之時間圓。茲舉MOVX.W Da, @ A X Μ Ο V Y * W Da,®Ay 爲自 DSP 引擎 3 向X * Y存儲器6,7之數據寫進動作指令之一例說明其 動作。該指令係將存儲於D a指定之寄存器之數據轉送於 存儲於A X及A y指定之寄存器之地址之指令。 指令取出,指令代碼之動作因與圖1 1相同*故省略 其部份之詳細說明|實施自DSP引擎3向X * Y存儲器 6,7之數據寫進動作指令時•應存取之存儲地址形成 C P U芯2。因此同步於E X階段之時鐘信號Clockl之 c請先聞讀背面之注意事項再填寫本頁> 訂 線 本紙張尺度適用中國國家標準(CNS > A4規格(210Χ297公釐)_以 經濟部中央標隼局員工消費合作社印製 /13 23 26 at B7五、發明説明(42 ) 上昇時間,存取存儲應存取之地址寄存器,將寄存器之值 輸出於CPU芯2之內部總線A 1〜A2。 同步於MA階段之時鐘信號Clockl之上昇時間,存 取存儲應轉送之數據之D S P引擎3內部寄存器,將該寄 存器之值輸出於DSP引擎3之內部總線D1 | D2,將 其存儲於存儲數據緩衝器(MDBX,MDBY。此例中 ,存儲應轉送之數據之D S P引擎3之內部寄存器係成爲 D a指定之寄存器。可以D a指定之寄存器係含D S P引 擎3之寄存器A 0及A 1。同步於MA階段之時鐘信號 Clock2之上昇時間,存儲於存儲數據緩衝器(MD B X ,MDBY)之數據係输出於數據總線XDB,YDB。 同步於MA階段之時間信號Clock 1之上昇時間, 存取存儲應轉送數據之D S P引擎3之內部寄存器,將該 寄存器之值输出於DSP引擎3之內部總線Dl ,D2 * 將其存儲於存儲數據緩衝器(MDBX,MDBY) ^ 此例中,存儲應轉送數據之D S P引擎3之內部寄存器成 爲D a指定之寄存器。可以D a指定之寄存器係含於 D S P引擎之寄存器A0及A 1。同步於MA階段之時鐘 信號Clock 2之上昇時間,存儲於存儲數據緩衝器( MDBX,MBDY)之數據係输出於數據總線XDB, YDB。在X,Y存儲器6,7於MA階段之時鐘信號 Clockl之上昇至時鐘信號Clock 2之上昇期間,以EX階 段時鐘信號Clock2之上昇時間實施输出於地址總線 XAB,YAB之地址之譯碼,在MA階段之時鐘信號 本紙張尺度適用中國國家標準(CNS ) A4規格(210X 297公釐)_ 45 _ ' (請先閱讀背面之注意事項再填寫本頁> 經濟部中央標準局負工消費合作社印装 Α7 Β7五、發明説明(43 ) Clock2之上昇至次一時鐘信號Clockl之上昇期間實施數 據存取。因此,輸出數據總線XDB,YDB之數據自 MA階段之時鐘信號Clock 2之上昇寫進。如以上自 DSP引擎3向X,Y存儲器6,7之數據寫進動作指令 係於IF,ID,EX,MA之4段管線階段完成動作。 斯項並聯之數據寫進動作乃因經相互獨立之總線XAB, XDB與TAB,YDB,使CPU芯2可存取X,Y存 儲器4,6之故。 圖13表示自存儲器向DSP引擎3之數據讀進動作 之時間圓》茲舉MOVS,L®AS,DS爲自存儲器向 D S P引擎3之數據讀進動作指示之一例說明其動作。該 指令係將存儲於A S指定之地址之數據轉送於D S指定之 寄存器之指令。 基本動作係與圖1 1所示自X,Y存儲器4〜7向 DSP引擎3之數據讀進動作相同••圚1 1與圖1 3之差 異,係圖1 1爲因對象之存儲器爲X,Y存儲器4〜7故 使用X總線,Y總線,而圖1 3則因對象之存儲器係微電 腦1連接於支持空間之存儲器,故使用總線IAB, I DB。同步於EX階段時鐘信號Clockl之上昇時間, 取得有應存取之地址之寄存器,將寄存器之值输出於 C PU芯2之內部總線A 1。此例中,存儲應存取之地址 之寄存器,係成爲A S指定之寄存器。可以A S指定之寄 存器係含於CPU芯2之Re g *內之任意寄存器。輸出 於C P U芯2之內部總線A 1之數據,係存儲於地址緩衝 本紙張尺度適用中國國家標準(CNS ) A4规格(210X297公釐> _ --.-----^----裝------訂------缂 - * (請先閲讀背面之注意事項再填寫本頁) 4 3 23 2 6 A7 B7 經濟部中央標準局貝工消费合作社印裝 五、發明説明(44 ) 器2 0 5,同步於EX階段之時鐘信號Clock 2之上昇時 間,輸出於地址總線I AB。一方面輸出CPU芯2之內 部總線A 1之數據係以算術邏輯運算器A L U 2 1 3,實 施地址運算》此時算術邏輯運算器ALU213實施〇加 算運算。該運算結果係輸出於C P U芯2之內部總線C 1 。輸出於C P U芯2之內部總線C 1。之運算結果係同步 於E X階段之時鐘信號Clock 2之上昇間存儲於指示字寄 存器(即以As指定之寄存器)。在存取對象之存儲器, 於MA階段之時鐘信號Clock 1之上昇至時鐘信號Clock 2 之上昇期間,實施以EX階段時鐘信號Clock 2之上昇時 間输出於地址總線I AB之地址之譯碼,在MA階段之時 鐘信號Clock2之上昇至次一時鐘信號Clock 1之上昇期間 實施數據存取》因此,自MA階段之時鐘信號ciock2之 上昇將數據輸出數據總線I DB。输出數據總線I DB之 數據•係同步於WB/D S P階段之時鐘信號Clockl之 上昇時間取進D S P引擎3將數據供給D S P引擎3之內 部總線D 1。同步於WB/D S P階段之時鐘信號Clock 2之上昇時間將D S P引擎3之內部總線D 1上之數據存 儲於目的寄存器完成動作。此例中,目的寄存器係成爲指 定於D s之寄存器。可指定於D s之寄存器,係DSP引 擎3內之任意之寄存器。如以上自存儲器向D S P引擎3 之數據讀進動作指令,係以I F,ID,EX,MA, WB/D S P之5段之管線階段完成動作。 圖1 4表示自向D S P引擎3向存儲器之數據讀進動 本纸浪尺度適用中國國家標準(cns ) a4規格Ui〇x;i97公釐> -47 - {請先閱讀背面之注意事項再填寫本瓦) 象· 訂. B7 經濟部中央標準局負工消費合作社印製 五、發明説明(45 ) 作之時間圖。茲舉MOVS ’ LDS@AS ’爲自DSP 引擎3向存儲器之數據寫進動作指示之一例說明其動作。 該指令係將存儲於D S指定之地址之數據轉送於A S指定 之寄存器之指令。 基本動作係與圖1 2所示自DSP引擎3向X,Y存 儲器之數據寫進動作相同:圓1 2與圖1 4之差異,係圖 1 2爲因對象之存儲器爲X,Y存儲器故使用總線XAB ,XDB總線YAB,YDB,而圓14則因對象之存儲 器係微電腦1連接於支持空間之存儲器,故使用總線 I AB,I DB «同步於EX階段時鐘信號Clockl之上 昇時間,存取得有轉送目標之地址之寄存器,將寄存器之 值输出於CPU芯2之內部總線A1»此例中,存儲應存 取之地址之寄存器,係成爲A S指定之寄存器。可以A S 指定之寄存器係含於CPU芯2之寄存器Reg,內之任 意寄存器。輸出於C PU芯2之內部總線A 1之數據係存 儲於地址緩衝器2 0 5,同步於EX階段之時鐘信號clocks 之上昇時間 ,輸出於地址總線 I AB » —方面輸出 C P U芯2之內部總線A 1之數據係以算術邏輯運算器 ALU213,寅施地址運算。此時算術邏輯運算器 ALU2 1 3實施0加算運算。該運算結果係輸出於 CPU芯2之內部總線C1。輸出於CPU芯2之內部總 線C 1之運算結果係同步於E X階段之時鐘信號^0£;112 之上昇間存儲於指示字寄存器(即以A s指定之寄存器) a 同步於Μ A階段之時鐘信號Clock 1之上昇時間,48 - 本紙張尺度通用中國國家標準(CNS ) A4規格(210X297公釐) ------^----扣衣------II------緯· _ (請先聞讀背面之注意事項再填寫本頁) 432326 經濟部中央樣準局貝工消費合作社印装 A7 B7五、發明説明(46) 將存儲應轉送數據之D S P引擎3內部之寄存器之值輸出 於DSP引擎3之內部總線D1 ,存儲於存儲數據緩衝器 (MDB2)。同步於MA階段之時鐘信號ciock2之上 昇時間。將存儲於存儲數據緩衝器(MD B I )之數據輸 出於數據總線I DB *此例中,存儲應轉送數據之DSP 引擎3內部之寄存器係成P指定於D s之寄存器。可指定 於D s之寄存器,係D S P引擎3內之任意寄存器。成爲 存取對象之存儲器係在MA階段之時鐘信號Clockl之上 昇至時鐘信號Clock2之上昇期間,以E X階段時鐘信號 Clock2之上昇時間實施輸出於地址總線I A B之地址寄 存器,在MA階段之時鐘信號ciock2之上昇至次一時鐘 信號Clockl之上昇期間實施數據存取。因此,在MA階 段之時鐘信號Clock 2之上昇時間,自D S P引擎3输出 之數據寫進存儲器。如以上自D S P引擎3向外部存儲器 之數據寫進動指令係以I F,1 D,EX,MA之4段之 管線階段完成動作。 其次舉 PADD S X > S y - D η P M U L . Se ,Sf - Dg,MOVX,W®AX,Dx, MOVY,W®Ay,Dy爲DSP運算指令之一例,用 圖15說明其動作》該指令係賁施自X-R0M4及X— RAM6 及 Y — R0M5 及 Y — RAM7 向 DSP 引擎 3 之數據轉送之指令,合併圖1 0與圖1之動作。因指令取 出,指令譯碼器之動作係與圖1 0相同,故省略其部份之 詳細說明。 本紙浪尺度適用中國國家標準(CNS ) A4規格(210X297公釐)-49 - I. --I I - m, -- J— - —- ! - { _ I Γ U3. 、νβ (請先閱讀背面之注意事項再填寫本頁) 經濟部中央標準局貝工消費合作社印製 4 3 ? 1 2 6 A7 B7五、發明説明(47 ) 實施自X,Y存儲器向DSP引擎3之數據讀進動作 指令時應,存取之存儲器之地址形成c P U芯2。因此同 步於E X階段之時鐘信號Clockl之上昇時間,存取保有 應存取之地址之寄存器·將寄存器之值输出於C P U芯2 之內部總線A 1〜A 2。此例中存儲應存取之地址之寄存 器係成爲Ax,Ay指定之寄存器。可指定於Αχ之寄存 器係含有CPU芯2之寄存器A〇x,Alx,而可指定 於Ay之寄存器係含於CPU芯2之寄存器AOy,A1 y。輸出於CPU芯2之內部總線A 1〜A2之數據係存 儲於存儲地址緩衝器(MABX,MABY)同步於Ex 階段之時鐘信號Clock2之上昇時間输出於地址總線 XAB,YAB。一方面输出CPU芯2之內部總線A1 〜A2之數據係以ALU213 ,PAU212實施地址 運算。(此時ALU213及FAU212實施0加算運 算》該運算結果係輸出於C P U芯2之內部總線C 1及 C2 ,輸出於CPU芯2之內部總線C1及C 2之運算結 果係同步於E X階段之時鐘信號Clock 2之上昇間存儲於 指示字寄存器(即以Αχ及Ay指定之寄存器P在X,Y 存儲器,於MA階段之時鐘信號Clock 1之上昇至時鐘信 號Clock2之上昇期間,實施以EX階段時鐘信號Clock 2之上昇時間輸出於地址總線XAB,YAB之地址之譯 碼,在Μ A階段之時鐘信號Clock2之上昇至次一時鐘信 號Clock 1之上昇期間實施數據存取。因此*自MA階段 之時鐘信號Clock2之上昇將數據輸出數據總線XDB ’ 本紙張尺度適用中國國家標準(CNS〉A4規格(210X297公釐go _ n I ~'裝 ~1 I . . 訂 (請先閲讀背面之注$項再填寫本頁) 經濟部中央標準局員工消費合作社印製 __B7__五、發明説明(48 ) YDB。輸出數據總線XDB,YDB之數據,係同步於 WB/D S P階段之時鐘信號Clockl之上昇時間取進 DSP引擎3將數據供給DSP引擎3之內部總線D1 , D 2。同步於WB/D S P階段之時鐘信號Clock2之上 昇時間將DSP引擎3之內部總線Dl ,D2上之數據存 儲於目的寄存器(Distinction Reg)完成動作。該例中 ,目的寄存器係成爲指定於DX及DY之寄存器。可指定 於DX之寄存器係含於DSP引擎3之寄存器XO,X1 ,可指定於Dy之寄存器係DSP引擎3內之YO,Y1 平行於上述數據轉送,亦同時實施D S P運算動作。 同步於WB/D S P階段之時鐘信號Clockl之上昇時間 ,存取存儲源數據之寄存器,將寄存器之值輸出D S P引 擎3之內部總線Α1 ,Α2,Β1 ,Β2»此例中,存儲 源數據之寄存器,係ADD (加法)動作構作爲S X及 Sy指定之寄存器,而MUL (乘法)動作時成爲Se及 S f指定之寄存器。可指定於Sx,Sy,Se及Sf之 寄存器,係D S P引擎3內部之任意之寄存器。输出D S P引擎3之內部總線A1,B1之數據係於MAC304 實施乘法運算,其結果係输出於D S P引擎3內部總線C 2 ·輪出於D S P引擎3之內部總線C 1及C 2之運算結 果係同步於WB/D S P階段之時鐘信號Clock2之上昇 時間,存儲於目的寄存器。此例之目的寄存器’係ADD 動作時成爲以D η,而MU L動作時成爲以D g指定之寄 本紙張尺度通用中國國家標準(CNS)M規格(2ί〇Χ297公η _ JH. - -"- —ί - - ! n. --- -11 - -I n --- n I - X 1^1 ^1* _ i— (請先閱讀背面之注意事項再填寫本頁) 經濟部中央橾準局貝工消費合作钍印製 A7 ________B7_ 五、發明説明(49 ) 存器。可指定於D η及D g之寄存器係D S P引擎3內部 之任意之寄存器。 如以上,實施存儲於D S P引擎3內之寄存器之數據 之加法,乘法,實施自X — R0M4或X — RAM6及γ —R0M5或Y-RAM7向D S P引擎3之數據轉送之 指令係以 I F,ID,EX,MA,WB/DSP 之 5 段 之管線階段完成動作。 舉:V. Description of the invention (40 implementation of white X t Υ memory 4 to 7 when reading data from the DSP engine 3 into the operation instructions f access to the memory address to form the CPU core 2. Therefore, the clock signal Clockl rise time synchronized with the EX phase To access the register that stores the address that should be accessed, output the value of the register to the internal bus A 1 ~ A 2 of C P ϋ core 2. In this example, the register that stores the address that should be accessed becomes AX, which is designated by Ay Registers. The registers that can be specified in Αχ are the registers A0χ and A1χ that contain CPU core 2, and the registers that can be specified in Ay are the registers A0y and A 1 y 0 that are contained in CPU core 2. They are completely from C PU core 2. The data of the internal bus A 1 ~ A 2 are stored in the memory address buffer (MABX, MAB Y). The rise time of the clock signal Clock 2 synchronized with the EX phase is output on the address bus XABYAB β. The internal bus of the CPU core 2 is output. The data of A 1 A 2 uses ALU [213, PAU212 for address calculation. At this time, ALU 21 3 and PAU 2 1 2 perform 0 addition operation 9 The calculation result is output to the internal buses C 1 and C 2 T of the CPU core 2. The calculation result is output to the internal bus C 1 and C 2 of the CPU core 2 and is stored in the pointer during the rise of the clock signal Clock2 in the EX phase. Register (that is, the register P designated by AX and Ay in the X, Y memory 4 7 t from the clock signal Clockl to the clock signal Clock2 rises, implements the EX phase clock signal Cloc- k2 output rise time Decoding of addresses on the address bus XAB, YAB »The clock signal Clock2 in the M A phase rises to the next clock signal Cl 0C k]. Data access is performed during the rising period. Therefore, the clock signal C1 0 in the MA phase The rise of C k2 will output the data to the data bus XDB. This paper size applies the Chinese National Standard (CNS) A4 specification (210X 297 mm) _ 43 ~ 43 23 26 Α7 Α7 Β7 V. Description of the invention (41), YDB. The data of the output data bus XDB and YDB are taken from the rise time of the clock signal Clockl synchronized to the WB / DSP phase. The DSP engine 3 supplies data to the internal buses D1, D 2 of the DSP engine 3 »The rise time of the clock signal Clock2 synchronized to the WB / DSP phase stores the data on the internal bus D1'D2 of the DSP engine 3 in the destination register to complete the action . In this example, the destination register becomes the register designated by DX and DY. The register that can be designated in D X is the register X0, XI contained in DSP engine 3, and the register that can be designated in Dy is the register YO 'Y1 contained in DSP engine 3. As mentioned above, the data read operation instruction from the memory to the DSP engine 3 is completed by the five-stage pipeline stages of IF, ID, EX, MA, WB / DSP. The data read operation of the parallel operation is independent of each other. The buses XAB, XDB, YAB, and YDB allow the CPU core 2 to access X and Y memories 4 to 7. Fig. 12 shows the time circle of writing data from the DSP engine 3 to the X, Y memories 6, 7; Here is an example of MOVX.W Da, @ A X Μ Ο V Y * W Da, ®Ay is an operation instruction written from the DSP engine 3 to the X * Y memory 6, 7 into the operation instruction. This instruction is an instruction to transfer the data stored in the register designated by D a to the address stored in the register designated by A X and A y. Instruction fetching, the operation of the instruction code is the same as that in Figure 1 *, so detailed descriptions of it are omitted | When the data from the DSP engine 3 to the X * Y memory 6, 7 is written into the operation instruction • Storage address to be accessed Form a CPU core 2. Therefore, the clock signal Clockl c synchronized with the EX phase, please read the precautions on the back before filling in this page.> Binding This paper size is applicable to the Chinese national standard (CNS > A4 size (210 × 297 mm)) Printed by the Standards Bureau Consumer Cooperatives / 13 23 26 at B7 V. Description of the invention (42) Rise time, access the address register that should be stored, and output the value of the register to the internal bus A 1 ~ A2 of CPU core 2 Synchronize with the rise time of Clock signal Clockl in the MA phase, access the internal register of DSP Engine 3 which stores the data to be transferred, output the value of this register to the internal bus D1 | D2 of DSP Engine 3, and store it in the stored data Buffer (MDBX, MDBY. In this example, the internal register of the DSP engine 3 that stores the data to be transferred becomes the register designated by D a. The register that can be designated by D a includes the registers A 0 and A 1 of the DSP engine 3. The rise time of the clock signal Clock2 synchronized with the MA phase, and the data stored in the storage data buffer (MD BX, MDBY) are output on the data bus XDB, YDB. The time synchronized with the MA phase The rise time of Clock 1 is used to access the internal registers of DSP Engine 3 that store the data to be transferred, and output the value of this register to the internal buses D1 and D2 of DSP Engine 3. * Store them in the storage data buffer (MDBX, MDBY ) ^ In this example, the internal register of the DSP engine 3 that stores the data to be transferred becomes the register designated by D a. The register that can be designated by D a is included in the registers A0 and A 1 of the DSP engine. The clock signal Clock synchronized to the MA phase 2 rise time, the data stored in the storage data buffer (MDBX, MBDY) is output on the data bus XDB, YDB. In X, Y memory 6, 7 in the MA phase, the clock signal Clockl rises to the clock signal Clock 2 During the rising period, the rising time of the clock signal Clock2 in the EX phase is used to decode the addresses output on the address bus XAB and YAB. The clock signal in the MA phase is based on the Chinese National Standard (CNS) A4 specification (210X 297 mm). _ 45 _ '(Please read the notes on the back before filling in this page >> Printed by the Central Standards Bureau of the Ministry of Economic Affairs, Consumer Cooperatives, A7, B7, V. Description of the invention (43) Clock2 Data is accessed during the rising period of the next clock signal Clockl. Therefore, the data of the output data bus XDB, YDB are written from the rising of the clock signal Clock 2 of the MA stage. The data of 7 is written into the action instruction to complete the action in the four pipeline stages of IF, ID, EX, MA. The write operation of the parallel items is because the independent buses XAB, XDB and TAB, YDB enable the CPU core 2 to access the X, Y memories 4, 6. FIG. 13 shows the time circle of the data read operation from the memory to the DSP engine 3. MOVS, L®AS, and DS are examples of the data read operation instruction from the memory to the DSP engine 3 to explain the operation. This instruction is an instruction to transfer the data stored in the address designated by AS to the register designated by DS. The basic operation is the same as the data reading operation from X, Y memory 4 ~ 7 to DSP engine 3 shown in Fig. 11. • The difference between Fig. 11 and Fig. 13 is that Fig. 11 shows that the target memory is X. , Y memory 4 ~ 7 uses X bus and Y bus, and Fig. 13 uses the bus IAB and I DB because the target memory is the microcomputer 1 connected to the memory supporting the space. Synchronize with the rise time of the clock signal Clockl in the EX phase, obtain the register with the address that should be accessed, and output the value of the register to the internal bus A 1 of the CPU core 2. In this example, the register storing the address to be accessed becomes the register designated by AS. The register that can be designated by AS is any register contained in Reg * of CPU core 2. The data output on the internal bus A 1 of the CPU core 2 is stored in the address buffer. The paper size is applicable to the Chinese National Standard (CNS) A4 specification (210X297 mm > _ --.----- ^ ---- ------ Order ------ 缂-* (Please read the notes on the back before filling out this page) 4 3 23 2 6 A7 B7 Printed by the Shellfish Consumer Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs Description of the invention (44) The device 2 0 5 is synchronized with the rise time of the clock signal Clock 2 in the EX phase and is output on the address bus I AB. On the one hand, the data outputting the internal bus A 1 of the CPU core 2 is an arithmetic logic operation unit ALU 2 1 3, Implementing Address Operations> At this time, the arithmetic logic unit ALU213 performs 0 addition operation. The operation result is output to the internal bus C 1 of the CPU core 2. The output is output to the internal bus C 1 of the CPU core 2. The operation result is The rise of the clock signal Clock 2 synchronized to the EX phase is stored in the pointer register (ie, the register designated by As). In the memory to be accessed, the rise of the clock signal Clock 1 in the MA phase to the rise of the clock signal Clock 2 During the period when the EX phase clock signal Clock 2 rises The data output from the address bus I AB is decoded at the same time, and data access is performed during the rise of the clock signal Clock2 in the MA phase to the rise of the next clock signal Clock1. Therefore, the data is raised from the rise of the clock signal ciock2 in the MA phase. The output data bus I DB. The data of the output data bus I DB are synchronized to the WB / DSP phase clock signal Clockl. The rising time is taken into the DSP engine 3 and the data is supplied to the internal bus D 1 of the DSP engine 3. Synchronized to the WB / DSP The rise time of the clock signal Clock 2 of the stage stores the data on the internal bus D 1 of the DSP engine 3 in the destination register to complete the action. In this example, the destination register becomes the register designated by D s. It can be designated by the register of D s It is an arbitrary register in DSP engine 3. As the above reads the action instruction from the memory to the DSP engine 3, it completes the action in the pipeline stage of IF, ID, EX, MA, WB / DSP in 5 stages. Figure 1 4 indicates that the self-directed DSP engine 3 reads the data from the memory. The scale of this paper applies the Chinese national standard (cns) a4 specification Ui〇x; i97 mm > -47-{Please read the note on the back first Then fill in this matter watts) as · set. B7 Central Bureau of Standards, Ministry of Economic Affairs negative consumer cooperative work printed V. invention is described in (45) as the time chart. MOVS ‘LDS @ AS’ is an example of an action instruction written into the memory from the DSP engine 3 to illustrate its action. This instruction is an instruction to transfer the data stored in the address designated by DS to the register designated by AS. The basic operation is the same as the data writing operation from DSP engine 3 to X, Y memory shown in Figure 12: The difference between circle 12 and Figure 14 is that Figure 12 shows that the target memory is X, Y memory. Use the bus XAB, XDB bus YAB, YDB, and circle 14 because the target memory is the microcomputer 1 connected to the memory of the support space, so use the bus I AB, I DB «synchronize with the rise time of the clock signal Clockl in the EX stage, and save the The register with the address of the transfer destination, and the value of the register is output to the internal bus A1 of the CPU core 2. In this example, the register storing the address to be accessed becomes the register designated by AS. The register that can be designated by A S is any register included in the register Reg of CPU core 2. The data output on the internal bus A 1 of the CPU core 2 is stored in the address buffer 2 0 5 and synchronized with the rise time of the clock signal clocks in the EX stage. It is output on the address bus I AB The data of the bus A 1 is calculated by an arithmetic logic operation unit ALU213. At this time, the arithmetic logic unit ALU2 1 3 performs 0 addition operation. The calculation result is output to the internal bus C1 of the CPU core 2. The calculation result output on the internal bus C 1 of the CPU core 2 is synchronized with the clock signal of the EX phase ^ 0 £; the rise time of 112 is stored in the pointer register (that is, the register designated by As s). Rise time of clock signal Clock 1, 48-This paper size is in accordance with the Chinese National Standard (CNS) A4 specification (210X297 mm) ------ ^ ---- buttoning -------- II --- --- Wei _ (Please read the notes on the back before filling out this page) 432326 Printed by the Central Samples Bureau of the Ministry of Economic Affairs, Shellfish Consumer Cooperatives, printed A7 B7 V. Description of the invention (46) DSP engine that will store the data to be transferred The value of the internal register 3 is output to the internal bus D1 of the DSP engine 3 and stored in the storage data buffer (MDB2). Synchronous to the rise time of the clock signal ciock2 in the MA phase. The data stored in the storage data buffer (MD B I) is output to the data bus I DB * In this example, the internal register of the DSP engine 3 storing the data to be transferred is a register designated by P s. The register that can be specified in D s is any register in DS engine 3. The memory to be accessed is from the rise of the clock signal Clockl to the rise of the clock signal Clock2 in the MA phase, and is output to the address register of the address bus IAB with the rise time of the EX phase clock signal Clock2, and the clock signal ciock2 in the MA phase Data access is performed during the period from the rising to the next clockl Clockl. Therefore, the rise time of the clock signal Clock 2 at the MA stage is the time when the data output from the DSP engine 3 is written into the memory. As mentioned above, the data write precession instruction from the DS engine 3 to the external memory is completed in the pipeline stage of the four stages of I F, 1 D, EX, MA. Next, PADD SX > S y-D η PMUL. Se, Sf-Dg, MOVX, W®AX, Dx, MOVY, W®Ay, Dy is an example of a DSP operation instruction, and its operation will be described using FIG. 15 "This instruction It is a command for transferring data from X-R0M4 and X-RAM6 and Y-R0M5 and Y-RAM7 to DSP Engine 3. Combine the actions of Figure 10 and Figure 1. Because the instruction is fetched, the operation of the instruction decoder is the same as that in Fig. 10, so detailed description of the part is omitted. The scale of this paper applies the Chinese National Standard (CNS) A4 specification (210X297 mm) -49-I. --II-m,-J —-—-!-{_ I Γ U3., Νβ (Please read the back first Please pay attention to this page, please fill in this page) Printed by the Central Standards Bureau of the Ministry of Economic Affairs, Shellfish Consumer Cooperative, 4 3? 1 2 6 A7 B7 V. Description of the invention (47) Implementation of reading instructions from X, Y memory to DSP engine 3 data At this time, the address of the accessed memory forms c PU core 2. Therefore, in synchronization with the rise time of the clock signal Clockl in the stage E and X, the register holding the address to be accessed is accessed. The value of the register is output to the internal buses A 1 to A 2 of the CPU core 2. In this example, the register storing the address to be accessed becomes the register designated by Ax and Ay. The registers that can be designated in Ax are the registers A0x, Alx containing CPU core 2, and the registers that can be designated in Ay are the registers AOy, A1y in CPU core 2. The data output on the internal buses A1 ~ A2 of the CPU core 2 are stored in the memory address buffers (MABX, MABY). The rise time of the clock signal Clock2 synchronized with the Ex stage is output on the address buses XAB and YAB. On the one hand, the data of the internal buses A1 to A2 of the output of the CPU core 2 are implemented by ALU213 and PAU212. (At this time, ALU213 and FAU212 implement 0 addition operation. "The operation result is output to the internal buses C1 and C2 of CPU core 2. The operation result output to the internal buses C1 and C2 of CPU core 2 is synchronized to the clock of the EX phase. The rising period of the signal Clock 2 is stored in the pointer register (that is, the registers P designated by Αχ and Ay are stored in the X and Y memory. During the rise of the clock signal Clock 1 in the MA phase to the rise of the clock signal Clock2, the EX phase clock is implemented. The rise time of the signal Clock 2 is output on the address bus XAB, YAB address decoding, and data access is implemented during the rise of the clock signal Clock2 in the stage M A to the rise of the clock signal Clock 1 in the next stage. Therefore * from the MA stage The rise of the clock signal Clock2 will output the data to the data bus XDB 'This paper size applies to the Chinese national standard (CNS> A4 specification (210X297 mm go _ n I ~' installed ~ 1 I... Order (please read the note on the back first) Refill this page) Printed by the Consumer Cooperatives of the Central Standards Bureau of the Ministry of Economic Affairs __B7__ V. Description of the Invention (48) YDB. The data of the output data bus XDB and YDB are clock signals synchronized to the WB / DSP stage. The rise time of Clockl is taken into the DSP engine 3 and the data is supplied to the internal buses D1 and D2 of the DSP engine 3. The rise time of the clock signal Clock2 synchronized to the WB / DSP phase stores the data on the internal buses D1 and D2 of the DSP engine 3. Complete the action in the destination register (Distinction Reg). In this example, the destination register is the register specified in DX and DY. The register that can be specified in DX is the register XO, X1 contained in the DSP engine 3, and can be specified in the register of Dy YO, Y1 in DSP Engine 3 are parallel to the above data transfer, and also perform DSP operations at the same time. Synchronize the rise time of Clockl Clockl in the WB / DSP phase, access the register storing the source data, and output the value of the register to the DSP. Engine 3's internal buses A1, A2, B1, B2 »In this example, the register that stores the source data is an ADD (addition) operation structure as the register designated by SX and Sy, and MUL (multiplication) operation becomes Se and S f Specified registers. Registers that can be specified in Sx, Sy, Se, and Sf are arbitrary registers inside the DSP engine 3. The data of the internal bus A1 and B1 of the DSP engine 3 are output. The multiplication operation is implemented in MAC304. The result is output to the internal bus C 2 of the DSP engine 3. The operation results of the internal buses C 1 and C 2 of the DSP engine 3 are synchronized to the rise time of the clock signal Clock 2 of the WB / DSP phase. , Stored in the destination register. In this example, the destination register 'is D η when ADD is operated, and MU L is the paper standard designated by D g as the general Chinese National Standard (CNS) M specification (2ί〇 × 297 公 η _ JH.-- "-—ί--! n. --- -11--I n --- n I-X 1 ^ 1 ^ 1 * _ i— (Please read the notes on the back before filling this page) Ministry of Economic Affairs A7 ________B7_ printed by the Central Bureau of quasi-government cooperation V. Invention Description (49) Register. The registers that can be specified in D η and D g are arbitrary registers inside DSP Engine 3. As above, the implementation is stored in DSP Addition and multiplication of the data in the registers in the engine 3 are implemented from X — R0M4 or X — RAM6 and γ — ROM5 or Y-RAM7 to the data transfer instruction of the DSP engine 3 with IF, ID, EX, MA, WB / The pipeline phase of the 5th stage of the DSP is completed.

Instl · PADD AO,MO,AO P M U L A 1 * X 〇 · A 1 MOVX. W@R4-X1 -MOVY.W @R6,Y0 I ns t 2 : ADD R 8 1 R 9Instl · PADD AO, MO, AO P M U L A 1 * X 〇 · A 1 MOVX. W @ R4-X1 -MOVY.W @ R6, Y0 I ns t 2: ADD R 8 1 R 9

Inst 3 : ADD R 1 0 > R 1 1 I n s 14 : ADD,R 1 2 ' R 1 3 之4連續指令爲D S P運算指令之第2例*用圖1 6說明 其動作。該4指令係同時使用地址總線I AB,XAB , 及YAB以實現同一時鐘週期不同之動作之例《因inst;l 至Inst4之指令動作,與圖7及圖1 5相同,故省略其部 份之詳細說明。 首先•在Instl之I F階段,實施Instl之指令取出 。因在Instl之2 D階段時Inst2成爲I F階段,故實施 指令取出。 在Instl之EX階段實施向X,Y存儲器之存取用之 地址運算時*圚Inst 2爲I R階段故實施指令譯碼,而因 本紙張尺度適用中國國家標準(CNS ) A4規格(2Ϊ0Χ297公釐)_ _ ~ ---------^-------^------ir------I (請先閱讀背面之注意事項再填寫本頁) 經濟部中央標準局員工消費合作社印製 4。。2 6 A7 _____B7_五、發明説明(5〇 ) Inst3爲I F階段故實施指令取出。 在Instl之MA階段|將於E X階段運算之地址輸出 於地址總線XAB,及YAB (實際輸出地址之時間係自 EX階段之時鐘信號Clock2之上昇時間起)自數據總線 XD B及YD B取進數據。此時在inst2爲E X階段實施 R8及R9之ADD運算表成動作,Inst3係爲I D階段 實施指令譯碼。而Inst4爲了 I F階段,將存儲Inst4之 地址輸出於地址總線。實際向地址總線I AB输出之時間 ,係自Ins t4之I F階段之半週期前之時鐘信號Clock 2 之上昇時間起。此時間係與Instl中將地址輸出於地址總 線XAB,YAB之時間(EX階段之後半及MA階段之 前半)相同之時間*即地址總線XAB及YAB係爲數據 轉送使用,在地址總線I AB係爲指令取使用。微電腦1 ,因分別有連接於C P U芯2之內部地址總線I A B, XAB,YAB及內部數據總線IDB,XDB,YDB ,故可使用該三種內部總線以同一時鐘週期實施不同之存 儲存取動作。 此後Instl在WB/D S P階段實施D S P運算,完 成動作,Inst2已完成動作,Inst3係爲EX階段實施 R 1 0與R 1 1之ADD運算完成動作,在Inst4爲了 I D階段實施指令譯碼· 次一週期僅實施Inst4之E X階段,實施R 1 2及R 13之ADD運算完成動作》 依本實施例得以下之作用效果。內藏存儲器係考慮 (請先聞請背面之注意事項再填寫本I) 裝· 訂 本紙張尺度適用中國國家標準(CNS)A4規格(210X 297公釐)-53 - Μ Β7 經濟部中央標率局負工消费合作社印装 五、 發明説明 (51 ) 1 | D S P 引 擎 3之 積 和 運 算 9 2 面 化 於 Y 存 儲 器 5 > 7 及 2 1 I 面 化 X 存儲器4 t 6 % C Ρ U 心 2 以 內 部 總 線 X A B ) 1 1 X D B 及 內 部總 線 Y A Β 9 Y D B 可 分 別 以 並 聯 存 取 Y 存 1 1 請 1 i 儲 器 5 7 及X 存 儲 器 4 6 9 因 此 1 可 白 內 藏 存 儲 器 4 先 } 1 於 1 7 同 時 將 2個 數 據 轉 送 D S P 引 擎 3 a 更 因 內 部總線 背 1 之 1 X A B > X D Β 及 內 部 總 椁 Y A B > Y D B 係 將 接 於 外 部 注 咅 均 事 1 之 內 部 總 線 I A B » I D Β 予 個 別 化 > 故 C P U 心 2 平 項 再 1 I 行於 X 存 儲 器4 9 6 及 Υ 存 儲 器 5 > 7 之 存 取 亦 可 外 部 填 窝 本 1 裝 存 儲 存 取 α 如上 述 因 有 分 別 連 接 於 C P U 心 2 之 3 種 地 址 頁 1 1 總 線 I A Β • X A B » Υ A B 及 數據 總 成 I D B X D B 1 1 » Y D B 故可 使 用 該 種 內 部 總 線 以 同 — 時 鐘 週 期 實 施 1 I 不 同 之 存 儲 存取 動 作 〇 故 亦 容 易 對 應 程 序 或 數 據 存 在 於 外 訂 I 部 存 儲 器 之 情形 而 可 實 現 運 算 處 理 之 高 速 化 0 1 1 I 由 R A Μ及 R 0 Μ 構 成 前 述 各 X 存 儲 器 4 6 及 Y 存 1 1 I 儲 器 5 7 更可 進 微 電 腦 之 使 用 性 1 1 如 上 述 ,由 於 內 藏存儲 器 係 2 面 化 於 X 存 儲 器 4 6 β 1 及 Y 存 儲 器 5, 7 二 面 化 之 各存 儲 器 具 有 R 0 Μ 及 R A Μ 1 1 » 使 R A Μ 爲數 據 存 儲 器 9 R 0 Μ 爲 程 序 存 儲 器 , 故 可 分 1 | 離 數 據 存 儲 器與程 式 存 儲 器 將 2 個 數據 並 聯 轉 送 於 D S 4 ( 1 Ρ 引 擎 3 1 又, 可 以 並 聯 管 線 處 理 有 效 實 施 指 令 取 出 9 數 ] I 據 轉 送 > 及 運算 1 1 1 由 於 C P U 心 2 具 備模 數 地 止 输 出 部 2 0 0 » 即 可 使 1 1 C 〇 P U 心 2 之積 和 蓮 算 等 之 重 複 運 算 用 之 地 址 形 成 高 速 化 1 1 1 1 本紙張尺度適用中國國家標準(€〜5)八4規格(210乂297公釐)—54- 經濟部中央標準局員工消費合作社印製 d ^ 23 2 6 Α7 Β7_ 五、發明説明(52 ) 例如CPU指令係將指令代碼之最上位4位分配於, 0 0 0 0’〜1 1 〇’之範圍e DSP指令係將指令 代碼之最上位4位分配於*1 1 1 之範圍。更將指令 代碼之最上位6位分配於1 1 1 〇〇#及, 1 1 1 1 0 1'範圍之指令,係亦將DSP指令成爲1 6 位長之指令代碼"指令代磾之最上位6位爲* 1 1 1 1 10#之指令,係成爲32位長之指令代碼。在 指令代碼之最上位6位爲1 1 1 1 I""之範圍並未分 配指令*將其範圍做爲未使用頜域,如上述,由於在對最 大3 2位之指令之代碼分配設如上述之規則,將各指令代 碼之一部份例如最上位側6位譯碼,即可以小邏輯規模之 譯碼器判定該指令寬爲CPU指令16位長之DSP指 令,或3 2位長之D S P指令,而無需經常將3 2位全部 以一次譯碼。 如依圖1 7之說明,在指令取出時間後,將未處理之 指令代碼數據設定於指令寄存器2 5,此時,應實施之指 令無論爲16位CPU指令,16位DSP指令或32位 D S P指令之任一指令,必可將其上位側1 6位供給第1 譯碼電路2 4 0。 參照圖1 7等所示構成示明瞭3 2位DSP指令之A 信息組之代碼數據係設定於指令寄存器2 5之上位領域 U I R »又,具有與A信息組同一格式之1 6位DSP指 令亦設定於上位領域ϋ I R。故無論任一項,c P U芯2 ’可同樣實施所需之地址運算及數據取出必要之數據總線 本紙張尺度適用中國國家標準(CNS)A4規格(2丨0.〆297公釐) 55 - — _.------------^------1T------妙、I (請先閲讀背面之注意事項再填寫本頁) B7 經濟部中央標準局員工消費合作社印装 五 '發明説明(53 ) 之選擇。換言之,將可將實施3 2位D S P指令用之數據 取出及實施1 6位D S P指令用之數據取出所需之譯碼電 路240,241共用化,此點,亦有益於微電腦1之邏 輯規模之縮小微電腦1之邏輯規模。 以上依實施例具體說明本發明人之發明,惟本發明並 不受此限制,只要不超出其要旨範圍,當可做各種_變更。 例如CPU指令,16位DSP指令,32位DSP指令 之識別並不限於利用指令之最上位6位,可隨指令代碼數 增減。又,對指令寄存器之下位1 6位移位於上位之機能 可置換於別之機能。又,含於C P U芯或D S P引擎之寄 存器支數或運算器之種類不限於上述實施例|而可適宜變 更。又|存儲器數不限於2個而可增加•又可合併存儲器 數增加連接存儲器之地址總線•數據總線之支數。例如, X,Y存儲器外新設Z存儲器。合併在CPU與Z存儲器 間連接地址總線ZAB,在DSP引擎與Z存餹器間連接 數據總線ZDB。依此種構成,不僅在積和運算時,自X ,Y存儲器將數據取進D S P引擎,並可將現在實施中之 指令前運算完成之數據經Z總線同時寫進Z存儲電路》因 以1個指令取進運算數據寫信存儲器,故更可提高微電腦 全體之解題能力。本發明最適於適用於移動體通信機器之 情報之壓縮伸長處理或過濾處理,伺服控制|印字機之畫 像處理等之機器組進控制用微電腦之利用。 〔發明之效果〕 本紙浪尺度逋用中國國家標準(CNS ) A4規格(210X297公釐)_ 56 — {請先閲讀背面之注$項再填寫本頁) 經濟部中央標準局貝工消費合作.社印製 A7 _______ B7五、發明説明(54) 茲將本申請揭示之發明中具代表性所得效果簡單說明 如下* 即,內藏存儲器因考慮數字信號處理機之積和運算, 2面化於第1存儲器與第2存儲器,由第3總線及第2線 線可分別以並聯存取,故中央處理機組可自內藏存儲器將 2個數據同時轉送於數字信號處理機組》 更因第3總線及第2總線,與接口於外部之第丨總線 個別代故中央處理機組’可平行第2存儲器與第1存儲器 之存取做外部存儲存取· 如上述,因有分別連接於中央處理機組之第1至第3 三種地址總線及數據總線,而可使用該三種內部總線以同 ~時鐘週期實施不同之存儲存取動作,故即使程序或數據 存在於外部存儲器亦容易對應而可實現運算處理之高速化 0 更由於內藏存儲器係2面化於第1存儲器及第2存儲 器2面化之各存儲器具有ROM及RAM,由於以RAM 爲數據存儲器,ROM爲程序存儲器,可分離數據存儲器 與程序存儲器,可將2個數據並聯轉送於數字信號處理機 組,又能以並聯管線處理有效實施指令取出,數據轉送及 運算。 故,與中央處理機組一同將數字信號處理機組裝置於 一個L S I時,可實現數字信號處理之高速化a 由於對C P U指令與D S P指令混合之指令·將指令 代碼之一部份譯碼而可識別該指令D S P指令或1 6位長 本紙伕尺度適用中國國家榡準(CNS ) Λ4規格(210X297公釐) ------------------t.------IT------I (請先閲讀背面之注$項再填寫本f) -Ο ί - 4 3 23 2 3 A7 _B7 五、發明説明(55 ) 之D S P指令,或3 2位長之D S P指令以分配指令代碼 ,即可以小邏輯規模之譯碼器判定指令之種別,而無須經 常將3 2位全部~次譯碼*故與中央處理機組一同將數字 信號處理機組裝置於一個L S I時,可極力抑制其物理規 模之增大。 由於D S P指令之指令格式,採用具有在數字信號處 理機組之間之數據轉送對該中央處理機組規定之第1代碼 領域(圖1 8所示之1 6位DSP指令之位9〜位0)之 第1格式指令,及具有與前述第1代碼領域同一格式之第 2代碼領域(圖2 0,圖2 1所示之3 2位DSP指令之 A信息組)’並將使用在該第2代碼領域規定之轉送數據 之運算處理對數字信號處理機組規定之第3代碼領域圖 20 ’圖21例示之32位之DSP指令之R信息組之第 2格式指令,實施第2及第2格式各指令之裝置,可採用 對第1代碼領域及第2代碼領域具有共同譯碼邏輯之譯碼 裝置’此點,亦可縮小微電腦之邏輯規模。 圖示之簡單說明: 圖1 :本發明之一實施例有關之微電腦之全部方塊圖 〇 圖2:微電腦之一例地址圖β 圖3 :詳細表示模數地址輸出部之CPU芯之方塊圖 〇 圖i : D S P引擎之一例方塊圖。 本紙張尺度適用中^"^準(CNS ) A4规格( 210X 297公釐} _ '— ---------•裝------1T------^ (請先聞讀背面之注意事項再壤寫本頁) 經濟部_央標隼局®:工消費合作社印裝 經濟部中央標率局員工消費合作杜印製 43232ο Α7 __Β7_,_ 五、發明説明(56 ) 圖5:關於微電腦之指令格式及指令代碼之一例說明 圖。 圖6:表示CPU芯之譯碼器與DSP引擎之譯碼器 之連接構成之方塊圖。 圖7:CPU芯內部之ALU運算指令之實施時間圖 〇 圖8:自存儲器將數據讀進CPU芯之指令之實施時 間圖。 圖9:自CPU芯將數據寫進存儲器之指令之實施時 間圖》 圖10:實施DSP指令時之一例時間圖。 圖1 1 :自X,Y存儲器將數據讀進DSP引擎之指 令之實施時間圖。 圖1 2 :自D S P引擎將數據寫進X,Y存儲器之指 令之實施時間圖" 圖13:自存儲器將數據讀進DSP引擎之指令之實 施時間圖。 圖1 4 :自D S P引擎將數據寫進存儲器之指令之實 施時間圖。 圖1 5 : DSP運算指令之一例實施時間圖。 圖1 6 :連續實施D S P運算指令時之一例時間圖。 圖1 7 :表示對應圚6之另一實施例之方塊圖》 圖1 8 :表示規定微電腦之內藏存儲器與DSP引擎 3之內藏寄存器間之數據轉送之1 6位D S Ρ指令代碼之 本紙張尺度通用中國國家標準(CNS) Α4規格(210X297公釐)_ ------------^------tr------.^ (請先閲讀背面之注意事項再填寫本頁) A7 B7 經濟部中失標準局負工消費合作杜印製 五、 發明説明(57 ) 指 令格 式 圖。 圖 1 9 : 表 示規定微電腦之 外部 存儲 器 與 D S P 引 擎 3 之內 藏 寄存 器 間之數據轉送之 16 位D S P 指 令 之 代 碼 之 指令 格 式圖* nan bBf 2 0 : 表 示著眼於3 2位 D S P指 令 之 A 信 息 組 時 之 該信 息 組之 代 碼及其對應之助 記等 之指 令 格 式 圖 〇 圖 2 1 : 表 示著眼於3 2位 D S P指 令 之 B 信 息 組 時 之 該信 息 組之 代 碼及其對應之助 記等 之指 令 格式 圖 » C 符號 說 明〕 1 « a .....* 微 電腦 2 • 1 « ...... C P U芯(中央處 理機 組) 2 0 ...... « 4 · C P U控制信號 2 4 ...... · * 譯碼器 2 4 0… * * · …第1譯碼電路 2 4 1… ι·ι …第2譯碼電路 2 4 2… …代碼轉換電路 2 4 3… …C P U譯碼電 路 2 4 …D S P譯碼電 路 2 4 5… ψ ψ ψ …代碼轉換控制 信號 2 4 7… … …C P U控制信 號 2 5 ...... …指令寄存器 2 5 0, 2 5 1 .........指令 領取 緩衝 器 2 0 0… … …模數地址輸出 部 ---------------^------1T------! (請先閲讀背面之注意事項再填寫本頁) 本紙張尺度適用中國國家標準(CNS>A4規格(2ΪΟΧ297公釐)—6〇 _ 經濟部中央標準局員工消費合作杜印製 432326 A7 B7五、發明説明(58 )2 0 6-2 0 7 .........存儲地址緩衝器 2 12 .........地址運算器 2 1 3 .........算算術邏輯運算器 2 14 .........模數始地址寄存器 2 15 .........模數終了地址寄存器 2 16-2 2 6 .......:*模數地址寄存器 3 ......... D S P引擎(數字信號處理機組) 3 4 .........譯碼器 3 0 2 .........算術邏辑運算器3 0 4 .........乘算器3 0 9 ,3 1 0,3 1 1 .........存儲數據緩衝器4 ......... X — R Ο Μ (第2存儲器)5 ......... Υ — R Ο Μ (第1存儲器) 6 ......... X — R AM (第2存儲器)7 ......... Y — R A Μ (第1存儲器) 12 .........外部存儲接口。 —.—;------裝------訂------统' - (請先閲讀背面之注意事項再填寫本頁) 本紙張尺度適用中國國家標準(CNS ) Α4規格(210X297公釐)_ 61 -Inst 3: ADD R 1 0 > R 1 1 I n s 14: ADD, R 1 2 'R 1 3 The 4 consecutive instructions are the second example of the D S P operation instruction * The operation will be described using FIG. 16. The 4 instructions are examples of using the address buses I AB, XAB, and YAB at the same time to achieve different actions in the same clock cycle. "The instructions of inst; l to Inst4 are the same as those in Fig. 7 and Fig. 15, so their parts are omitted." Detailed description. First • Instl's I F stage, implement Instl's instruction fetch. Since Inst2 is the I F phase during the 2 D phase of Instl, the instruction fetch is executed. When address calculation for access to X, Y memory is implemented in the EX stage of Instl * 圚 Inst 2 is the IR stage, so instruction decoding is implemented, and because this paper size applies the Chinese National Standard (CNS) A4 specification (2Ϊ0 × 297 mm) ) _ _ ~ --------- ^ ------- ^ ------ ir ------ I (Please read the notes on the back before filling this page) Economy Printed by the Consumer Standards Cooperative of the Ministry of Standards of the People's Republic of China 4. . 2 6 A7 _____B7_ V. Description of the invention (50) Inst3 is an I F stage, so the instruction is fetched. In the MA phase of Instl | The addresses calculated in the EX phase are output on the address bus XAB, and YAB (the actual output address time is from the rise time of the clock signal Clock2 in the EX phase) is taken in from the data bus XD B and YD B data. At this time, inst2 is the E and X stages, and the ADD operation tables of R8 and R9 are implemented. Inst3 is the I and D stage to implement instruction decoding. Inst4 outputs the address of Inst4 to the address bus for the I F phase. The actual output time to the address bus I AB is from the rise time of the clock signal Clock 2 before the half cycle of the I F phase of Ins t4. This time is the same as the time when the address is output to the address bus XAB and YAB in Instl (after the half of the EX phase and the first half of the MA phase). * That is, the address bus XAB and YAB are used for data transfer. In the address bus I AB Used for instruction fetch. The microcomputer 1 has internal address buses I A B, XAB, YAB and internal data buses IDB, XDB, YDB connected to the CPU core 2. Therefore, these three internal buses can be used to implement different storage, storage and fetch operations at the same clock cycle. After that, Instl implemented DSP operations in the WB / DSP phase to complete the operation. Inst2 has completed the operation. Inst3 is the EX phase to perform the ADD operation of R 1 0 and R 1 1 to complete the operation. Inst4 implements the instruction decoding for the ID phase. Only the EX phase of Inst4 is implemented in the cycle, and the ADD operation completion of R 1 2 and R 13 is performed. According to this embodiment, the following effects are obtained. The built-in memory is considered (please read the notes on the back before filling in this I). The paper size of the binding and binding is applicable to China National Standard (CNS) A4 (210X 297 mm) -53-Μ Β7 Central standard rate of the Ministry of Economic Affairs Printing by the Office of the Consumer Cooperative Cooperative V. Description of the invention (51) 1 | Product and operation of DSP engine 3 9 2 Face Y memory 5 > 7 and 2 1 I Face X memory 4 t 6% C Ρ U heart 2 with internal bus XAB) 1 1 XDB and internal bus YA Β 9 YDB can be accessed in parallel with Y memory 1 1 Please 1 i memory 5 7 and X memory 4 6 9 So 1 can be white built-in memory 4 first} 1 At the same time, 2 data were transferred to the DSP engine 3 a. 1 because of the internal bus back 1 XAB > XD Β and internal bus YAB > YDB will be connected to the internal bus IAB of external service 1 »ID Β Pre-individualization> Therefore, CPU core 2 flat item and then 1 I line X memory 4 9 6 and Υ memory 5 > 7 can also be accessed externally. Book 1 is installed for memory access α. As mentioned above, there are 3 kinds of address pages connected to the CPU core 2 1 1 Bus IA Β • XAB » Υ AB and data assembly IDBXDB 1 1 »YDB Therefore, this kind of internal bus can be used to implement 1 I different memory access operations with the same clock cycle. Therefore, it is also easy to deal with the situation where the program or data exists in the external I memory. High-speed operation can be realized. 0 1 1 I The above-mentioned X memory 4 6 and Y memory 1 1 I are composed of RA Μ and R 0 Μ. The usability of microcomputer 1 1 is as above. Memory 2 is X memory 4 6 β 1 and Y memory 5, 7 each memory has R 0 Μ and RA Μ 1 1 »Make RA Μ as data memory 9 R 0 Μ as program memory, so Points 1 | off data storage and process Type memory transfers 2 data in parallel to DS 4 (1 Ρ engine 3 1 and can be executed in parallel pipeline to effectively execute the instruction fetch 9 digits) I data transfer > and operation 1 1 1 because the CPU core 2 has modulo to stop output Department 2 0 0 »Speed up the product of 1 1 C 〇PU heart 2 and the address for repeated calculations such as lotus calculation 1 1 1 1 This paper size applies Chinese national standard (€ ~ 5) 8 4 specifications ( 210 乂 297 mm) —54- Printed by the Consumer Cooperatives of the Central Bureau of Standards of the Ministry of Economic Affairs d ^ 23 2 6 Α7 Β7_ V. Description of the Invention (52) For example, the CPU instruction assigns the upper 4 digits of the instruction code to 0 0 0 0 '~ 1 1 〇'e DSP instruction is to assign the highest 4 digits of the instruction code to the range of * 1 1 1. The top 6 digits of the instruction code are allocated in the 1 1 1 〇〇 # and 1 1 1 1 0 1 'range. The DSP instructions are also 16-bit long instruction codes. The upper 6 bits are * 1 1 1 1 10 # instructions, which are 32-bit long instruction codes. In the uppermost 6 digits of the instruction code, the range of 1 1 1 1 I " " is not assigned. The range is used as the unused jaw field. As mentioned above, because the According to the above rule, if a part of each instruction code is decoded, for example, the uppermost 6 bits, the decoder with a small logic scale can determine that the instruction width is a CPU instruction 16-bit long DSP instruction, or 32-bit long. DSP instructions without having to decode all 32 bits all at once. As shown in Figure 17, after the instruction fetch time, the unprocessed instruction code data is set in the instruction register 25. At this time, the instruction to be implemented is not a 16-bit CPU instruction, a 16-bit DSP instruction, or a 32-bit DSP. Any one of the instructions must supply the upper 16 bits to the first decoding circuit 2 4 0. Referring to FIG. 17 and the like, it is shown that the code data of the A field of the 32-bit DSP instruction is set in the instruction register 2 5 upper field UIR »Also, the 16-bit DSP instruction having the same format as the A field is also Set to the upper field ϋ IR. Therefore, in any case, the c PU core 2 'can also perform the required address calculation and data fetching. The necessary data bus is applicable to the paper standard of China National Standard (CNS) A4 (2 丨 0.〆297 mm) 55- — _.------------ ^ ------ 1T ------ Wonderful, I (Please read the notes on the back before filling this page) B7 Central Standards of the Ministry of Economic Affairs Office staff consumer cooperatives printed five 'invention descriptions (53). In other words, the decoding circuits 240 and 241 required for fetching data for implementing 32-bit DSP instructions and fetching data for implementing 16-bit DSP instructions are shared. This is also beneficial to the logic scale of microcomputer 1. Reduce the logical scale of the microcomputer 1. The invention of the present inventors has been specifically described above according to the embodiments, but the present invention is not limited thereto, and various changes can be made as long as the scope of the invention is not exceeded. For example, the identification of CPU instructions, 16-bit DSP instructions, and 32-bit DSP instructions is not limited to the use of the upper 6 bits of the instruction, which can be increased or decreased with the number of instruction codes. In addition, the function of shifting 16 bits below the instruction register to the upper position can be replaced with another function. In addition, the number of registers or types of arithmetic units included in the CPU core or DSP engine are not limited to the above-mentioned embodiments, but may be appropriately changed. The number of memories is not limited to two and can be increased. • The number of memories can be combined to increase the number of address buses and data buses connected to the memory. For example, a Z memory is newly set in addition to the X and Y memories. The address bus ZAB is connected between the CPU and the Z memory, and the data bus ZDB is connected between the DSP engine and the Z memory. According to this structure, not only the data from the X and Y memories are taken into the DSP engine during the product sum operation, but the data completed by the pre-instruction operation currently being implemented can be simultaneously written into the Z storage circuit via the Z bus. Each instruction is fetched into the operation data writing memory, so it can improve the problem solving ability of the microcomputer as a whole. The present invention is most suitable for the use of a microcomputer for controlling the compression and elongation processing or filtering processing of information of a mobile communication device, the servo control, the image processing of a printer, and the like. [Effects of Invention] This paper uses the Chinese National Standard (CNS) A4 specification (210X297 mm) _ 56 — (Please read the note on the back before filling this page). A7 _______ B7 printed by the agency V. Invention description (54) The representative effects of the inventions disclosed in this application are briefly described as follows * That is, the built-in memory takes into consideration the product and operation of the digital signal processor, The first memory and the second memory can be accessed in parallel by the third bus and the second line, so the central processing unit can transfer the two data from the built-in memory to the digital signal processing unit at the same time. And the second bus, and the central processing unit that is externally connected to the external 丨 bus, can independently access the second memory and the first memory for external storage access. As mentioned above, because there are separate connections to the central processing unit The first to third types of address buses and data buses, and the three internal buses can be used to implement different memory access operations at the same clock cycle, so even programs or data exist in external memory It is easy to cope with and achieve high-speed operation processing. Furthermore, since the built-in memory is two-sided, the first and second memories each have ROM and RAM. Since RAM is used as data storage, ROM is used as program memory. Separate data memory and program memory, can transfer 2 data in parallel to the digital signal processing unit, and can effectively implement instruction fetch, data transfer and operation by parallel pipeline processing. Therefore, when the digital signal processing unit is installed in one LSI together with the central processing unit, the digital signal processing can be speeded up a. It is identifiable because it decodes a part of the instruction code by mixing CPU instructions with DSP instructions This instruction is a DSP instruction or a 16-bit long paper size standard that is applicable to the Chinese National Standard (CNS) Λ4 specification (210X297 mm) ------------------ t .--- --- IT ------ I (Please read the note on the back before filling in this f) -Ο ί-4 3 23 2 3 A7 _B7 V. DSP instruction of the description of the invention (55), or 3 2 Bit length DSP instructions are used to assign instruction codes, that is, a decoder of a small logical scale can determine the type of instructions without having to decode all 3 or 2 bits all the time. Therefore, the digital signal processing unit is installed together with the central processing unit. When an LSI is used, the physical scale of the LSI can be suppressed as much as possible. Due to the instruction format of the DSP instruction, the first code area (bit 9 to bit 0 of the 16-bit DSP instruction shown in Figure 18) shown in Figure 18 is used to transfer data between digital signal processing units to the central processing unit. The first format instruction and the second code area having the same format as the aforementioned first code area (Fig. 20, Fig. 21, A 2-pack of the 32-bit DSP instruction A group) will be used in this second code The calculation processing of the transfer data specified in the field. The third code field specified for the digital signal processing unit. Figure 20 'Figure 21 illustrates the 32-bit DSP instruction in the R block of the second format instruction, and implements the second and second format instructions. As the device, a decoding device having common decoding logic for the first code area and the second code area can be used. This can also reduce the logic scale of the microcomputer. Brief description of the figure: Figure 1: All block diagrams of a microcomputer related to an embodiment of the present invention. Figure 2: Example address diagram of a microcomputer. Figure 3: Block diagram showing the CPU core of the modular address output section in detail. i: An example block diagram of a DSP engine. This paper is applicable to the standard ^ " ^ Standard (CNS) A4 (210X 297 mm) _ '—---------- • installed ------ 1T ------ ^ ( Please read the precautions on the back before writing this page) Ministry of Economic Affairs_Central Standards Bureau®: Industrial and Consumer Cooperative Cooperatives Printed by the Central Standards Bureau of the Ministry of Economic Affairs and Consumer Cooperation Du printed 43232ο Α7 __Β7 _, _ V. Description of the invention ( 56) Figure 5: An example of the instruction format and instruction code of a microcomputer. Figure 6: A block diagram showing the connection structure between the decoder of the CPU core and the decoder of the DSP engine. Figure 7: ALU inside the CPU core Figure 8: Implementation time chart of the instruction to read data from the memory into the CPU core Figure 9: Implementation time chart of the instruction to write data into the memory from the CPU core Figure 10: When the DSP instruction is implemented An example time chart. Figure 1 1: Implementation time chart for reading data from the X, Y memory into the DSP engine. Figure 1 2: Implementation time chart for writing data from the DSP engine into the X, Y memory. &Quot; Figure 13: Implementation time chart of instructions for reading data from DSP engine into memory Figure 14: Writing data from DSP engine into memory Instruction implementation time chart. Fig. 15: An example implementation time chart of a DSP operation instruction. Fig. 16: An example time chart when a DSP operation instruction is continuously implemented. Fig. 17: A block diagram showing another embodiment corresponding to 圚 6. 》 Figure 18: The 16-digit DS P instruction code indicating the transfer of data between the built-in memory of the microcomputer and the built-in registers of the DSP engine 3 is the standard of the Chinese paper standard (CNS) A4 (210X297 mm). _ ------------ ^ ------ tr ------. ^ (Please read the notes on the back before filling in this page) A7 B7 Bureau of Standards, Ministry of Economic Affairs Du-work and consumer cooperation Du printed 5. Inventory (57) Instruction format diagram. Figure 19: Instruction format of 16-bit DSP instruction code that specifies the data transfer between the external memory of the microcomputer and the built-in registers of the DSP engine 3. Figure * nan bBf 2 0: The instruction format of the A-group of the 32-bit DSP instruction when it is focused on the code of the information group and its corresponding mnemonic, etc. Figure 2 1: The 3-digit D is focused on the D The format of the instruction of the B group of the SP instruction and the corresponding instruction format of the mnemonic, etc. »C Symbol Description] 1« a ..... * Microcomputer 2 • 1 «...... CPU Core (Central Processing Unit) 2 0 ...... «4 · CPU control signal 2 4 ...... · * Decoder 2 4 0 ... * * ·… the first decoding circuit 2 4 1… ι · ι… 2nd decoding circuit 2 4 2…… code conversion circuit 2 4 3…… CPU decoding circuit 2 4… DSP decoding circuit 2 4 5… ψ ψ ψ… code conversion control signal 2 4 7…… … CPU control signal 2 5 ......… Instruction register 2 5 0, 2 5 1 ......... Instruction fetch buffer 2 0 0…… modulo address output section ---- ----------- ^ ------ 1T ------! (Please read the precautions on the back before filling this page) This paper size applies Chinese National Standard (CNS > A4 Specifications (2ΪΟ × 297mm) —60 % _ Staff Consumption of Central Bureau of Standards, Ministry of Economic Affairs Du printed 432326 A7 B7 V. Description of the invention (58) 2 0 6-2 0 7 ......... memory address buffer 2 12 ......... address arithmetic unit 2 1 3 ......... Arithmetic and Logic Operator 2 14 ......... Modulus Start Address Register 2 15 ......... Modulus End Address Register 2 16- 2 2 6 .......: * Modulo Address Register 3 ......... DSP Engine (Digital Signal Processing Unit) 3 4 ......... Decoder 3 0 2 ......... arithmetic logic operator 3 0 4 ......... multiplier 3 0 9, 3 1 0, 3 1 1 ......... Storage data buffer 4 ......... X — R Ο Μ (second memory) 5 ......... Υ — R Ο Μ (first memory) 6 ..... .... X — R AM (second memory) 7 ......... Y — RA Μ (first memory) 12 ......... External memory interface. —.—; ------ install ------ order ------ uniform '-(Please read the precautions on the back before filling this page) This paper size applies to Chinese National Standards (CNS) Α4 Specifications (210X297 mm) _ 61-

Claims (1)

:ΐ ❸ -匕- π、申請專利範圍 第85114414號專利申請案 中文申請專利範圍修正本 民國8 9年8月修正 1 ·—種微電腦,即將中央處理機組,及由前述中 處理機組存取控制之存儲器,及在前述存儲器與中央處理 機組之間傳遞數據之數據總線,及前記同步於中央處理機 組動作之數字信號處理機組,含於1基片之微電腦,其中 前述中央處理機組係含經前述數據總線取出中央處理 機組用之1 6位固定長之C P U指令,及數字信號處理機 組用之1 6位或3 2位長之D S Ρ指令之指令寄存器,及 依據前述指令寄存器取出之指令之一部份之複數位•識別 C P U指令及D S Ρ指令,隨識別結果,形成前述數字信 號處理機組之動作控鄘用D S Ρ控制信號及中央處理機組 之動作控制用C P U控制信號之譯碼器而成= 2 .如申請專利範圍第1項所述之微電腦*其中前述 譯碼器係含將指令寄存器之上位16位譯碼形成前述 C P U譯碼信號及D S Ρ譯碼信號之第1譯碼電路,及在 第1譯碼電路3 2位長之D SO指令時,輸出將指令寄存 器之下位1 6位編碼之信號,而在識別其以外之指令時, 輸出意味輸出無效之代碼之代碼變換電路,而將前述 D S P譯碼信號及代碼變換電路之輸出做爲d S P控制信 號。 3 . —種微電腦,係含中央處理組,及同步於前述中央 處理組動作之數字信號處理機組,及共同連接前述中央處 本紙張尺度適用Φ S國家標準(CNSU.丨規格(21ϋ X 297公·坌) ------------ 於--------訂---------,線- (請先閱讀背面之注意事項再填寫本頁) 經-部智慧时產局員工消費合作社印裂 [)h π、申請專利範圍 ---- 經-部智慧財產局員工消黄合作社印製 理機組及前述數字信號處理機組之內部總線’予以半導體 集成電路化而成之微電腦,其中 前述中央處理機組係具備,具有實施對該中央處理機 組規定數字信號處理機組間之數字轉送之第1代碼領域之 第1格式指令,及具有與前述第1代碼領域同格式之第2 代碼領域,並對數字信號處理機組規定使用該第2代碼領 域規定之轉送數字之演算處理之第3代碼領域之第2格式 指令用之實施控制裝置而成。 4 .如申請專利範圍第3項所述之微電腦,其中前述 第1格式令及第2格式指令,具有表示其爲第1格式或第 2格式用之第4領域。 5 .如申請專利範圍第4項所述之微電腦,其中前述 實施控制裝置,係含共用於前述第1格式指令及第2格式 指令之指令寄存器 > 及 將含於前述指令寄存器取出之指令之前述第1代碼領 域及第4代碼領域或第2代碼領域及第4代碼領域譯碼之 譯碼裝置,及 依其譯碼結果實施位址演算,實施前述數據轉送控制 之實施裝置而成β 6 .如申請專利範圍第5項所述之微電腦,其中,前 述指令寄存器,具有共用於保持前述第1代碼領域及第4 代碼領域或第2代碼領域及第4代碼領域之上位領域,及 利用於保持前述第3代碼領域之下位領域,而前述譯碼裝 置,係依據前述第4領域之譯碼結果,輸出表示前述指令 ------------ 机--------訂---------線 (請先閱讀背面之注意事項再填寫本頁) ^3 23 2 6 S i)h π、申請專利範圍 寄存器保持第2格式指令之控制信號,依據其控制信號, 自前述下位領域向前述數字信號處理機組供給第3代碼領 域之代碼數據之裝置而成》 7 . —種半導體基板上之資料處理裝置 包含中央處理機組,及由中央處理機組存取之存儲器,及 連接於前述存儲器及前述中央處理機組之數據總線,及由 前述中央處理機組控制其動作之數字信號處理機組; 其中前述中央處理機組係包含,與前述數據總機連接 ,藉前記數據總機將存儲器供給之指令取出之指令寄存器 ,及與前述指令寄存器連接之譯碼器;其中前述指令係包 含前述中央處理機組用之第1位長之第1指令,及藉前述 數據總機被結合之前述數字信號處理機組用之第1位長或 比第1位長更長之第2位長之第2指令; 其中前述譯碼器係將被前述指令寄取器取出之指令之 一部分之複數位譯碼,且識別被前述指令寄取器取出之指 令是第1指令,或第2指令或皆不是。 經-部智慧时產局員工消費合作社印裝 (請先閱讀背面之注意事項再填寫本頁) 8 _如申請專利範圍第7項之資料處理裝置,其中 前述譯碼器將前述指令寄存器取出之指令識別爲第1 指令時,產生用以控制前述中央處理機組之第1控制信號 r 前述譯碼器將前述指令寄存器取出之指令識別爲第2 指令,數字信號處理機組之第2控制信號。 9如申請專利範圍第8項之資料處理裝置,其中前 述指令寄存器係含第1位長之上位區及第1位長之下位區 本紙張又度適用中國國家標里(CNTS)A1規格(J10 X 297公望) 一 3 - 4 3 2 3 2 6 i)h 7T、曱請專利範圍 而成第2位長;其中前述譯碼器係包含將前述指令寄存器 之上位區取出之指令碼予以譯碼並生成前述第1控制信號 及譯碼信號之譯碼電路,及碼變換電路;其中前述碼變換 電路係,於前述譯碼器將前述指令寄取器取出之指令識別 爲第2位長之第2指令時,輸出將前述指令寄取器之下位 區取出之指令碼指令化之信號,且前述譯碼器識別爲第2 位長之第2指令外之指令時,輸出意味1輸出無效之碼; 其中前述譯碼信號及前述變換電路之輸出變成第2控制信 號。 (請先閱讀背面之注音ί事項再填寫本頁) 我--------訂----------線 經濟部智慧財產局員工消費合作社印製 本纸張尺度適用+國1家標準(CNSW規格(210 χ 297公髮): ΐ ❸-Dagger-π, Patent Application No. 85114414, Chinese Patent Application Amendment, Republic of China, August 1989 Amendment 1 · A microcomputer, that is, the central processing unit, and access control by the aforementioned middle processing unit The memory, the data bus that transfers data between the aforementioned memory and the central processing unit, and the digital signal processing unit that synchronizes the actions of the central processing unit with the preamble, are included in a 1-chip microcomputer. The data bus fetches 16-bit fixed-length CPU instructions for the central processing unit, and 16-bit or 32-bit DS P instructions for the digital signal processing unit, and one of the instructions fetched according to the aforementioned instruction register Part of the complex digits • Identify the CPU instruction and DS P instruction, and with the recognition result, form the decoder of the aforementioned digital signal processing unit using the DS P control signal and the central processing unit ’s CPU control signal decoder = 2. The microcomputer as described in item 1 of the scope of patent application *, wherein the aforementioned decoder includes an instruction register The upper 16-bit decoding forms the first decoding circuit of the aforementioned CPU decoding signal and DS P decoding signal, and when the D SO instruction of the first decoding circuit 3 is 2 bits long, the lower bit of the instruction register is output 1 6 Bit-coded signals, and when other instructions are identified, a code conversion circuit that outputs an invalid code is output, and the aforementioned DSP decoded signal and the output of the code conversion circuit are used as d SP control signals. 3. A kind of microcomputer, which includes a central processing unit and a digital signal processing unit synchronized with the actions of the aforementioned central processing unit, and is connected to the aforementioned central location. The paper size applies to the national standard (CNSU. 丨 specifications (21ϋ X 297) · 坌) ------------ Order at ----------------, line-(Please read the precautions on the back before filling this page) Employees of the Ministry of Economic Affairs-Ministry of Intellectual Property, Consumer Cooperative Print [] h π, patent application scope ---- The internal bus of the Ministry of Economic Affairs-Ministry of Intellectual Property Bureau employee yellow cooperative printed circuit unit and the aforementioned digital signal processing unit to semiconductors An integrated circuit-based microcomputer, in which the aforementioned central processing unit is provided with a first format instruction in a first code area for implementing digital transfer between digital signal processing units for the central processing unit, and having the same code as the first code The field is the same as the second code field of the same format, and the digital signal processing unit is provided with an implementation control device for the second format command of the third code field that specifies the calculation processing of the transferred number specified in the second code field. 4. The microcomputer according to item 3 of the scope of patent application, wherein the first format order and the second format instruction have a fourth field indicating that they are in the first format or the second format. 5. The microcomputer according to item 4 of the scope of patent application, wherein the aforementioned implementation control device includes an instruction register > which is commonly used for the foregoing first format instruction and second format instruction, and an instruction which contains the instruction register fetched from the foregoing instruction register. The decoding device for decoding the first code area and the fourth code area, or the second code area and the fourth code area, and an implementation device for performing an address calculation based on the decoding result and implementing the aforementioned data transfer control are β 6 The microcomputer according to item 5 of the scope of patent application, wherein the instruction register has a common area for holding the first code area and the fourth code area or the second code area and the upper area of the fourth code area, and is used in The lower field of the third code field is maintained, and the decoding device is based on the decoding result of the fourth field, and the output indicates the aforementioned instruction ------------ machine -------- --Order --------- line (please read the notes on the back before filling in this page) ^ 3 23 2 6 S i) h π, the patent application range register holds the control signal of the second format instruction, According to its control signal, The lower-level field is made up of a device that supplies code data in the third code field to the aforementioned digital signal processing unit. "7-A data processing device on a semiconductor substrate includes a central processing unit, and a memory accessed by the central processing unit, and is connected to The data bus of the foregoing memory and the central processing unit, and the digital signal processing unit whose operations are controlled by the central processing unit; wherein the central processing unit includes a connection with the aforementioned data switchboard, and the instructions provided by the data switchboard are used to take out the memory supply instructions. An instruction register and a decoder connected to the foregoing instruction register; wherein the foregoing instruction includes the first instruction of the first bit length used by the central processing unit, and the digital signal processing unit used by the foregoing data exchange unit to be combined The second instruction which is longer than the first bit or the second instruction which is longer than the first instruction; wherein the aforementioned decoder decodes a plurality of bits of a part of the instruction fetched by the aforementioned instruction register, and identifies the The instruction fetched by the instruction register is the first instruction, or the second instruction or neither. Printed by the Consumer Affairs Cooperative of the Ministry of Economic Affairs and Industry Bureau (please read the precautions on the back before filling out this page) 8 _If the data processing device of the scope of patent application item 7, the aforementioned decoder fetches the aforementioned instruction register When the command is identified as the first command, a first control signal r for controlling the central processing unit is generated. The decoder recognizes the command fetched from the command register as the second command and the second control signal of the digital signal processing unit. 9 If the data processing device according to item 8 of the scope of patent application, wherein the aforementioned instruction register includes the first long upper area and the first long lower area, the paper is also applicable to the Chinese National Standard (CNTS) A1 specification (J10 X 297 public hope) a 3-4 3 2 3 2 6 i) h 7T, please apply for the patent range to become the second bit length; where the aforementioned decoder includes the instruction code to fetch the upper bit area of the aforementioned instruction register to decode And generating a decoding circuit for the first control signal and a decoding signal, and a code conversion circuit, wherein the code conversion circuit recognizes the instruction fetched by the instruction register as the second long bit in the decoder. When it is 2 instructions, it outputs a signal that instructs the instruction code fetched from the lower area of the aforementioned instruction register, and when the decoder recognizes it as an instruction other than the second instruction with the second bit length, it outputs a code that means 1 to output an invalid code. ; Wherein the decoding signal and the output of the conversion circuit become a second control signal. (Please read the note on the back before filling in this page) I -------- Order ---------- Printed by the Consumers' Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs + 1 country standard (CNSW specifications (210 x 297)
TW085114414A 1995-05-02 1995-12-12 Microcomputer TW432326B (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP13290695 1995-05-02
JP34744195A JP3727395B2 (en) 1995-05-02 1995-12-14 Microcomputer
US09/229,147 US6434690B1 (en) 1995-05-02 1999-01-11 Microprocessor having a DSP and a CPU and a decoder discriminating between DSP-type instructions and CUP-type instructions

Publications (1)

Publication Number Publication Date
TW432326B true TW432326B (en) 2001-05-01

Family

ID=27316604

Family Applications (2)

Application Number Title Priority Date Filing Date
TW084113247A TW424192B (en) 1995-05-02 1995-12-12 Microcomputer
TW085114414A TW432326B (en) 1995-05-02 1995-12-12 Microcomputer

Family Applications Before (1)

Application Number Title Priority Date Filing Date
TW084113247A TW424192B (en) 1995-05-02 1995-12-12 Microcomputer

Country Status (3)

Country Link
JP (1) JP3727395B2 (en)
DE (1) DE69614442T2 (en)
TW (2) TW424192B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW439380B (en) 1995-10-09 2001-06-07 Hitachi Ltd Terminal apparatus
KR19990017021A (en) * 1997-08-21 1999-03-15 윤종용 Systems and hardware with integrated microcontroller and digital signal processor
JP3822380B2 (en) 1999-03-26 2006-09-20 富士写真フイルム株式会社 Image signal processing device
EP2267896A3 (en) * 1999-05-12 2013-02-20 Analog Devices, Inc. Method for implementing finite impulse response filters
KR20030085094A (en) 2001-04-03 2003-11-01 미쓰비시덴키 가부시키가이샤 Encrypting device
KR100881196B1 (en) * 2007-05-29 2009-02-05 삼성전자주식회사 Memory device having alternative bit organizations and system including the same
JP2010003151A (en) 2008-06-20 2010-01-07 Renesas Technology Corp Data processing apparatus

Also Published As

Publication number Publication date
TW424192B (en) 2001-03-01
DE69614442D1 (en) 2001-09-20
JP3727395B2 (en) 2005-12-14
DE69614442T2 (en) 2002-05-16
JPH0922379A (en) 1997-01-21

Similar Documents

Publication Publication Date Title
JP6456867B2 (en) Hardware processor and method for tightly coupled heterogeneous computing
JP3206704B2 (en) Data processing device with multiple on-chip memory buses
JP6498226B2 (en) Processor and method
TW309605B (en)
JP2010526383A (en) Compact instruction set encoding
TW525087B (en) Processor architecture for executing two different fixed-length instruction sets
TW424197B (en) Data processing circuit, microcomputer, and electronic equipment
TW434472B (en) Instruction encoding techniques for microcontroller architecture
CN104951296A (en) Inter-architecture compatability module to allow code module of one architecture to use library module of another architecture
TW544626B (en) Method and apparatus for verifying that instructions are pipelined in correct architectural sequence
JP2013522749A (en) Mapping between registers used by multiple instruction sets
JP2014182802A (en) Processors, methods, systems, and instructions to consolidate unmasked elements of operation masks
TW201640331A (en) Method and apparatus for vector index load and store
JP6741006B2 (en) Method and apparatus for variably extending between mask and vector registers
JP2001092662A (en) Processor core and processor using the same
CN107003986A (en) Method and apparatus for carrying out vector restructuring using index and immediate
JP2013242892A (en) Method and system to combine corresponding half word units from multiple register units within microprocessor
TW432326B (en) Microcomputer
US5666510A (en) Data processing device having an expandable address space
KR20170097618A (en) Method and apparatus for performing big-integer arithmetic operations
JPH04109339A (en) Register number specifying circuit and data processor provided with the circuit
JP3562215B2 (en) Microcomputer and electronic equipment
JP3867804B2 (en) Integrated circuit device
JP2000039995A (en) Flexible accumulate register file to be used in high performance microprocessor
TW541496B (en) Micro-computer and electronic machine

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent
MM4A Annulment or lapse of patent due to non-payment of fees