[go: up one dir, main page]

JPH1069460A - Bus control device - Google Patents

Bus control device

Info

Publication number
JPH1069460A
JPH1069460A JP8228116A JP22811696A JPH1069460A JP H1069460 A JPH1069460 A JP H1069460A JP 8228116 A JP8228116 A JP 8228116A JP 22811696 A JP22811696 A JP 22811696A JP H1069460 A JPH1069460 A JP H1069460A
Authority
JP
Japan
Prior art keywords
central processing
processing unit
peripheral device
access
access cycle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP8228116A
Other languages
Japanese (ja)
Inventor
Keisuke Kaneko
圭介 金子
Seiji Yamaguchi
聖司 山口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP8228116A priority Critical patent/JPH1069460A/en
Publication of JPH1069460A publication Critical patent/JPH1069460A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

(57)【要約】 【課題】 中央処理装置とそれに接続される周辺装置を
1チップに集積した場合に、周辺装置のアクセスサイク
ルを使用条件に応じた最適なアクセスサイクルを自動的
に設定する。 【解決手段】 中央処理装置1が疑似アクセス回路5、
7、9を有する周辺装置4、6、8にアクセスを行な
い、周辺装置の疑似アクセス回路5、7、9がデータを
出力するまでの時間を中央処理装置のクロック14でカ
ウントされるカウンタ2で計測し、その値を各周辺装置
ごとに有するアクセスサイクルレジスタ10〜12に設
定する。以後中央処理装置1と各周辺装置4、6、8と
のアクセス時にはレジスタ10〜12に設定されたアク
セスサイクルでアクセスを行なう。このアクセスサイク
ル設定動作はリセット解除直後、あるいは中央処理装置
のクロックが切替えられた直後におこなう。
(57) [PROBLEMS] To optimally set an access cycle of a peripheral device according to a use condition when a central processing unit and peripheral devices connected thereto are integrated on one chip. SOLUTION: A central processing unit 1 includes a pseudo access circuit 5,
The counter 2 is accessed by accessing the peripheral devices 4, 6, 8 having the peripheral devices 7, 9, and the time until the pseudo access circuits 5, 7, 9 of the peripheral devices output data is counted by the clock 14 of the central processing unit. The measured values are set in the access cycle registers 10 to 12 provided for each peripheral device. Thereafter, when accessing the central processing unit 1 and each of the peripheral devices 4, 6, and 8, the access is performed in the access cycle set in the registers 10 to 12. This access cycle setting operation is performed immediately after reset release or immediately after the clock of the central processing unit is switched.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は中央処理装置(以下
CPUと称する)を含む半導体集積回路に係わり、特に
半導体集積回路に1チップに集積されたCPUと接続さ
れる周辺装置のCPUからのアクセスサイクルを決定す
るためのバス制御装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a semiconductor integrated circuit including a central processing unit (hereinafter referred to as a CPU), and more particularly, to an access from a CPU of a peripheral device connected to a CPU integrated on a single chip in the semiconductor integrated circuit. The present invention relates to a bus control device for determining a cycle.

【0002】[0002]

【従来の技術】CPUとCPUに接続される周辺装置が
1チップに集積された場合に、CPUから周辺装置への
アクセスサイクルは従来は次の3つの方法で対応してい
た。一つはアクセスサイクル数をソフトウェアで対応す
る方法である。もう一つはハンドシェイクで動作させる
方法がある。最後の一つはハードウェア的に固定化して
設定する方法である。ソフトウェアで対応する方法では
マイコンに搭載しているプログラム(通常は読み出し専
用メモリに書き込まれている)で、固定化して動作させ
ている。この場合通常の仕様では余裕をもってアクセス
サイクルを設定しておくため、集積回路の動作時に、最
適なアクセスサイクルで動作させることができず、リア
ルタイム性を要望される応用分野では性能の向上は図れ
ない。ハンドシェイクで動作させる場合は、各周辺装置
にハンドシェイク用の回路を付加する必要があり、集積
回路の面積増大の原因となる。ハードウェア的に固定し
ておく場合、ソフトウェアでの設定の場合と同じくアク
セスサイクル数を動作状態での最適なものには設定する
のが困難である。また、周辺装置を置き換える場合バス
制御装置も設計し直さなければならず、開発工数の増大
となる。
2. Description of the Related Art When a CPU and peripheral devices connected to the CPU are integrated on one chip, an access cycle from the CPU to the peripheral device has conventionally been handled by the following three methods. One is a method in which the number of access cycles is handled by software. Another method is to operate with handshake. The last one is a method of setting it fixed by hardware. In the method corresponding to software, the program is fixed and operated by a program (normally written in a read-only memory) mounted on a microcomputer. In this case, since the access cycle is set with a margin according to the normal specification, it is not possible to operate the integrated circuit at an optimum access cycle at the time of operation, and it is not possible to improve the performance in the application field where real-time performance is required . When operating by handshaking, it is necessary to add a circuit for handshaking to each peripheral device, which causes an increase in the area of the integrated circuit. When fixed in hardware, it is difficult to set the number of access cycles to the optimum value in the operating state as in the case of setting by software. Further, when the peripheral device is replaced, the bus control device must be redesigned, which increases the number of development steps.

