JPH02176956A - Common memory control system for communication controller - Google Patents

Common memory control system for communication controller

Info

Publication number
JPH02176956A
JPH02176956A JP63329325A JP32932588A JPH02176956A JP H02176956 A JPH02176956 A JP H02176956A JP 63329325 A JP63329325 A JP 63329325A JP 32932588 A JP32932588 A JP 32932588A JP H02176956 A JPH02176956 A JP H02176956A
Authority
JP
Japan
Prior art keywords
processor
address
selector
outputs
common 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
Application number
JP63329325A
Other languages
Japanese (ja)
Inventor
Masayuki Koyama
児山 正之
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP63329325A priority Critical patent/JPH02176956A/en
Publication of JPH02176956A publication Critical patent/JPH02176956A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Memory System (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To set an address space beyond the address space of a processor by providing plural registers for storing the numbers of memory blocks and a selector which selects one of the output of the registers according to the address output of the processor and outputs it. CONSTITUTION:This system is equipped with the plural registers 110 - 113 for storing the numbers of the memory blocks of size in units of the power of 2, the selector 160 which selects and outputs one of the outputs of the registers, a decoding circuit 150 which decodes the address output of the processor 100 and outputs the selection signal for the selector 160, and a 2nd selector 170 which selects and outputs the address obtained by adding the low-order address of the processor 100 to the output of the selector 160 or a DMA address outputted by a media access control part 120. Consequently, the address space of the common memory can be set exceeding the address space of the processor and the processing ability of a communication controller can be increased.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データ通信を行う通信制御装置を構成し、プ
ロセッサとメディアアクセス制御部とが共通にアクセス
する共通メモリの制御方式に関するものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a control method for a common memory that constitutes a communication control device that performs data communication and that is commonly accessed by a processor and a media access control unit. .

〔従来の技術〕[Conventional technology]

従来、この種の通信制御装置では、プロセッサとメディ
アアクセス制御部とがメモリアクセス競合制御部を介し
て共通メモリを共にアクセスするようになっており、共
通メモリのアドレスとしてはプロセッサのアドレスの一
部が割り付けられていた。このアドレスの割り付けの一
例を第3図に示す。図中、(a)はプロセッサのメモリ
アドレス空間を示し、この例ではアドレスのAOOOO
Conventionally, in this type of communication control device, a processor and a media access control unit access a common memory together via a memory access contention control unit, and the address of the common memory is a part of the address of the processor. was assigned. An example of this address assignment is shown in FIG. In the figure, (a) shows the memory address space of the processor, and in this example, the address AOOOO
.

(Hはヘキサデシマルを表す)以上を共通メモリに割り
付けている。一方、(b)は共通メモリそのもののアド
レス空間を示し、384にバイトの容量を持っている。
(H represents hexadecimal) The above is allocated to common memory. On the other hand, (b) shows the address space of the common memory itself, which has a capacity of 384 bytes.

(C)はメディアアクセス制御部のDMAアドレス空間
であり、プロセッサのアドレスと同様にAOOOOH以
上が共通メモリに割り付けられている。
(C) is the DMA address space of the media access control unit, in which AOOOOH and above are allocated to the common memory, similar to the processor addresses.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかし、このようなアドレスの割り付けにもとづく共通
メモリの制御方式には、共通メモリのアドレス空間がプ
ロセッサのアドレス空間の一部(A 0000□〜FF
FFF、)に割り付けられているのでプロセッサのアド
レス空間(F F F Fi’i’、)を越えるアドレ
ス空間を共通メモリのアドレス空間とすることができな
いという欠点がある。
However, in a common memory control method based on such address allocation, the common memory address space is a part of the processor address space (A 0000□ to FF
Since the address space is allocated to FFF,), there is a drawback that an address space exceeding the address space of the processor (FFF Fi'i',) cannot be used as the address space of the common memory.

特に通信制御装置では、共通メモリを通信パケットのバ
ッフ1として使用するため、共通メモリのアドレス空間
が上述のように制限されると、通信制御装置の処理能力
が制限されることになる。
In particular, in a communication control device, the common memory is used as a buffer 1 for communication packets, so if the address space of the common memory is limited as described above, the processing capacity of the communication control device will be limited.

本発明の目的は、このような問題を解決し、共通メモリ
のアドレス空間をプロセッサのアドレス空間を越えて設
定することを可能とする通信制御装置の共通メモリ制御
方式を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a common memory control method for a communication control device that solves these problems and makes it possible to set the address space of the common memory beyond the address space of the processor.

〔課題を解決するための手段〕[Means to solve the problem]

本発明は、通信媒体に対して所定の制御手順に従って信
号の送受信を行うメディアアクセス制御部と、プロセッ
サと、前記メディアアクセス制御部と前記プロセッサと
が共通にアクセスする共通メモリとを備え、一定のサイ
ズ以下の通信パケットを送受信する通信制御装置の制御
方式において、前記プロセッサが、2のべき乗を単位と
するサイズのメモリブロックの番号を格納する複数のレ
ジスタと、 これらレジスタの出力の1つを選択して出力する第1の
セレクタと、 前記プロセッサのアドレス出力をデコードし、前記第1
のセレクタの選択信号を出力するデコード回路と、 前記第1のセレクタの出力に前記プロセッサの下位アド
レスを付加したアドレス情報と、前記メディアアクセス
制御部が出力するアドレス情報とのいずれかを選択して
前記共通メモリに出力する第2のセレクタとを設けたこ
とを特徴とする。
The present invention includes a media access control unit that transmits and receives signals to and from a communication medium according to a predetermined control procedure, a processor, and a common memory that is commonly accessed by the media access control unit and the processor, In a control method for a communication control device that transmits and receives communication packets of a size smaller than or equal to a size, the processor selects a plurality of registers that store numbers of memory blocks whose size is a power of two, and one of the outputs of these registers. a first selector that decodes the address output of the processor and outputs the address output of the processor;
a decoding circuit that outputs a selection signal of the selector; and a decoding circuit that selects either address information obtained by adding a lower address of the processor to the output of the first selector, or address information output from the media access control unit. A second selector for outputting to the common memory is provided.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明による共通メモリ制御方式にもとづく通
信制御装置の一例を示すブロック図である。この通信制
御装置は一定のサイズ以下の通信パケットを送受信し、
通信媒体(この例では同軸ケーブル)130に対し、ト
ランシーバ−(T/R)140を介して所定の制御手順
に従って信号の送受信を行うメディアアクセス制御部(
MAC)120と、プロセッサ(CPU)100と、メ
ディアアクセス制御部120とプロセッサ100とが共
通にアクセスする共通メモリ(CM)190とを備え、
さらにプロセッサ100が、2のべき乗を単位とするサ
イズのメモリブロックの番号を格納する複数のレジx/
)(BREG)110〜113と、これらレジスタの出
力の1つを選択して出力する第1のセレクタ(SEL)
160と、プロセッサ100のアドレス出力をデコード
し、セレクタ160の選択信号を出力するデコード回路
(DEC)150と、セレクタ160の出力にプロセッ
サ100の下位アドレスを付加したアドレスと、メディ
アアクセス制御部120が出力するDMAアドレスとの
いずれかを選択して出力する第2のセレクタ(SEL)
170と、プロセッサ100からのメモリアクセス要求
181とメディアアクセス制御部120からのアクセス
要求182とを入力とし、セレクタ170に選択信号1
83を出力すると共に、セレクタ170が出力するアド
レスを共通メモリ190に出力するメモリ制御部(MC
TL)180とを備えている。
FIG. 1 is a block diagram showing an example of a communication control device based on a common memory control method according to the present invention. This communication control device sends and receives communication packets of a certain size or less,
A media access control unit (a media access control unit) that transmits and receives signals to and from a communication medium (in this example, a coaxial cable) 130 via a transceiver (T/R) 140 according to a predetermined control procedure.
MAC) 120, a processor (CPU) 100, and a common memory (CM) 190 that is commonly accessed by the media access control unit 120 and the processor 100,
Further, the processor 100 has a plurality of registers x/
) (BREG) 110 to 113, and a first selector (SEL) that selects and outputs one of the outputs of these registers.
160, a decoding circuit (DEC) 150 that decodes the address output of the processor 100 and outputs a selection signal of the selector 160, an address obtained by adding the lower address of the processor 100 to the output of the selector 160, and the media access control unit 120. A second selector (SEL) that selects and outputs one of the DMA addresses to output.
170, a memory access request 181 from the processor 100, and an access request 182 from the media access control unit 120 are input, and a selection signal 1 is sent to the selector 170.
83 and outputs the address output by the selector 170 to the common memory 190.
TL) 180.

