JPH03182946A - Memory interface - Google Patents

Memory interface

Info

Publication number
JPH03182946A
JPH03182946A JP32224789A JP32224789A JPH03182946A JP H03182946 A JPH03182946 A JP H03182946A JP 32224789 A JP32224789 A JP 32224789A JP 32224789 A JP32224789 A JP 32224789A JP H03182946 A JPH03182946 A JP H03182946A
Authority
JP
Japan
Prior art keywords
register
address
memory area
offset
bit
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
JP32224789A
Other languages
Japanese (ja)
Inventor
Kazuo Nakamura
和夫 中村
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.)
Yamaha Corp
Original Assignee
Yamaha 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 Yamaha Corp filed Critical Yamaha Corp
Priority to JP32224789A priority Critical patent/JPH03182946A/en
Publication of JPH03182946A publication Critical patent/JPH03182946A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain circulation in a specified memory area to execute access without depending on software by providing an offset register, a mask register, an AND means, a base register and an addition means. CONSTITUTION:When an absolute address circulates in the memory area for 256 bytes in the range of 0500-05 FF so as to attain access, 0500 being the head address of the memory area is stored in the base register 1 and 00FF showing the accessible range of the memory area is stored in the mask register 3. Offset addresses in the offset register 2 are sequentially incremented and the AND gate 4 sets higher eight bits of the offset addresses to be invalid. Then, the effective address in the range of 0500-05FF is repeatedly outputted from the adder 5. Thus, the address can circulate in the specified memory area so as to attain access without depending on software, and a burden on a software-side can be reduced.

Description

【発明の詳細な説明】 「産業上の利用分野」 この発明は、特定のメモリエリア内を循環してアクセス
することができるメモリインターフェイスに関するもの
である。
DETAILED DESCRIPTION OF THE INVENTION "Field of Industrial Application" The present invention relates to a memory interface that allows circular access within a specific memory area.

「従来の技術−1 例えば、第2図に示すように、絶対アドレスが(050
0)−〜(05FF)−の範囲内の256バイト分のメ
モリエリアを、閉じたメモリ空間と見なし、このメモリ
空間内を循環してアクセスしようとする場合、従来は、
ソフトウェアによって間接アドレッシングを行う以外に
方法がなかった。
``Prior art-1 For example, as shown in Figure 2, the absolute address is (050
The 256-byte memory area within the range 0) - (05FF) - is regarded as a closed memory space, and when trying to access this memory space by cycling, conventionally,
The only option was to use indirect addressing through software.

この場合、第3図に示すように、順次インクリメントさ
れるオフセットアドレスから(0500)、。
In this case, as shown in FIG. 3, from the offset address (0500), which is sequentially incremented.