【0003】[0003]

【発明が解決しようとする課題】少なくともCPUとC
PUにバス接続された周辺装置を含む1チップに集積さ
れた半導体集積回路では、内蔵されたCPUがバスで接
続された周辺装置へのアクセスサイクルで処理能力が支
配されることがある。例えば、内蔵されたROMでは高
速での読み出し時間がCPUのマシンサイクルより大き
くなることがある。本来ならば1サイクルアクセスを前
提にしていれば性能を律則することはないが、CPUの
マシンサイクルが高速化されれば、内蔵されたROMの
読み出しの速度が追従出来なくなりアクセスに2サイク
ル以上かかるようになる。このように本来1サイクルで
実現することで性能向上を実現してきたが、高速化に対
して追従できる回路と追従できない回路が存在するため
に、周波数に応じたサイクル数の最適化が出来なくな
り、処理能力の向上を阻害する要因となる。
SUMMARY OF THE INVENTION At least a CPU and a C
In a semiconductor integrated circuit integrated on a single chip including a peripheral device connected to a PU by a bus, the processing capability may be controlled by an access cycle of a built-in CPU to a peripheral device connected by a bus. For example, in a built-in ROM, a high-speed read time may be longer than a CPU machine cycle. Normally, performance is not regulated if one cycle access is assumed, but if the machine cycle of the CPU is accelerated, the reading speed of the built-in ROM cannot be followed, and two or more cycles are required for access. It becomes like this. As described above, the performance has been improved by originally realizing it in one cycle. However, since there are circuits that can follow the high speed and circuits that cannot follow the speed, it is impossible to optimize the number of cycles according to the frequency. This is a factor that hinders the improvement of the processing capacity.

【0004】そこで、本発明は、使用するクロック周波
数などの条件に応じて1チップに集積された内蔵資産の
アクセスサイクルを自動的に最適化を図ることで、処理
能力の劣化を防ぐことを可能とするバス制御装置を提供
することを目的とする。
Accordingly, the present invention makes it possible to prevent the deterioration of the processing performance by automatically optimizing the access cycle of the built-in assets integrated on one chip according to the conditions such as the clock frequency to be used. It is an object of the present invention to provide a bus control device.

【0005】[0005]

【課題を解決するための手段】上記の目的を達成するた
め、請求項1の発明はCPUと、前記CPUからアクセ
ス可能な少なくとも1個以上の周辺装置と、バス制御装
置と、前記CPUのクロックをカウントするカウンタ装
置を1チップに集積した半導体集積回路において、前記
バス制御装置は前記周辺装置のアクセスサイクルを規定
するアクセスサイクルレジスタを有し、前記CPUが前
記周辺装置にアクセスを発生したときに、前記周辺装置
は前記CPUからのアドレスを用いて疑似アクセスを発
生させる経路を有していて、前記周辺装置のデータ出力
に相当するタイミングで制御信号を発生して、前記制御
信号で前記CPUのクロックでカウントアップされる前
記カウンタ装置のカウント値を前記アクセスサイクルレ
ジスタに書き込み、前記アクセスサイクルレジスタを用
いて前記周辺装置のアクセスサイクルを制御することを
特徴とするバス制御装置である。
According to one aspect of the present invention, there is provided a CPU, at least one peripheral device accessible from the CPU, a bus control device, and a clock for the CPU. In a semiconductor integrated circuit in which a counter device for counting clocks is integrated on one chip, the bus control device has an access cycle register that specifies an access cycle of the peripheral device, and the bus control device has an access cycle register when the CPU accesses the peripheral device. The peripheral device has a path for generating a pseudo-access using an address from the CPU, and generates a control signal at a timing corresponding to the data output of the peripheral device; Writing the count value of the counter device counted up by a clock to the access cycle register A bus control device and controls the access cycle of the peripheral device using the access cycle register.

【0006】請求項2の発明はCPUと、前記CPUか
らアクセス可能な少なくとも1個以上の周辺装置と、バ
ス制御装置と、前記CPUのクロックをカウントするカ
ウンタ装置を1チップに集積した半導体集積回路におい
て、前記バス制御装置は前記周辺装置のアクセスサイク
ルを規定するアクセスサイクルレジスタを有し、リセッ
ト状態を解除後に直ちに前記CPUが前記周辺装置にア
クセスを発生して、前記周辺装置は前記CPUからのア
ドレスを用いて疑似アクセスを発生させる経路を有して
いて、前記周辺装置のデータ出力に相当するタイミング
で制御信号を発生して、前記制御信号で前記CPUのク
ロックでカウントアップされる前記カウンタ装置のカウ
ント値を前記アクセスサイクルレジスタに書き込み、前
記アクセスサイクルレジスタを用いて前記周辺装置のア
クセスサイクルを制御することを特徴とするバス制御装
置である。
According to a second aspect of the present invention, there is provided a semiconductor integrated circuit in which a CPU, at least one peripheral device accessible from the CPU, a bus control device, and a counter device for counting a clock of the CPU are integrated on one chip. In the above, the bus control device has an access cycle register that defines an access cycle of the peripheral device, and the CPU generates an access to the peripheral device immediately after releasing a reset state, and the peripheral device receives a signal from the CPU. The counter device having a path for generating a pseudo access using an address, generating a control signal at a timing corresponding to a data output of the peripheral device, and counting up with a clock of the CPU by the control signal. Is written to the access cycle register, and the access cycle Register a bus control device and controls the access cycle of the peripheral device using.

