JPH07249021A - Microcomputer system - Google Patents
Microcomputer systemInfo
- Publication number
- JPH07249021A JPH07249021A JP6041445A JP4144594A JPH07249021A JP H07249021 A JPH07249021 A JP H07249021A JP 6041445 A JP6041445 A JP 6041445A JP 4144594 A JP4144594 A JP 4144594A JP H07249021 A JPH07249021 A JP H07249021A
- Authority
- JP
- Japan
- Prior art keywords
- data
- data bus
- detection
- cpu
- 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.)
- Pending
Links
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、CPU(中央処理装
置)が外部メモリからデータを読み出す場合、少ないウ
エイトステート数で高速にデータバスのデータを取り込
むことができるマイコンシステムに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microcomputer system capable of fetching data from a data bus at high speed with a small number of wait states when a CPU (central processing unit) reads data from an external memory.
【0002】[0002]
【従来の技術】従来のマイコンシステムにおいてCPU
が外部メモリからデータを読み出す場合、図3のタイム
チャートおよび図4のブロック図に示すように、CPU
1はメモリ制御部2にメモリ読み出し命令、例えば、
「READ ××××」に相当する機械語等を与え、同
メモリ制御部2はメモリ3に所要のアドレスデータおよ
び制御信号を供給するとともに、CPU1にウエイト信
号を供給する。暫くして、所定のアクセスタイムt1が
経過した後に、前記メモリ3から読み出されたデータ
は、データバス4に出力され確定する。従来は、システ
ム設計を行う場合、使用するメモリ素子の仕様(製品の
バラツキを考慮し最悪のケースでも性能を保証する)か
らアクセスタイムデータに基づき、さらに、例えば、デ
ータバス4の負荷条件の状況等を考え、若干の余裕時間
を見込んでウエイトステート数を決め、同ウエイトステ
ート数に相応した時間経過後に、メモリ制御部2はCP
U1にウエイト解除信号を供給していた。2. Description of the Related Art A CPU in a conventional microcomputer system
When the CPU reads data from the external memory, as shown in the time chart of FIG. 3 and the block diagram of FIG.
1 is a memory read command to the memory control unit 2, for example,
A machine language or the like corresponding to "READ XXX" is given, and the memory control unit 2 supplies required address data and control signals to the memory 3 and a wait signal to the CPU 1. After a lapse of a predetermined access time t1, the data read from the memory 3 is output to the data bus 4 to be fixed. Conventionally, when designing a system, based on the access time data from the specifications of the memory device to be used (the performance is guaranteed even in the worst case in consideration of product variations), further, for example, the condition of the load condition of the data bus 4. In consideration of the above, the number of wait states is determined in consideration of some margin time, and after the time corresponding to the number of wait states has elapsed, the memory control unit 2 sets the CP
The wait release signal was supplied to U1.
【0003】従って、実際のマイコンシステムでは、前
記メモリ3から読み出されたデータは、前記ウエイトス
テート数に相応した時間が経過する以前にデータバス4
に出力され確定するケースが発生し、その場合でも、不
要な待ち時間が経過した後に、始めてCPU1は読み出
されたデータを取り込むように動作していた。Therefore, in an actual microcomputer system, the data read from the memory 3 is stored in the data bus 4 before the time corresponding to the number of wait states elapses.
However, even in that case, the CPU 1 operates to fetch the read data for the first time after an unnecessary waiting time has elapsed.
【0004】ところが、マイコンシステムではシステム
処理の高速化の要望とともに、コスト低減の要望も強
く、そのため、アクセスタイムの遅い安価なメモリ素子
を使用してマイコンシステムが構成される場合も多く、
システム処理の高速化実現が困難であった。However, in the microcomputer system, there is a strong demand for cost reduction as well as a demand for high-speed system processing. Therefore, in many cases, the microcomputer system is constructed using an inexpensive memory element having a slow access time,
It was difficult to realize high-speed system processing.
【0005】[0005]
【発明が解決しようとする課題】本発明は上記問題点に
鑑みなされたもので、メモリから読み出したデータがデ
ータバスで確定完了した時点で直ちに、CPUが該デー
タを取り込めるようにしたマイコンシステムを提供する
ことを目的とする。SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and provides a microcomputer system in which the CPU can take in the data immediately when the data read from the memory is confirmed by the data bus. The purpose is to provide.
【0006】[0006]
【課題を解決するための手段】上記目的を達成するため
に、データを処理し各部を制御するCPUと、前記CP
Uが供給するアドレスデータと制御命令とに基づき記憶
しているデータをデータバスに出力するメモリとでなる
マイコンシステムにおいて、上記データバスに接続し、
同データバスの信号変化を検出するデータ検出部を設け
てなり、上記CPUが、前記データ検出部が出力する検
出信号を受け取ったタイミングでデータバスからデータ
を取り込む。In order to achieve the above object, a CPU for processing data and controlling each unit, and the CP
In a microcomputer system including a memory that outputs stored data to a data bus based on address data supplied by U and a control command, the microcomputer system is connected to the data bus,
A data detection unit for detecting a signal change of the data bus is provided, and the CPU fetches data from the data bus at the timing when the detection signal output from the data detection unit is received.
【0007】[0007]
【作用】以上のように構成したので、データ検出部がデ
ータバスのデータの変化を検出し、CPUは同変化に基
づく検出信号を入力して、データバスのデータを取り込
む。また、データ検出部がデータバスのデータ変化を検
出しない場合は、CPUは、予め設定してあるウエイト
ステート数の経過後ウエイトを解除し、データバスのデ
ータを取り込む。With the above configuration, the data detection section detects a change in the data on the data bus, and the CPU inputs a detection signal based on the change and takes in the data on the data bus. When the data detection unit does not detect the data change of the data bus, the CPU releases the wait after the preset number of wait states and fetches the data of the data bus.
【0008】[0008]
【実施例】以下、本発明によるマイコンシステムについ
て図を用いて詳細に説明する。図1は、本発明によるマ
イコンシステムの実施例ブロック図である。尚、従来例
と同様の箇所は同一番号を付し、説明の一部を省略し
た。1はデータを処理するとともに、各部を制御するC
PUである。2は、前記CPU1からメモリアクセス命
令を受け、所要のアドレスデータと制御命令とを生成
し、出力するメモリ制御部である。3は、前記メモリ制
御部2が供給するアドレスデータと制御命令とに基づ
き、記憶しているデータをデータバス4に出力するメモ
リである。5は前記データバス4に接続し、同データバ
ス4の信号変化を検出し、検出信号7あるいは17を出
力するデータ検出部である。DESCRIPTION OF THE PREFERRED EMBODIMENTS A microcomputer system according to the present invention will be described in detail below with reference to the drawings. FIG. 1 is a block diagram of an embodiment of a microcomputer system according to the present invention. The same parts as those in the conventional example are denoted by the same reference numerals, and a part of the description is omitted. C processes data and controls each part.
It is PU. A memory control unit 2 receives a memory access command from the CPU 1 and generates and outputs required address data and a control command. Reference numeral 3 is a memory for outputting the stored data to the data bus 4 based on the address data and the control command supplied by the memory control unit 2. A data detector 5 is connected to the data bus 4, detects a signal change of the data bus 4, and outputs a detection signal 7 or 17.
【0009】図3を参照して本発明によるマイコンシス
テムの動作を説明する。CPU1はメモリアクセス命
令、例えば、「READ ××××」に相当する機械語
等をメモリ制御部2へ与えると、同メモリ制御部2はメ
モリ3に、例えば、m番地を指定するアドレスデータ
と、読み出し制御信号とを供給するとともに、予め記憶
しているウエイトステート数に基づくウエイト時間(t
2)の間、ウエイト信号を前記CPU1に供給する。デ
ータ検出部5はデータバス4のデータをチェックし、デ
ータの変化が発生した時点(m番地を指定後、t1時
間)で、検出信号7あるいは17をメモリ制御部2へ出
力する。メモリ制御部2は前記検出信号7あるいは17
に基づき、ウエイト解除信号をCPU1に供給し、同C
PU1はデータバス4の確定完了したデータを、前記ウ
エイト時間(t2)以内に取り込む。尚、アドレスm番
地と、n番地の内容が等しく、例えば、両方の内容がF
F(H)などの場合、データ検出部5がデータバス4の
データの変化を検出できないので、従来と同様の方法で
メモリ制御部2は、前記ウエイト時間(t2)経過後に
ウエイト解除信号をCPU1に供給する。The operation of the microcomputer system according to the present invention will be described with reference to FIG. When the CPU 1 gives a memory access command, for example, a machine language equivalent to “READ XXX” to the memory control unit 2, the memory control unit 2 causes the memory 3 to receive address data specifying, for example, address m. , A read control signal and a wait time (t) based on the number of wait states stored in advance.
During 2), a wait signal is supplied to the CPU1. The data detection unit 5 checks the data on the data bus 4 and outputs the detection signal 7 or 17 to the memory control unit 2 at the time when the data change occurs (t1 time after designation of the address m). The memory control unit 2 uses the detection signal 7 or 17
Based on the above, a wait release signal is supplied to the CPU 1,
The PU 1 takes in the data of which the data bus 4 has been determined, within the wait time (t2). The contents of the address m and the address n are the same, for example, both contents are F
In the case of F (H) or the like, the data detection unit 5 cannot detect a change in the data on the data bus 4. Therefore, the memory control unit 2 sends a wait release signal after the wait time (t2) elapses in the same manner as the conventional method. Supply to.
【0010】本発明によるマイコンシステムのデータ検
出部の具体的な構成を図2に従い説明する。10は検出
用のクロック信号13に基づきデータバス4のデータを
一時記憶するラッチ回路である。11は、前記検出用の
クロック信号13に基づきデータバス4の現在のデータ
と、前記ラッチ回路10が出力する1クロック前のデー
タとを比較し、データの変化が発生する場合、第一検出
信号7を出力する比較器である。尚、上記検出用のクロ
ック信号13はシステムクロック15のn倍、例えば、
2倍等に選び、検出時刻の刻みを△t(図3)のように
細かくするようにしても良い。また、上記比較器11が
出力する第一検出信号7をシステムクロック15に同期
させるため、例えば、システムクロック15に同期して
動作するラッチ回路を使用した同期部12を設け、第一
検出信号7をシステムクロック15に同期させ、その結
果得られた第二検出信号17を出力するようにしても良
い。A specific configuration of the data detection section of the microcomputer system according to the present invention will be described with reference to FIG. Reference numeral 10 is a latch circuit for temporarily storing the data on the data bus 4 based on the clock signal 13 for detection. Reference numeral 11 compares the current data on the data bus 4 with the data one clock before output from the latch circuit 10 based on the clock signal 13 for detection, and when a change in data occurs, the first detection signal 11 It is a comparator that outputs 7. The detection clock signal 13 is n times the system clock 15, for example,
It is also possible to select twice or so and to make the detection time interval finer as Δt (FIG. 3). Further, in order to synchronize the first detection signal 7 output from the comparator 11 with the system clock 15, for example, a synchronization unit 12 using a latch circuit that operates in synchronization with the system clock 15 is provided, and the first detection signal 7 is provided. May be synchronized with the system clock 15 and the second detection signal 17 obtained as a result may be output.
【0011】[0011]
【発明の効果】以上説明したように、本発明はメモリか
ら読み出したデータがデータバスで確定完了した時点で
直ちに、CPUが該データを取り込むようにしたマイコ
ンシステムを提供する。従って、従来マイコンシステム
ではシステム処理の高速化の要望とともに、コスト低減
の要望も強く、そのため、アクセスタイムの遅い安価な
メモリを使用してマイコンシステムが構成されることが
多く、システム処理の高速化実現が困難であった問題を
解決できるメリットがある。As described above, the present invention provides a microcomputer system in which the CPU fetches the data immediately after the data read from the memory has been fixed on the data bus. Therefore, in the conventional microcomputer system, there is a strong demand for cost reduction as well as system processing speed increase. Therefore, a microcomputer system is often constructed using an inexpensive memory with a slow access time. It has the merit of solving problems that were difficult to realize.
【図1】本発明によるマイコンシステムの実施例ブロッ
ク図である。FIG. 1 is a block diagram of an embodiment of a microcomputer system according to the present invention.
【図2】本発明によるマイコンシステムのデータ検出部
の具体的な構成を示すブロック図である。FIG. 2 is a block diagram showing a specific configuration of a data detection unit of the microcomputer system according to the present invention.
【図3】マイコンシステムの動作を示すタイムチャート
である。FIG. 3 is a time chart showing the operation of the microcomputer system.
【図4】従来のマイコンシステムの実施例ブロック図で
ある。FIG. 4 is a block diagram of an embodiment of a conventional microcomputer system.
1 CPU 2 メモリ制御部 3 メモリ 4 データバス 5 データ検出部 7 第一検出信号 10 ラッチ回路 11 比較器 12 同期部 13 検出用のクロック信号 15 システムクロック 17 第二検出信号 1 CPU 2 Memory Control Section 3 Memory 4 Data Bus 5 Data Detection Section 7 First Detection Signal 10 Latch Circuit 11 Comparator 12 Synchronization Section 13 Clock Signal for Detection 15 System Clock 17 Second Detection Signal
Claims (4)
と、前記CPUが供給するアドレスデータと制御命令と
に基づき記憶しているデータをデータバスに出力するメ
モリとでなるマイコンシステムにおいて、 上記データバスに接続し、同データバスの信号変化を検
出するデータ検出部を設けてなり、上記CPUが、前記
データ検出部が出力する検出信号を受け取ったタイミン
グでデータバスからデータを取り込むことを特徴とした
マイコンシステム。1. A CPU for processing data and controlling each unit
And a memory for outputting the data stored on the basis of the address data supplied by the CPU and the control command to the data bus, the microcomputer system being connected to the data bus to detect a signal change of the data bus. A microcomputer system comprising a data detector, wherein the CPU fetches data from a data bus at the timing of receiving a detection signal output from the data detector.
と、前記CPUからメモリアクセス命令を受け所要のア
ドレスデータと制御命令とを生成するメモリ制御部と、
前記メモリ制御部が供給するアドレスデータと制御命令
とに基づき記憶しているデータを前記データバスに出力
するメモリとでなるマイコンシステムにおいて、 上記データバスに接続し、同データバスの信号変化を検
出するデータ検出部を設けてなり、前記データ検出部が
出力する検出信号を上記メモリ制御部が受け取り、同メ
モリ制御部がウエイト解除信号を出力したタイミング
で、上記CPUがデータバスからデータを取り込むこと
を特徴としたマイコンシステム。2. A CPU for processing data and controlling each part
And a memory control unit that receives a memory access command from the CPU and generates required address data and a control command,
In a microcomputer system including a memory that outputs stored data to the data bus based on address data supplied by the memory control unit and a control command, a signal change of the data bus is detected by connecting to the data bus. And a data detection section for performing data fetching from the data bus at the timing when the memory control section receives the detection signal output from the data detection section and the memory control section outputs the wait release signal. Microcomputer system featuring.
し、検出用のクロック信号に基づきデータバスのデータ
を一時記憶するラッチ回路と、前記検出用のクロック信
号に基づき現在のデータバス上のデータと、前記ラッチ
回路が出力するデータとを比較し、データ変化が発生す
る場合、同データ変化の発生に基づく検出信号を出力す
る比較器とでなることを特徴とする請求項1ならびに請
求項2記載のマイコンシステム。3. A latch circuit that connects the data detection unit to a data bus and temporarily stores data on the data bus based on a clock signal for detection, and data on the current data bus based on the clock signal for detection. And a data output from the latch circuit, and when a data change occurs, the comparator outputs a detection signal based on the occurrence of the data change. The described microcomputer system.
ロックの数倍に選ぶとともに、上記比較器の出力をシス
テムクロックに同期させるための同期部を設けたことを
特徴とする請求項1ならびに請求項2記載のマイコンシ
ステム。4. The clock signal for detection is selected to be several times as high as the system clock, and a synchronizing unit is provided for synchronizing the output of the comparator with the system clock. 2. Microcomputer system described in 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6041445A JPH07249021A (en) | 1994-03-11 | 1994-03-11 | Microcomputer system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6041445A JPH07249021A (en) | 1994-03-11 | 1994-03-11 | Microcomputer system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH07249021A true JPH07249021A (en) | 1995-09-26 |
Family
ID=12608578
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP6041445A Pending JPH07249021A (en) | 1994-03-11 | 1994-03-11 | Microcomputer system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH07249021A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008018215A1 (en) * | 2006-08-11 | 2008-02-14 | Panasonic Corporation | Data access system and information processor |
-
1994
- 1994-03-11 JP JP6041445A patent/JPH07249021A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008018215A1 (en) * | 2006-08-11 | 2008-02-14 | Panasonic Corporation | Data access system and information processor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR950005217B1 (en) | Clock signal control method and data processing system | |
JP3057934B2 (en) | Shared bus arbitration mechanism | |
JPS58192148A (en) | Operation processor | |
KR920006826A (en) | Programmable Controller and Manufacturing Method | |
JPH01297735A (en) | Microprocessor | |
JPH07249021A (en) | Microcomputer system | |
US6954873B2 (en) | Implementation of wait-states | |
JPH064301A (en) | Time division interruption control system | |
JP2864861B2 (en) | Response signal control circuit | |
JPH0573296A (en) | Microcomputer | |
JPS615363A (en) | Controller of shared memory | |
JP2783794B2 (en) | Asynchronous input interface method | |
JP3366235B2 (en) | Data read control device | |
KR0168202B1 (en) | Clock switching device | |
JP3450667B2 (en) | Data processor | |
JP3133696B2 (en) | DRAM control circuit | |
JPH02115963A (en) | Pre-charge time control circuit | |
JPH03266110A (en) | Resetting device for computer | |
JP2003323393A (en) | Peripheral device control circuit and electronic circuit | |
JPH04262435A (en) | Memory control system | |
JPH01293458A (en) | Circuit for securing access cycle in computer system | |
JPH05143362A (en) | Interruption processing system | |
JPH04312159A (en) | System clock compensation system | |
JPH04287421A (en) | Start circuit for a/d converter or d/a converter | |
JP2000293278A (en) | Noise detecting circuit |