JPH11143768A - Microprocessor and memory system - Google Patents
Microprocessor and memory systemInfo
- Publication number
- JPH11143768A JPH11143768A JP9303910A JP30391097A JPH11143768A JP H11143768 A JPH11143768 A JP H11143768A JP 9303910 A JP9303910 A JP 9303910A JP 30391097 A JP30391097 A JP 30391097A JP H11143768 A JPH11143768 A JP H11143768A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- bank
- address
- signal
- microprocessor
- 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
Landscapes
- Memory System (AREA)
Abstract
(57)【要約】
【課題】 複数のバンクを有するメモリに接続されるマ
イクロプロセッサのメモリとの接続状態を変更すること
なく、論理アドレス空間を複数のバンク使用のために任
意に分割することができるマイクロプロセッサを提供す
る。
【解決手段】 論理アドレスのどのビット位置の信号を
バンク選択信号として使用するかを記憶するレジスタ
(6)と、このレジスタの内容を書き替える手段(2)とを有
する。これにより、論理アドレスの任意のアドレスビッ
トをバンク選択信号として設定可能とし、論理アドレス
空間を複数のバンク使用のために任意に分割する。
Abstract: PROBLEM TO BE SOLVED: To arbitrarily divide a logical address space for use of a plurality of banks without changing a connection state of a microprocessor connected to a memory having a plurality of banks with a memory. Provide a microprocessor capable of A register for storing which bit position of a logical address is used as a bank selection signal
(6) and means (2) for rewriting the contents of this register. As a result, an arbitrary address bit of the logical address can be set as a bank selection signal, and the logical address space is arbitrarily divided for use of a plurality of banks.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、半導体メモリに接
続されるマイクロプロセッサに関するものであり、特
に、複数バンクを有する半導体メモリの特定のバンクか
らのデータを読みだし、また特定のバンクにデータの書
き込みをおこなうマイクロプロセッサに適用して有効な
技術に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microprocessor connected to a semiconductor memory, and more particularly, to reading data from a specific bank of a semiconductor memory having a plurality of banks and transferring data to a specific bank. The present invention relates to a technique that is effective when applied to a microprocessor that performs writing.
【0002】[0002]
【従来の技術】複数のバンクを有する半導体メモリにマ
イクロプロセッサを接続し、メモリの特定のバンクから
データを読み出し、または特定のバンクにデータの書き
込みを行う技術が、従来から用いられている。この際、
マイクロプロセッサ内では、内部に設けられた中央処理
ユニットによってアドレスの出力がなされるが、従来の
マイクロプロセッサでは、メモリのバンクの選択に使用
するビットをアドレス最上位の1ビットに固定してい
た。2. Description of the Related Art A technique of connecting a microprocessor to a semiconductor memory having a plurality of banks, reading data from a specific bank of the memory, or writing data to a specific bank has conventionally been used. On this occasion,
In a microprocessor, an address is output by a central processing unit provided therein. In a conventional microprocessor, a bit used for selecting a bank of a memory is fixed to the most significant bit of the address.
【0003】このため、従来のマイクロプロセッサにお
いては、メモリのバンクの選択に使用するバンク信号を
出力する信号ピンには、常にアドレス最上位のビットの
信号が出力されるものであった。Therefore, in a conventional microprocessor, a signal of the most significant bit of an address is always output to a signal pin for outputting a bank signal used for selecting a memory bank.
【0004】[0004]
【発明が解決しようとする課題】従来のマイクロプロセ
ッサにおいては、上述のようにメモリのバンクの選択に
使用するビットをアドレス最上位1ビットに固定してい
たため、連続する論理アドレス空間でメモリの複数のバ
ンクを使用する際のバンク割当ての柔軟性が確保できな
いという問題点が生ずる。すなわち、従来のマイクロプ
ロセッサにおいては、バンクの選択のビットをアドレス
最上位に固定していたため、バンク信号を出力する信号
ピンには固定的にアドレス最上位のビットの信号が出力
されることになり、複数のプロセスが連続する論理アド
レス空間において、固定的に論理アドレス空間を2分割
してそれぞれに異なるバンクを割り当てることしかでき
なかった。In the conventional microprocessor, the bits used for selecting the memory bank are fixed to the most significant bit of the address as described above. However, there is a problem that the flexibility of bank allocation when using the first bank cannot be secured. That is, in the conventional microprocessor, the bit of the bank selection is fixed at the highest address, so that the signal pin of the highest address is fixedly output to the signal pin for outputting the bank signal. In a logical address space in which a plurality of processes are continuous, the logical address space can only be fixedly divided into two and different banks can be assigned to the two.
【0005】よって、従来のマイクロプロセッサを使用
したシステムにおいては、複数のプロセスが連続する論
理アドレス空間において、交互に複数のバンクを切り替
えて使用できるように空間を分割するというような使用
要求をも満たそうとする場合においては、アドレス最上
位のビットの信号が固定的に出力される信号ピンをバン
ク信号ピンとして扱うと不具合が生じるため、メモリと
マイクロプロセッサとの間のピンの接続状態を変更しな
ければならないという問題が生ずる。Therefore, in a system using a conventional microprocessor, there is also a demand for use such that a space is divided so that a plurality of banks can be switched and used alternately in a logical address space in which a plurality of processes are continuous. When trying to satisfy, if the signal pin where the signal of the most significant bit of the address is fixedly output is treated as a bank signal pin, a problem occurs, so the connection state of the pin between the memory and the microprocessor is changed A problem that must be done.
【0006】また、マイクロプロセッサとメモリとを一
つの半導体基板に形成した場合には、マイクロプロセッ
サとメモリとの接続関係を変更することは困難であり、
上記問題は、更に深刻となる。When the microprocessor and the memory are formed on one semiconductor substrate, it is difficult to change the connection between the microprocessor and the memory.
The above problem is exacerbated.
【0007】本発明の目的は、マイクロプロセッサ外で
のメモリとの接続状態を変更することなく、論理アドレ
ス空間を複数のバンク使用のために分割することができ
るマイクロプロセッサおよびマイクロプロセッサを用い
たメモリシステムを提供することにある。SUMMARY OF THE INVENTION It is an object of the present invention to provide a microprocessor and a memory using a microprocessor which can divide a logical address space for use of a plurality of banks without changing the connection state with the memory outside the microprocessor. It is to provide a system.
【0008】本発明の前記ならびにその他の目的と新規
な特徴は、本明細書の記述および添付図面から明らかに
なるであろう。The above and other objects and novel features of the present invention will become apparent from the description of the present specification and the accompanying drawings.
【0009】[0009]
【課題を解決するための手段】本願において開示される
発明のうち代表的なものの概要を簡単に説明すれば以下
の通りである。The following is a brief description of an outline of a typical invention among the inventions disclosed in the present application.
【0010】すなわち、本発明は、上記目的を達成する
ために、前記中央処理ユニットからの複数ビットからな
るアドレス信号によって複数のバンクを有するメモリか
らのデータの読み出し若しくはメモリへのデータの書き
込みを行うマイクロプロセッサにおいて、前記アドレス
信号の前記複数のビットのうちどのビット位置の信号を
バンク選択信号として使用するかを切り替える手段を有
する。また、どのビット位置の信号をバンク選択信号と
して使用するかを示す情報を記憶する記憶手段を有す
る。That is, according to the present invention, in order to achieve the above object, data is read from or written to a memory having a plurality of banks by an address signal consisting of a plurality of bits from the central processing unit. The microprocessor includes means for switching which bit position of the plurality of bits of the address signal is used as a bank selection signal. In addition, the storage device has storage means for storing information indicating which bit position signal is to be used as the bank selection signal.
【0011】これによりバンクセレクトビットをアドレ
スのどのビットに対応させるかを選択可能とすることが
できるため、メモリとの接続を変更することなく論理ア
ドレス空間を分割することができる。Thus, it is possible to select which bit of the address the bank select bit corresponds to, so that the logical address space can be divided without changing the connection with the memory.
【0012】[0012]
【発明の実施の形態】図1に、本発明の一実施例である
マイクロプロセッサと、メモリとを接続したメモリシス
テムを示す。FIG. 1 shows a memory system in which a microprocessor according to an embodiment of the present invention and a memory are connected.
【0013】図1のマイクロプロセッサ(27)は、その内
部に中央処理ユニット(2)、DMACモジュール(直接
メモリアクセス制御部)(3)およびメモリインタフェー
スモジュール(1)を有する。(なお、本実施例では、中
央処理ユニット(2)はキャッシュを内蔵し、このキャッ
シュを介してメモリインターフェースモジュール(1)と
接続されるので、中央処理ユニット(2)は、以下CPU/Cac
heモジュール(2)と呼ぶ。) メモリインターフェースモジュール(1)には、CPU/Cache
モジュール(2)もしくはDMACモジュール(3)がリクエスト
としてアクセス要求を出力する。CPU/Cacheモジュール
(2)からメモリインタフェースモジュール(1)へのアクセ
ス要求にはメモリからのリードとメモリへのライトのメ
モリアクセス要求と、メモリインタフェースモジュール
(1)内部のレジスタ(6)に対するリード/ライトのレジス
タアクセス要求がある。DMACモジュール(3)からメモリ
インタフェースモジュール(1)へのアクセス要求にはメ
モリのリード/ライトのメモリアクセス要求がある。The microprocessor (27) shown in FIG. 1 has a central processing unit (2), a DMAC module (direct memory access control unit) (3) and a memory interface module (1). (In this embodiment, since the central processing unit (2) has a built-in cache and is connected to the memory interface module (1) via this cache, the central processing unit (2)
Called he module (2). The memory interface module (1) has CPU / Cache
The module (2) or the DMAC module (3) outputs an access request as a request. CPU / Cache module
An access request from (2) to the memory interface module (1) includes a memory access request for reading from and writing to memory and a memory interface module.
(1) There is a read / write register access request to the internal register (6). The access request from the DMAC module (3) to the memory interface module (1) includes a memory access request for memory read / write.
【0014】CPU/Cacheモジュール(2)からメモリアクセ
ス要求がある場合、CPU/Cacheモジュールはリクエスト
としてメモリアクセス要求とアドレスをメモリインタフ
ェースモジュール(1)内のリクエスト制御部(4)に出力す
る。リクエストを受けたリクエスト制御部(4)はメモリ
アクセス要求であることを認識すると外部バス制御部
(7)にメモリアクセスリクエスト(18)を出力する。メモ
リアクセスリクエスト(18)を受けた外部バス制御部(7)
はアドレス制御部(8)、制御信号生成部(9)、データ制御
部(10)をそれぞれ制御し、メモリアクセスを行う。When there is a memory access request from the CPU / Cache module (2), the CPU / Cache module outputs a memory access request and an address as a request to the request control unit (4) in the memory interface module (1). Upon receiving the request, the request control unit (4) recognizes that the request is a memory access request, and the external bus control unit
The memory access request (18) is output to (7). External bus controller (7) receiving memory access request (18)
Controls the address control unit (8), the control signal generation unit (9), and the data control unit (10), and performs memory access.
【0015】アドレス制御部(8)は、あらかじめレジス
タ(6)に記憶されたバンク情報(後述するレジスタのビ
ットAMXEXTの内容)であるバンクビット制御信号
(21)を入力し、このバンクビット制御情報にしたがって
バンクを選択するバンク信号(23)を出力し、また、アド
レス(26)をメモリ(28)に出力する。あらかじめレジスタ
(6)に記憶されたバンク情報は、CPU/Cacheモジュール
(2)等が出力するアドレス信号のどのビットをバンク信
号として使用するかを示す情報であり、アドレス制御部
(8)は、このバンク情報にもとづいて、アドレス信号の
所定のビットを選択してバンク信号(23)としてメモリ(2
8)に出力する。The address control section (8) is a bank bit control signal which is bank information (contents of a register bit AMXEXT described later) stored in the register (6) in advance.
(21), and outputs a bank signal (23) for selecting a bank according to the bank bit control information, and outputs an address (26) to the memory (28). Register in advance
The bank information stored in (6) is the CPU / Cache module
(2) is information indicating which bit of the address signal output by the address control unit is used as the bank signal.
(8) selects a predetermined bit of the address signal based on the bank information and stores it as a bank signal (23) in the memory (2).
Output to 8).
【0016】また、制御信号生成部(9)はメモリアクセ
スに必要なメモリ制御信号(102)をメモリ(28)に対して
出力し、メモリにREAD/WRITE等のコマンドを与える。The control signal generator (9) outputs a memory control signal (102) required for memory access to the memory (28), and gives a command such as READ / WRITE to the memory.
【0017】また、データ制御部(10)は、データバッフ
ァ(11)を制御しデータの授受が行われる。The data controller (10) controls the data buffer (11) to exchange data.
【0018】なお本実施例ではDMACモジュールを内蔵し
たマイクロプロセッサを用いているが、DMACモジュール
を内蔵しないマイクロプロセッサでもよい。In this embodiment, a microprocessor having a built-in DMAC module is used, but a microprocessor having no built-in DMAC module may be used.
【0019】レジスタ(6)に記憶されたバンク情報は、C
PU/Cacheモジュール(2)からその内容を書き替えること
によって変更可能であり、これによってアドレス制御部
(8)はアドレスの任意のビットをバンク信号(23)として
出力することができるようになる。CPU/Cacheからレジ
スタへの書き込み要求がある場合、CPU/Cacheモジュー
ル(2)はリクエストとしてレジスタライトアクセス要求
をリクエスト制御部(4)に出力し、同時にレジスタに書
き込むべきデータ(105)を出力する。レジスタ書き込み
の要求を受けたリクエスト制御部(4)は、レジスタアク
セスリクエスト(103)をレジスタR/W制御部(5)に出力す
る。レジスタアクセスリクエストを受けたレジスタR/W
制御部(5)がレジスタ(6)へレジスタ書き込み信号(104)
を出力することにより、レジスタにデータ(105)が書き
込まれる。The bank information stored in the register (6) is C
The contents can be changed by rewriting the contents from the PU / Cache module (2), and the address
In (8), any bit of the address can be output as the bank signal (23). When there is a write request from the CPU / Cache to the register, the CPU / Cache module (2) outputs a register write access request as a request to the request control unit (4) and simultaneously outputs data (105) to be written to the register. . Upon receiving the register write request, the request control section (4) outputs a register access request (103) to the register R / W control section (5). Register R / W that received the register access request
Control unit (5) sends register write signal (104) to register (6).
Is output, the data (105) is written to the register.
【0020】図1に示すマイクロプロセッサ(27)は、特
に限定されないが一つの半導体基板上に形成され、上記
バンク信号(23)、アドレス(26)等は、半導体基板上に設
けられたパッドを介して信号出力ピンに導出され、接続
配線を通じてメモリ(28)に入力される。The microprocessor (27) shown in FIG. 1 is formed on one semiconductor substrate, although not particularly limited, and the bank signal (23), the address (26) and the like are provided on pads provided on the semiconductor substrate. The signal is output to a signal output pin via a connection line, and is input to the memory (28) through the connection wiring.
【0021】また、メモリ(28)には、複数のバンクが形
成され、本実施例ではシンクロナスDRAMを用いている。A plurality of banks are formed in the memory (28). In this embodiment, a synchronous DRAM is used.
【0022】本実施例では、メモリ(28)とマイクロプロ
セッサ(27)とは、別々の半導体基板上に形成されるもの
とするが、本発明はメモリ(28)がマイクロプロセッサ(2
7)と同じ半導体基板上に形成されている場合にも適用で
きることは明らかである。In this embodiment, the memory (28) and the microprocessor (27) are formed on separate semiconductor substrates, but in the present invention, the memory (28) is
It is apparent that the present invention can be applied to the case where the semiconductor device is formed on the same semiconductor substrate as in 7).
【0023】図2は、本実施例におけるアドレス制御部
(8)の詳細を示したものである。FIG. 2 shows an address control unit according to this embodiment.
It shows details of (8).
【0024】図2で、リクエスト制御部(4)によりアク
セス要求がメモリアクセス要求であることが認識され、
リードもしくはライトのアクセスが決定されると、外部
バス制御部(7)にメモリアクセスリクエスト(18)が送ら
れる。外部バス制御部(7)では、メモリアクセスのタイ
ミングにしたがって、出力アドレス制御信号(19)が生成
される。また同時にリクエストアドレス(22)がアドレス
制御部(8)に送られる。In FIG. 2, the request control unit (4) recognizes that the access request is a memory access request,
When the read or write access is determined, a memory access request (18) is sent to the external bus control unit (7). The external bus control unit (7) generates an output address control signal (19) according to the memory access timing. At the same time, the request address (22) is sent to the address control unit (8).
【0025】ロウアドレス生成部(14)ではロウアドレス
(24)が生成され、カラムアドレス生成部(15)でカラムア
ドレス(25)が生成される。生成されたロウアドレス(24)
とカラムアドレス(25)は出力アドレス制御信号(19)にし
たがってメモリアクセスタイミングに合わせてセレクタ
(17)で選択され出力アドレスが生成される。In the row address generation section (14), the row address
(24) is generated, and the column address generation unit (15) generates the column address (25). Generated row address (24)
And the column address (25) are selected according to the memory access timing according to the output address control signal (19).
The output address selected in (17) is generated.
【0026】メモリアクセスのタイミングは、あらかじ
めレジスタ(6)に記憶されたメモリ情報(20)から外部バ
ス制御部(7)で制御/生成される。The timing of memory access is controlled / generated by the external bus control unit (7) from the memory information (20) stored in the register (6) in advance.
【0027】バンクビット生成部(13)では、あらかじめ
レジスタ(6)に記憶されたバンク情報であるバンクビッ
ト制御信号(21)に従って、論理アドレスのどのビットを
バンク信号(23)として出力するかをセレクタ(16)で決定
し出力する。これにより、レジスタ(6)内のバンク情報
を変更することによって、論理アドレスの任意のビット
位置の情報をバンク信号として所定の位置の出力ピンに
出力することが可能となる。言い換えれば、論理アドレ
スのそれぞれのビット位置と信号出力ピンとの対応関係
を変更することが可能となる。The bank bit generator (13) determines which bit of the logical address is to be output as the bank signal (23) according to the bank bit control signal (21) which is the bank information stored in the register (6) in advance. Determined by selector (16) and output. Thus, by changing the bank information in the register (6), it is possible to output information at an arbitrary bit position of the logical address as a bank signal to an output pin at a predetermined position. In other words, it is possible to change the correspondence between each bit position of the logical address and the signal output pin.
【0028】なお本実施例ではバンク情報を記憶するレ
ジスタをメモリインタフェース(1)内に有しているがメ
モリインタフェースモジュール(1)の外部に設けてもよ
く、さらにはCPU/Cacheモジュール(2)内ある記憶部でバ
ンク情報を記憶しても良い。In this embodiment, the register for storing the bank information is provided in the memory interface (1). However, the register may be provided outside the memory interface module (1), and the CPU / Cache module (2) Bank information may be stored in an internal storage unit.
【0029】図3に、マイクロプロセッサと2バンク構
成のシンクロナスDRAMとの接続例を示す。FIG. 3 shows a connection example between a microprocessor and a synchronous DRAM having a two-bank configuration.
【0030】シンクロナスDRAMの内部は2つのバンクで
構成されているので、このバンクの選択に必要なビット
は1ビットで、バンク信号(BANK)としてシンクロナスDR
AMに入力される。Since the interior of the synchronous DRAM is composed of two banks, the bit required for selecting this bank is 1 bit, and the synchronous DR is used as a bank signal (BANK).
Input to AM.
【0031】シンクロナスDRAM(28)のアクセスに必要な
メモリ制御信号にはクロック(CLK)、クロックイネーブ
ル信号(CKE)、チップセレクト信号(CS)、ロウアドレス
ストローブ信号(RAS)、カラムアドレスストローブ(CA
S)、ライトイネーブル信号(WE)、データマスクイネーブ
ル信号(DQM)、およびバンク信号(BANK)(図1の(23))が
ある。これらのメモリ制御信号とアドレス(A)、データ
(DATA)がマイクロプロセッサ(27)と接続される。マイク
ロプロセッサ(27)は各種制御信号を出力することでシン
クロナスDRAM(28)に各種コマンドを与え、リード、ライ
トアクセスを実現する。The memory control signals required for accessing the synchronous DRAM (28) include a clock (CLK), a clock enable signal (CKE), a chip select signal (CS), a row address strobe signal (RAS), and a column address strobe ( CA
S), a write enable signal (WE), a data mask enable signal (DQM), and a bank signal (BANK) ((23) in FIG. 1). These memory control signals and address (A), data
(DATA) is connected to the microprocessor (27). The microprocessor (27) outputs various control signals to give various commands to the synchronous DRAM (28), thereby realizing read and write access.
【0032】図4にレジスタ(6)の概要図を示す。この
レジスタは32ビットのレジスタで、バンク情報用の1
ビットAMXEXTに、バンク信号(23)をアドレスの最上位ビ
ットとするか、アドレスの上位から2番目のビットとす
るかを選択するための情報(バンク情報)が設定されて
いる。FIG. 4 is a schematic diagram of the register (6). This register is a 32-bit register.
In the bit AMXEXT, information (bank information) for selecting whether to use the bank signal (23) as the most significant bit of the address or the second most significant bit of the address is set.
【0033】レジスタのビットAMXEXTの内容が0の場合
はアドレスの最上位ビットをバンク信号として使用し、
AMXEXTの内容が1の場合はアドレスの上位から2番目の
ビットをバンク信号として使用する。When the content of the register bit AMXEXT is 0, the most significant bit of the address is used as a bank signal,
When the content of AMXEXT is 1, the second highest bit of the address is used as a bank signal.
【0034】レジスタ(6)には他の目的に使用する情報
も格納され、レジスタの他のビットTRC[2-0], TPC[2-
0], RCD[1-0], TRWL[2-0]はメモリアクセスのタイミン
グを規定するビットで、使用するシンクロナスDRAMの種
類、動作周波数に合わせて設定する。The register (6) also stores information used for other purposes, and the other bits TRC [2-0] and TPC [2-
0], RCD [1-0], and TRWL [2-0] are bits that define the timing of memory access, and are set according to the type and operating frequency of the synchronous DRAM to be used.
【0035】なお、本実施例ではバンク情報用ビットを
AMXEXT1ビットとしているが、複数ビットを設けてもよ
い。これにより、アドレスの上位からn番目のビットを
バンク信号とすることが可能となる。また、使用するメ
モリのバンクの数に合わせて、アドレス中の複数ビット
をバンク信号とすることも考えられる。In this embodiment, the bank information bits are
Although AMXEXT is one bit, a plurality of bits may be provided. This makes it possible to use the n-th bit from the upper address as a bank signal. It is also conceivable to use a plurality of bits in an address as a bank signal in accordance with the number of banks of the memory to be used.
【0036】図5に、バンク選択用ビットAMXEXTを0に
設定したときのアドレス空間を示す。アドレスの最上位
のビットをバンク信号とすることにより、アドレスの最
上位のビットが0か1かによってアドレス空間は2つの
領域に分割され、それぞれがシンクロナスDRAMのバンク
A、バンクBにマッピングされる。FIG. 5 shows an address space when the bank selection bit AMXEXT is set to 0. By using the most significant bit of the address as a bank signal, the address space is divided into two areas depending on whether the most significant bit of the address is 0 or 1, and each is mapped to banks A and B of the synchronous DRAM. You.
【0037】図6に、バンク選択用ビットAMXEXTを1に
設定したときのアドレス空間を示す。アドレスの上位か
ら2番目のビットをバンク信号とすることにより、アド
レス空間は4つの領域に分割される。アドレスの上位か
ら2番目のビットが0の領域はシンクロナスDRAMのバン
クAに、アドレスの上位から2番目のビットが1の領域
はシンクロナスDRAMのバンクBにマッピングされる。FIG. 6 shows an address space when the bank selection bit AMXEXT is set to 1. The address space is divided into four regions by using the second highest bit of the address as a bank signal. The area where the second most significant bit of the address is 0 is mapped to bank A of the synchronous DRAM, and the area where the second most significant bit of the address is 1 is mapped to bank B of the synchronous DRAM.
【0038】図6に示すように、プロセス1、プロセス
2はそれぞれが連続するアドレス空間で異なるバンクを
使用することができる。なお本実施例ではアドレスの上
位から2番目のビットをシンクロナスDRAMのバンク信号
として使用しているためアドレス空間は4つの領域に分
割されているが、アドレスの上位からnビット目を使用
することでアドレス空間を2のn乗個の領域に分割する
ようにしてもよい。As shown in FIG. 6, Process 1 and Process 2 can use different banks in a continuous address space. In this embodiment, the address space is divided into four regions because the second bit from the upper address is used as a bank signal for the synchronous DRAM, but the n-th bit from the upper address must be used. May be used to divide the address space into 2 n areas.
【0039】また、本実施例では2バンク構成のシンク
ロナスDRAMを使用しているためバンク信号は1ビットで
あるが、4バンク構成のシンクロナスDRAMを使用しても
よい。4バンク構成のシンクロナスDRAMは2ビットのバ
ンク信号を持つ。この2ビットはアドレスの最上位から
2ビットを選択するとアドレス空間が4つの領域に分割
され、それぞれバンクA、バンクB、バンクC、バンク
Dにマッピングされる。この2ビットをアドレスの上位
から2番目のビットと3番目のビットとするとアドレス
空間は8つの領域に分割され、各領域はそれぞれシンク
ロナスDRAMのバンクA、B、C、D、A、B、C、Dに
マッピングされる。In this embodiment, since a synchronous DRAM having a two-bank configuration is used, the bank signal is one bit. However, a synchronous DRAM having a four-bank configuration may be used. A synchronous DRAM having a 4-bank configuration has a 2-bit bank signal. When these 2 bits are selected from the most significant 2 bits of the address, the address space is divided into four areas, which are mapped to banks A, B, C, and D, respectively. Assuming that these two bits are the second and third bits from the top of the address, the address space is divided into eight areas, each of which is a synchronous DRAM bank A, B, C, D, A, B, C and D are mapped.
【0040】図7にシンクロナスDRAMのリードアクセス
時のタイミングチャートを、図8にシンクロナスDRAMの
ライトアクセス時のタイミングチャートを示す。FIG. 7 is a timing chart at the time of read access of the synchronous DRAM, and FIG. 8 is a timing chart at the time of write access of the synchronous DRAM.
【0041】図7でTrサイクルでシンクロナスDRAMにAC
TVコマンドを発行することでロウアドレスを通知し、Tr
wでシンクロナスDRAM規定のサイクル待つ。その後Tc1サ
イクルでREADコマンドを発行してカラムアドレスを通知
しTc2, Tc3とシンクロナスDRAM規定のレイテンシ待って
からリードDATAのサンプリングを行なう。In FIG. 7, AC is applied to the synchronous DRAM in the Tr cycle.
By issuing a TV command, the row address is notified and Tr
Wait for synchronous DRAM specified cycle with w. Thereafter, a READ command is issued in the Tc1 cycle to notify the column address, and after waiting for the latency defined by Tc2 and Tc3 and the synchronous DRAM, sampling of the read DATA is performed.
【0042】図8も同様にTrサイクルでACTVコマンドを
発行することでロウアドレスを通知し、Trwでシンクロ
ナスDRAM規定のサイクル待つ。その後Tc1サイクルでWRI
TEコマンドを発行してカラムアドレスを通知する。同時
にライトDATAのドライブを行なう。In FIG. 8, similarly, the row address is notified by issuing the ACTV command in the Tr cycle, and the synchronous DRAM specified cycle waits in Trw. Then WRI in Tc1 cycle
Issue a TE command to notify the column address. At the same time, drive the write DATA.
【0043】続くアクセスがTrで発行した時のロウアド
レスと同一アドレスに対するアクセスの場合、Tc1サイ
クルのREADもしくはWRITEコマンドを発行するだけでア
クセスを続けることができ、Tr, Trwサイクルだけ高速
にアクセスを行なうことができる。通常シンクロナスDR
AMは複数のバンクを有しており、それぞれのバンク毎に
ACTVコマンドでアクティブ状態にしておくことができ、
READもしくはWRITEコマンドを発行するだけでアクセス
を続けることができる。In the case where the subsequent access is to access the same address as the row address at the time of issuing Tr, the access can be continued only by issuing a Tc1 cycle READ or WRITE command, and the access can be performed at high speed by Tr and Trw cycles. Can do it. Normal synchronous DR
AM has multiple banks, and each bank has
It can be activated by ACTV command,
Access can be continued simply by issuing a READ or WRITE command.
【0044】図6のようなプログラム構成を実施した場
合、プロセス1のプログラムへのアクセスとプロセス1の
データアクセスでロウアドレスが異なっていても、バン
クがことなるため上記の高速アクセスが可能となる。プ
ロセス2のプログラムとデータのアクセスも同様であ
る。When the program configuration as shown in FIG. 6 is implemented, even if the row address differs between the access to the program of the process 1 and the data access of the process 1, the above-mentioned high-speed access is possible because the banks are different. . The same applies to the access of the program and data of the process 2.
【0045】さらに、異なるバンクのアクセスが連続す
る場合、前アクセスのREADコマンドを発行した後は続く
アクセスのためのコマンドを発行することが出来る。リ
ードアクセスが連続する場合、図7で第1アクセスとし
てTc1サイクルでREADコマンドを発行した後、第2アク
セスのコマンドはTc3以降にACTVコマンド、Td2サイクル
以降にREADコマンドが発行できる。第2アクセスのロウ
アドレスが同一の場合だけでなく、ロウアドレスが異な
っていてもデータバス上でデータを連続させることが出
来き、無駄な空きサイクルが発生しないため高速なアク
セスが可能となる。同様にライトアクセスが連続する場
合、図8で第1アクセスとしてTc1サイクルでWRITEコマ
ンドを発行した後、第2アクセスの開始はTc3サイクル
以降にACTVコマンドが発行でき、Tc4サイクルの次のTrw
l1サイクルでWRITEコマンドが発行できるため、第2ア
クセスのライトアクセスのロウアドレスが異なっていて
も無駄な空きサイクルが発生せず、高速アクセスが可能
となる。Further, when accesses from different banks are consecutive, a command for a subsequent access can be issued after a previous access READ command is issued. In the case of continuous read access, after issuing a READ command as the first access in Tc1 cycle in FIG. 7, the second access command can issue an ACTV command after Tc3 and a READ command after Td2 cycle. Not only when the row address of the second access is the same, but also when the row address is different, data can be made continuous on the data bus, and high-speed access can be performed because unnecessary empty cycles do not occur. Similarly, in the case where write access is continuous, after issuing a WRITE command in the Tc1 cycle as the first access in FIG. 8, the second access can be started by issuing the ACTV command after the Tc3 cycle, and the Trw following the Tc4 cycle
Since the WRITE command can be issued in the l1 cycle, useless empty cycles do not occur even if the row addresses of the write access of the second access are different, and high-speed access is possible.
【0046】[0046]
【発明の効果】本発明のマイクロプロセッサによれば、
アドレス信号の複数のビットのうちどのビット位置の信
号をバンク選択信号として使用するかを切り替える手段
を有するため、メモリとの接続状態を変更することな
く、論理アドレス空間を複数のバンク使用のために任意
に分割することができる。According to the microprocessor of the present invention,
Since there is means for switching which bit position of a plurality of bits of the address signal is used as the bank selection signal, the logical address space can be used for a plurality of banks without changing the connection state with the memory. It can be divided arbitrarily.
【図1】本発明の一実施例のマイクロプロセッサを用い
たメモリシステムのブロック図。FIG. 1 is a block diagram of a memory system using a microprocessor according to one embodiment of the present invention.
【図2】本発明の一実施例のマイクロプロセッサのアド
レス制御部のブロック図。FIG. 2 is a block diagram of an address control unit of the microprocessor according to one embodiment of the present invention.
【図3】本発明の一実施例のマイクロプロセッサとシン
クロナスDRAMの接続図。FIG. 3 is a connection diagram of a microprocessor and a synchronous DRAM according to an embodiment of the present invention.
【図4】本発明の一実施例のマイクロプロセッサのレジ
スタの概要図。FIG. 4 is a schematic diagram of a register of a microprocessor according to one embodiment of the present invention.
【図5】2バンク構成シンクロナスDRAMのバンク選択ビ
ットをアドレス最上位ビットとしたときのアドレス空間
図。FIG. 5 is an address space diagram when the bank selection bit of the synchronous DRAM of the two-bank configuration is set to the most significant bit of the address.
【図6】2バンク構成シンクロナスDRAMのバンク選択ビ
ットをアドレス最上位から2番目のビットとしたときの
アドレス空間図。FIG. 6 is an address space diagram when the bank selection bits of the synchronous DRAM of the two-bank configuration are the second most significant bit of the address.
【図7】本発明の一実施例のマイクロプロセッサを使用
してシンクロナスDRAMをリードアクセスした時のタイミ
ングチャート。FIG. 7 is a timing chart when a synchronous DRAM is read-accessed using the microprocessor according to one embodiment of the present invention.
【図8】本発明の一実施例のマイクロプロセッサを使用
してシンクロナスDRAMをライトアクセスした時のタイミ
ングチャート。FIG. 8 is a timing chart when a synchronous DRAM is write-accessed using the microprocessor according to the embodiment of the present invention.
(1)…メモリインタフェースモジュール、(2)…CP
U/Cacheモジュール、(3)…DMAC、(4)…リクエス
ト制御部、(5)…レジスタR/W制御部、(6)…レジ
スタ、(7)…外部バス制御部、(8)…アドレス制御
部、(9)…制御信号生成部、(10)…データ制御
部、(11)…データバッファ、(13)…バンクビッ
ト生成部、(14)…ロウアドレス生成部、(15)…
カラムアドレス生成部、(16)…バンクビットセレク
タ、(17)…出力アドレスセレクタ、(27)…マイ
クロプロセッサ、(28)…シンクロナスDRAM。(1) Memory interface module, (2) CP
U / Cache module, (3) DMAC, (4) request controller, (5) register R / W controller, (6) register, (7) external bus controller, (8) address Control section, (9) control signal generation section, (10) data control section, (11) data buffer, (13) bank bit generation section, (14) row address generation section, (15) ...
Column address generation unit, (16) ... bank bit selector, (17) ... output address selector, (27) ... microprocessor, (28) ... synchronous DRAM.
Claims (6)
トからアドレス信号を入力し、複数のバンクを有するメ
モリへアドレスを出力して、メモリからのデータの読み
出し若しくはメモリへのデータの書き込みを行うメモリ
制御部とを有するマイクロプロセッサにおいて、 前記メモリ制御部は、前記アドレス信号のどのビットを
バンクを選択するバンク信号として使用するかを示すバ
ンク情報を記憶する記憶手段を有することを特徴とする
マイクロプロセッサ。1. A central processing unit and a memory for inputting an address signal from the central processing unit, outputting an address to a memory having a plurality of banks, and reading data from the memory or writing data to the memory. A microprocessor comprising: a storage unit that stores bank information indicating which bit of the address signal is used as a bank signal for selecting a bank. .
いて、前記記憶手段に記憶したバンク情報を入力し該バ
ンク情報に応じて前記アドレス信号のうちの所定の位置
のビットをバンク信号としてメモリに出力する制御手段
を、前記メモリ制御部中に備えたことを特徴とするマイ
クロプロセッサ。2. The microprocessor according to claim 1, wherein bank information stored in said storage means is input, and a bit at a predetermined position in said address signal is output to a memory as a bank signal in accordance with said bank information. And a control unit for performing the control in the memory control unit.
ニットからの複数ビットからなるアドレス信号によっ
て、複数のバンクを有するメモリからのデータの読み出
し若しくはメモリへのデータの書き込みを行うマイクロ
プロセッサであって、 前記アドレス信号の前記複数のビットのうち、どのビッ
ト位置の信号をバンクを選択する信号として使用するか
の情報を記憶する手段を有するマイクロプロセッサ。3. A microprocessor having a central processing unit for reading data from a memory having a plurality of banks or writing data to the memory in response to an address signal composed of a plurality of bits from the central processing unit. A microprocessor for storing information on which bit position of the plurality of bits of the address signal is to be used as a signal for selecting a bank.
ニットからの複数ビットからなるアドレス信号によっ
て、複数バンクを有するメモリからのデータの読み出し
若しくはメモリへのデータの書き込みを行うマイクロプ
ロセッサであって、 前記アドレス信号の前記複数のビットのうち、どのビッ
ト位置の信号をバンクを選択する信号として使用するか
を変更する手段を有するマイクロプロセッサ。4. A microprocessor having a central processing unit for reading data from a memory having a plurality of banks or writing data to the memory in response to an address signal composed of a plurality of bits from the central processing unit. A microprocessor for changing which bit position of the plurality of bits of the address signal is used as a signal for selecting a bank;
からメモリに対してアドレスとバンクを指定するバンク
信号を出力して、メモリからのデータの読み出し若しく
はメモリへのデータの書き込みを行う半導体集積回路装
置において、 前記半導体集積回路装置内で発行されるアドレスのそれ
ぞれのビット位置と前記信号出力ピンとの対応関係を、
前記半導体集積回路装置内で変更する手段を有すること
を特徴とする半導体集積回路装置。5. A plurality of signal output pins, and a bank signal for designating an address and a bank is output to the memory from these pins to read data from the memory or write data to the memory. In the semiconductor integrated circuit device, a correspondence relationship between each bit position of an address issued in the semiconductor integrated circuit device and the signal output pin is represented by:
A semiconductor integrated circuit device, comprising: means for changing within the semiconductor integrated circuit device.
メモリシステムであって、 前記メモリは複数のバンクを有し、 前記マイクロプロセッサは、中央処理ユニットと、中央
処理ユニットが出力する前記メモリのアクセスのための
アドレス信号のどのビットをバンクを選択するバンク信
号として使用するかを示すバンク情報を記憶する記憶手
段とを有することを特徴とする、メモリシステム。6. A memory system having a microprocessor and a memory connected to the microprocessor, wherein the memory has a plurality of banks, the microprocessor has a central processing unit, and a central processing unit. Storage means for storing bank information indicating which bits of the output address signal for accessing the memory are to be used as a bank signal for selecting a bank.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9303910A JPH11143768A (en) | 1997-11-06 | 1997-11-06 | Microprocessor and memory system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9303910A JPH11143768A (en) | 1997-11-06 | 1997-11-06 | Microprocessor and memory system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH11143768A true JPH11143768A (en) | 1999-05-28 |
Family
ID=17926748
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP9303910A Pending JPH11143768A (en) | 1997-11-06 | 1997-11-06 | Microprocessor and memory system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH11143768A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2018194939A (en) * | 2017-05-15 | 2018-12-06 | 富士通株式会社 | Information processing apparatus, memory control apparatus, and information processing apparatus control method |
| JP2024505167A (en) * | 2021-01-22 | 2024-02-05 | アーム・リミテッド | data processing system |
-
1997
- 1997-11-06 JP JP9303910A patent/JPH11143768A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2018194939A (en) * | 2017-05-15 | 2018-12-06 | 富士通株式会社 | Information processing apparatus, memory control apparatus, and information processing apparatus control method |
| JP2024505167A (en) * | 2021-01-22 | 2024-02-05 | アーム・リミテッド | data processing system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3579461B2 (en) | Data processing system and data processing device | |
| CN101206912B (en) | Memory device, memory controller and memory system | |
| JP2005517242A (en) | Address space, bus system, memory controller and device system | |
| JP2002063069A (en) | Memory control device, data processing system, and semiconductor device | |
| KR100595871B1 (en) | Memory Devices with Different Burst Order Addressing for Read and Write Operations | |
| US20020013880A1 (en) | Integrated circuit with flash bridge and autoload | |
| US5513331A (en) | Method and apparatus for automatically configuring system memory address space of a computer system having a memory subsystem with indeterministic number of memory units of indeterministic sizes during system reset | |
| JPS63175287A (en) | Storage device | |
| USRE41589E1 (en) | Memory system performing fast access to a memory location by omitting the transfer of a redundant address | |
| JPH11143768A (en) | Microprocessor and memory system | |
| JPH10144073A (en) | Access mechanism for synchronous DRAM | |
| JP3865972B2 (en) | Microcomputer and system using microcomputer | |
| US20040034748A1 (en) | Memory device containing arbiter performing arbitration for bus access right | |
| JP3618249B2 (en) | Data transfer device | |
| US5524228A (en) | Memory control circuit for reducing the number of row address signals | |
| US7586779B2 (en) | Controller apparatus for utilizing downgrade memory and method for operating the same | |
| JP2002132577A (en) | Data processing system | |
| JPH10112180A (en) | Semiconductor storage device and computer system using the same | |
| KR100321840B1 (en) | Address re-mapping for memory module using presence detect data | |
| JPH10222459A (en) | Functional memory and data processing device using it | |
| JPH05210572A (en) | Memory controller | |
| KR940008182B1 (en) | DRAM Access Control | |
| JP4015160B2 (en) | Processor, semiconductor device and memory controller | |
| JP4073947B2 (en) | Processor system | |
| JP3866259B2 (en) | Processor |