JP2004334256A - Data processing system and controller - Google Patents

Data processing system and controller Download PDF

Info

Publication number
JP2004334256A
JP2004334256A JP2003124733A JP2003124733A JP2004334256A JP 2004334256 A JP2004334256 A JP 2004334256A JP 2003124733 A JP2003124733 A JP 2003124733A JP 2003124733 A JP2003124733 A JP 2003124733A JP 2004334256 A JP2004334256 A JP 2004334256A
Authority
JP
Japan
Prior art keywords
cpu
data
selection signal
storage device
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2003124733A
Other languages
Japanese (ja)
Other versions
JP4024713B2 (en
Inventor
Yukio Shibata
行雄 柴田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Mita Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyocera Mita Corp filed Critical Kyocera Mita Corp
Priority to JP2003124733A priority Critical patent/JP4024713B2/en
Publication of JP2004334256A publication Critical patent/JP2004334256A/en
Application granted granted Critical
Publication of JP4024713B2 publication Critical patent/JP4024713B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide data processing system and a controller allowing sharing of a storage device with a different bit width by a CPU. <P>SOLUTION: This controller constituting the system creates a selection signal for selecting a predetermined storage device from a plurality of storage devices, and predetermined data stored in a storage device, to which the CPU makes access on the basis of the selection signal, are converted into a data format processible by the CPU. The CPU constituting the system is provided with a function for accessing the storage device matching the selection signal and transferring the predetermine data stored in the storage device to the controller and a function for reading the converted data to execute them. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は,CPUがビット幅の異なる記憶装置を共用し得るデータ処理システムに関し,特に,CPUのビット幅より小さいビット幅の記憶装置に記憶されたデータをCPUのビット幅で処理するデータ処理システムに関するものである。
【0002】
【従来の技術】
近年,市場に登場するマルチメディア製品におけるデータ処理の高速化を実現するために,CPUの高周波数化に加えて,CPUの多ビット化が図られている。現在CPUの多ビット化は,16ビットCPUから32ビットCPUへの移行が概ね終了した段階であり,順次64ビットCPU,128ビットCPUへと移行していくものと考えられる。
【0003】
このような多ビットCPUが搭載されたシステムでは,当然に該CPUがアクセスしてデータを処理することができる記憶装置が必要とされる。かかる記憶装置には,CPUと同ビット幅の記憶装置を用いることが最も望ましい。しかし,例えば32ビットメモリは8ビット或いは16ビットメモリと較べて未だに高価であるため,このようなメモリで構成されるシステムは全体としてコスト高となり好ましくない。更に,64ビットメモリは市場に出回っている数が少なく,入手が困難であるため実用的ではない。
そこで,例えば32ビットCPUに対して,16ビットメモリを2つ並列に配置して合計ビット幅を32ビットとすることが考えられる。
【0004】
【特許文献1】特開平11−134246号公報
【0005】
【発明が解決しようとする課題】
しかしながら,上記方法では,必要な記憶容量が極僅かである場合にも2つの記憶装置を設ける必要があり,無駄なメモリ領域を形成することになり問題であった。このような問題は,特許文献1に記載のデータ処理システムにより解決される。具体的には,所定のメモリ情報に基づき,CPUが自己のビット幅と同じビット幅のメモリが搭載されていると判断された場合は,CPUのビット幅で処理する処理モードを選択し,CPUのビット幅より小さいビット幅のメモリが搭載されていると判断された場合は,該メモリのビット幅で処理する処理モードを選択することにより,ビット幅が異なるメモリに対応することができるシステムとして構成されている。しかしながら,特許文献1に記載されたデータ処理システムでは,例えばCPUより小さいビット幅のメモリに対しては,該メモリのビット幅でCPUがデータを処理するため,CPUが持つ本来の処理能力を十分に発揮することができない。即ち,この場合はデータ処理の高速化を図ることができないという問題が生じる。
また,上記従来システムでは,装着されたメモリの仕様を検出するためだけに,所定のメモリ情報を予め記憶させておく領域を確保しなければならない。
更に,上記従来システムは,CPUの判断によりメモリへのアクセス方法の切替を行うものであるため,例えばシステム起動時に実行されるブートプログラムが格納された記憶領域に対して適用することができないという問題があった。
【0006】
従って,本発明は上記事情に鑑みてなされたものであり,その目的とするところは,CPUがビット幅の異なる記憶装置を共用することのできるデータ処理システム及び制御装置を提供することにある。
【0007】
【課題を解決するための手段】
上記目的を解決するための本発明は,ビット幅の異なる複数の記憶装置と,上記記憶装置にアクセスして所定の処理を実行するCPUと,上記CPUが上記複数の記憶装置を共用し得るよう制御する制御装置とを具備するデータ処理システムにおいて,上記制御装置は,上記複数の記憶装置から所定の記憶装置を選択する選択信号を生成する選択信号生成手段と,上記選択信号生成手段により生成された選択信号に基づき上記CPUがアクセスする記憶装置に格納された所定のデータを,該CPUが処理し得るデータ形式に変換するデータ変換手段とを有し,上記CPUは,上記選択信号生成手段により生成された選択信号に対応する記憶装置に対してアクセスし,当該記憶装置に格納された上記所定のデータを上記制御装置に転送するデータ転送手段と,上記データ変換手段により変換されたデータを読み出して実行するデータ読出処理手段とを有してなることを特徴とするデータ処理システムとして構成されている。
これにより,例えばCPUと同じビット幅のメモリが装着された場合であっても,上記CPUより小さいビット幅のメモリが装着された場合であっても,上記CPUは該CPUのビット幅のデータを処理することが可能となる。また,上記制御装置が生成する選択信号を直接読み出すことにより,従来必要とされていた所定のメモリ情報を格納する記憶領域を設ける必要がなくなり,その結果,メモリ領域を有効に利用することが可能となった。
【0008】
この場合,上記選択信号生成手段が,所定の切替手段に応じた上記選択信号を生成するものであることが考えられる。これにより,例えばシステム起動時に実行する初期化プログラムが格納された記憶領域に対してもCPUのビット幅より小さいビット幅の記憶装置を適用することが可能となる。また,切替手段の切替パターンを複数設けることにより,複数種類のメモリに対応するシステムを構成することが可能となる。
【0009】
また,上記データ変換手段が上記選択信号に基づき上記CPUがアクセスする記憶装置に格納された起動プログラムデータを,当該CPUが処理し得るデータ形式に変換するものであることも考えられる。
【0010】
更に,前記課題は,下記の制御装置によっても解決され得る。
即ち,CPUがビット幅の異なる複数の記憶装置を共用し得るよう制御する制御装置において,上記複数の記憶装置から所定の記憶装置を選択する選択信号を生成する選択信号生成手段と,上記選択信号生成手段により生成された選択信号に基づき上記CPUがアクセスする記憶装置に格納された所定のデータを,該CPUが処理し得るデータ形式に変換するデータ変換手段とを具備してなることを特徴とする制御装置によっても前記課題は解決され得る。
【0011】
【発明の実施の形態】
以下添付図面を参照しながら,本発明の実施の形態について説明し,本発明の理解に供する。尚,以下の実施の形態は,本発明を具体化した一例であって,本発明の技術的範囲を限定する性格のものではない。
ここに,図1は本発明の実施の形態に係るデータ処理システムの概略構成を示すブロック図,図2は本発明の実施の形態に係るデータ処理装置のデータ処理手順の一例を示すフローチャートである。
【0012】
まず,図1のシステムブロック図を用いて,本発明の一実施形態に係るデータ処理システムの概略構成について説明する。
本データ処理システムは,32ビットCPU(以下,「CPU」と略す。)10と,制御装置の一例である制御回路20と,記憶装置の一例である16ビットメモリ30及び32ビットメモリ40とを備え,CPU10,制御回路20及びメモリ30は相互に該メモリ30に格納されたデータを伝送し得るようデータバス50(バス幅が16ビット(0〜15ビット)で構成されたバス)により接続され,また,CPU10,制御回路20及びメモリ40は相互に該メモリ40に格納されたデータを伝送し得るよう上記データバス50及びデータバス51(バス幅が16ビット(16〜31ビット)で構成されたバス)により接続されてシステムが構成されている。
【0013】
ここで,本データ処理システムを構成する上記各部について詳細に説明する。
上記制御部20は,少なくとも選択信号生成手段の一例である選択信号生成回路21,データ変換手段の一例であるデータ変換回路22,切替手段の一例である切替スイッチ23,バッファ領域24とを備えて構成されている。具体的には,上記制御回路20の一例として,例えば電子デバイスが配列されて上記各回路等を構成する回路基板,或いは上記各回路等がIC化されたASIC(Application Specific Integrated Circuit)等が挙げられる。
【0014】
上記選択信号生成回路21は,複数の記憶装置から所定の記憶装置を選択する選択信号を生成する回路であって,例えば上記16ビットメモリ30或いは32ビットメモリ40のいずれか一方を選択的に抽出するための信号を生成する回路である。具体的な上記選択信号生成方法には,上記制御回路20に設けられたディップスイッチ(切替スイッチ23の一例)のON/OFFを切り替えることにより生じたON/OFF信号,或いは複数のジャンパーピン(切替スイッチ23の一例)の短絡位置を切り替えることにより生じた短絡信号を,上記制御回路20が論理演算処理することにより,所定のビット列信号を生成するという一般的な方法がある。この場合に生成される上記選択信号(ビット列信号)は後述するCPU10が認識し得る信号であることが好ましい。本実施例では,メモリ30及びメモリ40の2つのメモリから1つのメモリを選択するものであるため,上記切替スイッチ23は1ビット分のディップスイッチ等で足りるが,この場合,上記ディップスイッチ等の切替により発生した1ビットのON/OFF信号或いは短絡信号をCPU10のビット幅(32ビット)と同一のビット列信号にビット変換することにより,CPU10が認識し得る信号を生成することが好ましい。また,後述するCPU10は上記選択信号に対応するメモリ30若しくはメモリ40にアクセスするものであるため,当該選択信号は,メモリ30,メモリ40の位置を示すアドレス信号の役割を有する。この場合,上記選択信号は,アドレスマップ上のメモリ30のアドレス或いはメモリ40のアドレスが保管された領域へジャンプさせるためのジャンプコードであっても良い。
【0015】
前記したように,上記制御回路20に設けられた切替スイッチ23はディプスイッチやジャンパーピン等のハードウェアによる切替スイッチである。かかる切替は,CPUがメモリの装着位置等から装着されたメモリのビット幅,容量等の仕様(メモリ情報)を自動的に判断することにより,CPUがメモリへアクセスする方法を上記仕様に応じてソフトウェア的に切り替えることも可能である。しかしながら,これでは,例えばシステム起動時に最初に実行される初期化プログラム(ブートプログラム,IPLプログラム)が格納されたメモリへアクセスする場合に問題が生じる。即ち,システム起動前であるため,CPUが上記ソフトウェア的にメモリへのアクセス方法の切替を行なうことができず,そのため,CPUが上記初期化プログラムを実行することができないという問題が生じる。従って,上述のように,上記切替スイッチ23はディップスイッチやジャンパーピン等のハードウェアにより構成されることが望ましい。
【0016】
尚,上記のように,本実施例では,メモリ30及びメモリ40の2つのメモリについて言及しているが,特にこれに限定される必要はない。例えば,上記選択信号生成回路21が,3以上の複数のメモリから1つのメモリを選択する信号を生成する回路であっても問題はない。
【0017】
上記データ変換回路22は,上記選択信号生成回路21により生成された選択信号に基づき,CPUがアクセスする記憶装置に格納された所定のデータを,該CPUが処理し得るデータ形式に変換する回路である。
上記CPU10は,上記選択信号が示すアドレスに位置するメモリにアクセスするが,CPU10のビット幅(32ビット)よりも小さい幅のメモリ30(16ビット)にアクセスする場合は,CPUのビット幅とアクセスするメモリのビット幅とが異なるため,直接的にメモリ30に格納されたデータを取り扱うことができない。従って,この場合は,データ変換回路22によりメモリ30に格納されたデータを32ビットデータに変換する処理がなされる。具体的には,上記データ変換回路22は,後述するCPU10のデータ転送機能11によりデータバス50を介して一旦上記制御装置20のバッファ領域24に伝送された16ビットデータをデータバス51に送り出す処理を実行する。更に,引き続きデータ転送機能11によりデータバス50を介して伝送された16ビットデータに対してはデータバス51に送り出す処理を実行せずに,伝送してきたデータバス50に返す処理を実行する。このような処理を行なうことにより,2回読み出すことにより得られた2つの16ビットデータを1つの32ビットデータに変換することが可能となる。尚,32ビットCPU10が8ビットメモリに格納されたデータを処理する場合は,4回読み出すことにより得られた4つの8ビットデータを合算することにより32ビットデータに変換することができ,また,4ビットメモリに格納されたデータを処理する場合は,8回読み出すことにより得られた8つの4ビットデータを合算することにより32ビットデータに変換することで対応することが可能である。
【0018】
上記CPU10は,本データ処理システムを構成する上で中心的な装置であり,データ転送手段の一例であるデータ転送機能11と,データ読出処理手段の一例であるデータ読出機能12を発揮するものである。
ここで,上記データ転送機能11とは,上記選択信号生成回路21により生成された選択信号に対応する記憶装置に対してアクセスし,該記憶装置に格納された所定のデータを上記制御回路20に転送する機能であって,例えば上記制御回路20のバッファ領域24に転送する機能である。前記したように,CPU10のビット幅よりも小さい幅のメモリ30にアクセスする場合は,直接的にメモリ30に格納されたデータを処理することができない。従って,CPU10が読み出したデータを32ビットデータに変換させるためにメモリ30から読み出されたデータを上記バッファ領域24に転送することとした。この場合,転送に際して,読み出されたデータにデータバス51に送り出すデータであるか否かを示すために所定のビットを有効にしておくことが好ましい。
また,データ読出機能12とは,例えば32ビットメモリ内のデータを直接的に読み出す機能であり,上記データ変換回路22により16ビットから32ビットに変換されたデータを読み出す機能である。
【0019】
次に,図2のフローチャートを用いて本発明の実施の形態に係るデータ処理装置のデータ処理手順の一例について説明する。図中のS10,S20…は処理手順(ステップ)番号を示す。処理はステップS10より開始される。
【0020】
システムが起動されると,CPU10は最初に初期化プログラムを実行するために該初期化プログラムが格納されたメモリへアクセスする必要がある。従って,CPUはアクセスするメモリを選択する選択信号を読み出すために,制御回路20へアクセスする処理を実行する(S10)。かかる処理は,例えばシステム起動時にプログラムカウンタを上記制御回路20のアドレスに設定するようシステム設計することにより実現される。
【0021】
続いて,CPU10は,制御回路20により生成された選択信号を読み出す処理を実行する(S20)。かかる処理は切替スイッチ23のON/OFF状態を検知することにより行なう。ここで,ステップS30において,切替スイッチ23がOFFであると判断された場合,即ち切替スイッチ23がOFFのときに生成する選択信号(32ビットメモリを選択する信号)を読み出した場合は,CPU10は32ビットメモリ40へアクセスし(S40),メモリ40に格納された初期化プログラムを読み出してシステム起動処理を実行する(S41→S60)。ステップS30において,切替スイッチ23がONであると判断された場合,即ち切替スイッチ23がONのときに生成する選択信号(16ビットメモリを選択する信号)を読み出した場合は,CPU10は16ビットメモリ30へアクセスする(S50)。その後,CPUは,メモリ30から読み出した16ビットデータを上記制御装置20のバッファ領域24へ転送する(S51)。尚,バッファ領域24に転送された16ビットデータは上記制御装置20が備えるデータ変換回路により32ビットデータに変換される。その後,CPUは,上記制御装置20により変換された32ビットデータを読み出し(S52),読み出されたデータを実行することによりシステム起動処理を実行する(S60)。
【0022】
【発明の効果】
以上説明したように,本発明によれば,複数の記憶装置から所定の記憶装置を選択する選択信号を生成する選択信号生成手段と,上記選択信号生成手段により生成された選択信号に基づき上記CPUがアクセスする記憶装置に格納された所定のデータを該CPUが処理し得るデータ形式に変換するデータ変換手段とを有する制御装置と,上記選択信号生成手段により生成された選択信号に対応する記憶装置に対してアクセスし,当該記憶装置に格納された上記所定のデータを上記制御装置に転送するデータ転送手段と,上記データ変換手段により変換されたデータを読み出して実行するデータ読出処理手段とを有するCPUとによりシステム構成がなされているため,例えばCPUと同じビット幅のメモリが装着された場合であっても,上記CPUより小さいビット幅のメモリが装着された場合であっても,上記CPUは該CPUのビット幅のデータを処理することが可能となる。また,上記制御装置が生成する選択信号を直接読み出すことにより,従来必要とされていた所定のメモリ情報を格納する記憶領域を設ける必要がなくなり,その結果,メモリ領域を有効に利用することが可能となる。
【図面の簡単な説明】
【図1】本発明の実施の形態に係るデータ処理システムの概略構成を示すブロック図。
【図2】本発明の実施の形態に係るデータ処理装置のデータ処理手順の一例を示すフローチャート。
【符号の説明】
10…32ビットCPU
11…データ転送機能
12…データ読出機能
20…制御回路
21…選択信号生成回路
22…データ変換回路
23…切替スイッチ
24…バッファ領域
30…16ビットメモリ
40…32ビットメモリ
50…データバス(0〜15ビット)
51…データバス(16〜31ビット)
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a data processing system in which a CPU can share storage devices having different bit widths, and more particularly to a data processing system for processing data stored in a storage device having a bit width smaller than the bit width of the CPU with the bit width of the CPU. It is about.
[0002]
[Prior art]
In recent years, in order to realize high-speed data processing in multimedia products appearing on the market, CPUs have been increased in number of bits in addition to higher frequencies. At present, the shift to multi-bit CPUs is at the stage when the transition from a 16-bit CPU to a 32-bit CPU has been almost completed, and it is considered that the transition to a 64-bit CPU and a 128-bit CPU will be successively made.
[0003]
In a system equipped with such a multi-bit CPU, a storage device capable of accessing and processing data by the CPU is naturally required. It is most desirable to use a storage device having the same bit width as that of the CPU for such a storage device. However, for example, a 32-bit memory is still more expensive than an 8-bit or 16-bit memory, and a system configured with such a memory is undesirably high in cost as a whole. Furthermore, 64-bit memories are not practical because they are few on the market and difficult to obtain.
Therefore, for example, for a 32-bit CPU, it is conceivable to arrange two 16-bit memories in parallel to make the total bit width 32 bits.
[0004]
[Patent Document 1] Japanese Patent Application Laid-Open No. 11-134246
[Problems to be solved by the invention]
However, in the above method, even when the required storage capacity is extremely small, it is necessary to provide two storage devices, and there is a problem that a useless memory area is formed. Such a problem is solved by the data processing system described in Patent Document 1. Specifically, when it is determined based on predetermined memory information that the CPU has a memory having the same bit width as its own bit width, the CPU selects a processing mode in which processing is performed with the bit width of the CPU. If it is determined that a memory having a bit width smaller than the bit width of the memory is mounted, a system capable of coping with memories having different bit widths is selected by selecting a processing mode in which processing is performed using the bit width of the memory. It is configured. However, in the data processing system described in Patent Literature 1, for a memory having a bit width smaller than that of a CPU, for example, the CPU processes data with the bit width of the memory. Can not be demonstrated. That is, in this case, there is a problem that the speed of data processing cannot be increased.
Further, in the above-mentioned conventional system, it is necessary to secure an area for storing predetermined memory information in advance only to detect the specification of the mounted memory.
Further, since the above-described conventional system switches the access method to the memory according to the judgment of the CPU, it cannot be applied to a storage area storing a boot program executed at the time of starting the system. was there.
[0006]
Therefore, the present invention has been made in view of the above circumstances, and an object of the present invention is to provide a data processing system and a control device that allow a CPU to share storage devices having different bit widths.
[0007]
[Means for Solving the Problems]
SUMMARY OF THE INVENTION The present invention for solving the above-mentioned object has a plurality of storage devices having different bit widths, a CPU for accessing the storage device and executing predetermined processing, and a configuration in which the CPU can share the plurality of storage devices. In a data processing system including a control device for controlling, the control device is configured to generate a selection signal for selecting a predetermined storage device from the plurality of storage devices, and to generate a selection signal by the selection signal generation device. And data conversion means for converting predetermined data stored in the storage device accessed by the CPU into a data format that can be processed by the CPU based on the selection signal. The storage device corresponding to the generated selection signal is accessed, and the predetermined data stored in the storage device is transferred to the control device. And transfer means, and is configured as a data processing system characterized by comprising a data read processing means reading and executing the data converted by said data converting means.
Thus, even when a memory having the same bit width as that of the CPU is mounted or a memory having a smaller bit width than the CPU is mounted, the CPU stores data having the bit width of the CPU. It can be processed. Further, by directly reading out the selection signal generated by the control device, it is not necessary to provide a storage area for storing predetermined memory information which has been required conventionally, and as a result, the memory area can be used effectively. It became.
[0008]
In this case, it is conceivable that the selection signal generation means generates the selection signal according to predetermined switching means. As a result, for example, a storage device having a bit width smaller than the bit width of the CPU can be applied to a storage area in which an initialization program to be executed when the system is started is stored. Further, by providing a plurality of switching patterns of the switching means, it is possible to configure a system corresponding to a plurality of types of memories.
[0009]
It is also conceivable that the data conversion means converts the startup program data stored in the storage device accessed by the CPU based on the selection signal into a data format that can be processed by the CPU.
[0010]
Further, the above problem can be solved by the following control device.
That is, in a control device for controlling the CPU so that a plurality of storage devices having different bit widths can be shared, a selection signal generating means for generating a selection signal for selecting a predetermined storage device from the plurality of storage devices; Data conversion means for converting predetermined data stored in a storage device accessed by the CPU based on the selection signal generated by the generation means into a data format that can be processed by the CPU. The above problem can also be solved by a control device that performs the above.
[0011]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings to facilitate understanding of the present invention. The following embodiments are examples embodying the present invention, and do not limit the technical scope of the present invention.
Here, FIG. 1 is a block diagram showing a schematic configuration of a data processing system according to the embodiment of the present invention, and FIG. 2 is a flowchart showing an example of a data processing procedure of the data processing device according to the embodiment of the present invention. .
[0012]
First, a schematic configuration of a data processing system according to an embodiment of the present invention will be described using the system block diagram of FIG.
This data processing system includes a 32-bit CPU (hereinafter abbreviated as “CPU”) 10, a control circuit 20 as an example of a control device, and a 16-bit memory 30 and a 32-bit memory 40 as an example of a storage device. The CPU 10, the control circuit 20, and the memory 30 are connected to each other by a data bus 50 (a bus having a bus width of 16 bits (0 to 15 bits)) so that data stored in the memory 30 can be transmitted. The data bus 50 and the data bus 51 (the bus width is 16 bits (16 to 31 bits)) so that the CPU 10, the control circuit 20, and the memory 40 can mutually transmit the data stored in the memory 40. ) To form a system.
[0013]
Here, each of the above-described units constituting the data processing system will be described in detail.
The control unit 20 includes at least a selection signal generation circuit 21 as an example of selection signal generation means, a data conversion circuit 22 as an example of data conversion means, a changeover switch 23 as an example of switching means, and a buffer area 24. It is configured. More specifically, as an example of the control circuit 20, for example, a circuit board on which electronic devices are arranged to configure the circuits, an ASIC (Application Specific Integrated Circuit) in which the circuits and the like are integrated into an IC, and the like are given. Can be
[0014]
The selection signal generation circuit 21 is a circuit that generates a selection signal for selecting a predetermined storage device from a plurality of storage devices. For example, one of the 16-bit memory 30 and the 32-bit memory 40 is selectively extracted. This is a circuit that generates a signal for performing the operation. Specifically, the selection signal generation method includes an ON / OFF signal generated by switching ON / OFF of a dip switch (an example of a changeover switch 23) provided in the control circuit 20, or a plurality of jumper pins (switches). There is a general method in which the control circuit 20 performs a logical operation on a short-circuit signal generated by switching the short-circuit position of the switch 23) to generate a predetermined bit string signal. The selection signal (bit string signal) generated in this case is preferably a signal that can be recognized by the CPU 10 described later. In this embodiment, since one memory is selected from the two memories of the memory 30 and the memory 40, the changeover switch 23 may be a 1-bit dip switch or the like. It is preferable to generate a signal recognizable by the CPU 10 by bit-converting a 1-bit ON / OFF signal or a short-circuit signal generated by the switching into a bit string signal having the same bit width (32 bits) of the CPU 10. Further, since the CPU 10 described later accesses the memory 30 or the memory 40 corresponding to the selection signal, the selection signal has a role of an address signal indicating a position of the memory 30 or the memory 40. In this case, the selection signal may be a jump code for jumping to an area of the address map where the address of the memory 30 or the address of the memory 40 is stored.
[0015]
As described above, the changeover switch 23 provided in the control circuit 20 is a changeover switch using hardware such as a dip switch and a jumper pin. Such switching is performed by the CPU automatically determining the specification (memory information) such as the bit width and capacity of the mounted memory from the mounting position of the memory and the like, so that the CPU accesses the memory in accordance with the above specification. Switching by software is also possible. However, this causes a problem when, for example, accessing a memory that stores an initialization program (boot program, IPL program) that is executed first when the system is started. That is, since the system has not been started, the CPU cannot switch the method of accessing the memory by the software described above, so that there is a problem that the CPU cannot execute the initialization program. Therefore, as described above, it is desirable that the changeover switch 23 be configured by hardware such as a dip switch and a jumper pin.
[0016]
As described above, in the present embodiment, two memories, the memory 30 and the memory 40, are mentioned, but it is not particularly limited to these. For example, there is no problem even if the selection signal generation circuit 21 is a circuit that generates a signal for selecting one memory from three or more memories.
[0017]
The data conversion circuit 22 is a circuit that converts predetermined data stored in a storage device accessed by the CPU into a data format that can be processed by the CPU based on the selection signal generated by the selection signal generation circuit 21. is there.
The CPU 10 accesses the memory located at the address indicated by the selection signal. However, when accessing the memory 30 (16 bits) having a width smaller than the bit width (32 bits) of the CPU 10, the CPU bit width and the access Therefore, the data stored in the memory 30 cannot be directly handled because the bit width of the memory to be used is different. Therefore, in this case, the data conversion circuit 22 converts the data stored in the memory 30 into 32-bit data. Specifically, the data conversion circuit 22 sends the 16-bit data, which has been transmitted to the buffer area 24 of the control device 20 via the data bus 50 by the data transfer function 11 of the CPU 10 described later, to the data bus 51. Execute Further, the 16-bit data transmitted through the data bus 50 by the data transfer function 11 is not returned to the data bus 51 but transmitted to the transmitted data bus 50. By performing such processing, it becomes possible to convert two 16-bit data obtained by reading twice into one 32-bit data. When the 32-bit CPU 10 processes the data stored in the 8-bit memory, it can be converted into 32-bit data by adding four 8-bit data obtained by reading the data four times. In the case of processing data stored in a 4-bit memory, it is possible to cope with this by converting eight 4-bit data obtained by reading eight times into 32-bit data.
[0018]
The CPU 10 is a central device in configuring the present data processing system, and exhibits a data transfer function 11 as an example of data transfer means and a data read function 12 as an example of data read processing means. is there.
Here, the data transfer function 11 accesses a storage device corresponding to the selection signal generated by the selection signal generation circuit 21 and transmits predetermined data stored in the storage device to the control circuit 20. The transfer function is, for example, a transfer function to the buffer area 24 of the control circuit 20. As described above, when accessing the memory 30 having a width smaller than the bit width of the CPU 10, the data stored in the memory 30 cannot be directly processed. Therefore, the data read from the memory 30 is transferred to the buffer area 24 in order to convert the data read by the CPU 10 into 32-bit data. In this case, at the time of transfer, it is preferable that a predetermined bit is made valid to indicate whether the read data is data to be sent to the data bus 51 or not.
The data reading function 12 is a function of directly reading data in, for example, a 32-bit memory, and is a function of reading data converted from 16 bits to 32 bits by the data conversion circuit 22.
[0019]
Next, an example of a data processing procedure of the data processing device according to the embodiment of the present invention will be described with reference to the flowchart of FIG. S10, S20... In the figure indicate processing procedure (step) numbers. The processing is started from step S10.
[0020]
When the system is started, the CPU 10 first needs to access a memory storing the initialization program in order to execute the initialization program. Therefore, the CPU executes a process of accessing the control circuit 20 to read a selection signal for selecting a memory to be accessed (S10). This processing is realized by, for example, designing the system so that the program counter is set to the address of the control circuit 20 when the system is started.
[0021]
Subsequently, the CPU 10 executes a process of reading out the selection signal generated by the control circuit 20 (S20). This processing is performed by detecting the ON / OFF state of the changeover switch 23. Here, in step S30, when it is determined that the changeover switch 23 is OFF, that is, when the selection signal (signal for selecting the 32-bit memory) generated when the changeover switch 23 is OFF is read, the CPU 10 The 32-bit memory 40 is accessed (S40), the initialization program stored in the memory 40 is read, and the system startup processing is executed (S41 → S60). If it is determined in step S30 that the changeover switch 23 is ON, that is, if a selection signal (a signal for selecting a 16-bit memory) generated when the changeover switch 23 is ON is read, the CPU 10 30 is accessed (S50). Thereafter, the CPU transfers the 16-bit data read from the memory 30 to the buffer area 24 of the control device 20 (S51). The 16-bit data transferred to the buffer area 24 is converted into 32-bit data by a data conversion circuit provided in the control device 20. Thereafter, the CPU reads out the 32-bit data converted by the control device 20 (S52) and executes the read-out data to execute a system activation process (S60).
[0022]
【The invention's effect】
As described above, according to the present invention, the selection signal generation means for generating a selection signal for selecting a predetermined storage device from a plurality of storage devices, and the CPU based on the selection signal generated by the selection signal generation device. A control device having data conversion means for converting predetermined data stored in a storage device accessed by the CPU into a data format that can be processed by the CPU, and a storage device corresponding to the selection signal generated by the selection signal generation means A data transfer unit that accesses the control unit and transfers the predetermined data stored in the storage device to the control device; and a data read processing unit that reads and executes the data converted by the data conversion unit. Since the system configuration is made by the CPU, even if a memory having the same bit width as the CPU is installed, Even if the memory of PU smaller bit width is mounted, the CPU can process the data bit width of said CPU. Further, by directly reading out the selection signal generated by the control device, it is not necessary to provide a storage area for storing predetermined memory information, which has been required conventionally, and as a result, the memory area can be used effectively. It becomes.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a schematic configuration of a data processing system according to an embodiment of the present invention.
FIG. 2 is a flowchart showing an example of a data processing procedure of the data processing device according to the embodiment of the present invention.
[Explanation of symbols]
10 ... 32 bit CPU
11 Data transfer function 12 Data read function 20 Control circuit 21 Selection signal generation circuit 22 Data conversion circuit 23 Changeover switch 24 Buffer area 30 16-bit memory 40 32-bit memory 50 Data bus (0 to 0) 15 bits)
51: Data bus (16 to 31 bits)