【0007】請求項3の発明はCPUと、前記CPUか
らアクセス可能な少なくとも1個以上の周辺装置と、バ
ス制御装置と、前記CPUのクロックをカウントするカ
ウンタ装置を1チップに集積した半導体集積回路におい
て、前記バス制御装置は前記周辺装置のアクセスサイク
ルを規定するアクセスサイクルレジスタを有し、リセッ
ト状態を解除後に直ちに前記CPUが前記少なくとも1
個以上の周辺装置の共通にアクセスできるアドレスを発
生して、前記周辺装置は前記CPUからのアドレスを用
いて疑似アクセスを発生させる経路を有していて、前記
周辺装置のデータ出力に相当するタイミングで制御信号
を発生して、前記制御信号で前記CPUのクロックでカ
ウントアップされる前記カウンタ装置のカウント値を前
記アクセスサイクルレジスタに書き込み、前記アクセス
サイクルレジスタを用いて前記周辺装置のアクセスサイ
クルを制御することを特徴とするバス制御装置である。
According to a third aspect of the present invention, there is provided a semiconductor integrated circuit in which a CPU, at least one peripheral device accessible from the CPU, a bus control device, and a counter device for counting the clock of the CPU are integrated on one chip. In the above, the bus control device has an access cycle register that defines an access cycle of the peripheral device, and the CPU is configured to immediately reset the at least one
A peripheral device having a path for generating a pseudo-access using an address from the CPU by generating an address which can be commonly accessed by more than one peripheral device, and a timing corresponding to a data output of the peripheral device; The control signal is generated, and the count value of the counter device, which is counted up by the clock of the CPU by the control signal, is written into the access cycle register, and the access cycle of the peripheral device is controlled using the access cycle register. A bus control device.

【0008】請求項4の発明はCPUと、前記CPUが
第一のバスで接続される少なくとも1個以上の周辺装置
と、前記CPUと第二のバスで接続される少なくとも1
個以上の周辺装置と、前記第一のバスおよび第二のバス
を制御するバス制御装置と、前記CPUのクロックをカ
ウントするカウンタ装置を1チップに集積した半導体集
積回路において、前記バス制御装置は前記周辺装置のア
クセスサイクルを規定するアクセスサイクルレジスタを
有し、前記CPUが前記周辺装置にアクセスを発生した
ときに、前記周辺装置は前記CPUからのアドレスを用
いて疑似アクセスを発生させる経路を有していて、前記
周辺装置のデータ出力に相当するタイミングで制御信号
を発生して、前記制御信号で前記CPUのクロックでカ
ウントアップされる前記カウンタ装置のカウント値を前
記アクセスサイクルレジスタに書き込み、前記アクセス
サイクルレジスタを用いて前記周辺装置のアクセスサイ
クルを制御することを特徴とするバス制御装置である。
According to a fourth aspect of the present invention, there is provided a CPU, at least one or more peripheral devices connected to the CPU via a first bus, and at least one peripheral device connected to the CPU via a second bus.
In a semiconductor integrated circuit in which one or more peripheral devices, a bus control device that controls the first bus and the second bus, and a counter device that counts the clock of the CPU are integrated on one chip, the bus control device includes: An access cycle register that defines an access cycle of the peripheral device, wherein when the CPU accesses the peripheral device, the peripheral device has a path for generating a pseudo access using an address from the CPU; Generating a control signal at a timing corresponding to the data output of the peripheral device, writing the count value of the counter device, which is counted up by the clock of the CPU with the control signal, into the access cycle register, Controlling an access cycle of the peripheral device using an access cycle register; A bus control device according to claim.

【0009】請求項5の発明は、動作中に動作周波数を
切り替え可能なCPUと、前記CPUからアクセス可能
な少なくとも1個以上の周辺装置と、バス制御装置と、
前記CPUのクロックをカウントするカウンタ装置を1
チップに集積した半導体集積回路において、前記バス制
御装置は前記周辺装置のアクセスサイクルを規定するア
クセスサイクルレジスタを有し、前記CPUの動作周波
数の変化後直ちに前記カウンタを初期化し、前記CPU
が前記周辺装置にアクセスを行い、前記周辺装置は前記
CPUからのアドレスを用いて疑似アクセスを発生させ
る経路を有していて、前記周辺装置のデータ出力に相当
するタイミングで制御信号を発生して、前記制御信号で
前記CPUのクロックでカウントアップされる前記カウ
ンタ装置のカウント値を前記アクセスサイクルレジスタ
に書き込み、前記アクセスサイクルレジスタを用いて前
記周辺装置のアクセスサイクルを制御することを特徴と
するバス制御装置である。
According to a fifth aspect of the present invention, there is provided a CPU capable of switching an operating frequency during operation, at least one or more peripheral devices accessible from the CPU, a bus control device,
A counter device for counting the clock of the CPU
In a semiconductor integrated circuit integrated on a chip, the bus control device has an access cycle register that specifies an access cycle of the peripheral device, and initializes the counter immediately after a change in the operating frequency of the CPU.
Accesses the peripheral device, the peripheral device has a path for generating a pseudo access using an address from the CPU, and generates a control signal at a timing corresponding to the data output of the peripheral device. Writing the count value of the counter device, which is counted up by the CPU clock by the control signal, to the access cycle register, and controlling the access cycle of the peripheral device using the access cycle register. It is a control device.