この通信制御装置のメモリ割り付けの一例を第2図に示
す。図中(a)はプロセッサ100のアドレス空間、(
b)は共通メモリの1Mバイトのアドレス空間、(C)
はメディアアクセス制御部の1MバイトのDMAアドレ
ス空間を示す。この例では、共通メディア190の1つ
のメモリブロックのサイズは2にバイトとし、プロセッ
サ100のアドレスa o o o o、〜807FF
Nを共通メモリ190の第0ブロツクに割り付け、80
80 ON〜8OFFFHを第9ブロツクに、8100
0.〜817FFMを第5ブロツクに、81800.〜
81FFF)lを第7ブロツクにそれぞれ割り付けてい
る。従って、プロセッサ100はレジスタ110にはブ
ロック番号として0を格納し、レジスタ111には9を
、レジスタ112には5を、レジスタ113には7をそ
れぞれ格納する。そして、デコード回路150は、プロ
セッサがアドレス8000011〜807FF、を出力
したときはレジスタ110を選択する選択信号をセレク
タ160に出力し、808008〜8OFFF、を出力
したときはレジスタ111を選択する選択信号を出力し
、81000゜〜817FF、を出力したときはレジス
タ112を選択する選択信号を出力し、81800.〜
81FFF、を出力したときはレジスタ113を選択す
る選択信号を出力する。
An example of memory allocation for this communication control device is shown in FIG. In the figure, (a) shows the address space of the processor 100, (
b) is a 1M byte address space in common memory, (C)
indicates a 1M byte DMA address space of the media access control unit. In this example, the size of one memory block of common media 190 is 2 bytes, and the address of processor 100 is a o o o o, ~807FF
N is allocated to the 0th block of the common memory 190, and 80
80 ON~8OFFH in the 9th block, 8100
0. ~817FFM in the 5th block, 81800. ~
81FFF)l are respectively assigned to the seventh block. Therefore, the processor 100 stores 0 as the block number in the register 110, 9 in the register 111, 5 in the register 112, and 7 in the register 113. The decoding circuit 150 outputs a selection signal for selecting the register 110 to the selector 160 when the processor outputs addresses 8000011 to 807FF, and outputs a selection signal for selecting the register 111 when the processor outputs addresses 808008 to 8OFF. When it outputs 81000° to 817FF, it outputs a selection signal to select the register 112, and outputs 81800. ~
81FFF, a selection signal for selecting the register 113 is output.