〜(05FF’)−の範囲内の実効アドレスを繰り返し
算出するためのアドレス計算が必要となる。
Address calculation is required to repeatedly calculate the effective address within the range of ~(05FF')-.

「発明が解決しようとする課題」 しかしながら、上述したソフトウェアによる間接アドレ
ッシングによって特定のメモリエリア内を循環してアク
セスしていたのては、多くのステップを実行しなければ
ならず、ソフトウェア側の負担が重くなるという問題が
あった。
``Problems to be Solved by the Invention'' However, when accessing a specific memory area by cycling through indirect addressing by software as described above, many steps must be executed, which is a burden on the software side. There was a problem that it became heavy.

この発明は上述した事情に鑑みてなされたもので、ソフ
トウェアに依存することなく、特定のメモリエリア内を
循環してアクセスすることができるメモリインターフェ
イスを提供することを目的としている。
The present invention has been made in view of the above-mentioned circumstances, and it is an object of the present invention to provide a memory interface that allows circular access within a specific memory area without depending on software.

「課題を解決するための手段」 この発明は、特定のメモリエリアの先頭アドレスをベー
スアドレスとして格納するベースレジスタと、任意のオ
フセットアドレスを格納するオフセットレジスタと、前
記メモリエリアのアクセス可能範囲を示す値を格納する
マスクレジスタと、前記オフセットレジスタ内に格納さ
れた値の各ビットと前記マスクレジスタ内に格納された
値の各ビットの論理積を得る論理積手段と、前記論理積
手段によって得られた値を前記ベースアドレスに加算し
て実効アドレスとして出力する加算手段とを具備するこ
とを特徴としている。
"Means for Solving the Problem" This invention provides a base register that stores the start address of a specific memory area as a base address, an offset register that stores an arbitrary offset address, and an accessible range of the memory area. a mask register for storing a value; an AND means for obtaining an AND of each bit of the value stored in the offset register and each bit of the value stored in the mask register; and adding means for adding the value to the base address and outputting the result as an effective address.

「作用−1 上述した構成によれば、オフセットレジスタ内に格納さ
れるオフセットアドレスが順次インクリメントされると
、その値の各ビットとマスクレジスタ内に格納された値
の各ビットの論理積が取られ、すなわち、順次インクリ
メントされるオフセットアドレスの内、特定のメモリエ
リアのアクセス可能範囲以外のビットが無効とされ、そ
して、このアクセス可能範囲内とされた値がベースアド
レスに加算されて実効アドレスが得られる。
Effect-1 According to the above configuration, when the offset address stored in the offset register is sequentially incremented, each bit of the value is ANDed with each bit of the value stored in the mask register. In other words, of the offset address that is sequentially incremented, bits outside the accessible range of a specific memory area are invalidated, and the value within this accessible range is added to the base address to obtain the effective address. It will be done.

「実施例」 以下、図面を参照し、この発明の詳細な説明する。"Example" Hereinafter, the present invention will be described in detail with reference to the drawings.

第1図はこの発明の一実施例の構成を示す図である。こ
の図において、1は特定のメモリエリアの先頭アドレス
をベースアドレスとして格納する16ビツトのベースレ
ジスタ、2は任意のオフセットアドレスを格納する16
ビツトのオフセットレジスタ、3は特定のメモリエリア
のアクセス可能範囲を示す値を格納する16ビツトのマ
スクレジスタである。また、4はオフセットレジスタ2
内に格納された16ビツトの値の各ビットと、マスクレ
ジスタ3内に格納された16ビツトの値の各ビットの論
理積を得るアンドゲート、5はアンドゲート4によって
得られた値を、ベースレジスタ1内に格納されたベース
アドレスに加算して実効アドレスとして出力する加算器
である。
FIG. 1 is a diagram showing the configuration of an embodiment of the present invention. In this figure, 1 is a 16-bit base register that stores the start address of a specific memory area as a base address, and 2 is a 16-bit base register that stores an arbitrary offset address.
The bit offset register 3 is a 16-bit mask register that stores a value indicating the accessible range of a specific memory area. Also, 4 is offset register 2
AND gate 5 calculates the AND of each bit of the 16-bit value stored in the mask register 3 with each bit of the 16-bit value stored in the mask register 3. This is an adder that adds to the base address stored in register 1 and outputs it as an effective address.

以上の構成において、第2図に示すように、絶対アドレ
スが(0500)−〜(05F’F’)−の範囲内の2
56バイト分のメモリエリアを循環してアクセスしよう
とする場合、ベースレジスタ■にメモリエリアの先頭ア
ドレスである(0500)−を格納し、マスクレジスタ
3にメモリエリアのアクセス可能範囲を示す(OOFF
’)=を格納しておけば、後は、第3図に示すように、
オフセットレジスタ2内のオフセットアドレスを順次イ
ンクリメントするだけで、アンドゲート4によってオフ
セットアドレスの上位8ビツトが無効とされ、加算器5
から、(0500)、、〜(05FF’)=の範囲内の
実効アドレスが繰り返し出力される。
In the above configuration, as shown in FIG.
When attempting to access a 56-byte memory area by cycling, store (0500) -, the start address of the memory area, in base register ■, and indicate the accessible range of the memory area in mask register 3 (OOFF
') =, then as shown in Figure 3,
By simply incrementing the offset address in the offset register 2 sequentially, the AND gate 4 invalidates the upper 8 bits of the offset address, and the adder 5
Effective addresses within the range from (0500) to (05FF') are repeatedly output.

「発明の効果」 以上説明したように、この発明によれば、オフ5 セットレジスタ内に格納されるオフセットアドレスを順
次インクリメントするだけで、その値の各ビットとマス
クレジスタ内に格納された値の各ビットの論理積が取ら
れ、すなわち、順次インクリメントされるオフセットア
ドレスの内、−特定のメモリエリアのアクセス可能範囲
以外のビットが無効とされ、そして、このアクセス可能
範囲内とされた値がベースアドレスに加算されて実効ア
ドレスが得られるようにしたので、従来のようにソフト
ウェアに依存することなく、特定のメモリエリア内を循
環してアクセスすることができ、ソフトウェア側の負担
を軽減することができる。また、任意の閉じたメモリ空
間を設定することができるので、プログラムが簡略化さ
れ、ディジタル信号処理等のフィルタ演算が容易となり
、さらにマスクレジスタ内に格納する値により、種々の
変則的なアドレッシングが可能になる等の効果が得られ
る。
"Effects of the Invention" As explained above, according to the present invention, by simply incrementing the offset address stored in the offset register in sequence, each bit of that value and the value stored in the mask register can be Each bit is logically ANDed, that is, of the sequentially incremented offset address, bits outside the accessible range of a specific memory area are invalidated, and the value within this accessible range is used as the base. Since it is added to the address to obtain the effective address, it is possible to cycle through and access a specific memory area without depending on software as in the past, reducing the burden on the software side. can. Additionally, since any closed memory space can be set, programs can be simplified and filter operations such as digital signal processing can be easily performed.Furthermore, various irregular addressing can be done by storing values in the mask register. Effects such as being made possible can be obtained.

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

第1図はこの発明の一実施例の構成を示すブロック図、
第2図は特定のメモリエリア内を循環してアクセスする
場合の概念図、第3図は同循環してアクセスする場合の
オフセットアドレスと実効アドレスの関係を示す図であ
る。 ベースレジスタ、 オフセットレジスタ、 マスクレジスタ、 アンドゲート(論理積手段)、 加算器(加算手段)。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.
FIG. 2 is a conceptual diagram of the case where a specific memory area is accessed in a circular manner, and FIG. 3 is a diagram showing the relationship between offset addresses and effective addresses in the case of circular access. Base register, offset register, mask register, AND gate (logical product means), adder (addition means).

Claims (1)

【特許請求の範囲】 特定のメモリエリアの先頭アドレスをベースアドレスと
して格納するベースレジスタと、 任意のオフセットアドレスを格納するオフセットレジス
タと、 前記メモリエリアのアクセス可能範囲を示す値を格納す
るマスクレジスタと、 前記オフセットレジスタ内に格納された値の各ビットと
前記マスクレジスタ内に格納された値の各ビットの論理
積を得る論理積手段と、 前記論理積手段によって得られた値を前記ベースアドレ
スに加算して実効アドレスとして出力する加算手段と、 を具備することを特徴とするメモリインターフェイス。
[Claims] A base register that stores a starting address of a specific memory area as a base address, an offset register that stores an arbitrary offset address, and a mask register that stores a value indicating an accessible range of the memory area. , an AND means for logically multiplying each bit of the value stored in the offset register and each bit of the value stored in the mask register, and assigning the value obtained by the AND means to the base address. A memory interface comprising: an addition means for adding and outputting the result as an effective address;
JP32224789A 1989-12-12 1989-12-12 Memory interface Pending JPH03182946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32224789A JPH03182946A (en) 1989-12-12 1989-12-12 Memory interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32224789A JPH03182946A (en) 1989-12-12 1989-12-12 Memory interface

Publications (1)

Publication Number Publication Date
JPH03182946A true JPH03182946A (en) 1991-08-08

Family

ID=18141546

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32224789A Pending JPH03182946A (en) 1989-12-12 1989-12-12 Memory interface

Country Status (1)

Country Link
JP (1) JPH03182946A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008102694A (en) * 2006-10-18 2008-05-01 Futaba Corp Output display device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008102694A (en) * 2006-10-18 2008-05-01 Futaba Corp Output display device

Similar Documents

Publication Publication Date Title
JP2507756B2 (en) Information processing device
JP2678183B2 (en) Digital processor controller and method for runtime memory allocation
JPH08221353A (en) Method for multi-dimensional transfer of data in data-processing system
US6810471B2 (en) Memory protection method and circuit specifying attributes on access
JPH0744455A (en) Address decoder
US6865590B2 (en) Three input variable subfield comparation for fast matching
JPH03182946A (en) Memory interface
JPS6055849B2 (en) Command control method
JPS59188764A (en) memory device
CN111782267B (en) Data processing method and device and related product
US5761737A (en) Data driven type information processing apparatus having improved generation number translation
JPS6382530A (en) Semiconductor storage device
JPS5951069B2 (en) Virtual memory information processing device
JPH01237843A (en) Microprocessor
JPH0831033B2 (en) Data processing device
JP3127492B2 (en) Addressing arithmetic circuit
JP2819931B2 (en) Microprocessor
JPH0317759A (en) Buffer memory control system
KR100236530B1 (en) Address generation circuit of digital signal processing device
JPS594783B2 (en) Kasoukiokuhoshikinojiyouhoushiyorisouchi
JP2560520B2 (en) Advance control device
JPS63186363A (en) Memory area setting circuit for multi-cpu system
JPS60225283A (en) Histogram arithmetic circuit
JPH0934866A (en) Microcomputer
JPS6152517B2 (en)