【0010】上記の構成により、CPUとCPUにバス
接続された周辺装置を1チップに集積した半導体集積回
路において、CPUから周辺装置をアクセスする場合に
周辺装置のアクセススピードに応じた最適なアクセスサ
イクルを自動的に設定できるので、特にリアルタイム処
理の最適化を実現することができる。
With the above configuration, in a semiconductor integrated circuit in which a CPU and peripheral devices connected to the CPU via a bus are integrated on one chip, when the CPU accesses the peripheral device, an optimum access cycle corresponding to the access speed of the peripheral device is obtained. Can be automatically set, so that especially the real-time processing can be optimized.

【0011】[0011]

【発明の実施の形態】図1は本発明の第一の実施の形態
に係るハードウェア構成を示すブロック図である。1は
CPU、2はCPUのクロックを用いてクロック数をカ
ウントするカウンタ、3はCPUに接続されるバスを制
御するバス制御装置、4は第一の周辺装置、6は第二の
周辺装置、8は第三の周辺装置、10は第一の周辺装置
のアクセスサイクルレジスタ、11は第二の周辺装置の
アクセスサイクルレジスタ、12は第三の周辺装置のア
クセスサイクルレジスタである。例えば、図1は第一の
周辺装置4をROMと、第二の周辺装置6をRAMと、
第三の周辺装置8をIOデバイスとし、その各々がCP
U1にバスを介して接続されている場合を示している。
FIG. 1 is a block diagram showing a hardware configuration according to a first embodiment of the present invention. 1 is a CPU, 2 is a counter that counts the number of clocks using the clock of the CPU, 3 is a bus control device that controls a bus connected to the CPU, 4 is a first peripheral device, 6 is a second peripheral device, 8 is a third peripheral device, 10 is an access cycle register of the first peripheral device, 11 is an access cycle register of the second peripheral device, and 12 is an access cycle register of the third peripheral device. For example, FIG. 1 shows that the first peripheral device 4 is a ROM, the second peripheral device 6 is a RAM,
The third peripheral device 8 is an IO device, each of which is a CP.
This shows a case in which U1 is connected via a bus.

【0012】CPU1はそれぞれの周辺装置4、6、8
に疑似アクセスを発生させるためのアドレスを発行し
て、周辺装置4、6、8のアクセスを行なう。一方、カ
ウンタ2はCPU1のクロック14によってカウントア
ップされる。アドレスを発行したサイクルではカウンタ
の値は”0”であるが、1クロックサイクルに同期し
て、カウントアップが行なわれる。このカウンタの値が
それぞれの周辺装置のアクセスサイクルを定義すること
になる。各周辺装置4、6、8で疑似アクセスによって
生成される制御信号20、21、22は各周辺装置のア
クセスサイクルレジスタ10、11、12にそれぞれ送
られてカウンタ2のカウント値23の読み込みクロック
として使われる。制御信号は各周辺装置4、6、8によ
って通常のCPU1からのアクセスパスと同等の回路構
成で作成された疑似アクセス回路5、7、9を付加して
いるため、読みだしアクセスに対して本来のデータ出力
と同じタイミングで該制御信号を発生することができ
る。これによって、CPU1からのアクセスに対して使
用条件での最適なアクセスサイクル数を規定することが
できる。バス制御装置3では各周辺装置のアクセスサイ
クルレジスタ10、11、12の値17、18、19を
基にバス制御信号16を発生して、CPU1と各周辺装
置4、6、8とのデータ転送の制御を効率よく実行して
いる。
The CPU 1 controls each of the peripheral devices 4, 6, 8
, An address for generating a pseudo access is issued, and the peripheral devices 4, 6, 8 are accessed. On the other hand, the counter 2 is counted up by the clock 14 of the CPU 1. In the cycle in which the address is issued, the value of the counter is "0", but the count-up is performed in synchronization with one clock cycle. The value of this counter defines the access cycle of each peripheral device. Control signals 20, 21, and 22 generated by the pseudo accesses in the peripheral devices 4, 6, and 8 are sent to the access cycle registers 10, 11, and 12 of the peripheral devices, respectively, and are used as read clocks of the count value 23 of the counter 2 as read clocks. used. The control signal is added to the pseudo-access circuits 5, 7, 9 created by the peripheral devices 4, 6, 8 with the same circuit configuration as the access path from the normal CPU 1, so that the read signals are not originally used for read access. The control signal can be generated at the same timing as the data output. As a result, it is possible to define the optimum number of access cycles under use conditions for access from the CPU 1. The bus controller 3 generates a bus control signal 16 based on the values 17, 18, and 19 of the access cycle registers 10, 11, and 12 of each peripheral device, and transfers data between the CPU 1 and each of the peripheral devices 4, 6, and 8. Control is executed efficiently.

【0013】各周辺装置へのアクセス順序については次
のような方法がある。第一の方法は、CPU1から転送
されるアドレスが最初に第一の周辺装置4に対して行な
い、第一の周辺装置4の疑似アクセスに対する制御信号
20がアクセスサイクルレジスタ10に戻ってきた時点
で、第二の周辺装置6に対してのアドレスをCPU1が
発行して、第二の周辺装置6の疑似アクセスに対する制
御信号21がアクセスサイクルレジスタ11に戻ってき
た時点で、第三の周辺装置8に対してのアドレスをCP
U1が発行して、第三の周辺装置8の疑似アクセスに対
する制御信号22がアクセスサイクルレジスタ12に戻
ってきた時点で、アクセスサイクルレジスタ10、1
1、12の設定の完了して、通常の動作に移行すること
が可能である。このように、各周辺装置毎に個別に疑似
アクセスを発生させて、シーケンシャルにアクセスサイ
クルレジスタを順次設定する方法である。
There are the following methods for accessing the peripheral devices. The first method is that when the address transferred from the CPU 1 is first applied to the first peripheral device 4 and the control signal 20 for the pseudo access of the first peripheral device 4 returns to the access cycle register 10. When the CPU 1 issues an address to the second peripheral device 6 and the control signal 21 for the pseudo access of the second peripheral device 6 returns to the access cycle register 11, the third peripheral device 8 Address to CP
When U1 issues and the control signal 22 for the pseudo access of the third peripheral device 8 returns to the access cycle register 12, the access cycle registers 10, 1
After the setting of 1, 12 is completed, it is possible to shift to the normal operation. In this manner, the pseudo access is generated individually for each peripheral device, and the access cycle register is sequentially set sequentially.

【0014】第二の方法は、アクセスサイクルを規定す
るために疑似アクセスのための共通のアドレス空間を定
義する場合である。この場合は、各周辺装置4、6、8
が共通にアクセスされるアドレス空間を有していて同時
にアクセスされる。図2は周辺装置のメモリアップを示
している。各周辺装置4、6、8の本来使用するアドレ
ス空間は異なっているが、ある特定のアドレス空間27
に対して同時アクセスが可能な設定にしている。CPU
1から各周辺装置4、6、8を共通にアクセスできるア
ドレス空間27の中のアドレスを発行して、同時にアク
セスが行なわれる。各周辺装置4、6、8ではアクセス
に応じ、出力されるデータは疑似アクセスのタイミング
を規定している信号になる。
The second method is to define a common address space for pseudo-access to define an access cycle. In this case, each of the peripheral devices 4, 6, 8
Have an address space commonly accessed and are accessed simultaneously. FIG. 2 shows memory up of a peripheral device. Although the address space originally used by each of the peripheral devices 4, 6, and 8 is different, a certain address space 27 is used.
Are set so that they can be accessed simultaneously. CPU
1 to issue an address in the address space 27 which can access the peripheral devices 4, 6, 8 in common, and access is performed simultaneously. In each of the peripheral devices 4, 6, and 8, in response to the access, the output data is a signal that defines the timing of the pseudo access.

【0015】第三の方法は、上記の疑似アクセスサイク
ルに入るシーケンスについて述べる。CPU1はリセッ
ト状態から、リセット信号を解除した段階で動作状態に
移行するが、リセット解除後に直ちに疑似アクセスを発
生させるアドレスを生成する。各周辺装置は図中のよう
にアクセスに応じた制御信号を出力し、アクセスサイク
ルレジスタを設定する。例えば図3において、第一の周
辺装置の制御信号が出力された際、カウンタの値は
「2」であるため、アクセスサイクルレジスタ10には
「2」が設定される。同様に図中の例では第二の周辺装
置、第三の周辺装置のアクセスサイクルレジスタにはそ
れぞれ「3」、「4」の値が設定される。このようにし
ておけば、リセット状態の解除から初期設定の段階でア
クセスサイクルレジスタ10、11、12の設定が可能
になり、動作状態ではCPU1から周辺装置4、6、8
へのアクセスが使用条件に応じて最適なサイクル数で動
作することができるため、処理能力の向上が図れると共
に、ユーザが集積回路内部の周辺装置4、6、8に対す
るアクセスサイクル数を考慮する必要がないのでプログ
ラム開発が容易に行なうことができる。
A third method describes a sequence for entering the above pseudo access cycle. The CPU 1 shifts from the reset state to the operating state when the reset signal is released, but generates an address for generating a pseudo access immediately after the reset is released. Each peripheral device outputs a control signal according to the access as shown in the figure, and sets an access cycle register. For example, in FIG. 3, when the control signal of the first peripheral device is output, the value of the counter is “2”, so “2” is set in the access cycle register 10. Similarly, in the example in the figure, the values of “3” and “4” are set in the access cycle registers of the second peripheral device and the third peripheral device, respectively. By doing so, the access cycle registers 10, 11, and 12 can be set in the initial setting stage after the reset state is released, and in the operating state, the CPU 1 sends the peripheral devices 4, 6, 8
Can be operated with the optimal number of cycles according to the use conditions, so that the processing capacity can be improved and the user needs to consider the number of access cycles to the peripheral devices 4, 6, 8 inside the integrated circuit. Because there is no, program development can be performed easily.

【0016】第四の方法ではクロックの周波数が切替え
可能な場合について述べる。CPUのクロック周波数を
動作状態で変更する場合が携帯機器などで見られるが、
割り込みなどの入力がない場合には低速クロックで動作
させ、何らかの処理を実行する場合は高速クロックに切
り替えることが行なわれている。これは、動作状態での
消費電力を削減する有効な手段である。図4にはクロッ
クが高速から低速に切替えられた場合のシーケンスを示
している。クロックが切り替わる際に、クロック切替え
制御信号が出力される。この直後にカウンタ2を初期化
し、一旦、共通のアドレス空間27をアクセスして疑似
アクセスを発生させて実施例3と同様のシーケンスでそ
れぞれのクロック周波数に応じたアクセスサイクルを規
定してから、実際の動作状態に移行することでクロック
周波数に応じた最適なアクセスサイクルが自動的に設定
可能である。
In the fourth method, a case where the clock frequency can be switched will be described. The case where the clock frequency of the CPU is changed in the operating state is seen in portable devices and the like,
When there is no input such as an interrupt, the operation is performed with a low-speed clock, and when performing some processing, switching to the high-speed clock is performed. This is an effective means for reducing power consumption in the operating state. FIG. 4 shows a sequence when the clock is switched from high speed to low speed. When the clock is switched, a clock switching control signal is output. Immediately after this, the counter 2 is initialized, the common address space 27 is accessed once, a pseudo access is generated, and the access cycle according to each clock frequency is defined in the same sequence as in the third embodiment. , The optimum access cycle according to the clock frequency can be automatically set.

【0017】[0017]

【発明の効果】上述のように、本発明によれば、CPU
からアクセスされる周辺装置がアクセスサイクル数とし
て使用条件(温度、電圧など)に応じて最適なアクセス
数を自動的に設定することが可能であり、これによって
処理性能の向上を実現することができる。さらに、ユー
ザが集積回路内部の周辺装置に対するアクセスサイクル
数を配慮する必要がないのでプログラム開発が容易に行
なうことができる。
As described above, according to the present invention, the CPU
It is possible to automatically set the optimum number of accesses as the number of access cycles by the peripheral device accessed from the device according to the use conditions (temperature, voltage, etc.), thereby improving the processing performance. . Further, since the user does not need to consider the number of access cycles to the peripheral device inside the integrated circuit, the program can be easily developed.

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

【図1】本発明の第一の実施の形態に係るアクセスサイ
クル決定装置の構成図
FIG. 1 is a configuration diagram of an access cycle determination device according to a first embodiment of the present invention.

【図2】本発明のアドレス空間マップの一例を示した図FIG. 2 is a diagram showing an example of an address space map according to the present invention;

【図3】本発明の一例となる動作タイミング図FIG. 3 is an operation timing diagram as an example of the present invention.

【図4】本発明の他の例となる動作タイミング図FIG. 4 is another example operation timing diagram of the present invention.

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

1 中央処理装置 2 カウンタ 3 バス制御装置 4 第一の周辺装置 6 第二の周辺装置 8 第三の周辺装置 10 第一の周辺装置のアクセスサイクルレジスタ 11 第二の周辺装置のアクセスサイクルレジスタ 12 第三の周辺装置のアクセスサイクルレジスタ 5 第一の周辺装置の疑似アクセス発生部 7 第二の周辺装置の疑似アクセス発生部 9 第三の周辺装置の疑似アクセス発生部 20 第一の周辺装置の疑似アクセスに対する制御信号 21 第二の周辺装置の疑似アクセスに対する制御信号 22 第三の周辺装置の疑似アクセスに対する制御信号 DESCRIPTION OF SYMBOLS 1 Central processing unit 2 Counter 3 Bus control unit 4 First peripheral device 6 Second peripheral device 8 Third peripheral device 10 Access cycle register of first peripheral device 11 Access cycle register of second peripheral device 12 Second Third peripheral device access cycle register 5 First peripheral device pseudo access generation unit 7 Second peripheral device pseudo access generation unit 9 Third peripheral device pseudo access generation unit 20 First peripheral device pseudo access Control signal for pseudo-access of the second peripheral device 22 control signal for pseudo-access of the third peripheral device

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 中央処理装置と、前記中央処理装置から
アクセス可能な少なくとも1個以上の周辺装置と、バス
制御装置と、前記中央処理装置のクロックをカウントす
るカウンタ装置を1チップに集積した半導体集積回路に
おいて、前記バス制御装置は前記周辺装置のアクセスサ
イクルを規定するアクセスサイクルレジスタを有し、前
記中央処理装置が前記周辺装置にアクセスを発生したと
きに、前記周辺装置は前記中央処理装置からのアドレス
を用いて疑似アクセスを発生させる経路を有していて、
前記周辺装置のデータ出力に相当するタイミングで制御
信号を発生して、前記制御信号で前記中央処理装置のク
ロックでカウントアップされる前記カウンタ装置のカウ
ント値を前記アクセスサイクルレジスタに書き込み、前
記アクセスサイクルレジスタを用いて前記周辺装置のア
クセスサイクルを制御することを特徴とするバス制御装
置。
1. A semiconductor in which a central processing unit, at least one or more peripheral devices accessible from the central processing unit, a bus control unit, and a counter unit for counting a clock of the central processing unit are integrated on one chip. In the integrated circuit, the bus control device has an access cycle register that defines an access cycle of the peripheral device, and when the central processing unit generates an access to the peripheral device, the peripheral device is transmitted from the central processing device. Has a path for generating pseudo-access using the address of
A control signal is generated at a timing corresponding to a data output of the peripheral device, and a count value of the counter device, which is counted up by a clock of the central processing unit by the control signal, is written in the access cycle register, and the access cycle A bus control device for controlling an access cycle of the peripheral device using a register.
【請求項2】 中央処理装置と、前記中央処理装置から
アクセス可能な少なくとも1個以上の周辺装置と、バス
制御装置と、前記中央処理装置のクロックをカウントす
るカウンタ装置を1チップに集積した半導体集積回路に
おいて、前記バス制御装置は前記周辺装置のアクセスサ
イクルを規定するアクセスサイクルレジスタを有し、リ
セット状態を解除後に直ちに前記中央処理装置が前記周
辺装置にアクセスを発生して、前記周辺装置は前記中央
処理装置からのアドレスを用いて疑似アクセスを発生さ
せる経路を有していて、前記周辺装置のデータ出力に相
当するタイミングで制御信号を発生して、前記制御信号
で前記中央処理装置のクロックでカウントアップされる
前記カウンタ装置のカウント値を前記アクセスサイクル
レジスタに書き込み、前記アクセスサイクルレジスタを
用いて前記周辺装置のアクセスサイクルを制御すること
を特徴とするバス制御装置。
2. A semiconductor in which a central processing unit, at least one or more peripheral devices accessible from the central processing unit, a bus control unit, and a counter device for counting a clock of the central processing unit are integrated on one chip. In the integrated circuit, the bus control device has an access cycle register that defines an access cycle of the peripheral device. Immediately after releasing a reset state, the central processing unit accesses the peripheral device, and the peripheral device A path for generating a pseudo-access using an address from the central processing unit; generating a control signal at a timing corresponding to a data output of the peripheral device; Write the count value of the counter device counted up in the access cycle register A bus control device for controlling an access cycle of the peripheral device using the access cycle register.
【請求項3】 中央処理装置と、前記中央処理装置から
アクセス可能な少なくとも1個以上の周辺装置と、バス
制御装置と、前記中央処理装置のクロックをカウントす
るカウンタ装置を1チップに集積した半導体集積回路に
おいて、前記バス制御装置は前記周辺装置のアクセスサ
イクルを規定するアクセスサイクルレジスタを有し、リ
セット状態を解除後に直ちに前記中央処理装置が前記少
なくとも1個以上の周辺装置の共通にアクセスできるア
ドレスを発生して、前記周辺装置は前記中央処理装置か
らのアドレスを用いて疑似アクセスを発生させる経路を
有していて、前記周辺装置のデータ出力に相当するタイ
ミングで制御信号を発生して、前記制御信号で前記中央
処理装置のクロックでカウントアップされる前記カウン
タ装置のカウント値を前記アクセスサイクルレジスタに
書き込み、前記アクセスサイクルレジスタを用いて前記
周辺装置のアクセスサイクルを制御することを特徴とす
るバス制御装置。
3. A semiconductor in which a central processing unit, at least one peripheral device accessible from the central processing unit, a bus control unit, and a counter device for counting a clock of the central processing unit are integrated on one chip. In the integrated circuit, the bus control device has an access cycle register that specifies an access cycle of the peripheral device, and an address that the central processing unit can immediately access in common to the at least one peripheral device immediately after releasing a reset state. The peripheral device has a path for generating a pseudo access using an address from the central processing unit, and generates a control signal at a timing corresponding to the data output of the peripheral device, Count value of the counter device which is counted up by a clock of the central processing unit by a control signal A bus control device which writes the following into the access cycle register and controls an access cycle of the peripheral device using the access cycle register.
【請求項4】 中央処理装置と、前記中央処理装置が第
一のバスで接続される少なくとも1個以上の周辺装置
と、前記中央処理装置と第二のバスで接続される少なく
とも1個以上の周辺装置と、前記第一のバスおよび第二
のバスを制御するバス制御装置と、前記中央処理装置の
クロックをカウントするカウンタ装置を1チップに集積
した半導体集積回路において、前記バス制御装置は前記
周辺装置のアクセスサイクルを規定するアクセスサイク
ルレジスタを有し、前記中央処理装置が前記周辺装置に
アクセスを発生したときに、前記周辺装置は前記中央処
理装置からのアドレスを用いて疑似アクセスを発生させ
る経路を有していて、前記周辺装置のデータ出力に相当
するタイミングで制御信号を発生して、前記制御信号で
前記中央処理装置のクロックでカウントアップされる前
記カウンタ装置のカウント値を前記アクセスサイクルレ
ジスタに書き込み、前記アクセスサイクルレジスタを用
いて前記周辺装置のアクセスサイクルを制御することを
特徴とするバス制御装置。
4. A central processing unit, at least one or more peripheral devices connected to the central processing unit by a first bus, and at least one or more peripheral devices connected to the central processing unit by a second bus. In a semiconductor integrated circuit in which a peripheral device, a bus control device that controls the first bus and the second bus, and a counter device that counts a clock of the central processing unit are integrated in one chip, the bus control device is An access cycle register for defining an access cycle of the peripheral device, wherein when the central processing unit accesses the peripheral device, the peripheral device generates a pseudo access using an address from the central processing unit A control signal is generated at a timing corresponding to the data output of the peripheral device, and the control signal is used to trigger the CPU of the central processing unit. A bus control device, wherein a count value of the counter device counted up by a lock is written in the access cycle register, and an access cycle of the peripheral device is controlled using the access cycle register.
【請求項5】 動作中に動作周波数を切り替えることの
可能な中央処理装置と、前記中央処理装置からアクセス
可能な少なくとも1個以上の周辺装置と、バス制御装置
と、前記中央処理装置のクロックをカウントするカウン
タ装置を1チップに集積した半導体集積回路において、
前記バス制御装置は前記周辺装置のアクセスサイクルを
規定するアクセスサイクルレジスタを有し、前記中央処
理装置の動作周波数の変化後直ちに前記カウンタ装置を
初期化し、前記中央処理装置が前記周辺装置にアクセス
を行い、前記周辺装置は前記中央処理装置からのアドレ
スを用いて疑似アクセスを発生させる経路を有してい
て、前記周辺装置のデータ出力に相当するタイミングで
制御信号を発生して、前記制御信号で前記中央処理装置
のクロックでカウントアップされる前記カウンタ装置の
カウント値を前記アクセスサイクルレジスタに書き込
み、前記アクセスサイクルレジスタを用いて前記周辺装
置のアクセスサイクルを制御することを特徴とするバス
制御装置。
5. A central processing unit capable of switching an operating frequency during operation, at least one or more peripheral devices accessible from the central processing unit, a bus control unit, and a clock of the central processing unit. In a semiconductor integrated circuit in which a counter device for counting is integrated on one chip,
The bus control device has an access cycle register that defines an access cycle of the peripheral device, initializes the counter device immediately after a change in the operating frequency of the central processing unit, and allows the central processing device to access the peripheral device. The peripheral device has a path for generating a pseudo-access using an address from the central processing unit, and generates a control signal at a timing corresponding to the data output of the peripheral device. A bus control device, wherein a count value of the counter device counted up by a clock of the central processing unit is written in the access cycle register, and an access cycle of the peripheral device is controlled using the access cycle register.
JP8228116A 1996-08-29 1996-08-29 Bus control device Pending JPH1069460A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8228116A JPH1069460A (en) 1996-08-29 1996-08-29 Bus control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8228116A JPH1069460A (en) 1996-08-29 1996-08-29 Bus control device

Publications (1)

Publication Number Publication Date
JPH1069460A true JPH1069460A (en) 1998-03-10

Family

ID=16871463

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8228116A Pending JPH1069460A (en) 1996-08-29 1996-08-29 Bus control device

Country Status (1)

Country Link
JP (1) JPH1069460A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003099397A (en) * 2001-09-21 2003-04-04 Pacific Design Kk Data processing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003099397A (en) * 2001-09-21 2003-04-04 Pacific Design Kk Data processing system

Similar Documents

Publication Publication Date Title
US4870562A (en) Microcomputer capable of accessing internal memory at a desired variable access time
US8531893B2 (en) Semiconductor device and data processor
JP3638271B2 (en) Information processing device
US5832251A (en) Emulation device
JP3467631B2 (en) Logic LSI
JPH04233059A (en) Information processing apparatus
US20070038795A1 (en) Asynchronous bus interface and processing method thereof
US6604163B1 (en) Interconnection of digital signal processor with program memory and external devices using a shared bus interface
JPH1069460A (en) Bus control device
JP4176920B2 (en) Data processing device
US6076170A (en) Method and apparatus for selectively programming access time in a data processor
US10180847B2 (en) Circuitry for configuring entities
JPH11306074A (en) Information processing device
JP3028779B2 (en) Semiconductor device
JP3245903B2 (en) Semiconductor peripheral devices
JPH0542525Y2 (en)
US6154820A (en) Arrangement for storing program instructions and data in a memory device and method therefor
JP4062478B2 (en) Device access method
JP3366235B2 (en) Data read control device
US5943492A (en) Apparatus and method for generating external interface signals in a microprocessor
JPH0333934A (en) Register saving/recovering system
JPS6014435B2 (en) Storage device
US20020166076A1 (en) Method and device for accessing components
JP3134811B2 (en) Data processing device
JP2558902B2 (en) Semiconductor integrated circuit device