次に一例としてプロセッサ100が80000゜〜80
8FF、のアドレスを出力して共通メモリ190をアク
セスする場合を例に動作を説明する。
Next, as an example, the processor 100
The operation will be explained using an example where the common memory 190 is accessed by outputting the address of 8FF.

プロセッサ100が80000.〜808FF、の2に
バイトの範囲のアドレスを出力すると、デコード回路1
50はセレクタ160に、レジスタ110を選択する選
択信号を出力する。これによりセレクタ160はレジス
タ110を選択し、ブロック番号として“0”を出力す
る。そして、これにデコード回路150でデコードされ
なかったプロセッサ100の下位アドレスが付加され、
共通メモリアドレスとしてセレクタ170に入力される
。このときプロセッサ100は共通メモリ190をアク
セスするためメモリアクセス要求181を出力している
ので、メモリ制御部180は上記共通メモリアドレスを
選択する選択信号をセレクタ170に出力し、セレクタ
はこの共通メモリアドレスを選択して出力する。
The processor 100 is 80,000. ~808FF, when outputting the address in the byte range to 2, the decoding circuit 1
50 outputs a selection signal for selecting the register 110 to the selector 160. As a result, the selector 160 selects the register 110 and outputs "0" as the block number. Then, the lower address of the processor 100 that was not decoded by the decoding circuit 150 is added to this,
It is input to the selector 170 as a common memory address. At this time, the processor 100 outputs a memory access request 181 to access the common memory 190, so the memory control unit 180 outputs a selection signal for selecting the common memory address to the selector 170, and the selector receives the common memory address. Select and output.