Claims (4)

ビット幅の異なる複数の記憶装置と,
上記記憶装置にアクセスして所定の処理を実行するCPUと,
上記CPUが上記複数の記憶装置を共用し得るよう制御する制御装置と,
を具備するデータ処理システムにおいて,
上記制御装置は,
上記複数の記憶装置から所定の記憶装置を選択する選択信号を生成する選択信号生成手段と,
上記選択信号生成手段により生成された選択信号に基づき上記CPUがアクセスする記憶装置に格納された所定のデータを,該CPUが処理し得るデータ形式に変換するデータ変換手段とを有し,
上記CPUは,
上記選択信号生成手段により生成された選択信号に対応する記憶装置に対してアクセスし,当該記憶装置に格納された上記所定のデータを上記制御装置に転送するデータ転送手段と,
上記データ変換手段により変換されたデータを読み出して実行するデータ読出処理手段と,
を有してなることを特徴とするデータ処理システム。
A plurality of storage devices having different bit widths;
A CPU that accesses the storage device and executes a predetermined process;
A control device for controlling the CPU to share the plurality of storage devices;
In a data processing system comprising
The control device is
Selection signal generation means for generating a selection signal for selecting a predetermined storage device from the plurality of storage devices;
Data conversion means for converting predetermined data stored in a storage device accessed by the CPU into a data format that can be processed by the CPU, based on the selection signal generated by the selection signal generation means;
The CPU is
Data transfer means for accessing a storage device corresponding to the selection signal generated by the selection signal generation means and transferring the predetermined data stored in the storage device to the control device;
Data read processing means for reading and executing the data converted by the data conversion means;
A data processing system comprising:
上記選択信号生成手段が,所定の切替手段に応じた上記選択信号を生成するものである請求項1に記載のデータ処理システム。2. The data processing system according to claim 1, wherein said selection signal generation means generates said selection signal according to predetermined switching means. 上記データ変換手段が,上記選択信号に基づき上記CPUがアクセスする記憶装置に格納された起動プログラムデータを,該CPUが処理し得るデータ形式に変換するものである請求項1又は2に記載のデータ処理システム。3. The data according to claim 1, wherein said data conversion means converts start program data stored in a storage device accessed by said CPU based on said selection signal into a data format that can be processed by said CPU. Processing system. CPUがビット幅の異なる複数の記憶装置を共用し得るよう制御する制御装置において,
上記複数の記憶装置から所定の記憶装置を選択する選択信号を生成する選択信号生成手段と,
上記選択信号生成手段により生成された選択信号に基づき上記CPUがアクセスする記憶装置に格納された所定のデータを,該CPUが処理し得るデータ形式に変換するデータ変換手段と,
を具備してなることを特徴とする制御装置。
In a control device for controlling a CPU to share a plurality of storage devices having different bit widths,
Selection signal generation means for generating a selection signal for selecting a predetermined storage device from the plurality of storage devices;
Data conversion means for converting predetermined data stored in a storage device accessed by the CPU into a data format that can be processed by the CPU, based on the selection signal generated by the selection signal generation means;
A control device characterized by comprising:
JP2003124733A 2003-04-30 2003-04-30 Data processing system and control device Expired - Fee Related JP4024713B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003124733A JP4024713B2 (en) 2003-04-30 2003-04-30 Data processing system and control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003124733A JP4024713B2 (en) 2003-04-30 2003-04-30 Data processing system and control device