メモリ制御部180はこのセレクタ170からのアドレ
スを受は取り、共通メモリ190に出力してアクセスを
完了する。
The memory control unit 180 receives the address from the selector 170, outputs it to the common memory 190, and completes the access.

プロセッサ100が80800.4〜81FFF。The processor 100 is 80800.4 to 81FFF.

のアドレスを出力して共通メモリ190をアクセスする
場合の動作も同様であり、上述した各アドレス範囲ごと
にセレクタ160はあらかじめ設定されたブロック番号
を出力し、それにもとづいて共通メモリの第5.7.9
ブロツクがアクセスされる。
The operation is the same when accessing the common memory 190 by outputting the address of 5.7 in the common memory. .9
Block is accessed.

また、メディアアクセス制御部120が共通メモリをア
クセスする場合には、アクセス要求182を出力し、メ
モリ制御部180およびセレクタ170にメディアアク
セス制御部120からのアドレスを選択させて共通メモ
リ190をアクセスする。
When the media access control unit 120 accesses the common memory, it outputs an access request 182, causes the memory control unit 180 and selector 170 to select an address from the media access control unit 120, and accesses the common memory 190. .

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明の共通メモリ制御方式は、通
信媒体に対して所定の制御手順に従って信号の送受信を
行うメディアアクセス制御部と、プロセッサと、メディ
アアクセス制御部とプロセッサとが共通にアクセスする
共通メモリとを備え、一定のサイズ以下の通信パケット
を送受信する通信制御装置の制御方式において、プロセ
ッサが、2のべき乗を単位とするサイズのメモリブロッ
クの番号を格納する複数のレジスタと、これらレジスタ
の出力の1つを選択して出力する第1のセレクタと、プ
ロセッサのアドレス出力をデコードし、第1のセレクタ
の選択信号を出力するデコード回路と、第1のセレクタ
の出力にプロセッサの下位アドレスを付加したアドレス
情報と、メディアアクセス制御部が出力するアドレス情
報とのいずれかを選択して共通メモリに出力する第2の
セレクタとを設けている。
As explained above, in the common memory control method of the present invention, a media access control section that transmits and receives signals to and from a communication medium according to a predetermined control procedure, a processor, and a media access control section and the processor commonly access the communication medium. In a control method for a communication control device that includes a common memory and transmits and receives communication packets of a certain size or less, a processor includes a plurality of registers storing numbers of memory blocks having a size in units of powers of two, and these registers. a first selector that selects and outputs one of the outputs of the processor; a decode circuit that decodes the address output of the processor and outputs a selection signal of the first selector; A second selector is provided that selects either the address information with the added address information or the address information output by the media access control unit and outputs the selected address information to the common memory.

従って本発明の通信制御装置の共通メモリ制御方式によ
り、共通メモリのアドレス空間をプロセッサのアドレス
空間を越えて設定することが可能となる。その結果、共
通メモリのアドレス空間がプロセッサのアドレス空間に
よって制限されることがなくなるので、通信制御装置の
処理能力を高めることが可能となる。
Therefore, the common memory control method of the communication control device of the present invention makes it possible to set the address space of the common memory beyond the address space of the processor. As a result, the address space of the common memory is no longer limited by the address space of the processor, making it possible to increase the processing capacity of the communication control device.

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

第1図は本発明による共通メモリ制御方式にもとづく通
信制御装置の一例を示すブロック図、第2図は第1図の
通信制御装置におけるメモリの割り付けを示すメモリマ
ツプ、 第3図は従来の通信制御装置におけるメモリの割り付け
を示すメモリマツプである。 100  ・ ・ ・ 110 〜113 120 ・ ・ ・ 130  ・ ・ ・ 140 ・ ・ ・ 150 ・ ・ ・ 160、 170・ 180 ・ ・ ・ 190  ・ ・ ・ ・プロセッサ ・レジスタ ・メディアアクセス制御部 ・通信媒体 ・トランシーバ− ・デコード回路 ・セレクタ ・メモリ制御部 ・共通メモリ
Fig. 1 is a block diagram showing an example of a communication control device based on the common memory control method according to the present invention, Fig. 2 is a memory map showing memory allocation in the communication control device of Fig. 1, and Fig. 3 is a conventional communication control device. This is a memory map showing memory allocation in the device. 100...・Decode circuit ・Selector ・Memory control unit ・Common memory

Claims (1)

【特許請求の範囲】[Claims] (1)通信媒体に対して所定の制御手順に従って信号の
送受信を行うメディアアクセス制御部と、プロセッサと
、前記メディアアクセス制御部と前記プロセッサとが共
通にアクセスする共通メモリとを備え、一定のサイズ以
下の通信パケットを送受信する通信制御装置の制御方式
において、前記プロセッサが、2のべき乗を単位とする
サイズのメモリブロックの番号を格納する複数のレジス
タと、 これらレジスタの出力の1つを選択して出力する第1の
セレクタと、 前記プロセッサのアドレス出力をデコードし、前記第1
のセレクタの選択信号を出力するデコード回路と、 前記第1のセレクタの出力に前記プロセッサの下位アド
レスを付加したアドレス情報と、前記メディアアクセス
制御部が出力するアドレス情報とのいずれかを選択して
前記共通メモリに出力する第2のセレクタとを設けたこ
とを特徴とする通信制御装置の共通メモリ制御方式。
(1) A media access control unit that transmits and receives signals to and from a communication medium according to a predetermined control procedure, a processor, and a common memory that is commonly accessed by the media access control unit and the processor, and has a certain size. In the following control method of a communication control device that transmits and receives communication packets, the processor selects a plurality of registers that store numbers of memory blocks whose size is a power of two, and one of the outputs of these registers. a first selector that decodes the address output of the processor and outputs the address output of the processor;
a decoding circuit that outputs a selection signal of the selector; and a decoding circuit that selects either address information obtained by adding a lower address of the processor to the output of the first selector, or address information output from the media access control unit. A common memory control method for a communication control device, characterized in that a second selector for outputting to the common memory is provided.
JP63329325A 1988-12-28 1988-12-28 Common memory control system for communication controller Pending JPH02176956A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63329325A JPH02176956A (en) 1988-12-28 1988-12-28 Common memory control system for communication controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63329325A JPH02176956A (en) 1988-12-28 1988-12-28 Common memory control system for communication controller

Publications (1)

Publication Number Publication Date
JPH02176956A true JPH02176956A (en) 1990-07-10

Family

ID=18220193

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63329325A Pending JPH02176956A (en) 1988-12-28 1988-12-28 Common memory control system for communication controller

Country Status (1)

Country Link
JP (1) JPH02176956A (en)

Similar Documents

Publication Publication Date Title
JPS6339941B2 (en)
JP2845433B2 (en) Integrated circuit device
EP1026600A2 (en) Method and apparatus for interfacing with RAM
JPH02176956A (en) Common memory control system for communication controller
JPH0447349A (en) Data storage device
JP3741464B2 (en) DRAM access method
JPS60150146A (en) Main memory selector of electronic computer
US5875299A (en) disk access apparatus for performing a stride processing of data
JPH05108477A (en) Memory access system
JPS6273344A (en) Data processor
JPH0235551A (en) Address conversion system for channel device
JP3322993B2 (en) Information processing device
JPH0431939A (en) External storage device
JP2692180B2 (en) Microcomputer
JPH0736806A (en) Dma system
JP3910165B2 (en) High speed processor
JPS6142986B2 (en)
JPH0628110A (en) Compact disk reading device
JPH0368046A (en) Memory access system
JPH06337847A (en) Multiprocessor device
JPS6273343A (en) Storage device
JPH09146872A (en) Data input/output processor
JPH0784937A (en) Microprocessor connecting circuit of peripheral circuit
JPH11238029A (en) Io mapping method/system for system bus
JPS59117375A (en) Mh coding system