Publications (2)

Publication Number Publication Date
JP2004334256A true JP2004334256A (en) 2004-11-25
JP4024713B2 JP4024713B2 (en) 2007-12-19

Family

ID=33502187

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003124733A Expired - Fee Related JP4024713B2 (en) 2003-04-30 2003-04-30 Data processing system and control device

Country Status (1)

Country Link
JP (1) JP4024713B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007179106A (en) * 2005-12-26 2007-07-12 Fuji Xerox Co Ltd Processing system
CN102193883A (en) * 2010-03-10 2011-09-21 精工爱普生株式会社 Electronic apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007179106A (en) * 2005-12-26 2007-07-12 Fuji Xerox Co Ltd Processing system
CN102193883A (en) * 2010-03-10 2011-09-21 精工爱普生株式会社 Electronic apparatus
JP2011186898A (en) * 2010-03-10 2011-09-22 Seiko Epson Corp Electronic equipment
US8606990B2 (en) 2010-03-10 2013-12-10 Seiko Epson Corporation Electronic apparatus

Also Published As

Publication number Publication date
JP4024713B2 (en) 2007-12-19

Similar Documents

Publication Publication Date Title
US6810444B2 (en) Memory system allowing fast operation of processor while using flash memory incapable of random access
US20080126643A1 (en) Semiconductor circuit
US6836833B1 (en) Apparatus and method for discovering a scratch pad memory configuration
JP2007299227A (en) Information processing apparatus and method for booting the same
JP2003223412A (en) Semiconductor integrated circuit
US6622210B2 (en) Microcontroller with improved access efficiency of instructions
US6115780A (en) Interrupt steering circuit for PCI bus
JP2004334256A (en) Data processing system and controller
US5893932A (en) Address path architecture
JP4116805B2 (en) Internal bus test device and internal bus test method
JP2007148622A (en) Interface setting method
JP2004192051A (en) Shared terminal controller
US20040034748A1 (en) Memory device containing arbiter performing arbitration for bus access right
JP2006127407A (en) Semiconductor integrated circuit
US20070162734A1 (en) Initializing circuit, initializing apparatus and initializing method for intializing an apparatus
WO2010029682A1 (en) Information processing device
US20070242530A1 (en) Memory controller for supporting double data rate memory and related method
KR100681427B1 (en) Apparatus for resetting multiple processor system
JP3820707B2 (en) Interrupt vector address generator and microcomputer
JP4874139B2 (en) Semiconductor integrated circuit
JP2002215413A (en) Firmware transfer method and inter-module data transmission system
JP2004127025A (en) Semiconductor integrated circuit device
JP2004280291A (en) Card interface circuit and card interface device
JP2008003867A (en) Microcomputer
JP2007334600A (en) Semiconductor integrated circuit device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050422

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070628

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070703

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070823

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20071002

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20071003

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20101012

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20111012

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20111012

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20121012

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20121012

Year of fee payment: 5

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

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

Free format text: PAYMENT UNTIL: 20121012

Year of fee payment: 5

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20121012

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20131012

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees