[go: up one dir, main page]

JP2008165547A - Communication control device - Google Patents

Communication control device Download PDF

Info

Publication number
JP2008165547A
JP2008165547A JP2006355260A JP2006355260A JP2008165547A JP 2008165547 A JP2008165547 A JP 2008165547A JP 2006355260 A JP2006355260 A JP 2006355260A JP 2006355260 A JP2006355260 A JP 2006355260A JP 2008165547 A JP2008165547 A JP 2008165547A
Authority
JP
Japan
Prior art keywords
sdram
circuit
access
output
signal
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
JP2006355260A
Other languages
Japanese (ja)
Inventor
Koichi Murata
晃一 村田
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2006355260A priority Critical patent/JP2008165547A/en
Publication of JP2008165547A publication Critical patent/JP2008165547A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Bus Control (AREA)
  • Memory System (AREA)

Abstract

【課題】バス使用要求信号が集中している場合でも、所定の制御装置は優先的に目的の装
置へアクセスすることができる通信制御装置を提供すること。
【解決手段】ビジータイミング調整回路40からSDRAMビジー信号が出力されると、SDRAMアクセス要求マスク回路37は、即時性の低い制御回路から出力されるSDRAM使用要求信号をマスクする。一方、即時性の高い制御回路からのSDRAM使用要求信号は、ビジータイミング調整回路40からSDRAMビジー信号が出力されていてもマスクせず、SDRAMアクセス調停回路38へ入力される。よって、ビジータイミング調整回路40からSDRAMビジー信号が出力されている場合には、即ち、SDRAM13へのアクセスの頻度が高い場合には、SDRAMアクセス調停回路38は、即時性の高い制御回路へ優先してバス使用許可を付与することができる。
【選択図】図7
Provided is a communication control device that allows a predetermined control device to preferentially access a target device even when bus use request signals are concentrated.
When an SDRAM busy signal is output from a busy timing adjustment circuit, an SDRAM access request mask circuit 37 masks an SDRAM use request signal output from a control circuit with low immediacy. On the other hand, the SDRAM use request signal from the control circuit having high immediacy is not masked even if the SDRAM busy signal is output from the busy timing adjustment circuit 40 and is input to the SDRAM access arbitration circuit 38. Therefore, when the SDRAM busy signal is output from the busy timing adjustment circuit 40, that is, when the frequency of access to the SDRAM 13 is high, the SDRAM access arbitration circuit 38 has priority over the control circuit having high immediacy. Bus permission can be granted.
[Selection] Figure 7

Description

本発明は通信制御装置に関し、特に、バス使用要求信号が集中している場合でも、所定の制御装置は優先的に目的の装置へアクセスすることができる通信制御装置に関するものである。   The present invention relates to a communication control apparatus, and more particularly to a communication control apparatus that allows a predetermined control apparatus to preferentially access a target apparatus even when bus use request signals are concentrated.

複数の制御装置から出力される複数のバス使用要求信号を調停し、特定の制御装置にバス使用許可を付与する通信制御装置に関しては、例えば、特許文献1記載のバス調停回路が知られている。このバス調停回路103は、バス使用要求信号を入力する入力部前段に、マスク回路104が設けられている。バス調停回路103は、制御装置から同時に複数のバス使用要求信号が出力された場合、そのバス使用要求信号を出力した制御装置の全てにバス使用許可を付与するまでは、既にバス使用許可を付与した制御装置からの新たなバス使用要求信号を受け付けないように構成されている。即ち、既にバス使用許可が付与された制御装置からの新たなバス使用要求信号があっても、同時に複数のバス使用要求信号を出力した制御装置の全てにバス調停回路103がバス使用許可を付与するまでは、マスク回路104により新たなバス使用要求信号はマスク(待機)される。よって、優先度の低い制御装置に対しても、必ずバス使用許可を付与することができる。
特開平9−128327号公報
As for a communication control device that arbitrates a plurality of bus use request signals output from a plurality of control devices and grants a bus use permission to a specific control device, for example, a bus arbitration circuit described in Patent Document 1 is known. . In this bus arbitration circuit 103, a mask circuit 104 is provided in front of the input unit for inputting a bus use request signal. When a plurality of bus use request signals are simultaneously output from the control device, the bus arbitration circuit 103 has already granted the bus use permission until all the control devices that output the bus use request signal have granted the bus use permission. It is configured not to accept a new bus use request signal from the controller. That is, even if there is a new bus use request signal from a control device that has already been granted bus use permission, the bus arbitration circuit 103 grants the bus use permission to all the control devices that simultaneously output a plurality of bus use request signals. Until this is done, a new bus use request signal is masked (waited) by the mask circuit 104. Therefore, the bus use permission can always be given to a control device with a low priority.
JP-A-9-128327

しかしながら、上記のバス調停回路103では、同時に複数のバス使用要求信号を出力した制御装置の全てにバス調停回路103がバス使用許可を付与するまでは、マスク回路104によって既にバス使用許可が付与された制御装置からの新たなバス使用要求信号はマスクされる。よって、既にバス使用許可が付与された後に、新たなバス使用要求信号を出力した制御装置が、すぐにバス使用許可を付与する必要のある制御装置(即時性の高い制御装置、例えば画像の読み取りを行うスキャナ装置の制御を実行する制御装置)であったとしても、そのバス使用要求信号はマスク回路104でマスクされるので、その制御装置へバス使用許可をすぐに付与することができない。従って、即時性の高い制御装置へのバス使用許可の付与が遅れることにより、この制御装置により実行される処理が遅れ、迅速な制御が実行できないという問題点があった。   However, in the above-described bus arbitration circuit 103, the bus use permission is already granted by the mask circuit 104 until the bus arbitration circuit 103 grants the bus use permission to all the control devices that simultaneously output a plurality of bus use request signals. The new bus use request signal from the controller is masked. Therefore, after a bus use permission has already been granted, a control device that has output a new bus use request signal immediately needs to grant the bus use permission (a control device with high immediacy, for example, image reading). Even if it is a control device that executes control of the scanner device that performs the above, the bus use request signal is masked by the mask circuit 104, so that the bus use permission cannot be immediately given to the control device. Therefore, there is a problem that the processing executed by the control device is delayed due to delay in granting the bus use permission to the control device having high immediacy, and quick control cannot be executed.

本発明は、上述した問題点を解決するためになされたものであり、バス使用要求信号が集中している場合でも、所定の制御装置は優先的に目的の装置へアクセスすることができる通信制御装置を提供することを目的としている。   The present invention has been made in order to solve the above-described problems. Even when bus use request signals are concentrated, a predetermined control device can preferentially access a target device. The object is to provide a device.

この目的を達成するために請求項1記載の通信制御装置は、書き込み又は読み出しが可能な記憶手段と、その記憶手段に書き込む情報またはその記憶手段から読み出す情報を伝送するバスラインと、前記記憶手段にアクセスするために、そのバスラインを占有するためのバス使用要求信号を出力する複数の制御手段と、その複数の制御手段から出力されるバス使用要求信号が複数同時に入力された場合に、その複数同時に入力されたバス使用要求信号を予め設定された優先度に基づいて前記バスラインを占有して前記記憶手段にアクセスさせる許可を前記バス使用要求信号を出力した複数の制御手段のうち1つの制御手段に付与するバス調停手段とを備え、そのバス調停手段から前記許可が付与された1つの制御手段が、前記バスラインを占有して前記記憶手段にアクセスし、その記憶手段に書き込む情報またはその記憶手段から読み出す情報を入出力するものであって、前記複数の制御手段から前記記憶手段へのアクセス回数をカウントするカウント手段と、そのカウント手段によりカウントされた前記アクセス回数を検出し、所定時間内における前記記憶手段へのアクセス頻度を算出するアクセス頻度算出手段と、そのアクセス頻度算出手段が算出したアクセス頻度に応じて前記記憶手段へのアクセスが集中していることを示すアクセス集中信号を出力するアクセス集中信号出力手段と、そのアクセス集中信号出力手段によりアクセス集中信号が出力された場合に、前記複数の制御手段のうち特定の制御手段から出力されるバス使用要求信号の前記バス調停手段への入力を禁止する要求信号禁止手段とを備えている。   In order to achieve this object, the communication control device according to claim 1 includes a storage means capable of writing or reading, a bus line for transmitting information to be written to or read from the storage means, and the storage means. When a plurality of control means for outputting a bus use request signal for occupying the bus line and a plurality of bus use request signals output from the plurality of control means are input simultaneously, One of a plurality of control units that output the bus use request signal is permitted to occupy the bus line and access the storage unit based on a preset priority. A bus arbitration unit that is provided to the control unit, and one control unit that is granted the permission from the bus arbitration unit occupies the bus line. And accessing the storage means and inputting / outputting information to be written to the storage means or information read from the storage means, and counting means for counting the number of accesses to the storage means from the plurality of control means; Detecting the number of accesses counted by the counting means, calculating an access frequency to the storage means within a predetermined time, and storing the memory according to the access frequency calculated by the access frequency calculating means An access concentration signal output means for outputting an access concentration signal indicating that access to the means is concentrated, and when the access concentration signal is output by the access concentration signal output means, the control means is specified. The bus use request signal output from the control means is prohibited from being input to the bus arbitration means And a request signal inhibiting means that.

請求項2記載の通信制御装置は、請求項1記載の通信制御装置において、前記要求信号禁止手段は、前記アクセス集中信号出力手段からアクセス集中信号が出力されている場合に、前記複数の制御手段から出力されるバス使用要求信号のうち前記バス調停手段への入力を禁止する特定の制御手段を設定可能な入力禁止設定手段を備えている。   The communication control device according to claim 2 is the communication control device according to claim 1, wherein the request signal prohibiting means is configured to control the plurality of control means when an access concentration signal is output from the access concentration signal output means. An input prohibition setting means capable of setting a specific control means for prohibiting the input to the bus arbitration means from among the bus use request signals output from.

請求項3記載の通信制御装置は、請求項2記載の通信制御装置において、前記アクセス集中信号出力手段は、前記記憶手段へのアクセスが集中していることを示すアクセス集中信号を前記アクセス頻度算出手段が算出したアクセス頻度に応じて複数段階のアクセス集中信号として出力するアクセス集中信号段階出力手段を備えており、前記入力禁止設定手段は、前記複数の制御手段を複数の処理グループに分けると共に、前記バスラインを占有して前記記憶手段にアクセスさせる順位を前記複数の処理グループ毎に複数段階に設定する順位段階設定手段を備えており、前記要求信号禁止手段は、前記アクセス集中信号段階出力手段から出力されたアクセス集中信号の段階と前記順位段階設定手段により設定された前記複数の制御手段が属する処理グループの順位の段階とを比較する比較手段を備え、その比較手段による比較結果に応じて、前記複数の制御手段のうち特定の処理グループに属する制御手段から出力されるバス使用要求信号の前記バス調停手段への入力を禁止するように構成されている。   The communication control device according to claim 3 is the communication control device according to claim 2, wherein the access concentration signal output means calculates an access concentration signal indicating that access to the storage means is concentrated, as the access frequency calculation. An access concentration signal stage output means for outputting as a multi-stage access concentration signal according to the access frequency calculated by the means, and the input prohibition setting means divides the plurality of control means into a plurality of processing groups, The request signal prohibiting means includes the access concentration signal stage output means, the order signal setting means for setting the order of occupying the bus line and accessing the storage means in a plurality of stages for each of the plurality of processing groups. A plurality of control means set by the stage of the access concentration signal output from and the order stage setting means A comparison means for comparing the rank order of the physical group, and the bus use request signal output from the control means belonging to a specific processing group among the plurality of control means according to the comparison result by the comparison means An input to the bus arbitration means is prohibited.

請求項4記載の通信制御装置は、請求項1から3のいずれかに記載の通信制御装置において、前記バス調停手段は、前記複数の制御手段への前記許可の調停が実行可能な状態を示す調停実行信号を出力する調停実行信号出力手段を備えており、その調停実行信号出力手段から調停実行信号が出力されている場合に、前記アクセス集中信号出力手段から出力されたアクセス集中信号を前記要求信号禁止手段に出力するタイミング調整出力手段を備えている。   The communication control device according to claim 4 is the communication control device according to any one of claims 1 to 3, wherein the bus arbitration unit indicates a state in which arbitration of the permission to the plurality of control units is executable. An arbitration execution signal output means for outputting an arbitration execution signal, and when the arbitration execution signal is output from the arbitration execution signal output means, the request for the access concentration signal output from the access concentration signal output means Timing adjustment output means for outputting to the signal inhibition means is provided.

請求項1記載の通信制御装置によれば、制御手段から記憶手段へのアクセス回数をカウント手段がカウントし、そのカウント値から所定時間内における記憶手段へのアクセス頻度をアクセス頻度算出手段が算出する。算出されたアクセス頻度に応じて、アクセス集中信号出力手段は、記憶手段へのアクセスが集中していることを示すアクセス集中信号を出力する。アクセス集中信号が出力されると、要求信号禁止手段は、特定の制御手段から出力されるバス使用要求信号のバス調停手段への入力を禁止する。即ち、要求信号禁止手段は、複数の制御手段のうち特定の制御手段から出力されるバス使用要求信号をバス調停手段に出力しない。これにより、記憶手段へのアクセスが集中し、アクセス集中信号出力手段からアクセス集中信号が出力されると、特定の制御手段には、バス使用要求信号を出力してもバス調停手段から許可が付与されないので、バスラインを占有して記憶手段にアクセスすることができない。逆に、記憶手段へのアクセスが集中している場合でも、バス使用要求信号が特定の制御手段を除く複数の制御手段から出力されたものであれば、要求信号禁止手段によってバス調停手段への入力が禁止されず、特定の制御手段を除く複数の制御手段にはバス調停手段により優先的に許可が付与される。よって、記憶手段へのアクセスが集中している場合でも、特定の制御手段を除く複数の制御手段は優先的に記憶手段へアクセスすることができるという効果がある。   According to the communication control device of the first aspect, the counting means counts the number of accesses from the control means to the storage means, and the access frequency calculation means calculates the access frequency to the storage means within a predetermined time from the count value. . In accordance with the calculated access frequency, the access concentration signal output means outputs an access concentration signal indicating that access to the storage means is concentrated. When the access concentration signal is output, the request signal prohibiting unit prohibits input of the bus use request signal output from the specific control unit to the bus arbitration unit. That is, the request signal prohibiting unit does not output the bus use request signal output from the specific control unit among the plurality of control units to the bus arbitration unit. As a result, when the access to the storage means is concentrated and the access concentration signal is output from the access concentration signal output means, the specific arbitration means is given permission from the bus arbitration means even if the bus use request signal is output. Therefore, the storage means cannot be accessed by occupying the bus line. Conversely, even when access to the storage means is concentrated, if the bus use request signal is output from a plurality of control means other than the specific control means, the request signal prohibiting means sends the bus arbitration means to the bus arbitration means. Input is not prohibited, and a plurality of control means excluding specific control means are given priority by the bus arbitration means. Therefore, even when access to the storage means is concentrated, there is an effect that a plurality of control means excluding specific control means can preferentially access the storage means.

請求項2記載の通信制御装置によれば、請求項1記載の通信制御装置の奏する効果に加え、要求信号禁止手段は入力禁止設定手段を備えているので、アクセス集中信号出力手段からアクセス集中信号が出力されている場合に、要求信号禁止手段によってバス調停手段へのバス使用要求信号の入力が禁止される特定の制御手段を設定することができる。よって、通信制御装置の使用態様に応じて特定の制御手段を変えたい場合にも、その特定の制御手段を入力禁止設定手段によって自由に設定できるという効果がある。   According to the communication control apparatus of the second aspect, in addition to the effect of the communication control apparatus of the first aspect, the request signal prohibiting means includes the input prohibition setting means. When the signal is output, it is possible to set a specific control means for prohibiting the input of the bus use request signal to the bus arbitration means by the request signal prohibiting means. Therefore, even when it is desired to change the specific control means according to the usage mode of the communication control device, there is an effect that the specific control means can be freely set by the input prohibition setting means.

請求項3記載の通信制御装置によれば、請求項2記載の通信制御装置の奏する効果に加え、アクセス集中信号出力手段はアクセス集中信号段階出力手段を備えており、このアクセス集中信号段階出力手段は、アクセス頻度算出手段が算出したアクセス頻度に応じて、複数段階のアクセス集中信号を出力する。また、入力禁止設定手段は順位段階設定手段を備えており、この順位段階設定手段は、複数の制御手段を複数の処理グループに分けると共に、その処理グループ毎に記憶手段にアクセスさせる順位を複数段階に設定する。更に、要求信号禁止手段は比較手段を備えており、この比較手段は、アクセス集中信号段階出力手段から出力されたアクセス集中信号の段階と順位段階設定手段により設定された処理グループの順位の段階とを比較する。比較手段の比較結果に応じて、要求信号禁止手段は、特定の処理グループに属する制御手段から出力されるバス使用要求信号のバス調停手段への入力を禁止する。よって、要求信号禁止手段は、特定の処理グループに属する制御手段から出力されたバス使用要求信号のバス調停手段への入力禁止を、アクセス集中信号段階出力手段の出力するアクセス集中信号の段階に応じて切り替えることができるという効果がある。   According to the communication control device of claim 3, in addition to the effect of the communication control device of claim 2, the access concentration signal output means includes the access concentration signal stage output means, and this access concentration signal stage output means. Outputs an access concentration signal in a plurality of stages according to the access frequency calculated by the access frequency calculation means. Further, the input prohibition setting unit includes a rank level setting unit. The rank level setting unit divides a plurality of control units into a plurality of processing groups and sets a plurality of levels of ranks for accessing the storage unit for each processing group. Set to. Further, the request signal prohibiting means includes a comparing means, which compares the access concentration signal stage output from the access concentration signal stage output means and the rank level of the processing group set by the rank stage setting means. Compare In response to the comparison result of the comparison means, the request signal prohibition means prohibits input of the bus use request signal output from the control means belonging to a specific processing group to the bus arbitration means. Therefore, the request signal prohibiting means determines whether to prohibit the input of the bus use request signal output from the control means belonging to a specific processing group to the bus arbitration means according to the stage of the access concentration signal output from the access concentration signal stage output means. There is an effect that can be switched.

請求項4記載の通信制御装置によれば、請求項1から3のいずれかに記載の通信制御装置の奏する効果に加え、バス調停手段は調停実行信号出力手段を備えており、この調停実行信号出力手段は、複数の制御手段への許可の調停が実行可能な状態を示す調停実行信号を出力する。この調停実行信号が出力されている場合に、タイミング調整出力手段は、アクセス集中信号出力手段から出力されたアクセス集中信号を要求信号禁止手段へ出力する。これにより、アクセス集中信号出力手段から出力されたアクセス集中信号が要求信号禁止手段に出力されるのは、バス調停手段がバス使用要求信号を調停可能な状態にある場合となる。即ち、バス調停手段が、複数の制御手段のうち1つの制御手段にバスラインを占有して記憶手段にアクセスさせる許可を付与している場合は、アクセス集中信号出力手段からアクセス集中信号が出力されたとしても、そのアクセス集中信号はタイミング調整出力手段によって要求信号禁止手段には出力されない。よって、バス調停手段が、複数の制御手段のうち1つの制御手段にバスラインを占有して記憶手段にアクセスさせる許可を付与しているにも拘らず、アクセス集中信号出力手段からアクセス集中信号が出力され、要求信号禁止手段によって、許可が付与された1つの制御手段から出力されているバス使用要求信号がバス調停手段に入力禁止となり、バス調停手段の許可付与が中断されることがない。従って、バス調停手段の許可付与を確実に実行できるという効果がある。   According to the communication control device of the fourth aspect, in addition to the effect produced by the communication control device according to any one of the first to third aspects, the bus arbitration means includes the arbitration execution signal output means. The output means outputs an arbitration execution signal indicating a state where permission arbitration to a plurality of control means can be executed. When this arbitration execution signal is output, the timing adjustment output means outputs the access concentration signal output from the access concentration signal output means to the request signal prohibition means. Thereby, the access concentration signal output from the access concentration signal output means is output to the request signal prohibition means when the bus arbitration means is in a state where the bus use request signal can be adjusted. That is, when the bus arbitration means grants one of the plurality of control means permission to occupy the bus line and access the storage means, an access concentration signal is output from the access concentration signal output means. Even so, the access concentration signal is not output to the request signal prohibition means by the timing adjustment output means. Therefore, although the bus arbitration means grants permission for one of the plurality of control means to occupy the bus line and access the storage means, the access concentration signal is output from the access concentration signal output means. The bus use request signal output from the one control means to which the permission is given is output to the bus arbitration means by the request signal prohibiting means, and the granting of permission by the bus arbitration means is not interrupted. Therefore, there is an effect that the permission of the bus arbitration means can be surely executed.

以下、本発明の一実施の形態について添付図面を参照して説明する。図1を参照して、本通信制御装置であるASIC20が搭載される多機能周辺装置(スキャナ機能、コピー機能、ファクシミリ機能などの各種機能を実現するMFD(Multi Function Device))の制御部1の電気的構成について説明する。図1は、多機能周辺装置の動作を制御する制御部1の電気的構成を示すブロック図である。   Hereinafter, an embodiment of the present invention will be described with reference to the accompanying drawings. Referring to FIG. 1, the control unit 1 of a multi-function peripheral device (MFD (Multi Function Device that realizes various functions such as a scanner function, a copy function, and a facsimile function)) on which the ASIC 20 as the communication control apparatus is mounted. The electrical configuration will be described. FIG. 1 is a block diagram showing an electrical configuration of a control unit 1 that controls the operation of the multifunction peripheral device.

制御部1は、多機能周辺装置の動作を統括的に制御するマイクロコンピュータであり、図1に示すように、ASIC(Application Specific Integrated Circuit)20、ROM(Read Only Memory)12、SDRAM(Synchronous Dynamic Random Access Memory)13を主に有して構成されている。ASIC20には、USB端子2、パネルゲートアレイ(以下、「パネルGA」と称す)3aと接続される操作キー3、液晶ディスプレイコントローラ(以下、「LCDコントローラ」と称す)4aと接続される液晶ディスプレイ(以下、「LCD」と称す)4、プリンタ5、スキャナ6、スロット部7、スピーカ9、ネットワーク・コントロール・ユニット(以下、「NCU」と称す)10及びモデム11が接続されている。   The control unit 1 is a microcomputer that comprehensively controls the operation of the multi-function peripheral device. As shown in FIG. 1, the control unit 1 includes an ASIC (Application Specific Integrated Circuit) 20, a ROM (Read Only Memory) 12, and an SDRAM (Synchronous Dynamic). Random Access Memory) 13 is mainly configured. The ASIC 20 includes a USB terminal 2, an operation key 3 connected to a panel gate array (hereinafter referred to as “panel GA”) 3a, and a liquid crystal display connected to a liquid crystal display controller (hereinafter referred to as “LCD controller”) 4a. A printer 5, a scanner 6, a slot 7, a speaker 9, a network control unit (hereinafter referred to as “NCU”) 10, and a modem 11 are connected.

ASIC20は、ROM12に記憶されたプログラムに従って、バスラインに接続された各部を制御するCPU30(図2参照)を内蔵した集積回路である。ROM12は、多機能周辺装置で実行される各種の制御プログラムを記憶する不揮発性メモリである。SDRAM13は、制御プログラムの実行時に各種の情報を一時的に記憶する揮発性メモリである。ROM12は、バスライン14を介してASIC20と接続され、SDRAM13は、バスライン15を介してASIC20と接続されている。   The ASIC 20 is an integrated circuit including a CPU 30 (see FIG. 2) that controls each unit connected to the bus line in accordance with a program stored in the ROM 12. The ROM 12 is a non-volatile memory that stores various control programs executed by the multifunction peripheral device. The SDRAM 13 is a volatile memory that temporarily stores various types of information when the control program is executed. The ROM 12 is connected to the ASIC 20 via the bus line 14, and the SDRAM 13 is connected to the ASIC 20 via the bus line 15.

USB端子2はASIC20内のUSBインターフェース制御回路(以下、「USB I/F制御回路」と称す)32と接続される。USB I/F制御回路32は、USB端子2にパーソナルコンピュータ(以下、「PC」と称す)が接続されると、PCとの間で通信を行うと共に、PCからの画像データをSDRAM13に記憶させる制御回路である。   The USB terminal 2 is connected to a USB interface control circuit (hereinafter referred to as “USB I / F control circuit”) 32 in the ASIC 20. When a personal computer (hereinafter referred to as “PC”) is connected to the USB terminal 2, the USB I / F control circuit 32 communicates with the PC and stores image data from the PC in the SDRAM 13. It is a control circuit.

ASIC20内には、ユーザインターフェース制御回路(以下、「ユーザI/F制御回路」と称す)34が設けられており、このユーザI/F制御回路34には、パネルGA3aとLCDコントローラ4aが接続されている。   A user interface control circuit (hereinafter referred to as “user I / F control circuit”) 34 is provided in the ASIC 20, and a panel GA 3 a and an LCD controller 4 a are connected to the user I / F control circuit 34. ing.

パネルGA3aは多機能周辺装置に所望の指令を入力する操作キー3の制御を行うもので、操作キー3の押下(入力)を検出して、ASIC20に所定のコード信号を出力する。このコード信号は、複数の操作キー3に対応して割り当てられている。ユーザI/F制御回路34は、パネルGA3aから所定のコード信号を受信すると、CPU30(図2参照)に対して割り込みを発生させる。割り込みを受けたCPU30(図2参照)は、所定のキー処理テーブルに従って、実行すべき制御処理を行う。このキー処理テーブルは、コード信号と制御処理とを対応させてテーブル化したものであり、例えば、ROM12に記憶されている。   The panel GA 3 a controls the operation key 3 for inputting a desired command to the multi-function peripheral device. The panel GA 3 a detects the pressing (input) of the operation key 3 and outputs a predetermined code signal to the ASIC 20. This code signal is assigned corresponding to the plurality of operation keys 3. When receiving a predetermined code signal from the panel GA 3a, the user I / F control circuit 34 generates an interrupt to the CPU 30 (see FIG. 2). The CPU 30 (see FIG. 2) that has received the interrupt performs control processing to be executed in accordance with a predetermined key processing table. This key processing table is a table in which code signals and control processing are associated with each other, and is stored in the ROM 12, for example.

LCDコントローラ4aは、ASIC20の命令に基づいて、メモリカード等から読み出した画像データやプリンタ5及びスキャナ6の動作に関する情報などをLCD4に表示するためのものである。具体的には、ユーザI/F制御回路34が、LCD4に表示する画像の画像データを、SDRAM13に設けられた表示メモリ(図示せず)上に作成し、このデータをLCDコントローラ4aに転送する。LCDコントローラ4aは、LCD4を制御して、転送されたデータをLCD4に表示させる。   The LCD controller 4 a is for displaying on the LCD 4 image data read from a memory card or the like, information on the operation of the printer 5 and the scanner 6, and the like based on a command from the ASIC 20. Specifically, the user I / F control circuit 34 creates image data of an image to be displayed on the LCD 4 on a display memory (not shown) provided in the SDRAM 13, and transfers this data to the LCD controller 4a. . The LCD controller 4a controls the LCD 4 to display the transferred data on the LCD 4.

プリンタ5は、記録用紙に画像等を印刷するものであり、スロット部7に接続されたメモリカード等から読み出した画像データや、USB端子2に接続されたPCから転送される画像の画像データ、またはスキャナ6によって読み取った画像の画像データ等に基づいて、インク滴を選択的に吐出する方式、いわゆる、インクジェット方式を採用したインクジェットプリンタとして構成されている。なお、インクジェット方式は単なる一例であり、電子写真方式や熱転写方式などの方式を採用しても良い。プリンタ5はASIC20内の記録制御回路35と接続される。記録制御回路35は、SDRAM13に記憶された画像処理後(画像データ等の画質を補正するための処理等)の画像データ等を読み出して、プリンタ5に出力するための制御回路である。記録制御回路35により出力された画像データ等がプリンタ5によって印刷される。   The printer 5 prints an image or the like on a recording sheet. The image data read from a memory card connected to the slot unit 7 or the image data transferred from the PC connected to the USB terminal 2 Alternatively, it is configured as an ink jet printer that employs a method of selectively ejecting ink droplets based on image data of an image read by the scanner 6, a so-called ink jet method. The ink jet method is merely an example, and a method such as an electrophotographic method or a thermal transfer method may be employed. The printer 5 is connected to a recording control circuit 35 in the ASIC 20. The recording control circuit 35 is a control circuit for reading out image data or the like after image processing (processing for correcting the image quality of image data or the like) stored in the SDRAM 13 and outputting it to the printer 5. The image data output by the recording control circuit 35 is printed by the printer 5.

スキャナ6は、画像等が印刷された記録用紙から画像を読み取る装置であり、ASIC20内の読み取り制御回路36と接続される。読み取り制御回路36は、スキャナ6で読み込まれた画像の画像データ等を入力し、その入力された画像データに対して画像処理を行い、SDRAM13に記憶させるための制御回路である。読み取り制御回路36によりSDRAM13に記憶された画像データ等は、画像処理制御回路33により読み出される。   The scanner 6 is a device that reads an image from a recording sheet on which an image or the like is printed, and is connected to a reading control circuit 36 in the ASIC 20. The read control circuit 36 is a control circuit for inputting image data or the like of an image read by the scanner 6, performing image processing on the input image data, and storing it in the SDRAM 13. Image data stored in the SDRAM 13 by the read control circuit 36 is read by the image processing control circuit 33.

画像処理制御回路33は、SDRAM13に記憶された画像データ等を読み出し、読み出した画像データ等の画質の補正等の画像処理を行う制御回路である。画像処理制御回路33は、画像処理が完了すると、その画像処理完了後の画像データ等をSDRAM13に記憶する。   The image processing control circuit 33 is a control circuit that reads image data stored in the SDRAM 13 and performs image processing such as correction of image quality of the read image data. When the image processing is completed, the image processing control circuit 33 stores the image data after completion of the image processing in the SDRAM 13.

スロット部7は、メモリーカード(携帯型フラッシュメモリ等)を接続する端子である。なおスロット部7は公知の構成であり、詳細な説明は省略する。   The slot 7 is a terminal for connecting a memory card (portable flash memory or the like). The slot portion 7 has a known configuration and will not be described in detail.

アンプ8は、そのアンプ8に接続されたスピーカ9を鳴動して、呼出音や拒否音、メッセージなどを出力する装置である。このアンプ8は、ASIC20に接続されると共に、スピーカ9にも接続されている。   The amplifier 8 is a device that rings a speaker 9 connected to the amplifier 8 and outputs a ringing tone, a rejection tone, a message, and the like. The amplifier 8 is connected to the ASIC 20 and also to the speaker 9.

NCU10は電話網(図示せず)に対するダイヤル信号の送出や、電話網からの呼出信号の応答等の動作を行う装置である。モデム11は、NCU10を介して、画像データ等を変調及び復調し、相手ファクシミリ装置(図示せず)へ伝送すると共に、伝送制御用の各種手順信号を送受信する装置である。NCU10及びモデム11は、それぞれバスラインによってASIC20に接続されている。   The NCU 10 is a device that performs operations such as sending a dial signal to a telephone network (not shown) and responding to a calling signal from the telephone network. The modem 11 is a device that modulates and demodulates image data and the like via the NCU 10, transmits the data to a partner facsimile machine (not shown), and transmits and receives various procedure signals for transmission control. The NCU 10 and the modem 11 are each connected to the ASIC 20 by a bus line.

次に、図2を参照して、ASIC20の電気的構成について説明する。図2は、ASIC20の電気的構成を示すブロック図である。ASIC20は、CPU30と、バスコントローラ回路31と、USB I/F制御回路32と、画像処理制御回路33と、ユーザI/F制御回路34と、記録制御回路35と、読み取り制御回路36と、SDRAMアクセス要求マスク回路37と、SDRAMアクセス調停回路38と、SDRAMコントローラ回路39と、ビジータイミング調整回路40と、SDRAMアクセス頻度検出回路41と、ROMコントローラ回路43とを主に有している。   Next, the electrical configuration of the ASIC 20 will be described with reference to FIG. FIG. 2 is a block diagram showing an electrical configuration of the ASIC 20. The ASIC 20 includes a CPU 30, a bus controller circuit 31, a USB I / F control circuit 32, an image processing control circuit 33, a user I / F control circuit 34, a recording control circuit 35, a reading control circuit 36, and an SDRAM. It mainly includes an access request mask circuit 37, an SDRAM access arbitration circuit 38, an SDRAM controller circuit 39, a busy timing adjustment circuit 40, an SDRAM access frequency detection circuit 41, and a ROM controller circuit 43.

CPU30は、ASIC20内の各部の制御を行うと共に、ASIC20の外部(例えば、ROM12やSDRAM13等)の制御を行う演算装置である。CPU30は、バスコントローラ回路31を経由して、ROM12、SDRAM13、ASIC20内部の各制御回路(USB I/F制御回路32、画像処理制御回路33、ユーザI/F制御回路34、記録制御回路35、および読み取り制御回路36)と接続されている。   The CPU 30 is an arithmetic unit that controls each unit in the ASIC 20 and controls the outside of the ASIC 20 (for example, the ROM 12 and the SDRAM 13). The CPU 30 controls each control circuit (USB I / F control circuit 32, image processing control circuit 33, user I / F control circuit 34, recording control circuit 35) in the ROM 12, SDRAM 13, and ASIC 20 via the bus controller circuit 31. And a read control circuit 36).

バスコントローラ回路31は、CPU30からの命令信号を、その命令信号に付加されたアドレスに応じて、ROM12へのアクセスであるか、SDRAM13へのアクセスであるか、各制御回路(USB I/F制御回路32、画像処理制御回路33、ユーザI/F制御回路34、記録制御回路35、および読み取り制御回路36)へのアクセスであるかを判定し、その判定に基づいて、CPU30からの命令信号を伝送する制御回路である。例えば、CPU30からの命令信号が各制御回路への命令信号であれば、内部バス42を介して各種制御回路へ命令信号を伝送する。   The bus controller circuit 31 determines whether a command signal from the CPU 30 is an access to the ROM 12 or an SDRAM 13 according to an address added to the command signal, and whether each control circuit (USB I / F control) Circuit 32, image processing control circuit 33, user I / F control circuit 34, recording control circuit 35, and reading control circuit 36). Based on the determination, an instruction signal from CPU 30 is sent. A control circuit for transmission. For example, if the command signal from the CPU 30 is a command signal to each control circuit, the command signal is transmitted to various control circuits via the internal bus 42.

バスコントローラ回路31は、SDRAMアクセス要求マスク回路37にも接続されている。CPU30からの命令信号がSDRAM13へアクセスするための信号であれば、バスコントローラ回路31は、SDRAMアクセス要求マスク回路37へSDRAM使用要求信号を出力する。   The bus controller circuit 31 is also connected to the SDRAM access request mask circuit 37. If the command signal from the CPU 30 is a signal for accessing the SDRAM 13, the bus controller circuit 31 outputs an SDRAM use request signal to the SDRAM access request mask circuit 37.

バスコントローラ回路31、USB I/F制御回路32、画像処理制御回路33、ユーザI/F制御回路34、記録制御回路35、および読み取り制御回路36は、それぞれ内部バス42に接続されると共に、SDRAMアクセス要求マスク回路37と接続される。   The bus controller circuit 31, the USB I / F control circuit 32, the image processing control circuit 33, the user I / F control circuit 34, the recording control circuit 35, and the reading control circuit 36 are connected to the internal bus 42, and are connected to the SDRAM. The access request mask circuit 37 is connected.

バスコントローラ回路31、USB I/F制御回路32、画像処理制御回路33、ユーザI/F制御回路34、記録制御回路35、および読み取り制御回路36がSDRAM13へのアクセスを必要とする場合、SDRAMアクセス要求マスク回路37へSDRAM使用要求信号を出力する。例えば読み取り制御回路36にスキャナ6から画像データが入力されると、読み取り制御回路36は、SDRAMアクセス要求マスク回路37へSDRAM使用要求信号を出力する。   When the bus controller circuit 31, USB I / F control circuit 32, image processing control circuit 33, user I / F control circuit 34, recording control circuit 35, and read control circuit 36 require access to the SDRAM 13, SDRAM access An SDRAM use request signal is output to the request mask circuit 37. For example, when image data is input from the scanner 6 to the read control circuit 36, the read control circuit 36 outputs an SDRAM use request signal to the SDRAM access request mask circuit 37.

また、バスコントローラ回路31、USB I/F制御回路32、画像処理制御回路33、ユーザI/F制御回路34、記録制御回路35、および読み取り制御回路36は、それぞれ各制御回路内にレジスタ31aから36aを有しており、CPU30は、ASIC20の電源投入後、内部バス42を用いて各制御回路内のレジスタ31aから36aに設定データの書き込みを行う(初期化処理)。この設定データの書込みにより、各制御回路が動作可能になる。   Further, the bus controller circuit 31, the USB I / F control circuit 32, the image processing control circuit 33, the user I / F control circuit 34, the recording control circuit 35, and the reading control circuit 36 are respectively connected from the register 31a to each control circuit. The CPU 30 writes setting data to the registers 31a to 36a in each control circuit using the internal bus 42 after the ASIC 20 is powered on (initialization process). By writing the setting data, each control circuit can be operated.

また、バスコントローラ回路31、USB I/F制御回路32、画像処理制御回路33、ユーザI/F制御回路34、記録制御回路35、および読み取り制御回路36の各レジスタ31aから36aには、連続転送カウンタ31a1から36a1が設けられている。この連続転送カウンタの値は、各制御回路(バスコントローラ回路31、USB I/F制御回路32、画像処理制御回路33、ユーザI/F制御回路34、記録制御回路35、および読み取り制御回路36)がSDRAM13にアクセスする場合に、一回のバスライン15の付与(占有)で、SDRAM13にアクセスする回数を示している。一回のバスライン15の付与(占有)でSDRAM13にアクセスする回数が多くなれば、連続転送カウンタ初期値もそれに伴い多く設定される。   The bus controller circuit 31, the USB I / F control circuit 32, the image processing control circuit 33, the user I / F control circuit 34, the recording control circuit 35, and the reading control circuit 36 are continuously transferred to the registers 31 a to 36 a. Counters 31a1 to 36a1 are provided. The value of this continuous transfer counter is determined by each control circuit (bus controller circuit 31, USB I / F control circuit 32, image processing control circuit 33, user I / F control circuit 34, recording control circuit 35, and reading control circuit 36). Indicates the number of times the SDRAM 13 is accessed with one application (occupation) of the bus line 15 when accessing the SDRAM 13. If the number of times the SDRAM 13 is accessed with one application (occupation) of the bus line 15 increases, the initial value of the continuous transfer counter is set accordingly.

そして、後述するSDRAMアクセス調停回路38によりバスライン15の使用許可が付与された制御回路がSDRAM13へアクセスすると、そのアクセスに伴い、バスライン15の使用許可が付与された制御回路へSDRAMアクセス調停回路38からSDRAM使用要求受付完了信号が出力される。これにより、バスライン15の使用許可が付与された制御回路の連続転送カウンタの値が1カウントダウンされる。この連続転送カウンタの値が「0(ゼロ)」になると、バスライン15の使用許可が付与された制御回路のSDRAM13へのアクセスが完了する。これにより、バスライン15の使用許可が付与された制御回路は、SDRAM使用要求信号の出力を停止する。   When a control circuit to which use permission of the bus line 15 is granted by the SDRAM access arbitration circuit 38 described later accesses the SDRAM 13, the SDRAM access arbitration circuit is sent to the control circuit to which use permission of the bus line 15 is given. The SDRAM use request acceptance completion signal is output from 38. As a result, the value of the continuous transfer counter of the control circuit to which use permission of the bus line 15 is given is counted down by one. When the value of the continuous transfer counter becomes “0 (zero)”, the access to the SDRAM 13 of the control circuit to which use permission of the bus line 15 is given is completed. As a result, the control circuit to which use permission of the bus line 15 is given stops outputting the SDRAM use request signal.

SDRAMアクセス要求マスク回路37は、SDRAM13へのアクセスの頻度が高いことを示すSDRAMビジー信号が入力された場合に、特定の制御回路から出力されるSDRAM使用要求信号をSDRAMアクセス調停回路38に入力させない回路である(以後、SDRAM使用要求信号をSDRAMアクセス調停回路38に入力させないことを、「SDRAM使用要求信号をマスクする」と称する)。SDRAMアクセス要求マスク回路37は、各制御回路(バスコントローラ回路31、USB I/F制御回路32、画像処理制御回路33、ユーザI/F制御回路34、記録制御回路35、および読み取り制御回路36)、SDRAMアクセス調停回路38、およびビジータイミング調整回路40と接続されている。ビジータイミング調整回路40からSDRAMビジー信号が出力されていない場合は、SDRAMアクセス要求マスク回路37は、各制御回路からのSDRAM使用要求信号をマスクせず、入力された全てのSDRAM使用要求信号をSDRAMアクセス調停回路38へ出力する。   The SDRAM access request mask circuit 37 does not allow the SDRAM access arbitration circuit 38 to input an SDRAM use request signal output from a specific control circuit when an SDRAM busy signal indicating that the frequency of access to the SDRAM 13 is high. This is a circuit (hereinafter, the fact that the SDRAM use request signal is not input to the SDRAM access arbitration circuit 38 is referred to as “masking the SDRAM use request signal”). The SDRAM access request mask circuit 37 includes control circuits (a bus controller circuit 31, a USB I / F control circuit 32, an image processing control circuit 33, a user I / F control circuit 34, a recording control circuit 35, and a reading control circuit 36). The SDRAM access arbitration circuit 38 and the busy timing adjustment circuit 40 are connected. When the SDRAM busy signal is not output from the busy timing adjustment circuit 40, the SDRAM access request mask circuit 37 does not mask the SDRAM use request signal from each control circuit, and sends all the input SDRAM use request signals to the SDRAM. The data is output to the access arbitration circuit 38.

一方、ビジータイミング調整回路40からSDRAMビジー信号が出力されている場合には、SDRAMアクセス要求マスク回路37は、特定の制御回路から出力されたSDRAM使用要求信号をマスクして、SDRAMアクセス調停回路38への入力を禁止する。ただし、ビジータイミング調整回路40からSDRAMビジー信号が出力されている場合でも、特定の制御回路以外の制御回路から出力されたSDRAM使用要求信号は、SDRAMアクセス要求マスク回路37でマスクせずに、SDRAMアクセス調停回路38へ出力される。なお、本実施の形態における特定の制御回路とは、バスコントローラ回路31、USB I/F制御回路32、および画像処理制御回路33である(図4参照)。なお、バスコントローラ回路31からSDRAM使用要求信号が出力されるのは、CPU30からSDRAM13へアクセスするための信号が出力された場合である。   On the other hand, when the SDRAM busy signal is output from the busy timing adjustment circuit 40, the SDRAM access request mask circuit 37 masks the SDRAM use request signal output from the specific control circuit, and the SDRAM access arbitration circuit 38. Input to is prohibited. However, even when the SDRAM busy signal is output from the busy timing adjustment circuit 40, the SDRAM use request signal output from the control circuit other than the specific control circuit is not masked by the SDRAM access request mask circuit 37, but the SDRAM. The data is output to the access arbitration circuit 38. The specific control circuits in the present embodiment are a bus controller circuit 31, a USB I / F control circuit 32, and an image processing control circuit 33 (see FIG. 4). The SDRAM use request signal is output from the bus controller circuit 31 when a signal for accessing the SDRAM 13 is output from the CPU 30.

SDRAMアクセス調停回路38は、SDRAMアクセス要求マスク回路37から出力されたSDRAM使用要求信号を調停し、バスライン15の使用許可をSDRAM使用要求信号を出力した制御回路に付与する回路である。SDRAMアクセス調停回路38は、SDRAMアクセス要求マスク回路37、SDRAMコントローラ回路39、およびビジータイミング調整回路40と接続される。   The SDRAM access arbitration circuit 38 is a circuit that arbitrates the SDRAM use request signal output from the SDRAM access request mask circuit 37 and gives permission to use the bus line 15 to the control circuit that has output the SDRAM use request signal. The SDRAM access arbitration circuit 38 is connected to the SDRAM access request mask circuit 37, the SDRAM controller circuit 39, and the busy timing adjustment circuit 40.

SDRAMアクセス調停回路38は、SDRAMアクセス要求マスク回路37から出力されるSDRAM使用要求信号が1つであれば、そのSDRAM使用要求信号を出力した制御回路にバスライン15の使用許可を付与する。一方、SDRAMアクセス調停回路38は、SDRAMアクセス要求マスク回路37から出力されるSDRAM使用要求信号が複数同時にあれば、予め内部のレジスタに設定された何れの制御回路からのSDRAM使用要求信号を優先するかの優先度に応じて調停を行い、優先度の高い1つの制御回路にバスライン15の使用許可を付与する。使用許可が付与された1つの制御回路は、バスライン15を占有してSDRAM13へアクセスすることができる。なお、使用許可の与えられなかった制御回路は、バスライン15の使用許可が付与されるまでSDRAMアクセス要求マスク回路37へSDRAM使用要求信号を継続して出力する。   If there is one SDRAM use request signal output from the SDRAM access request mask circuit 37, the SDRAM access arbitration circuit 38 grants the use permission of the bus line 15 to the control circuit that has output the SDRAM use request signal. On the other hand, if there are a plurality of SDRAM use request signals output from the SDRAM access request mask circuit 37 simultaneously, the SDRAM access arbitration circuit 38 gives priority to the SDRAM use request signal from any control circuit set in the internal register in advance. Arbitration is performed according to the priority, and permission to use the bus line 15 is given to one control circuit having a high priority. One control circuit to which use permission is granted can occupy the bus line 15 and access the SDRAM 13. It should be noted that the control circuit which has not been granted use permission continuously outputs the SDRAM use request signal to the SDRAM access request mask circuit 37 until use permission of the bus line 15 is given.

また、SDRAMアクセス調停回路38は、SDRAMアクセス要求マスク回路37から出力されるSDRAM使用要求信号の調停が実行可能なことを示すアクセス要求調停信号をビジータイミング調整回路40へ出力する。   The SDRAM access arbitration circuit 38 outputs an access request arbitration signal indicating that the SDRAM use request signal output from the SDRAM access request mask circuit 37 can be arbitrated to the busy timing adjustment circuit 40.

SDRAMコントローラ回路39は、SDRAMアクセス調停回路38から出力されたSDRAM使用要求信号に付加されるアドレスに応じて、アクセスするSDRAMを選択し、選択したSDRAMに対して制御信号を出力する回路である。本実施の形態においては、SDRAMはSDRAM13の1つだけであるので、SDRAMコントローラ回路39がアクセスするSDRAMを選択することはない。しかし、例えばSDRAMが3つ使用される多機能周辺装置であれば、SDRAMコントローラ回路39によってアクセスする1つのSDRAMが選択され、選択されたSDRAMにSDRAM使用要求信号を出力した制御回路がアクセスすることになる。   The SDRAM controller circuit 39 is a circuit that selects an SDRAM to be accessed according to an address added to the SDRAM use request signal output from the SDRAM access arbitration circuit 38 and outputs a control signal to the selected SDRAM. In the present embodiment, since there is only one SDRAM 13 SDRAM, the SDRAM controller circuit 39 does not select the SDRAM to be accessed. However, for example, in the case of a multi-functional peripheral device using three SDRAMs, one SDRAM to be accessed is selected by the SDRAM controller circuit 39, and the control circuit that has output the SDRAM use request signal accesses the selected SDRAM. become.

SDRAMコントローラ回路39は、SDRAMアクセス調停回路38、バスライン15、およびSDRAMアクセス頻度検出回路41と接続されている。SDRAMコントローラ回路39は、バスライン15の使用許可が付与された制御回路からSDRAM13へアクセスがあると、そのアクセスを検出し、アクセスがあったことを示すSDRAMアクセス検出信号をSDRAMアクセス頻度検出回路41へ出力する。   The SDRAM controller circuit 39 is connected to the SDRAM access arbitration circuit 38, the bus line 15, and the SDRAM access frequency detection circuit 41. When there is an access to the SDRAM 13 from the control circuit to which use permission of the bus line 15 is granted, the SDRAM controller circuit 39 detects the access and sends an SDRAM access detection signal indicating that the access has been made to the SDRAM access frequency detection circuit 41. Output to.

SDRAMアクセス頻度検出回路41は、SDRAM13へのアクセス回数を検出し、その検出したアクセス回数から所定期間内(後述する期間設定レジスタ41a1の値により決定される期間内)のSDRAM13へのアクセス頻度を算出する回路である。SDRAMアクセス頻度検出回路41は、SDRAMコントローラ回路39、ビジータイミング調整回路40、および内部バス42と接続される。SDRAMアクセス頻度検出回路41は、レジスタ41aに期間設定レジスタ41a1とSDRAMアクセス回数閾値レジスタ41a2とを有している。また、SDRAMアクセス頻度検出回路41は、ハードウェアで構成される期間カウンタ(図示せず)およびSDRAMアクセスカウンタ(図示せず)を有している。   The SDRAM access frequency detection circuit 41 detects the number of accesses to the SDRAM 13 and calculates the access frequency to the SDRAM 13 within a predetermined period (within a period determined by a value of a period setting register 41a1 described later) from the detected number of accesses. Circuit. The SDRAM access frequency detection circuit 41 is connected to the SDRAM controller circuit 39, the busy timing adjustment circuit 40, and the internal bus 42. The SDRAM access frequency detection circuit 41 includes a period setting register 41a1 and an SDRAM access frequency threshold register 41a2 in a register 41a. The SDRAM access frequency detection circuit 41 has a period counter (not shown) and an SDRAM access counter (not shown) configured by hardware.

期間設定レジスタ41a1は、SDRAMアクセス頻度検出回路41がSDRAM13へのアクセス頻度を算出する期間を決定するレジスタである。ASIC20に電源が投入されると、CPU30は内部バス42を介して、この期間設定レジスタ41a1に、設定データの書き込みを行う。本実施の形態においては、期間設定レジスタ41a1には、「3F(16進数)」が設定される。なお、期間設定レジスタ41a1の値と期間カウンタとの関係については後述する。   The period setting register 41a1 is a register that determines a period during which the SDRAM access frequency detection circuit 41 calculates the access frequency to the SDRAM 13. When the ASIC 20 is turned on, the CPU 30 writes setting data to the period setting register 41a1 via the internal bus. In the present embodiment, “3F (hexadecimal number)” is set in the period setting register 41a1. The relationship between the value of the period setting register 41a1 and the period counter will be described later.

SDRAMアクセス回数閾値レジスタ41a2は、SDRAMアクセス頻度検出回路41がアクセス頻度高検出信号を出力するアクセス頻度の閾値を決定するレジスタである。期間設定レジスタ41a1の設定と同様、ASIC20に電源が投入されると、CPU30は内部バス42を介して、このSDRAMアクセス回数閾値レジスタ41a2に、設定データの書き込みを行う。本実施の形態においては、SDRAMアクセス回数閾値レジスタ41a2には、「24(16進数)」が設定される。なお、SDRAMアクセス回数閾値レジスタ41a2の値とSDRAMアクセスカウンタとの関係については後述する。   The SDRAM access frequency threshold value register 41a2 is a register that determines an access frequency threshold value at which the SDRAM access frequency detection circuit 41 outputs a high access frequency detection signal. Similar to the setting of the period setting register 41a1, when the ASIC 20 is turned on, the CPU 30 writes setting data to the SDRAM access count threshold register 41a2 via the internal bus. In the present embodiment, “24 (hexadecimal number)” is set in the SDRAM access count threshold value register 41a2. The relationship between the value of the SDRAM access count threshold register 41a2 and the SDRAM access counter will be described later.

期間カウンタ(図示せず)は、内部クロック(図示せず)から出力される内部クロック信号を入力し、内部クロックの一周期毎に1ずつカウントアップするカウンタである。期間カウンタのカウントアップは、期間設定レジスタ41a1に設定された値となるまで行われ、期間カウンタの値が期間設定レジスタ41a1に設定された値(「3F(16進数)」)となると、期間カウンタのカウント値がゼロにリセットされる(図6参照)。なお、期間カウンタは、SDRAMアクセス頻度検出回路41の動作が許可される期間中、カウント値を更新する。   The period counter (not shown) receives an internal clock signal output from an internal clock (not shown) and counts up by one for each cycle of the internal clock. The period counter is counted up until the value set in the period setting register 41a1 is reached. When the value of the period counter reaches the value set in the period setting register 41a1 ("3F (hexadecimal number)"), the period counter Is reset to zero (see FIG. 6). The period counter updates the count value during the period in which the operation of the SDRAM access frequency detection circuit 41 is permitted.

SDRAMアクセスカウンタは、SDRAMコントローラ回路39から出力されたSDRAMアクセス検出信号を入力して、SDRAMアクセス検出信号が入力される度に1ずつカウントアップを行い、SDRAMへのアクセス回数をカウントするカウンタである。SDRAMアクセスカウンタのカウントアップは、期間カウンタの値が期間設定レジスタ41a1に設定された値(「3F(16進数)」)となるまで行われる。また、SDRAMアクセスカウンタのカウント値は、期間カウンタのカウント値がゼロにリセットされると、これに伴い、ゼロにリセットされる(図6参照)。なお、SDRAMアクセスカウンタは、SDRAMアクセス頻度検出回路41の動作が許可される期間中、カウント値を更新する。   The SDRAM access counter is a counter that receives the SDRAM access detection signal output from the SDRAM controller circuit 39, counts up by one each time the SDRAM access detection signal is input, and counts the number of accesses to the SDRAM. . The SDRAM access counter is counted up until the value of the period counter reaches the value set in the period setting register 41a1 (“3F (hexadecimal number)”). In addition, when the count value of the period counter is reset to zero, the count value of the SDRAM access counter is reset to zero accordingly (see FIG. 6). Note that the SDRAM access counter updates the count value during the period when the operation of the SDRAM access frequency detection circuit 41 is permitted.

SDRAMアクセス頻度検出回路41は、期間カウンタの値が期間設定レジスタ41a1に設定された値(「3F(16進数)」)となったときに、SDRAMアクセスカウンタのカウント値(SDRAM13へのアクセス回数)を読み込み、SDRAM13へのアクセス頻度(期間設定レジスタ41a1に設定された期間におけるSDRAM13へのアクセス回数)を算出する。算出したアクセス頻度がSDRAMアクセス回数閾値レジスタ41a2に設定されたアクセス回数(「24(16進数)」)より大きい場合には、SDRAMアクセス頻度検出回路41は、SDRAM13へのアクセスの頻度が高いことを示すアクセス頻度高検出信号をビジータイミング調整回路40へ出力する(図6参照)。一方、算出したアクセス頻度がSDRAMアクセス回数閾値レジスタ41a2に設定されたアクセス回数(「24(16進数)」)以下の場合には、SDRAMアクセス頻度検出回路41からアクセス頻度高検出信号は出力されない(図6参照)。   The SDRAM access frequency detection circuit 41 counts the SDRAM access counter (the number of accesses to the SDRAM 13) when the value of the period counter reaches the value set in the period setting register 41a1 (“3F (hexadecimal number)”). And the access frequency to the SDRAM 13 (the number of accesses to the SDRAM 13 during the period set in the period setting register 41a1) is calculated. If the calculated access frequency is greater than the access count (“24 (hexadecimal number)”) set in the SDRAM access count threshold register 41a2, the SDRAM access frequency detection circuit 41 indicates that the access frequency to the SDRAM 13 is high. The access frequency high detection signal shown is output to the busy timing adjustment circuit 40 (see FIG. 6). On the other hand, when the calculated access frequency is equal to or less than the access count (“24 (hexadecimal number)”) set in the SDRAM access count threshold register 41 a 2, the high access frequency detection signal is not output from the SDRAM access frequency detection circuit 41 ( (See FIG. 6).

ビジータイミング調整回路40は、SDRAMアクセス要求マスク回路37へ出力するSDRAMビジー信号の出力のタイミングを調整する回路である。ビジータイミング調整回路40は、SDRAMアクセス要求マスク回路37、SDRAMアクセス調停回路38、およびSDRAMアクセス頻度検出回路41と接続される。ビジータイミング調整回路40は、AND回路で構成されている。このAND回路の出力端子はSDRAMアクセス要求マスク回路37に接続され、AND回路の2つの入力端子の一方はSDRAMアクセス調停回路38と接続され、入力端子の他方はSDRAMアクセス頻度検出回路41と接続されている。   The busy timing adjustment circuit 40 is a circuit that adjusts the output timing of the SDRAM busy signal output to the SDRAM access request mask circuit 37. The busy timing adjustment circuit 40 is connected to the SDRAM access request mask circuit 37, the SDRAM access arbitration circuit 38, and the SDRAM access frequency detection circuit 41. The busy timing adjustment circuit 40 is composed of an AND circuit. The output terminal of this AND circuit is connected to the SDRAM access request mask circuit 37, one of the two input terminals of the AND circuit is connected to the SDRAM access arbitration circuit 38, and the other input terminal is connected to the SDRAM access frequency detection circuit 41. ing.

ビジータイミング調整回路40は、AND回路で構成されているので、SDRAMアクセス頻度検出回路41からアクセス頻度高検出信号が出力されても、SDRAMアクセス調停回路38からSDRAM使用要求信号の調停が実行可能なことを示すアクセス要求調停信号が出力されていなければ、SDRAMアクセス要求マスク回路37へSDRAMビジー信号を出力しない。よって、SDRAMアクセス調停回路38が、いずれか1つの制御回路にバスライン15の使用許可を付与しているにも拘らず、SDRAMアクセス要求マスク回路37へSDRAMビジー信号が出力され、SDRAMアクセス要求マスク回路37によって、バスライン15の使用許可が付与された1つの制御回路から出力されているSDRAM使用要求信号がSDRAMアクセス調停回路38に入力停止となり、SDRAMアクセス調停回路38のバスライン15の使用許可付与が中断されることがない。従って、SDRAMアクセス調停回路38のバスライン15の使用許可付与を確実に実行することができる。   Since the busy timing adjustment circuit 40 is composed of an AND circuit, even if the high access frequency detection signal is output from the SDRAM access frequency detection circuit 41, the SDRAM use request signal can be adjusted from the SDRAM access arbitration circuit 38. If the access request arbitration signal indicating this is not output, the SDRAM busy signal is not output to the SDRAM access request mask circuit 37. Therefore, although the SDRAM access arbitration circuit 38 grants the use permission of the bus line 15 to any one of the control circuits, the SDRAM busy request signal is output to the SDRAM access request mask circuit 37, and the SDRAM access request mask is output. The circuit 37 stops the SDRAM use request signal output from one control circuit to which the use permission of the bus line 15 is given to the SDRAM access arbitration circuit 38, and the use permission of the bus line 15 of the SDRAM access arbitration circuit 38. Granting will not be interrupted. Therefore, the permission to use the bus line 15 of the SDRAM access arbitration circuit 38 can be reliably executed.

ROMコントローラ回路43は、バスコントローラ回路31から出力された信号に付加されるアドレスに応じて、アクセスするROMを選択し、選択したROMに対して制御信号を出力する回路である。ROMコントローラ回路43は、バスコントローラ回路31と接続されると共に、バスライン14によりROM12と接続される。本実施の形態においては、ROMはROM12の1つだけであるので、ROMコントローラ回路43がアクセスするROMを選択することはない。しかし、例えばROMが3つ使用される多機能周辺装置であれば、ROMコントローラ回路43によってアクセスする1つのROMが選択され、選択されたROMにCPU30がアクセスすることになる。   The ROM controller circuit 43 is a circuit that selects a ROM to be accessed according to an address added to the signal output from the bus controller circuit 31 and outputs a control signal to the selected ROM. The ROM controller circuit 43 is connected to the bus controller circuit 31 and is connected to the ROM 12 through the bus line 14. In the present embodiment, since there is only one ROM 12 ROM, the ROM controller circuit 43 does not select the ROM to be accessed. However, for example, in the case of a multi-function peripheral device using three ROMs, one ROM to be accessed is selected by the ROM controller circuit 43, and the CPU 30 accesses the selected ROM.

次に、図3を参照して、SDRAMアクセス要求マスク回路37の電気的構成について説明する。図3は、SDRAMアクセス要求マスク回路37の電気的構成を示すブロック図である。SDRAMアクセス要求マスク回路37は、マスクレジスタ50と、論理否定回路であるNOT回路51aから51fと、論理和回路であるOR回路52aから52fと、論理積回路であるAND回路53aから53fとを主に有している。   Next, the electrical configuration of the SDRAM access request mask circuit 37 will be described with reference to FIG. FIG. 3 is a block diagram showing an electrical configuration of the SDRAM access request mask circuit 37. The SDRAM access request mask circuit 37 mainly includes a mask register 50, NOT circuits 51a to 51f that are logical NOT circuits, OR circuits 52a to 52f that are logical sum circuits, and AND circuits 53a to 53f that are logical product circuits. Have.

マスクレジスタ50は、各制御回路(バスコントローラ回路31、USB I/F制御回路32、画像処理制御回路33、ユーザI/F制御回路34、記録制御回路35、および読み取り制御回路36)に応じてOR回路52aから52fの入力端子の一方に出力する値を記憶するレジスタである。マスクレジスタ50からは、OR回路52aから52fの入力端子の一方に接続される6本の信号が出力される。なお、OR回路52aから52fの入力端子の一方に入力される値は、マスクレジスタ50に記憶された値を書き換えない限り、一定の固定値である。   The mask register 50 corresponds to each control circuit (bus controller circuit 31, USB I / F control circuit 32, image processing control circuit 33, user I / F control circuit 34, recording control circuit 35, and reading control circuit 36). This is a register for storing a value to be output to one of the input terminals of the OR circuits 52a to 52f. The mask register 50 outputs six signals connected to one of the input terminals of the OR circuits 52a to 52f. Note that the value input to one of the input terminals of the OR circuits 52a to 52f is a fixed value as long as the value stored in the mask register 50 is not rewritten.

ここで、図4を参照して、マスクレジスタ50に記憶される値を説明する。図4は、マスクレジスタ50に記憶される値の一覧表である。マスクレジスタ50に記憶される値は、図4に示すように、制御回路毎に設定される。マスクレジスタ50に記憶される値は、「0(ゼロ)」または「1」である。マスクレジスタ50に「0(ゼロ)」と設定された制御回路は、即時性が低いとして、ビジータイミング調整回路40からSDRAMアクセス要求マスク回路37へSDRAM13へのアクセスの頻度が高いことを示すSDRAMビジー信号が出力された場合には、SDRAMアクセス要求マスク回路37によってSDRAM使用要求信号をマスクする。   Here, the values stored in the mask register 50 will be described with reference to FIG. FIG. 4 is a list of values stored in the mask register 50. The value stored in the mask register 50 is set for each control circuit as shown in FIG. The value stored in the mask register 50 is “0 (zero)” or “1”. The control circuit in which “0 (zero)” is set in the mask register 50 is assumed to be low in immediacy, and the SDRAM busy indicating that the frequency of access to the SDRAM 13 from the busy timing adjustment circuit 40 to the SDRAM access request mask circuit 37 is high. When the signal is output, the SDRAM access request mask circuit 37 masks the SDRAM use request signal.

一方、マスクレジスタ50に「1」と設定された制御回路は、即時性が高いとして、ビジータイミング調整回路40からSDRAMビジー信号が出力された場合でも、SDRAMアクセス要求マスク回路37によってSDRAM使用要求信号をマスクしない。本実施の形態においては、バスコントローラ回路31とUSB I/F制御回路32と画像処理制御回路33とがマスクレジスタ50に「0(ゼロ)」と設定される。また、ユーザI/F制御回路34と記録制御回路35と読み取り制御回路36とがマスクレジスタ50に「1」と設定される。   On the other hand, the control circuit set to “1” in the mask register 50 has high immediacy, and even if the SDRAM busy signal is output from the busy timing adjustment circuit 40, the SDRAM access request mask signal 37 is used by the SDRAM access request mask circuit 37. Do not mask. In the present embodiment, the bus controller circuit 31, the USB I / F control circuit 32, and the image processing control circuit 33 are set to “0 (zero)” in the mask register 50. Further, the user I / F control circuit 34, the recording control circuit 35, and the reading control circuit 36 are set to “1” in the mask register 50.

このように、SDRAMアクセス要求マスク回路37にはマスクレジスタ50が設けられているので、ビジータイミング調整回路40からSDRAMビジー信号が出力された場合に、SDRAMアクセス要求マスク回路37によってマスクされる即時性が低い制御回路と、SDRAMアクセス要求マスク回路37によってマスクされない即時性の高い制御回路とを設定することができる。よって、多機能周辺装置の使用態様に応じて制御回路の即時性を変えたい場合にも、マスクレジスタ50によって即時性を自由に設定することができる。   Thus, since the SDRAM access request mask circuit 37 is provided with the mask register 50, when the SDRAM busy request signal is output from the busy timing adjustment circuit 40, the SDRAM access request mask circuit 37 masks the immediacy. And a control circuit with high immediacy that is not masked by the SDRAM access request mask circuit 37 can be set. Therefore, even when it is desired to change the immediacy of the control circuit in accordance with the usage mode of the multifunction peripheral device, the immediacy can be freely set by the mask register 50.

図3の説明に戻る。OR回路52aから52fの入力端子の他方(マスクレジスタ50に接続されない入力端子)には、それぞれNOT回路51aから51fが接続され、そのNOT回路51aから51fは、ビジータイミング調整回路40と接続されている。また、OR回路52aから52fの出力端子は、それぞれAND回路53aから53fの入力端子の一方に接続されている。マスクレジスタ50に接続されるOR回路52aから52fの入力端子の一方に入力される値は固定値であるので、ビジータイミング調整回路40からSDRAMビジー信号が出力されている場合と、SDRAMビジー信号が出力されていない場合とで、OR回路52aから52fの出力端子から出力される値、即ちAND回路53aから53fにそれぞれ入力される値が切り換わる。   Returning to the description of FIG. NOT circuits 51a to 51f are connected to the other input terminals of the OR circuits 52a to 52f (input terminals not connected to the mask register 50), and the NOT circuits 51a to 51f are connected to the busy timing adjustment circuit 40, respectively. Yes. The output terminals of the OR circuits 52a to 52f are connected to one of the input terminals of the AND circuits 53a to 53f, respectively. Since the value input to one of the input terminals of the OR circuits 52a to 52f connected to the mask register 50 is a fixed value, the case where the SDRAM busy signal is output from the busy timing adjustment circuit 40 and the case where the SDRAM busy signal is The value output from the output terminals of the OR circuits 52a to 52f, i.e., the values input to the AND circuits 53a to 53f, respectively, is switched when the signal is not output.

AND回路53aから53fの入力端子の他方は、それぞれ各制御回路(バスコントローラ回路31、USB I/F制御回路32、画像処理制御回路33、ユーザI/F制御回路34、記録制御回路35、および読み取り制御回路36)と接続されている。よって、例えばバスコントローラ回路31からSDRAM使用要求信号が出力されると、そのSDRAM使用要求信号はAND回路53aの入力端子の他方に入力される。   The other of the input terminals of the AND circuits 53a to 53f is connected to each control circuit (bus controller circuit 31, USB I / F control circuit 32, image processing control circuit 33, user I / F control circuit 34, recording control circuit 35, and A read control circuit 36) is connected. Therefore, for example, when an SDRAM use request signal is output from the bus controller circuit 31, the SDRAM use request signal is input to the other input terminal of the AND circuit 53a.

次に、SDRAMアクセス要求マスク回路37の動作について説明する。ここでは、図4において、即時性が低いと設定された(マスクレジスタ50に「0(ゼロ)」と設定された)バスコントローラ回路31からSDRAM使用要求信号が出力された場合と、即時性が高いと設定された(マスクレジスタ50に「1」と設定された)記録制御回路35からSDRAM使用要求信号が出力された場合とのSDRAMアクセス要求マスク回路37の動作を例示する。   Next, the operation of the SDRAM access request mask circuit 37 will be described. Here, in FIG. 4, when the SDRAM use request signal is output from the bus controller circuit 31 that is set to be low in immediacy (set to “0 (zero)” in the mask register 50), the immediacy is The operation of the SDRAM access request mask circuit 37 when the SDRAM use request signal is output from the recording control circuit 35 set to be high (set to “1” in the mask register 50) will be exemplified.

なお、USB I/F制御回路32および画像処理制御回路33からSDRAM使用要求信号が出力された場合の動作は、これから説明するバスコントローラ回路31からSDRAM使用要求信号が出力された場合の動作と同一である。また、ユーザI/F制御回路34および読み取り制御回路36からSDRAM使用要求信号が出力された場合の動作は、後述するユーザI/F制御回路34からSDRAM使用要求信号が出力された場合の動作と同一である。   The operation when the SDRAM use request signal is output from the USB I / F control circuit 32 and the image processing control circuit 33 is the same as the operation when the SDRAM use request signal is output from the bus controller circuit 31 described below. It is. The operation when the SDRAM use request signal is output from the user I / F control circuit 34 and the read control circuit 36 is the same as the operation when the SDRAM use request signal is output from the user I / F control circuit 34 described later. Are the same.

まず、バスコントローラ回路31からSDRAM使用要求信号が出力された場合の動作について説明する。ビジータイミング調整回路40からSDRAMビジー信号が出力されていない場合には、NOT回路51aの入力端子には、「0(ゼロ)」が入力される。一方、OR回路52aの入力端子の一方には、マスクレジスタ50に記憶された値「0(ゼロ)」が入力される。このときOR回路52aの出力端子からは「1」が出力され、その値がAND回路53aの入力端子の一方に入力される。AND回路53aの入力端子の他方には、SDRAM使用要求信号が入力されているので、その値は「1」となる。よって、AND回路53aの出力端子からは「1」が出力される。即ち、AND回路53aの出力端子からはSDRAM使用要求信号が出力され、その出力されたSDRAM使用要求信号はSDRAMアクセス調停回路38へ出力される。   First, the operation when the SDRAM use request signal is output from the bus controller circuit 31 will be described. When the SDRAM busy signal is not output from the busy timing adjustment circuit 40, “0 (zero)” is input to the input terminal of the NOT circuit 51a. On the other hand, the value “0 (zero)” stored in the mask register 50 is input to one of the input terminals of the OR circuit 52a. At this time, “1” is output from the output terminal of the OR circuit 52a, and the value is input to one of the input terminals of the AND circuit 53a. Since the SDRAM use request signal is input to the other input terminal of the AND circuit 53a, its value is “1”. Therefore, “1” is output from the output terminal of the AND circuit 53a. That is, the SDRAM use request signal is output from the output terminal of the AND circuit 53a, and the output SDRAM use request signal is output to the SDRAM access arbitration circuit 38.

一方、ビジータイミング調整回路40からSDRAMビジー信号が出力されている場合には、NOT回路51aの入力端子には、「1」が入力される。一方、OR回路52aの入力端子の一方には、マスクレジスタ50に記憶された値「0(ゼロ)」が入力される。このときOR回路52aの出力端子からは「0(ゼロ)」が出力され、その値がAND回路53aの入力端子の一方に入力される。よって、AND回路53aの入力端子の他方にSDRAM使用要求信号が入力され、入力端子の他方が「1」となっても、AND回路53aの出力端子からは「0(ゼロ)」が出力される。即ち、AND回路53aの出力端子からはSDRAM使用要求信号が出力されず、AND回路53aの入力端子の他方に入力されたSDRAM使用要求信号はマスクされる。従って、ビジータイミング調整回路40からSDRAMビジー信号が出力されている場合には、AND回路53aの入力端子の他方に入力されたSDRAM使用要求信号は、SDRAMアクセス要求マスク回路37でマスクされてSDRAMアクセス調停回路38へ出力されない。   On the other hand, when the SDRAM busy signal is output from the busy timing adjustment circuit 40, “1” is input to the input terminal of the NOT circuit 51a. On the other hand, the value “0 (zero)” stored in the mask register 50 is input to one of the input terminals of the OR circuit 52a. At this time, “0 (zero)” is output from the output terminal of the OR circuit 52a, and the value is input to one of the input terminals of the AND circuit 53a. Therefore, even if the SDRAM use request signal is input to the other input terminal of the AND circuit 53a and the other input terminal is “1”, “0 (zero)” is output from the output terminal of the AND circuit 53a. . That is, the SDRAM use request signal is not output from the output terminal of the AND circuit 53a, and the SDRAM use request signal input to the other input terminal of the AND circuit 53a is masked. Therefore, when the SDRAM busy signal is output from the busy timing adjustment circuit 40, the SDRAM use request signal input to the other input terminal of the AND circuit 53a is masked by the SDRAM access request mask circuit 37 and accessed to SDRAM. It is not output to the arbitration circuit 38.

次に、記録制御回路35からSDRAM使用要求信号が出力された場合の動作について説明する。記録制御回路35から出力されるSDRAM使用要求信号は、ビジータイミング調整回路40からSDRAMビジー信号が出力されていても、SDRAMビジー信号が出力されていなくても、SDRAMアクセス要求マスク回路37によってマスクされることはない。この理由について説明する。OR回路52eの入力端子の一方には、マスクレジスタ50に記憶された値「1」が入力される。これにより、NOT回路51eの入力端子に「1」が入力されていても(ビジータイミング調整回路40からSDRAMビジー信号が出力されていても)、NOT回路51eの入力端子に「0(ゼロ)」が入力されていても(ビジータイミング調整回路40からSDRAMビジー信号が出力されていなくても)、OR回路52eの出力端子からは「1」が出力され、その値がAND回路53eの入力端子の一方に入力される。   Next, the operation when the SDRAM use request signal is output from the recording control circuit 35 will be described. The SDRAM use request signal output from the recording control circuit 35 is masked by the SDRAM access request mask circuit 37 regardless of whether the SDRAM busy signal is output from the busy timing adjustment circuit 40 or not. Never happen. The reason for this will be described. The value “1” stored in the mask register 50 is input to one of the input terminals of the OR circuit 52 e. Thus, even if “1” is input to the input terminal of the NOT circuit 51e (even if the SDRAM busy signal is output from the busy timing adjustment circuit 40), “0 (zero)” is input to the input terminal of the NOT circuit 51e. Is input (even if the SDRAM busy signal is not output from the busy timing adjustment circuit 40), "1" is output from the output terminal of the OR circuit 52e, and the value is input to the input terminal of the AND circuit 53e. Input to one side.

よって、記録制御回路35からSDRAM使用要求信号が出力され、AND回路53eの入力端子の他方が「1」となると、そのAND回路53eの出力端子は「1」となる。従って、記録制御回路35からSDRAM使用要求信号が出力されると、ビジータイミング調整回路40からSDRAMビジー信号が出力されていても、SDRAMビジー信号が出力されていなくても、そのSDRAM使用要求信号は、SDRAMアクセス要求マスク回路37によってマスクされることはなく、SDRAMアクセス調停回路38へ出力される。   Therefore, when the SDRAM use request signal is output from the recording control circuit 35 and the other input terminal of the AND circuit 53e becomes “1”, the output terminal of the AND circuit 53e becomes “1”. Therefore, when the SDRAM use request signal is output from the recording control circuit 35, the SDRAM use request signal is output regardless of whether the SDRAM busy signal is output from the busy timing adjustment circuit 40 or not. The data is not masked by the SDRAM access request mask circuit 37, but is output to the SDRAM access arbitration circuit 38.

このようにして、SDRAMアクセス要求マスク回路37は、ビジータイミング調整回路40から出力されるSDRAMビジー信号に応じて、各制御回路(バスコントローラ回路31、USB I/F制御回路32、画像処理制御回路33、ユーザI/F制御回路34、記録制御回路35、および読み取り制御回路36)から出力されたSDRAM使用要求信号のマスクを行う。   In this way, the SDRAM access request mask circuit 37 responds to the SDRAM busy signal output from the busy timing adjustment circuit 40 according to each control circuit (bus controller circuit 31, USB I / F control circuit 32, image processing control circuit). 33, the SDRAM use request signal output from the user I / F control circuit 34, the recording control circuit 35, and the reading control circuit 36) is masked.

次に、図5を参照して、SDRAMアクセス頻度検出回路41がアクセス頻度高検出信号の出力の判定を行うタイミングについて説明する。図5は、内部クロック信号と、期間カウンタの値と、SDRAMアクセスカウンタの値と、アクセス頻度高検出信号とのタイミングチャートを示した図である。なお、信号が出力されている状態をHと図示し、信号が停止している状態をLと図示している。   Next, the timing at which the SDRAM access frequency detection circuit 41 determines the output of the high access frequency detection signal will be described with reference to FIG. FIG. 5 shows a timing chart of the internal clock signal, the value of the period counter, the value of the SDRAM access counter, and the high access frequency detection signal. A state where the signal is output is illustrated as H, and a state where the signal is stopped is illustrated as L.

前述の通り、図5(b)に示すSDRAMアクセス頻度検出回路41に設けられた期間カウンタは(図示せず)、図5(a)に示す内部クロック(図示せず)の内部クロック信号の1周期毎に1ずつカウントアップを行う。また、図5(e)に示すSDRAMアクセス頻度検出回路41に設けられたSDRAMアクセスカウンタは(図示せず)、SDRAMコントローラ回路39から出力されるSDRAMアクセス検出信号が図5(d)に示すように出力される度に1ずつカウントアップを行う。   As described above, the period counter provided in the SDRAM access frequency detection circuit 41 shown in FIG. 5B (not shown) is one of the internal clock signals of the internal clock (not shown) shown in FIG. Count up by 1 for each cycle. The SDRAM access counter (not shown) provided in the SDRAM access frequency detection circuit 41 shown in FIG. 5E is such that the SDRAM access detection signal output from the SDRAM controller circuit 39 is as shown in FIG. Every time it is output, it counts up by one.

図5(b)に示す期間カウンタの値が、図5(c)に示すSDRAMアクセス頻度検出回路41の期間設定レジスタ41a1に設定された「3F(16進数)」と同一となると(T1時)、SDRAMアクセス頻度検出回路41は、SDRAMアクセスカウンタのカウント値を読み込む(T1時)。SDRAMアクセス頻度検出回路41は、読み込んだカウント値である「26(16進数)」と、図5(f)に示すSDRAMアクセス回数閾値レジスタ41a2に設定された「24(16進数)」とを比較する。   When the value of the period counter shown in FIG. 5B is the same as “3F (hexadecimal number)” set in the period setting register 41a1 of the SDRAM access frequency detection circuit 41 shown in FIG. 5C (at time T1) The SDRAM access frequency detection circuit 41 reads the count value of the SDRAM access counter (at time T1). The SDRAM access frequency detection circuit 41 compares the read count value “26 (hexadecimal number)” with “24 (hexadecimal number)” set in the SDRAM access frequency threshold value register 41a2 shown in FIG. To do.

SDRAMアクセス頻度検出回路41がT1時に読み込んだカウント値「26(16進数)」は、SDRAMアクセス回数閾値レジスタ41a2に設定された「24(16進数)」より大きいので、SDRAMアクセス頻度検出回路41は、図5(g)に示すように、SDRAM13へのアクセスの頻度が高いことを示すアクセス頻度高検出信号をビジータイミング調整回路40へ出力する(T1時)。   Since the count value “26 (hexadecimal)” read by the SDRAM access frequency detection circuit 41 at T1 is larger than “24 (hexadecimal)” set in the SDRAM access frequency threshold register 41a2, the SDRAM access frequency detection circuit 41 As shown in FIG. 5G, an access frequency high detection signal indicating that the access frequency to the SDRAM 13 is high is output to the busy timing adjustment circuit 40 (at time T1).

その後、再び図5(b)に示す期間カウンタの値が、図5(c)に示すSDRAMアクセス頻度検出回路41の期間設定レジスタ41a1に設定された「3F(16進数)」と同一となると(T2時)、SDRAMアクセス頻度検出回路41は、SDRAMアクセスカウンタのカウント値を読み込む(T2時)。SDRAMアクセス頻度検出回路41は、読み込んだカウント値である「23(16進数)」と、図5(f)に示すSDRAMアクセス回数閾値レジスタ41a2に設定された「24(16進数)」とを比較する。   Thereafter, when the value of the period counter shown in FIG. 5B again becomes the same as “3F (hexadecimal number)” set in the period setting register 41a1 of the SDRAM access frequency detection circuit 41 shown in FIG. At time T2, the SDRAM access frequency detection circuit 41 reads the count value of the SDRAM access counter (at time T2). The SDRAM access frequency detection circuit 41 compares the read count value “23 (hexadecimal number)” with “24 (hexadecimal number)” set in the SDRAM access frequency threshold register 41a2 shown in FIG. To do.

SDRAMアクセス頻度検出回路41がT2時に読み込んだカウント値「23(16進数)」は、SDRAMアクセス回数閾値レジスタ41a2に設定された「24(16進数)」以下であるので、SDRAMアクセス頻度検出回路41は、図5(g)に示すように、ビジータイミング調整回路40へのアクセス頻度高検出信号の出力を停止する(T2時)。   The count value “23 (hexadecimal number)” read by the SDRAM access frequency detection circuit 41 at T2 is equal to or less than “24 (hexadecimal number)” set in the SDRAM access frequency threshold register 41a2, so the SDRAM access frequency detection circuit 41 As shown in FIG. 5G, the output of the high access frequency detection signal to the busy timing adjustment circuit 40 is stopped (at time T2).

このようにして、SDRAMアクセス頻度検出回路41はアクセス頻度高検出信号の出力の判定を行う。   In this way, the SDRAM access frequency detection circuit 41 determines the output of the high access frequency detection signal.

次に、図6を参照して、SDRAMアクセス頻度検出回路41で実行されるメイン処理について説明する。図6は、SDRAMアクセス頻度検出回路41で実行されるメイン処理を示したフローチャートである。メイン処理は、期間カウンタの値およびSDRAMアクセスカウンタの値を更新すると共に、アクセス頻度高検出信号の出力判定を行う処理であり、SDRAMアクセス頻度検出回路41の動作が許可されている場合に繰り返し実行される処理である。   Next, a main process executed by the SDRAM access frequency detection circuit 41 will be described with reference to FIG. FIG. 6 is a flowchart showing a main process executed by the SDRAM access frequency detection circuit 41. The main process is a process of updating the value of the period counter and the value of the SDRAM access counter and determining the output of the high access frequency detection signal, and is repeatedly executed when the operation of the SDRAM access frequency detection circuit 41 is permitted. Process.

多機能周辺装置の電源がオンされると、CPU30は、SDRAMアクセス頻度検出回路41の初期化処理を行う(S1)。SDRAMアクセス頻度検出回路41の初期化とは、期間設定レジスタ41a1に「3F(16進数)」(図5参照)を設定し、SDRAMアクセス回数閾値レジスタ41a2に「24(16進数)」(図5参照)を設定して、動作を許可する状態に設定することである(S1)。その後、期間カウンタの値およびSDRAMアクセスカウンタの値はともに「0(ゼロ)」に初期化される(S2)。   When the power supply of the multifunction peripheral device is turned on, the CPU 30 performs an initialization process of the SDRAM access frequency detection circuit 41 (S1). Initialization of the SDRAM access frequency detection circuit 41 means that “3F (hexadecimal)” (see FIG. 5) is set in the period setting register 41a1, and “24 (hexadecimal)” is set in the SDRAM access frequency threshold register 41a2 (see FIG. 5). Is set to a state in which the operation is permitted (S1). Thereafter, both the value of the period counter and the value of the SDRAM access counter are initialized to “0 (zero)” (S2).

次に、期間カウンタの値は期間設定レジスタ41a1の値と同一かが判定される(S3)。期間カウンタの値が期間設定レジスタ41a1の値と同一でなければ(S3:No)、期間カウンタの値を1カウントアップする(S4)。そして、SDRAMコントローラ回路39からSDRAMアクセス検出信号の入力があるかを判定する(S5)。SDRAMアクセス検出信号の入力があると判定されると(S5:Yes)、SDRAMアクセスカウンタの値を1カウントアップして(S6)、S3の処理へ戻る。一方、S5の処理において、SDRAMアクセス検出信号の入力がないと判定されると(S5:No)、SDRAMアクセスカウンタの値をカウントアップせずにS3の処理へ戻る。   Next, it is determined whether the value of the period counter is the same as the value of the period setting register 41a1 (S3). If the value of the period counter is not the same as the value of the period setting register 41a1 (S3: No), the value of the period counter is incremented by 1 (S4). Then, it is determined whether an SDRAM access detection signal is input from the SDRAM controller circuit 39 (S5). If it is determined that an SDRAM access detection signal is input (S5: Yes), the value of the SDRAM access counter is incremented by 1 (S6), and the process returns to S3. On the other hand, if it is determined in the process of S5 that there is no SDRAM access detection signal input (S5: No), the process returns to S3 without incrementing the value of the SDRAM access counter.

S3の処理において、期間カウンタの値が期間設定レジスタ41a1の値と同一であれば(S3:Yes)、SDRAMアクセスカウンタの値はSDRAMアクセス回数閾値レジスタ41a2の値より大きいかが判定される(S7)。SDRAMアクセスカウンタの値がSDRAMアクセス回数閾値レジスタ41a2の値より大きいと判定されると(S7:Yes)、SDRAM13へのアクセスの頻度が高いことを示すアクセス頻度高検出信号を出力する(S8)。一方、SDRAMアクセスカウンタの値がSDRAMアクセス回数閾値レジスタ41a2の値以下と判定されると(S7:No)、アクセス頻度高検出信号を出力しない(S9)。S8またはS9の一方の処理が終了すると、期間カウンタの値およびSDRAMアクセスカウンタの値を共に「0(ゼロ)」に設定し(S10)、S3の処理に戻る。   In the process of S3, if the value of the period counter is the same as the value of the period setting register 41a1 (S3: Yes), it is determined whether the value of the SDRAM access counter is larger than the value of the SDRAM access count threshold register 41a2 (S7). . If it is determined that the value of the SDRAM access counter is larger than the value of the SDRAM access count threshold register 41a2 (S7: Yes), an access frequency high detection signal indicating that the frequency of access to the SDRAM 13 is high is output (S8). On the other hand, when it is determined that the value of the SDRAM access counter is equal to or less than the value of the SDRAM access count threshold register 41a2 (S7: No), the high access frequency detection signal is not output (S9). When one of the processes of S8 or S9 is completed, both the value of the period counter and the value of the SDRAM access counter are set to “0 (zero)” (S10), and the process returns to S3.

上記の処理により、期間カウンタの値およびSDRAMアクセスカウンタの値を更新すると共に、アクセス頻度高検出信号の出力判定を行う。   Through the above processing, the value of the period counter and the value of the SDRAM access counter are updated, and the output determination of the access frequency high detection signal is performed.

次に、図7を参照して、ASIC20が実行する処理について説明する。図7は、記録制御回路35(マスクレジスタ50に即時性が高いことを示す「1」が設定(図4参照))および画像処理制御回路33(マスクレジスタ50に即時性が低いことを示す「0(ゼロ)」が設定(図4参照))からSDRAM使用要求信号が出力された場合のASIC20内で実行される処理のタイミングチャートを示した図である。なお、図7は、記録制御回路35および画像処理制御回路33からSDRAM使用要求信号が出力された場合の例示である。よって、他の制御回路(バスコントローラ回路31、USB I/F制御回路32、ユーザI/F制御回路34、および読み取り制御回路36)からSDRAM使用要求信号が出力された場合のASIC20が実行する処理も例示の場合と同様に処理される。また、信号が出力されている状態をHと図示し、信号が停止している状態をLと図示している。   Next, the process executed by the ASIC 20 will be described with reference to FIG. FIG. 7 illustrates the recording control circuit 35 (“1” indicating that immediacy is high in the mask register 50 is set (see FIG. 4)) and the image processing control circuit 33 (indicating that immediacy is low in the mask register 50 “ FIG. 6 is a timing chart of processing executed in the ASIC 20 when an SDRAM use request signal is output from “0 (zero)” (see FIG. 4)). FIG. 7 shows an example when the SDRAM use request signal is output from the recording control circuit 35 and the image processing control circuit 33. Therefore, the processing executed by the ASIC 20 when the SDRAM use request signal is output from another control circuit (the bus controller circuit 31, the USB I / F control circuit 32, the user I / F control circuit 34, and the read control circuit 36). Are processed in the same manner as in the example. Further, a state in which the signal is output is illustrated as H, and a state in which the signal is stopped is illustrated as L.

図7を説明する前提として、図7(j)に示すように、SDRAMアクセス頻度検出回路41から出力されるSDRAM13へのアクセスの頻度が高いことを示すアクセス頻度高検出信号は、T10時までビジータイミング調整回路40へ出力されており、T10時以降、その出力は停止される。また、図7(a)は、内部クロック(図示せず)のクロック信号を示している。   As a premise for explaining FIG. 7, as shown in FIG. 7 (j), the access frequency high detection signal indicating that the access frequency to the SDRAM 13 output from the SDRAM access frequency detection circuit 41 is high is busy until T10 o'clock. The signal is output to the timing adjustment circuit 40, and the output is stopped after T10. FIG. 7A shows a clock signal of an internal clock (not shown).

図7(b)に示すように、記録制御回路35からSDRAMアクセス要求マスク回路37へSDRAM使用要求信号が出力されると(T3時)、そのSDRAM使用要求信号は図7(c)に示すように、SDRAMアクセス要求マスク回路37からSDRAMアクセス調停回路38に入力される(T3時)。これは、SDRAMアクセス要求マスク回路37へ入力されるSDRAM使用要求信号は記録制御回路35からのみだからである。なお、記録制御回路35の場合は一回のバスライン15の占有でSDRAM13にアクセスする回数を示す連続転送カウンタ35a1の初期値は1である。   As shown in FIG. 7B, when an SDRAM use request signal is output from the recording control circuit 35 to the SDRAM access request mask circuit 37 (at time T3), the SDRAM use request signal is shown in FIG. 7C. Are input from the SDRAM access request mask circuit 37 to the SDRAM access arbitration circuit 38 (at time T3). This is because the SDRAM use request signal input to the SDRAM access request mask circuit 37 is only from the recording control circuit 35. In the case of the recording control circuit 35, the initial value of the continuous transfer counter 35a1 indicating the number of times the SDRAM 13 is accessed by occupying the bus line 15 once is 1.

記録制御回路35からSDRAMアクセス調停回路38にSDRAM使用要求信号が入力されると、SDRAMアクセス調停回路38は調停を行い、記録制御回路35へバスライン15の使用許可を付与する(T3時からT6時)。バスライン15の使用許可が付与された記録制御回路35は、バスライン15を占有してSDRAM13へアクセスする(T3時からT6時)。なお、記録制御回路35は、どの時点からバスライン15の使用許可が付与されたかを検知することはなく、後述するSDRAM使用要求受付完了信号によって1回のアクセスが終了したことを検知するのみである。T3時からT6時においては、記録制御回路35がバスライン15を占有してSDRAM13へアクセスしているので、図7(k)に示すように、SDRAMアクセス調停回路38は、調停が不可能であることを示すために、ビジータイミング調整回路40へのアクセス要求調停信号の出力を停止する(T3時からT5時)。これに伴い、図7(l)に示すように、ビジータイミング調整回路40は、SDRAMアクセス要求マスク回路37へのSDRAMビジー信号の出力を停止する(T3時からT5時)。   When an SDRAM use request signal is input from the recording control circuit 35 to the SDRAM access arbitration circuit 38, the SDRAM access arbitration circuit 38 performs arbitration and grants the use permission of the bus line 15 to the recording control circuit 35 (from T3 to T6). Time). The recording control circuit 35 to which use permission of the bus line 15 is given occupies the bus line 15 and accesses the SDRAM 13 (from time T3 to time T6). Note that the recording control circuit 35 does not detect from which point in time the use permission of the bus line 15 is granted, but only detects that one access has been completed by an SDRAM use request acceptance completion signal to be described later. is there. From time T3 to time T6, since the recording control circuit 35 occupies the bus line 15 and accesses the SDRAM 13, the SDRAM access arbitration circuit 38 cannot perform arbitration as shown in FIG. In order to show that there is, the output of the access request arbitration signal to the busy timing adjustment circuit 40 is stopped (from T3 to T5). Accordingly, as shown in FIG. 7L, the busy timing adjustment circuit 40 stops the output of the SDRAM busy signal to the SDRAM access request mask circuit 37 (from time T3 to time T5).

図7(f)に示すように、T3時からT5時の間であるT4時に画像処理制御回路33からSDRAMアクセス要求マスク回路37へSDRAM使用要求信号が出力されると、そのSDRAM使用要求信号は、SDRAMアクセスマスク回路37によってマスクされずにSDRAMアクセス調停回路38へ出力される(T4時からT5時)。これは、図7(l)に示すように、ビジータイミング調整回路40が、SDRAMアクセス要求マスク回路37へのSDRAMビジー信号の出力を停止しているためである(T3時からT5時)。ただし、T4時からT5時の間に、SDRAMアクセス調停回路38へ画像処理制御回路33からのSDRAM使用要求信号が入力されても、SDRAMアクセス調停回路38はSDRAM使用要求信号の調停をしていないので、画像処理制御回路33へバスライン15の使用許可は付与されない。   As shown in FIG. 7F, when an SDRAM use request signal is output from the image processing control circuit 33 to the SDRAM access request mask circuit 37 at T4, which is between T3 and T5, the SDRAM use request signal is The data is not masked by the access mask circuit 37 and output to the SDRAM access arbitration circuit 38 (from time T4 to time T5). This is because the busy timing adjustment circuit 40 stops outputting the SDRAM busy signal to the SDRAM access request mask circuit 37 (from time T3 to time T5) as shown in FIG. However, even if the SDRAM use request signal is input from the image processing control circuit 33 to the SDRAM access arbitration circuit 38 between the time T4 and the time T5, the SDRAM access arbitration circuit 38 does not arbitrate the SDRAM use request signal. The use permission of the bus line 15 is not given to the image processing control circuit 33.

記録制御回路35によるSDRAM13へのアクセスが完了するタイミングである内部クロック信号(図7(a))の1クロック前に、図7(e)に示すように、SDRAMアクセス調停回路38から記録制御回路35へSDRAM13へのアクセスが完了したことを示すSDRAM使用要求受付完了信号が出力される(T5時)。このSDRAM使用要求受付完了信号が出力されると、図7(d)に示すように記録制御回路35の連続転送カウンタ35a1の値が「0(ゼロ)」となる(T6時)。これにより、図7(b)に示すように、記録制御回路35は、SDRAMアクセス要求マスク回路37へのSDRAM使用要求信号の出力を停止する(T6時)。これに伴い、図7(c)に示すように、SDRAMアクセス調停回路38へ入力される記録制御回路35からのSDRAM使用要求信号も出力停止となる(T6時)。   One clock before the internal clock signal (FIG. 7A), which is the timing when the access to the SDRAM 13 by the recording control circuit 35 is completed, as shown in FIG. An SDRAM use request acceptance completion signal indicating that access to the SDRAM 13 has been completed is output to 35 (at time T5). When this SDRAM use request acceptance completion signal is output, as shown in FIG. 7D, the value of the continuous transfer counter 35a1 of the recording control circuit 35 becomes “0 (zero)” (time T6). As a result, as shown in FIG. 7B, the recording control circuit 35 stops outputting the SDRAM use request signal to the SDRAM access request mask circuit 37 (at time T6). Accordingly, as shown in FIG. 7C, the SDRAM use request signal from the recording control circuit 35 input to the SDRAM access arbitration circuit 38 is also stopped (T6).

また、図7(e)に示すように、SDRAMアクセス調停回路38から記録制御回路35へSDRAM13へのアクセスが完了したことを示すSDRAM使用要求受付完了信号が出力されると(T5時)、SDRAMアクセス調停回路38は、図7(k)に示すようにバスライン15の使用許可調停が可能な状態にあることを示すアクセス要求調停信号をビジータイミング調整回路40へ出力する(T5時)。   Also, as shown in FIG. 7E, when an SDRAM use request acceptance completion signal indicating that access to the SDRAM 13 is completed is output from the SDRAM access arbitration circuit 38 to the recording control circuit 35 (at time T5), the SDRAM As shown in FIG. 7 (k), the access arbitration circuit 38 outputs an access request arbitration signal indicating that the use permission arbitration of the bus line 15 is possible to the busy timing adjustment circuit 40 (at time T5).

図7(j)に示すように、ビジータイミング調整回路40へは、SDRAMアクセス頻度検出回路41からSDRAM13へのアクセスの頻度が高いことを示すアクセス頻度高検出信号も出力されている(T5時)。よって、図7(l)に示すように、ビジータイミング調整回路40は、SDRAMアクセス要求マスク回路37へSDRAM13へのアクセスの頻度が高いことを示すSDRAMビジー信号を出力する(T5時)。なお、図7(c)に示すようにT5時からT6時の間には、記録制御回路35からSDRAMアクセス調停回路38へSDRAM使用要求信号が出力されているが、このT5時からT6時の間は、SDRAMアクセス調停回路38は記録制御回路35から出力されるSDRAM使用要求信号を外してバスライン15の使用許可調停を行う。   As shown in FIG. 7J, an access frequency high detection signal indicating that the frequency of access from the SDRAM access frequency detection circuit 41 to the SDRAM 13 is high is also output to the busy timing adjustment circuit 40 (at time T5). . Therefore, as shown in FIG. 7L, the busy timing adjustment circuit 40 outputs an SDRAM busy signal indicating that the frequency of access to the SDRAM 13 is high to the SDRAM access request mask circuit 37 (at time T5). As shown in FIG. 7C, the SDRAM use request signal is output from the recording control circuit 35 to the SDRAM access arbitration circuit 38 from the time T5 to the time T6, but during the time T5 to the time T6, the SDRAM is used. The access arbitration circuit 38 removes the SDRAM use request signal output from the recording control circuit 35 and performs use permission arbitration of the bus line 15.

T5時からT7時の間には、図7(l)に示すようにビジータイミング調整回路40からSDRAMアクセス要求マスク回路37へSDRAMビジー信号が出力されている。よって、T4時から継続してSDRAMアクセス要求マスク回路37へ出力される画像処理制御回路33からのSDRAM使用要求信号は(図7(f))、T5時からT7時の間にSDRAMアクセス要求マスク回路37でマスクされる。よって、画像処理制御回路33からのSDRAM使用要求信号は、SDRAMアクセス調停回路38へは出力されない(図7(g))。従って、ビジータイミング調整回路40からSDRAMアクセス要求マスク回路37へSDRAMビジー信号が出力されているときには、画像処理制御回路33へSDRAMアクセス調停回路38からバスライン15の使用許可が付与されない。   Between time T5 and time T7, an SDRAM busy signal is output from the busy timing adjustment circuit 40 to the SDRAM access request mask circuit 37 as shown in FIG. Therefore, the SDRAM use request signal from the image processing control circuit 33 continuously output to the SDRAM access request mask circuit 37 from T4 (FIG. 7 (f)) is the SDRAM access request mask circuit 37 between T5 and T7. It is masked with. Therefore, the SDRAM use request signal from the image processing control circuit 33 is not output to the SDRAM access arbitration circuit 38 (FIG. 7 (g)). Therefore, when the SDRAM busy signal is output from the busy timing adjustment circuit 40 to the SDRAM access request mask circuit 37, the use permission of the bus line 15 from the SDRAM access arbitration circuit 38 is not given to the image processing control circuit 33.

図7(b)に示すように、T7時に再び、記録制御回路35からSDRAM使用要求信号が出力される。その出力されたSDRAM使用要求信号は、ビジータイミング調整回路40からSDRAMビジー信号が出力されていてもSDRAMアクセス要求マスク回路37でマスクされない。これは、記録制御回路35は、マスクレジスタ50に即時性が高いことを示す「1」と設定されているからである(図4参照)。よって、記録制御回路35から出力されたSDRAM使用要求信号は、図7(c)に示すように、SDRAMアクセス要求マスク回路37からSDRAMアクセス調停回路38へ出力される(T7時)。   As shown in FIG. 7B, the SDRAM use request signal is output again from the recording control circuit 35 at T7. The output SDRAM use request signal is not masked by the SDRAM access request mask circuit 37 even if the SDRAM busy signal is output from the busy timing adjustment circuit 40. This is because the recording control circuit 35 is set to “1” indicating that immediacy is high in the mask register 50 (see FIG. 4). Therefore, the SDRAM use request signal output from the recording control circuit 35 is output from the SDRAM access request mask circuit 37 to the SDRAM access arbitration circuit 38 as shown in FIG. 7C (at time T7).

そして、T7時からT9時の間は、上記T3時からT6時同様、記録制御回路35に、SDRAMアクセス調停回路38からバスライン15の使用許可が付与される。これにより、記録制御回路35は、SDRAM13へのアクセスをバスライン15を占有して行うことができる。   From time T7 to time T9, the use permission of the bus line 15 is given to the recording control circuit 35 from the SDRAM access arbitration circuit 38 as in the time T3 to T6. Accordingly, the recording control circuit 35 can access the SDRAM 13 while occupying the bus line 15.

記録制御回路35によるSDRAM13へのアクセスが完了するタイミングである内部クロック信号(図7(a))の1クロック前に、図7(e)に示すように、SDRAMアクセス調停回路38から記録制御回路35へSDRAM13へのアクセスが完了したことを示すSDRAM使用要求受付完了信号が出力される(T8時)。これにより、図7(b)に示すように、記録制御回路35は、SDRAMアクセス要求マスク回路37へのSDRAM使用要求信号の出力を停止する(T9時)。これに伴い、図7(c)に示すように、SDRAMアクセス調停回路38へ入力される記録制御回路35からのSDRAM使用要求信号も出力停止となる(T9時)。   One clock before the internal clock signal (FIG. 7 (a)) at which the access to the SDRAM 13 by the recording control circuit 35 is completed, as shown in FIG. 7 (e), from the SDRAM access arbitration circuit 38 to the recording control circuit. An SDRAM use request acceptance completion signal indicating that access to the SDRAM 13 is completed is output to 35 (at time T8). As a result, as shown in FIG. 7B, the recording control circuit 35 stops outputting the SDRAM use request signal to the SDRAM access request mask circuit 37 (at time T9). Along with this, as shown in FIG. 7C, the SDRAM use request signal from the recording control circuit 35 input to the SDRAM access arbitration circuit 38 is also stopped (T9).

図7(e)に示すように、SDRAMアクセス調停回路38から記録制御回路35へSDRAM13へのアクセスが完了したことを示すSDRAM使用要求受付完了信号が出力されると(T8時)、SDRAMアクセス調停回路38は、図7(k)に示すようにバスライン15の使用許可調停が可能な状態にあることを示すアクセス要求調停信号をビジータイミング調整回路40へ出力する(T8時)。   As shown in FIG. 7E, when an SDRAM use request acceptance completion signal indicating completion of access to the SDRAM 13 is output from the SDRAM access arbitration circuit 38 to the recording control circuit 35 (at time T8), SDRAM access arbitration is performed. The circuit 38 outputs an access request arbitration signal indicating that the use permission arbitration of the bus line 15 is possible as shown in FIG. 7 (k) to the busy timing adjustment circuit 40 (time T8).

図7(b)に示すように、記録制御回路35から出力されるSDRAM使用要求信号は、T9時以降は出力されていない。しかし、図7(j)に示すように、T10時まではSDRAMアクセス頻度検出回路41からビジータイミング調整回路40へアクセス頻度高検出信号が出力されている。よって、図7(l)に示すように、ビジータイミング調整回路40からSDRAMビジー信号が出力されている。従って、T9時からT10時の間は、図7(g)に示すように画像処理制御回路33から出力されたSDRAM使用要求信号は、SDRAMアクセス要求マスク回路37でマスクされ、SDRAMアクセス調停回路38へは入力されない。   As shown in FIG. 7B, the SDRAM use request signal output from the recording control circuit 35 is not output after T9. However, as shown in FIG. 7J, the high access frequency detection signal is output from the SDRAM access frequency detection circuit 41 to the busy timing adjustment circuit 40 until time T10. Therefore, the SDRAM busy signal is output from the busy timing adjustment circuit 40 as shown in FIG. Therefore, during the period from time T9 to time T10, the SDRAM use request signal output from the image processing control circuit 33 is masked by the SDRAM access request mask circuit 37 and sent to the SDRAM access arbitration circuit 38 as shown in FIG. Not entered.

T10時を経過すると、図7(j)に示すように、SDRAMアクセス頻度検出回路41によってSDRAM13へのアクセスの頻度が高いことを示すアクセス頻度高検出信号の出力が停止される。これに伴い、図7(l)に示すように、ビジータイミング調整回路40からSDRAMアクセス要求マスク回路37へ出力されるSDRAMビジー信号も出力が停止される。これにより、SDRAMアクセス要求マスク回路37は画像制御回路33から出力されるSDRAM使用要求信号のマスクを終了する(T10時)。   After the time T10 has elapsed, as shown in FIG. 7J, the SDRAM access frequency detection circuit 41 stops the output of the high access frequency detection signal indicating that the access frequency to the SDRAM 13 is high. Accordingly, as shown in FIG. 7L, the output of the SDRAM busy signal output from the busy timing adjustment circuit 40 to the SDRAM access request mask circuit 37 is also stopped. As a result, the SDRAM access request mask circuit 37 finishes masking the SDRAM use request signal output from the image control circuit 33 (at time T10).

すると、T4時から継続して出力されていた画像処理制御回路33からのSDRAM使用要求信号が(図7(f))、SDRAMアクセス要求マスク回路37からSDRAMアクセス調停回路38へ出力される(図7(g)、T10時)。   Then, the SDRAM use request signal from the image processing control circuit 33 that has been continuously output from T4 (FIG. 7F) is output from the SDRAM access request mask circuit 37 to the SDRAM access arbitration circuit 38 (FIG. 7). 7 (g), at T10).

画像処理制御回路33からSDRAMアクセス調停回路38にSDRAM使用要求信号が入力されると、SDRAMアクセス調停回路38は調停を行い、画像処理制御回路33へバスライン15の使用許可を付与する(T10時からT12時)。バスライン15の使用許可が付与された画像処理制御回路33は、バスライン15を占有してSDRAM13へアクセスする(T10時からT12時)。T10時からT12時においては、画像処理制御回路33がバスライン15を占有してSDRAM13へアクセスしているので、図7(k)に示すように、SDRAMアクセス調停回路38は、バスライン15の使用許可調停が不可能であることを示すために、ビジータイミング調整回路40へのアクセス要求調停信号の出力を停止する(T10時からT11時)。   When an SDRAM use request signal is input from the image processing control circuit 33 to the SDRAM access arbitration circuit 38, the SDRAM access arbitration circuit 38 performs arbitration and grants the use permission of the bus line 15 to the image processing control circuit 33 (at time T10). To T12 o'clock). The image processing control circuit 33 to which use permission of the bus line 15 is given occupies the bus line 15 and accesses the SDRAM 13 (from T10 to T12). From time T10 to time T12, the image processing control circuit 33 occupies the bus line 15 and accesses the SDRAM 13, so that the SDRAM access arbitration circuit 38 is connected to the bus line 15 as shown in FIG. In order to indicate that the use permission arbitration is impossible, the output of the access request arbitration signal to the busy timing adjustment circuit 40 is stopped (from T10 to T11).

画像処理制御回路33によるSDRAM13への1回のアクセスが完了すると、図7(i)に示すように、SDRAMアクセス調停回路38から画像処理制御回路33へSDRAM13へのアクセスが完了したことを示すSDRAM使用要求受付完了信号が出力される。このSDRAM使用要求受付完了信号が2回出力されると(T11時)、図7(h)に示すように、SDRAM使用要求信号の出力を行う際に設定した画像処理制御回路33の連続転送カウンタ33a1の値が「0(ゼロ)」となる。これにより、図7(f)に示すように、画像処理制御回路33は、SDRAMアクセス要求マスク回路37へのSDRAM使用要求信号の出力を停止する(T12時)。これに伴い、図7(g)に示すように、SDRAMアクセス調停回路38へ入力される画像処理制御回路33からのSDRAM使用要求信号も出力停止となる(T12時)。   When one access to the SDRAM 13 by the image processing control circuit 33 is completed, an SDRAM indicating that access to the SDRAM 13 from the SDRAM access arbitration circuit 38 to the image processing control circuit 33 is completed as shown in FIG. A use request acceptance completion signal is output. When this SDRAM use request acceptance completion signal is output twice (at T11), as shown in FIG. 7H, the continuous transfer counter of the image processing control circuit 33 set when the SDRAM use request signal is output. The value of 33a1 is “0 (zero)”. As a result, as shown in FIG. 7F, the image processing control circuit 33 stops outputting the SDRAM use request signal to the SDRAM access request mask circuit 37 (at time T12). Accordingly, as shown in FIG. 7G, the SDRAM use request signal from the image processing control circuit 33 input to the SDRAM access arbitration circuit 38 is also stopped (T12).

また、図7(i)に示すように、SDRAMアクセス調停回路38から画像処理制御回路33へSDRAM13へのアクセスが完了したことを示すSDRAM使用要求受付完了信号が2回出力されると(T11時)、SDRAMアクセス調停回路38は、図7(k)に示すように、バスライン15の使用許可調停が可能な状態にあることを示すアクセス要求調停信号をビジータイミング調整回路40へ出力する(T11時)。   As shown in FIG. 7 (i), when an SDRAM use request acceptance completion signal indicating that access to the SDRAM 13 is completed from the SDRAM access arbitration circuit 38 to the image processing control circuit 33 is output twice (at time T11). ), The SDRAM access arbitration circuit 38 outputs an access request arbitration signal indicating that the use permission arbitration of the bus line 15 is possible to the busy timing adjustment circuit 40 as shown in FIG. 7 (k) (T11). Time).

なお、図7(g)に示すようにT11時からT12時の間には、画像処理制御回路33からSDRAMアクセス調停回路38へSDRAM使用要求信号が出力されているが、このT11時からT12時の間は、SDRAMアクセス調停回路38は画像処理制御回路33から出力されるSDRAM使用要求信号を外してバスライン15の使用許可付与を行う。   As shown in FIG. 7 (g), an SDRAM use request signal is output from the image processing control circuit 33 to the SDRAM access arbitration circuit 38 from T11 to T12, but during this T11 to T12, The SDRAM access arbitration circuit 38 removes the SDRAM use request signal output from the image processing control circuit 33 and grants the use permission of the bus line 15.

このように、上述した本実施の形態においては、SDRAMアクセス頻度検出回路41からSDRAM13へのアクセスの頻度が高いことを示すアクセス頻度高検出信号が出力され、SDRAMアクセス調停回路38からバスライン15の使用許可調停が可能な状態にあることを示すアクセス要求調停信号が出力されると、ビジータイミング調整回路40は、SDRAMアクセス要求マスク回路37へSDRAM13へのアクセスの頻度が高いことを示すSDRAMビジー信号を出力する。   As described above, in the present embodiment described above, an access frequency high detection signal indicating that the SDRAM access frequency detection circuit 41 has a high access frequency to the SDRAM 13 is output, and the SDRAM access arbitration circuit 38 outputs the bus line 15. When an access request arbitration signal indicating that use permission arbitration is possible is output, the busy timing adjustment circuit 40 indicates to the SDRAM access request mask circuit 37 that the SDRAM 13 is frequently accessed. Is output.

ビジータイミング調整回路40からSDRAMビジー信号が出力されると、SDRAMアクセス要求マスク回路37は、即時性の低い画像処理制御回路33から出力されるSDRAM使用要求信号をマスクする。一方、即時性の高い記録制御回路35からのSDRAM使用要求信号は、ビジータイミング調整回路40からSDRAMビジー信号が出力されていてもマスクせず、SDRAMアクセス調停回路38へ入力される。すると、SDRAMアクセス調停回路38は、記録制御回路35へバスライン15の使用許可を付与する。   When the SDRAM busy signal is output from the busy timing adjustment circuit 40, the SDRAM access request mask circuit 37 masks the SDRAM use request signal output from the image processing control circuit 33 with low immediacy. On the other hand, the SDRAM use request signal from the recording control circuit 35 with high immediacy is not masked even if the SDRAM busy signal is output from the busy timing adjustment circuit 40 and is input to the SDRAM access arbitration circuit 38. Then, the SDRAM access arbitration circuit 38 grants the use permission of the bus line 15 to the recording control circuit 35.

これにより、記録制御回路35はバスライン15を占有して、SDRAM13へのアクセスを優先的に行うことができる。よって、ビジータイミング調整回路40からSDRAMビジー信号が出力されている場合には、即ち、SDRAM13へのアクセスの頻度が高い場合には、記録制御回路35へ優先してバス使用許可を付与することができる。従って、記録制御回路35は、優先してSDRAM13へのアクセスを行うことができる。   Thereby, the recording control circuit 35 can occupy the bus line 15 and preferentially access the SDRAM 13. Therefore, when the SDRAM busy signal is output from the busy timing adjustment circuit 40, that is, when the frequency of access to the SDRAM 13 is high, the use of the bus is given priority to the recording control circuit 35. it can. Therefore, the recording control circuit 35 can preferentially access the SDRAM 13.

また、上述した本実施の形態においては、SDRAMアクセス要求マスク回路37にはマスクレジスタ50が設けられているので、ビジータイミング調整回路40からSDRAMビジー信号が出力された場合に、SDRAMアクセス要求マスク回路37によってマスクされる即時性が低い制御回路を設定することができる。よって、多機能周辺装置の使用態様に応じて制御回路の即時性を変えたい場合にも、マスクレジスタ50によって即時性を自由に設定することができる。   In the above-described embodiment, the SDRAM access request mask circuit 37 is provided with the mask register 50. Therefore, when the SDRAM busy signal is output from the busy timing adjustment circuit 40, the SDRAM access request mask circuit. A control circuit with low immediacy masked by 37 can be set. Therefore, even when it is desired to change the immediacy of the control circuit in accordance with the usage mode of the multifunction peripheral device, the immediacy can be freely set by the mask register 50.

さらに、上述した本実施の形態においては、ビジータイミング調整回路40は、AND回路で構成されているので、SDRAMアクセス頻度検出回路41からアクセス頻度高検出信号が出力されても、SDRAMアクセス調停回路38からバスライン15の使用許可調停が可能な状態にあることを示すアクセス要求調停信号が出力されていなければ、SDRAMアクセス要求マスク回路37へSDRAMビジー信号を出力しない。即ち、SDRAMアクセス調停回路38が、いずれか1つの制御回路(バスコントローラ回路31、USB I/F制御回路32、画像処理制御回路33、ユーザI/F制御回路34、記録制御回路35、または読み取り制御回路36)にバスライン15の使用許可を付与している場合は、SDRAMアクセス頻度検出回路41からアクセス頻度高検出信号が出力されても、ビジータイミング調整回路40は、SDRAMアクセス要求マスク回路37へSDRAMビジー信号を出力しない。よって、SDRAMアクセス調停回路38が、いずれか1つの制御回路にバスライン15の使用許可を付与しているにも拘らず、SDRAMアクセス要求マスク回路37へSDRAMビジー信号が出力され、SDRAMアクセス要求マスク回路37によって、バスライン15の使用許可が付与された1つの制御回路から出力されているSDRAM使用要求信号がSDRAMアクセス調停回路38に入力停止となり、SDRAMアクセス調停回路38のバスライン15の使用許可付与が中断されることがない。従って、SDRAMアクセス調停回路38のバスライン15の使用許可付与を確実に実行することができる。   Furthermore, in the above-described embodiment, the busy timing adjustment circuit 40 is configured by an AND circuit. Therefore, even if an access frequency high detection signal is output from the SDRAM access frequency detection circuit 41, the SDRAM access arbitration circuit 38. If no access request arbitration signal indicating that use permission arbitration of the bus line 15 is possible is output from the SDRAM access request mask circuit 37, no SDRAM busy signal is output. In other words, the SDRAM access arbitration circuit 38 is connected to any one of the control circuits (the bus controller circuit 31, the USB I / F control circuit 32, the image processing control circuit 33, the user I / F control circuit 34, the recording control circuit 35, or the reading). When the use permission of the bus line 15 is given to the control circuit 36), even if the high access frequency detection signal is output from the SDRAM access frequency detection circuit 41, the busy timing adjustment circuit 40 does the SDRAM access request mask circuit 37. The SDRAM busy signal is not output. Therefore, although the SDRAM access arbitration circuit 38 grants the use permission of the bus line 15 to any one of the control circuits, the SDRAM busy request signal is output to the SDRAM access request mask circuit 37, and the SDRAM access request mask is output. The circuit 37 stops the SDRAM use request signal output from one control circuit to which the use permission of the bus line 15 is given to the SDRAM access arbitration circuit 38, and the use permission of the bus line 15 of the SDRAM access arbitration circuit 38. Granting will not be interrupted. Therefore, the permission to use the bus line 15 of the SDRAM access arbitration circuit 38 can be reliably executed.

次に、図8から図10を参照して第2の実施の形態について説明する。図8は、第2の実施の形態におけるSDRAMアクセス要求マスク回路60の電気的構成を示している。なお、第1の実施の形態と同一の部分については、同一の符号を付し、その説明を省略するものとする。図8に示すように、第2の実施の形態におけるASIC20内のSDRAMアクセス要求マスク回路60は、マスクレジスタ61が2bitの値を記憶できる構成となっている。これに伴い、第2の実施の形態のSDRAMアクセス要求マスク回路60にビジータイミング調整回路40から入力されるSDRAMビジー信号も2bitの信号となっている。また、このビジータイミング調整回路40へSDRAMアクセス頻度検出回路41から出力されるアクセス頻度高検出信号も2bitの信号となっている。   Next, a second embodiment will be described with reference to FIGS. FIG. 8 shows an electrical configuration of the SDRAM access request mask circuit 60 in the second embodiment. In addition, about the part same as 1st Embodiment, the same code | symbol is attached | subjected and the description shall be abbreviate | omitted. As shown in FIG. 8, the SDRAM access request mask circuit 60 in the ASIC 20 in the second embodiment is configured such that the mask register 61 can store a 2-bit value. Accordingly, the SDRAM busy signal input from the busy timing adjustment circuit 40 to the SDRAM access request mask circuit 60 of the second embodiment is also a 2-bit signal. The high access frequency detection signal output from the SDRAM access frequency detection circuit 41 to the busy timing adjustment circuit 40 is also a 2-bit signal.

よって、第2の実施の形態のSDRAMアクセス要求マスク回路60は、各制御回路(バスコントローラ回路31、USB I/F制御回路32、画像処理制御回路33、ユーザI/F制御回路34、記録制御回路35、および読み取り制御回路36)から出力されるSDRAM使用要求信号をより細かくマスクすることができる。この点で、第2の実施の形態のASIC20は、第1の実施の形態とは異なる。   Therefore, the SDRAM access request mask circuit 60 according to the second embodiment includes each control circuit (bus controller circuit 31, USB I / F control circuit 32, image processing control circuit 33, user I / F control circuit 34, recording control). The SDRAM use request signal output from the circuit 35 and the read control circuit 36) can be masked more finely. In this respect, the ASIC 20 of the second embodiment is different from the first embodiment.

図8は、SDRAMアクセス要求マスク回路60の電気的構成を示すブロック図である。SDRAMアクセス要求マスク回路60は、マスクレジスタ61と、マスクレベル比較回路62aから62fと、論理否定回路であるNOT回路63aから63fと、論理積回路であるAND回路64aから64fとを主に有している。   FIG. 8 is a block diagram showing an electrical configuration of the SDRAM access request mask circuit 60. The SDRAM access request mask circuit 60 mainly includes a mask register 61, mask level comparison circuits 62a to 62f, NOT circuits 63a to 63f which are logical negation circuits, and AND circuits 64a to 64f which are logical product circuits. ing.

まず、SDRAMアクセス要求マスク回路60へ出力されるSDRAMビジー信号について説明する。ビジータイミング調整回路40から出力されるSDRAMビジー信号は、「00」、「01」、「10」の3種類である。なお、SDRAMビジー信号の値は、SDRAMアクセス頻度検出回路41から出力されるアクセス頻度高検出信号と同一の値である。   First, the SDRAM busy signal output to the SDRAM access request mask circuit 60 will be described. There are three types of SDRAM busy signals output from the busy timing adjustment circuit 40: “00”, “01”, and “10”. Note that the value of the SDRAM busy signal is the same value as the high access frequency detection signal output from the SDRAM access frequency detection circuit 41.

ビジータイミング調整回路40からSDRAMビジー信号が出力されない場合(SDRAMビジー信号の値が「00」である場合)は、各制御回路(バスコントローラ回路31、USB I/F制御回路32、画像処理制御回路33、ユーザI/F制御回路34、記録制御回路35、および読み取り制御回路36)からSDRAM13へのアクセスの頻度が低いことを示している。また、出力されるSDRAMビジー信号が「01」であるときは、各制御回路からSDRAM13へのアクセスの頻度が中程度であることを示している。更に、出力されるSDRAMビジー信号が「10」であるときは、各制御回路からSDRAM13へのアクセスの頻度が高いことを示している。なお、このSDRAMビジー信号の決定方法については、図10にて説明する。   When the SDRAM busy signal is not output from the busy timing adjustment circuit 40 (when the value of the SDRAM busy signal is “00”), each control circuit (bus controller circuit 31, USB I / F control circuit 32, image processing control circuit) 33, the frequency of access to the SDRAM 13 from the user I / F control circuit 34, the recording control circuit 35, and the reading control circuit 36) is low. Further, when the output SDRAM busy signal is “01”, it indicates that the frequency of access from each control circuit to the SDRAM 13 is moderate. Further, when the output SDRAM busy signal is “10”, it indicates that the frequency of access from each control circuit to the SDRAM 13 is high. A method for determining the SDRAM busy signal will be described with reference to FIG.

マスクレジスタ61は、各制御回路(バスコントローラ回路31、USB I/F制御回路32、画像処理制御回路33、ユーザI/F制御回路34、記録制御回路35、および読み取り制御回路36)毎にマスクレベル比較回路62aから62fの入力端子の一方に出力する値を記憶するレジスタである。マスクレジスタ61からは、マスクレベル比較回路62aから62fの入力端子の一方に接続される2ビットの6組の信号が出力される。ここで、マスクレベル比較回路62aから62fの入力端子の一方に入力される値は、マスクレジスタ61に記憶された値を書き換えない限り、一定の固定値である。   The mask register 61 is a mask for each control circuit (bus controller circuit 31, USB I / F control circuit 32, image processing control circuit 33, user I / F control circuit 34, recording control circuit 35, and reading control circuit 36). This is a register for storing a value to be output to one of the input terminals of the level comparison circuits 62a to 62f. The mask register 61 outputs 6 sets of 2-bit signals connected to one of the input terminals of the mask level comparison circuits 62a to 62f. Here, the value input to one of the input terminals of the mask level comparison circuits 62a to 62f is a fixed value unless the value stored in the mask register 61 is rewritten.

ここで、図9を参照して、マスクレジスタ61に記憶される値を説明する。図9は、マスクレジスタ61に記憶される値の一覧表である。マスクレジスタ61に記憶される値は、各制御回路(バスコントローラ回路31、USB I/F制御回路32、画像処理制御回路33、ユーザI/F制御回路34、記録制御回路35、および読み取り制御回路36)毎に設定される。マスクレジスタ61に記憶される値は、「01」、「10」、「11」の3種類である。   Here, the values stored in the mask register 61 will be described with reference to FIG. FIG. 9 is a list of values stored in the mask register 61. The values stored in the mask register 61 are the control circuits (the bus controller circuit 31, the USB I / F control circuit 32, the image processing control circuit 33, the user I / F control circuit 34, the recording control circuit 35, and the reading control circuit). 36) is set every time. There are three types of values stored in the mask register 61: “01”, “10”, and “11”.

マスクレジスタ61に「01」と設定された制御回路のSDRAM使用要求信号は、即時性が低いとして、ビジータイミング調整回路40からSDRAMビジー信号が出力されない場合(SDRAMビジー信号の値が「00」である場合)のみ、SDRAMアクセス要求マスク回路60によってマスクされない。また、マスクレジスタ61に「10」と設定された制御回路のSDRAM使用要求信号は、即時性が中程度として、ビジータイミング調整回路40からSDRAM13へのアクセスの頻度が中程度であることを示すSDRAMビジー信号である「01」が出力された場合またはビジータイミング調整回路40からSDRAMビジー信号が出力されない場合(SDRAMビジー信号の値が「00」である場合)には、SDRAMアクセス要求マスク回路60によってマスクされない。更に、マスクレジスタ61に「11」と設定された制御回路のSDRAM使用要求信号は、即時性が高いとして、ビジータイミング調整回路40からSDRAM13へのアクセスの頻度が高いことを示すSDRAMビジー信号である「10」が出力された場合でも、SDRAMアクセス要求マスク回路60によってマスクされない。   When the SDRAM use request signal of the control circuit set to “01” in the mask register 61 is low in immediacy, the SDRAM busy signal is not output from the busy timing adjustment circuit 40 (the value of the SDRAM busy signal is “00”). (If any) is not masked by the SDRAM access request mask circuit 60. Further, the SDRAM use request signal of the control circuit set to “10” in the mask register 61 indicates that the immediacy is intermediate and the frequency of access from the busy timing adjustment circuit 40 to the SDRAM 13 is intermediate. When the busy signal “01” is output or when the SDRAM busy signal is not output from the busy timing adjustment circuit 40 (when the value of the SDRAM busy signal is “00”), the SDRAM access request mask circuit 60 Not masked. Further, the SDRAM use request signal of the control circuit set to “11” in the mask register 61 is an SDRAM busy signal indicating that the frequency of access from the busy timing adjustment circuit 40 to the SDRAM 13 is high, assuming that immediacy is high. Even when “10” is output, it is not masked by the SDRAM access request mask circuit 60.

第2の実施の形態においては、バスコントローラ回路31とUSB I/F制御回路32とが同じ即時性である処理グループに所属し、マスクレジスタ61に即時性が低いことを示す「01」が設定される。また、画像処理制御回路33とユーザI/F制御回路34とが同じ即時性である処理グループに所属し、マスクレジスタ61に即時性が中程度であることを示す「10」が設定される。更に、記録制御回路35と読み取り制御回路36とが同じ即時性である処理グループに所属し、マスクレジスタ61に即時性が高いことを示す「11」が設定される。   In the second embodiment, the bus controller circuit 31 and the USB I / F control circuit 32 belong to the same immediacy processing group, and “01” indicating that immediacy is low is set in the mask register 61. Is done. In addition, the image processing control circuit 33 and the user I / F control circuit 34 belong to the same immediacy processing group, and “10” indicating that immediacy is medium is set in the mask register 61. Furthermore, “11” indicating that the recording control circuit 35 and the reading control circuit 36 belong to the same immediacy processing group and the immediacy is high is set in the mask register 61.

このように、SDRAMアクセス要求マスク回路60にはマスクレジスタ61が設けられているので、ビジータイミング調整回路40からSDRAMビジー信号が3段階で出力された場合に、SDRAMアクセス要求マスク回路60によってマスクされる制御回路も3段階に設定することができる。よって、多機能周辺装置の使用態様に応じて制御回路の即時性を変えたい場合にも、マスクレジスタ61によって即時性を細かく自由に設定することができる。   Thus, since the SDRAM access request mask circuit 60 is provided with the mask register 61, when the SDRAM busy signal is output from the busy timing adjustment circuit 40 in three stages, it is masked by the SDRAM access request mask circuit 60. The control circuit can be set in three stages. Therefore, even when it is desired to change the immediacy of the control circuit according to the usage mode of the multifunction peripheral device, the immediacy can be set finely and freely by the mask register 61.

図8の説明に戻る。マスクレベル比較回路62aから62fは、マスクレジスタ61の値とビジータイミング調整回路40から出力されるSDRAMビジー信号の値とを比較する回路である。マスクレベル比較回路62aから62fは、AND回路、OR回路、およびNOT回路を組み合わせて構成されている。   Returning to the description of FIG. The mask level comparison circuits 62 a to 62 f are circuits that compare the value of the mask register 61 with the value of the SDRAM busy signal output from the busy timing adjustment circuit 40. Mask level comparison circuits 62a to 62f are configured by combining AND circuits, OR circuits, and NOT circuits.

マスクレベル比較回路62aから62fの入力端子の一方は、上述の通り、マスクレジスタ61と接続されている。また、マスクレベル比較回路62aから62fの入力端子の他方は、ビジータイミング調整回路40と接続されている。ビジータイミング調整回路40は、マスクレベル比較回路62aから62fの入力端子の他方に接続されている。   One of the input terminals of the mask level comparison circuits 62a to 62f is connected to the mask register 61 as described above. The other input terminals of the mask level comparison circuits 62 a to 62 f are connected to the busy timing adjustment circuit 40. The busy timing adjustment circuit 40 is connected to the other input terminal of the mask level comparison circuits 62a to 62f.

マスクレベル比較回路62aから62fは、マスクレベル比較回路62aから62fの入力端子の一方に入力されるマスクレジスタ61の値と、マスクレベル比較回路62aから62fの入力端子の他方に入力されるSDRAMビジー信号の値とを比較して、マスクレベル比較回路62aから62fの出力端子から出力する値を切り替える。   The mask level comparison circuits 62a to 62f have the values of the mask register 61 input to one of the input terminals of the mask level comparison circuits 62a to 62f and the SDRAM busy input to the other of the input terminals of the mask level comparison circuits 62a to 62f. The value output from the output terminals of the mask level comparison circuits 62a to 62f is switched by comparing with the value of the signal.

マスクレベル比較回路62aから62fの入力端子の一方に入力されるマスクレジスタ61の値がマスクレベル比較回路62aから62fの入力端子の他方に入力されるSDRAMビジー信号の値よりも大きい場合は、マスクレベル比較回路62aから62fは、出力端子から「0(ゼロ)」を出力する。一方、マスクレベル比較回路62aから62fの入力端子の一方に入力されるマスクレジスタ61の値がマスクレベル比較回路62aから62fの入力端子の他方に入力されるSDRAMビジー信号の値以下の場合は、マスクレベル比較回路62aから62fは、出力端子から「1」を出力する。   If the value of the mask register 61 input to one of the input terminals of the mask level comparison circuits 62a to 62f is larger than the value of the SDRAM busy signal input to the other input terminal of the mask level comparison circuits 62a to 62f, the mask The level comparison circuits 62a to 62f output “0 (zero)” from the output terminals. On the other hand, when the value of the mask register 61 input to one of the input terminals of the mask level comparison circuits 62a to 62f is equal to or less than the value of the SDRAM busy signal input to the other of the input terminals of the mask level comparison circuits 62a to 62f, The mask level comparison circuits 62a to 62f output “1” from the output terminals.

マスクレベル比較回路62aから62fの出力端子には、それぞれNOT回路63aから63fが接続されている。そのNOT回路63aから63fは、それぞれAND回路64aから64fの入力端子の一方に接続されている。よって、マスクレベル比較回路62aから62fが出力する値によって、AND回路64aから64fにそれぞれ入力される値が切り換わる。   NOT circuits 63a to 63f are connected to the output terminals of the mask level comparison circuits 62a to 62f, respectively. The NOT circuits 63a to 63f are connected to one of the input terminals of the AND circuits 64a to 64f, respectively. Therefore, the values input to the AND circuits 64a to 64f are switched depending on the values output from the mask level comparison circuits 62a to 62f.

AND回路64aから64fの入力端子の他方は、それぞれ各制御回路(バスコントローラ回路31、USB I/F制御回路32、画像処理制御回路33、ユーザI/F制御回路34、記録制御回路35、および読み取り制御回路36)と接続されている。よって、例えばバスコントローラ回路31からSDRAM使用要求信号が出力されると、そのSDRAM使用要求信号はAND回路64aの入力端子の他方に入力される。   The other input terminals of the AND circuits 64a to 64f are respectively connected to control circuits (bus controller circuit 31, USB I / F control circuit 32, image processing control circuit 33, user I / F control circuit 34, recording control circuit 35, and A read control circuit 36) is connected. Therefore, for example, when an SDRAM use request signal is output from the bus controller circuit 31, the SDRAM use request signal is input to the other input terminal of the AND circuit 64a.

SDRAMアクセス要求マスク回路60の動作について説明する。ここでは、図9において、即時性が低いと設定された(マスクレジスタ61に「01」と設定された)バスコントローラ回路31からSDRAM使用要求信号が出力された場合と、即時性が中程度と設定された(マスクレジスタ61に「10」と設定された)画像処理制御回路33からSDRAM使用要求信号が出力された場合と、即時性が高いと設定された(マスクレジスタ61に「11」と設定された)記録制御回路35からからSDRAM使用要求信号が出力された場合とのSDRAMアクセス要求マスク回路60の動作を例示する。   The operation of the SDRAM access request mask circuit 60 will be described. Here, in FIG. 9, when the SDRAM use request signal is output from the bus controller circuit 31 that is set to have low immediacy (set to “01” in the mask register 61), the immediacy is moderate. When the SDRAM use request signal is output from the set image processing control circuit 33 (set to “10” in the mask register 61), and when the immediacy is set high (“11” is set in the mask register 61. The operation of the SDRAM access request mask circuit 60 when the SDRAM use request signal is output from the set recording control circuit 35 is illustrated.

なお、USB I/F制御回路32からSDRAM使用要求信号が出力された場合の動作は、これから説明する同じ処理グループのバスコントローラ回路31からSDRAM使用要求信号が出力された場合の動作と同一である。また、ユーザI/F制御回路34からSDRAM使用要求信号が出力された場合の動作は、後述する同じ処理グループの画像処理制御回路33からSDRAM使用要求信号が出力された場合の動作と同一である。更に、読み取り制御回路36からSDRAM使用要求信号が出力された場合の動作は、後述する同じ処理グループの記録制御回路35からSDRAM使用要求信号が出力された場合の動作と同一である。   The operation when the SDRAM use request signal is output from the USB I / F control circuit 32 is the same as the operation when the SDRAM use request signal is output from the bus controller circuit 31 of the same processing group described below. . The operation when the SDRAM use request signal is output from the user I / F control circuit 34 is the same as the operation when the SDRAM use request signal is output from the image processing control circuit 33 of the same processing group described later. . Further, the operation when the SDRAM use request signal is output from the read control circuit 36 is the same as the operation when the SDRAM use request signal is output from the recording control circuit 35 of the same processing group described later.

まず、バスコントローラ回路31からSDRAM使用要求信号が出力された場合の動作について説明する。ビジータイミング調整回路40からSDRAMビジー信号が出力されていない場合には、マスクレベル比較回路62aの入力端子の他方には、「00」が入力される。一方、マスクレベル比較回路62aの入力端子の一方には、マスクレジスタ61に記憶された値「01」が入力される。このとき、マスクレベル比較回路62aの入力端子の一方の値がマスクレベル比較回路62aの入力端子の他方の値より大きいので、マスクレベル比較回路62aの出力端子からは「0(ゼロ)」が出力され、その値がNOT回路63aに入力される。そして、AND回路64aの入力端子の一方には、「1」が入力される。   First, the operation when the SDRAM use request signal is output from the bus controller circuit 31 will be described. When the SDRAM busy signal is not output from the busy timing adjustment circuit 40, “00” is input to the other input terminal of the mask level comparison circuit 62a. On the other hand, the value “01” stored in the mask register 61 is input to one of the input terminals of the mask level comparison circuit 62a. At this time, since one value of the input terminal of the mask level comparison circuit 62a is larger than the other value of the input terminal of the mask level comparison circuit 62a, "0 (zero)" is output from the output terminal of the mask level comparison circuit 62a. The value is input to the NOT circuit 63a. Then, “1” is input to one of the input terminals of the AND circuit 64a.

AND回路64aの入力端子の他方には、SDRAM使用要求信号が入力されているので、その値は「1」となる。よって、AND回路64aの出力端子からは「1」が出力される。即ち、AND回路64aの出力端子からはSDRAM使用要求信号が出力され、その出力されたSDRAM使用要求信号はSDRAMアクセス調停回路38へ入力される。   Since the SDRAM use request signal is input to the other input terminal of the AND circuit 64a, its value is “1”. Therefore, “1” is output from the output terminal of the AND circuit 64a. That is, an SDRAM use request signal is output from the output terminal of the AND circuit 64a, and the output SDRAM use request signal is input to the SDRAM access arbitration circuit 38.

一方、ビジータイミング調整回路40からSDRAMビジー信号が出力され、そのSDRAMビジー信号の値が「01」または「10」の場合には、マスクレベル比較回路62aの入力端子の他方には、「01」または「10」が入力される。一方、マスクレベル比較回路62aの入力端子の一方には、マスクレジスタ61に記憶された値「01」が入力される。このとき、マスクレベル比較回路62aの入力端子の一方の値がマスクレベル比較回路62aの入力端子の他方の値以下であるので、マスクレベル比較回路62aの出力端子からは「1」が出力され、その値がNOT回路63aに入力される。そして、AND回路64aの入力端子の一方には、「0(ゼロ)」が入力される。   On the other hand, when the SDRAM busy signal is output from the busy timing adjustment circuit 40 and the value of the SDRAM busy signal is “01” or “10”, the other input terminal of the mask level comparison circuit 62a has “01”. Alternatively, “10” is input. On the other hand, the value “01” stored in the mask register 61 is input to one of the input terminals of the mask level comparison circuit 62a. At this time, since one value of the input terminal of the mask level comparison circuit 62a is equal to or less than the other value of the input terminal of the mask level comparison circuit 62a, "1" is output from the output terminal of the mask level comparison circuit 62a. The value is input to the NOT circuit 63a. Then, “0 (zero)” is input to one of the input terminals of the AND circuit 64a.

よって、AND回路64aの入力端子の他方には、SDRAM使用要求信号が入力されており、入力端子の他方が「1」であったとしても、AND回路64aの出力端子からは「0(ゼロ)」が出力される。即ち、AND回路64aの出力端子からはSDRAM使用要求信号が出力されずAND回路64aの入力端子の他方に入力されたSDRAM使用要求信号はマスクされる。従って、ビジータイミング調整回路40からSDRAMビジー信号が出力され、そのSDRAMビジー信号の値が「01」または「10」の場合には、AND回路64aの入力端子の他方に入力されたSDRAM使用要求信号はSDRAMアクセス調停回路38へ出力されない。   Therefore, the SDRAM use request signal is input to the other input terminal of the AND circuit 64a, and even if the other input terminal is “1”, the output terminal of the AND circuit 64a outputs “0 (zero)”. Is output. That is, the SDRAM use request signal is not output from the output terminal of the AND circuit 64a, and the SDRAM use request signal input to the other input terminal of the AND circuit 64a is masked. Accordingly, when the SDRAM busy signal is output from the busy timing adjustment circuit 40 and the value of the SDRAM busy signal is “01” or “10”, the SDRAM use request signal input to the other input terminal of the AND circuit 64a. Are not output to the SDRAM access arbitration circuit 38.

次に、画像処理制御回路33からSDRAM使用要求信号が出力された場合の動作について説明する。ビジータイミング調整回路40からSDRAMビジー信号が出力されていない場合またはビジータイミング調整回路40からSDRAMビジー信号が出力され、そのSDRAMビジー信号の値が「01」の場合には、マスクレベル比較回路62cの入力端子の他方には、「00」または「01」が入力される。一方、マスクレベル比較回路62cの入力端子の一方には、マスクレジスタ61に記憶された値「10」が入力される。このとき、マスクレベル比較回路62cの入力端子の一方の値がマスクレベル比較回路62cの入力端子の他方の値より大きいので、マスクレベル比較回路62cの出力端子からは「0(ゼロ)」が出力され、その値がNOT回路63cに入力される。そして、AND回路64cの入力端子の一方には、「1」が入力される。   Next, an operation when an SDRAM use request signal is output from the image processing control circuit 33 will be described. When the SDRAM busy signal is not output from the busy timing adjustment circuit 40 or when the SDRAM busy signal is output from the busy timing adjustment circuit 40 and the value of the SDRAM busy signal is “01”, the mask level comparison circuit 62c “00” or “01” is input to the other input terminal. On the other hand, the value “10” stored in the mask register 61 is input to one of the input terminals of the mask level comparison circuit 62 c. At this time, since one value of the input terminal of the mask level comparison circuit 62c is larger than the other value of the input terminal of the mask level comparison circuit 62c, “0 (zero)” is output from the output terminal of the mask level comparison circuit 62c. The value is input to the NOT circuit 63c. Then, “1” is input to one of the input terminals of the AND circuit 64c.

AND回路64cの入力端子の他方には、SDRAM使用要求信号が入力されているので、入力端子の他方は「1」となる。よって、AND回路64cの出力端子からは「1」が出力される。即ち、AND回路64cの出力端子からはSDRAM使用要求信号が出力され、その出力されたSDRAM使用要求信号はSDRAMアクセス調停回路38へ入力される。   Since the SDRAM use request signal is input to the other input terminal of the AND circuit 64c, the other input terminal is “1”. Therefore, “1” is output from the output terminal of the AND circuit 64c. That is, the SDRAM use request signal is output from the output terminal of the AND circuit 64c, and the output SDRAM use request signal is input to the SDRAM access arbitration circuit 38.

一方、ビジータイミング調整回路40からSDRAMビジー信号が出力され、そのSDRAMビジー信号の値が「10」の場合には、マスクレベル比較回路62cの入力端子の他方には、「10」が入力される。一方、マスクレベル比較回路62cの入力端子の一方には、マスクレジスタ61に記憶された値「10」が入力される。このとき、マスクレベル比較回路62cの入力端子の一方の値がマスクレベル比較回路62cの入力端子の他方の値以下であるので、マスクレベル比較回路62cの出力端子からは「1」が出力され、その値がNOT回路63cに入力される。そして、AND回路64cの入力端子の一方には、「0(ゼロ)」が入力される。   On the other hand, when the SDRAM busy signal is output from the busy timing adjustment circuit 40 and the value of the SDRAM busy signal is “10”, “10” is input to the other input terminal of the mask level comparison circuit 62c. . On the other hand, the value “10” stored in the mask register 61 is input to one of the input terminals of the mask level comparison circuit 62 c. At this time, since one value of the input terminal of the mask level comparison circuit 62c is less than or equal to the other value of the input terminal of the mask level comparison circuit 62c, “1” is output from the output terminal of the mask level comparison circuit 62c. The value is input to the NOT circuit 63c. Then, “0 (zero)” is input to one of the input terminals of the AND circuit 64c.

よって、AND回路64cの入力端子の他方には、SDRAM使用要求信号が入力されており、入力端子の他方が「1」であったとしても、AND回路64cの出力端子からは「0(ゼロ)」が出力される。即ち、AND回路64cの出力端子からはSDRAM使用要求信号が出力されずAND回路64cの入力端子の他方に入力されたSDRAM使用要求信号はマスクされる。従って、ビジータイミング調整回路40からSDRAMビジー信号が出力され、そのSDRAMビジー信号の値が「10」の場合には、AND回路64cの入力端子の他方に入力されたSDRAM使用要求信号はSDRAMアクセス調停回路38へ出力されない。   Therefore, the SDRAM use request signal is input to the other input terminal of the AND circuit 64c, and even if the other input terminal is “1”, the output terminal of the AND circuit 64c outputs “0 (zero)”. Is output. That is, the SDRAM use request signal is not output from the output terminal of the AND circuit 64c, and the SDRAM use request signal input to the other input terminal of the AND circuit 64c is masked. Therefore, when the SDRAM busy signal is output from the busy timing adjustment circuit 40 and the value of the SDRAM busy signal is “10”, the SDRAM use request signal input to the other input terminal of the AND circuit 64c is the SDRAM access arbitration. It is not output to the circuit 38.

最後に、記録制御回路35からからSDRAM使用要求信号が出力された場合の動作について説明する。記録制御回路35から出力されるSDRAM使用要求信号は、ビジータイミング調整回路40からSDRAMビジー信号が出力されていても、SDRAMビジー信号が出力されていなくても、SDRAMアクセス要求マスク回路37によってマスクされることはない。この理由について説明する。マスクレベル比較回路62eの入力端子の一方には、マスクレジスタ61に記憶された値「11」が入力される。すると、ビジータイミング調整回路40からSDRAMビジー信号が出力され、マスクレベル比較回路62eの入力端子の他方に「10」または「01」が入力されていても、マスクレベル比較回路62eの入力端子の一方の値がマスクレベル比較回路62bの入力端子の他方の値より大きくなる。また、ビジータイミング調整回路40からSDRAMビジー信号が出力されず、マスクレベル比較回路62eの入力端子の他方に「00」が入力されていても、マスクレベル比較回路62eの入力端子の一方の値がマスクレベル比較回路62eの入力端子の他方の値より大きくなる。よって、マスクレベル比較回路62eの出力端子からは「0(ゼロ)」が出力され、その値がNOT回路63eに入力される。そして、AND回路64eの入力端子の一方には、「1」が入力される。   Finally, the operation when the SDRAM use request signal is output from the recording control circuit 35 will be described. The SDRAM use request signal output from the recording control circuit 35 is masked by the SDRAM access request mask circuit 37 regardless of whether the SDRAM busy signal is output from the busy timing adjustment circuit 40 or not. Never happen. The reason for this will be described. The value “11” stored in the mask register 61 is input to one of the input terminals of the mask level comparison circuit 62 e. Then, an SDRAM busy signal is output from the busy timing adjustment circuit 40, and even if “10” or “01” is input to the other input terminal of the mask level comparison circuit 62e, one of the input terminals of the mask level comparison circuit 62e. Is larger than the other value of the input terminal of the mask level comparison circuit 62b. Even if no SDRAM busy signal is output from the busy timing adjustment circuit 40 and “00” is input to the other input terminal of the mask level comparison circuit 62e, one value of the input terminal of the mask level comparison circuit 62e is It becomes larger than the other value of the input terminal of the mask level comparison circuit 62e. Therefore, “0 (zero)” is output from the output terminal of the mask level comparison circuit 62e, and the value is input to the NOT circuit 63e. Then, “1” is input to one of the input terminals of the AND circuit 64e.

これにより、記録制御回路35からSDRAM使用要求信号が出力され、AND回路64eの入力端子の他方が「1」となると、そのAND回路64eの出力端子は「1」となる。従って、記録制御回路35からSDRAM使用要求信号が出力されると、ビジータイミング調整回路40からSDRAMビジー信号が出力されていても、SDRAMビジー信号が出力されていなくても、そのSDRAM使用要求信号は、SDRAMアクセス要求マスク回路37によってマスクされることはなく、SDRAMアクセス調停回路38へ出力される。   As a result, when the SDRAM use request signal is output from the recording control circuit 35 and the other input terminal of the AND circuit 64e becomes “1”, the output terminal of the AND circuit 64e becomes “1”. Therefore, when the SDRAM use request signal is output from the recording control circuit 35, the SDRAM use request signal is output regardless of whether the SDRAM busy signal is output from the busy timing adjustment circuit 40 or not. The data is not masked by the SDRAM access request mask circuit 37, but is output to the SDRAM access arbitration circuit 38.

このようにして、SDRAMアクセス要求マスク回路60は、各制御回路(バスコントローラ回路31、USB I/F制御回路32、画像処理制御回路33、ユーザI/F制御回路34、記録制御回路35、および読み取り制御回路36)が属する処理グループから出力されたSDRAM使用要求信号のマスクを、ビジータイミング調整回路40から出力されるSDRAMビジー信号の値に応じて切り替えることができる。   In this way, the SDRAM access request mask circuit 60 includes each control circuit (bus controller circuit 31, USB I / F control circuit 32, image processing control circuit 33, user I / F control circuit 34, recording control circuit 35, and The mask of the SDRAM use request signal output from the processing group to which the read control circuit 36) belongs can be switched according to the value of the SDRAM busy signal output from the busy timing adjustment circuit 40.

次に、図10を参照して、SDRAMアクセス頻度検出回路41で実行されるメイン処理について説明する。図10は、SDRAMアクセス頻度検出回路41で実行されるメイン処理を示したフローチャートである。メイン処理は、期間カウンタの値およびSDRAMアクセスカウンタの値を更新すると共に、2bitのアクセス頻度高検出信号の出力判定を行う処理であり、SDRAMアクセス頻度検出回路41の動作が許可されている場合に繰り返し実行される処理である。   Next, the main process executed by the SDRAM access frequency detection circuit 41 will be described with reference to FIG. FIG. 10 is a flowchart showing a main process executed by the SDRAM access frequency detection circuit 41. The main process is a process of updating the value of the period counter and the value of the SDRAM access counter and determining the output of the 2-bit high access frequency detection signal, and when the operation of the SDRAM access frequency detection circuit 41 is permitted. This process is repeatedly executed.

多機能周辺装置の電源がオンされると、CPU30は、SDRAMアクセス頻度検出回路41の初期化処理を行う(S21)。SDRAMアクセス頻度検出回路41の初期化とは、期間設定レジスタ41a1に「3F(16進数)」(図5参照)を設定し、SDRAMアクセス回数閾値レジスタ41a2に第1アクセス回数閾値「20(16進数)」および第2アクセス回数閾値「2F(16進数)」を設定して、動作を許可する状態に設定することである(S21)。その後、期間カウンタの値およびSDRAMアクセスカウンタの値はともに「0(ゼロ)」に初期化される(S22)。   When the power supply of the multifunction peripheral device is turned on, the CPU 30 performs initialization processing of the SDRAM access frequency detection circuit 41 (S21). The initialization of the SDRAM access frequency detection circuit 41 means that “3F (hexadecimal)” (see FIG. 5) is set in the period setting register 41a1, and the first access count threshold “20 (hexadecimal) is set in the SDRAM access count threshold register 41a2. ) ”And the second access frequency threshold value“ 2F (hexadecimal number) ”are set to allow operation (S21). Thereafter, both the value of the period counter and the value of the SDRAM access counter are initialized to “0 (zero)” (S22).

次に、期間カウンタの値は期間設定レジスタ41a1の値と同一かが判定される(S23)。期間カウンタの値が期間設定レジスタ41a1の値と同一でなければ(S23:No)、期間カウンタの値を1カウントアップする(S24)。そして、SDRAMコントローラ回路39からSDRAMアクセス検出信号の入力があるかを判定する(S25)。SDRAMアクセス検出信号の入力があると判定されると(S25:Yes)、SDRAMアクセスカウンタの値を1カウントアップして(S26)、S23の処理へ戻る。一方、S25の処理において、SDRAMアクセス検出信号の入力がないと判定されると(S25:No)、SDRAMアクセスカウンタの値をカウントアップせずにS23の処理へ戻る。   Next, it is determined whether the value of the period counter is the same as the value of the period setting register 41a1 (S23). If the value of the period counter is not the same as the value of the period setting register 41a1 (S23: No), the value of the period counter is incremented by 1 (S24). Then, it is determined whether an SDRAM access detection signal is input from the SDRAM controller circuit 39 (S25). If it is determined that an SDRAM access detection signal is input (S25: Yes), the value of the SDRAM access counter is incremented by 1 (S26), and the process returns to S23. On the other hand, if it is determined in the process of S25 that no SDRAM access detection signal is input (S25: No), the process returns to S23 without incrementing the value of the SDRAM access counter.

S23の処理において、期間カウンタの値が期間設定レジスタ41a1の値と同一であれば(S23:Yes)、SDRAMアクセスカウンタの値はSDRAMアクセス回数閾値レジスタ41a2に記憶された第1アクセス回数閾値の値以下かが判定される(S27)。SDRAMアクセスカウンタの値がSDRAMアクセス回数閾値レジスタ41a2に記憶された第1アクセス回数閾値の値以下であると判定されると(S27:Yes)、アクセス頻度高検出信号を出力しない(S28、アクセス頻度高検出信号は「00」となる)。   In the process of S23, if the value of the period counter is the same as the value of the period setting register 41a1 (S23: Yes), the value of the SDRAM access counter is the value of the first access count threshold value stored in the SDRAM access count threshold register 41a2. The following is determined (S27). If it is determined that the value of the SDRAM access counter is equal to or less than the value of the first access count threshold value stored in the SDRAM access count threshold register 41a2 (S27: Yes), the access frequency high detection signal is not output (S28, access frequency). The high detection signal is “00”).

一方、SDRAMアクセスカウンタの値がSDRAMアクセス回数閾値レジスタ41a2に記憶された第1アクセス回数閾値の値より大きいと判定されると(S27:No)、SDRAMアクセスカウンタの値がSDRAMアクセス回数閾値レジスタ41a2に記憶された第2アクセス回数閾値の値以下かが判定される(S29)。SDRAMアクセスカウンタの値がSDRAMアクセス回数閾値レジスタ41a2に記憶された第2アクセス回数閾値の値以下と判定されると(S29:Yes)、アクセス頻度高検出信号を「01」として出力する(S30)。   On the other hand, if it is determined that the value of the SDRAM access counter is larger than the value of the first access count threshold stored in the SDRAM access count threshold register 41a2 (S27: No), the value of the SDRAM access counter is the SDRAM access count threshold register 41a2. It is determined whether the value is equal to or smaller than the second access count threshold value stored in (S29). When it is determined that the value of the SDRAM access counter is equal to or smaller than the value of the second access frequency threshold value stored in the SDRAM access frequency threshold value register 41a2 (S29: Yes), the high access frequency detection signal is output as “01” (S30). .

一方、SDRAMアクセスカウンタの値がSDRAMアクセス回数閾値レジスタ41a2に記憶された第2アクセス回数閾値の値より大きいと判定されると(S29:No)、アクセス頻度高検出信号を「10」として出力する(S31)。S28、S30、またはS31のいずれかの処理が終了すると、期間カウンタの値およびSDRAMアクセスカウンタの値を共に「0(ゼロ)」に設定し(S32)、S23の処理に戻る。   On the other hand, if it is determined that the value of the SDRAM access counter is larger than the value of the second access count threshold value stored in the SDRAM access count threshold register 41a2 (S29: No), the access frequency high detection signal is output as “10”. (S31). When the process in any of S28, S30, or S31 is completed, both the value of the period counter and the value of the SDRAM access counter are set to “0 (zero)” (S32), and the process returns to S23.

上記の処理により、期間カウンタの値およびSDRAMアクセスカウンタの値を更新すると共に、アクセス頻度高検出信号の出力判定を行う。このようにして、SDRAMアクセス頻度検出回路41は、各制御回路(バスコントローラ回路31、USB I/F制御回路32、画像処理制御回路33、ユーザI/F制御回路34、記録制御回路35、および読み取り制御回路36)からSDRAM13へのアクセスの頻度に応じて、ビジータイミング調整回路40へ出力するアクセス頻度高検出信号を細かく3段階にすることができる。従って、ビジータイミング調整回路40からSDRAMアクセス要求マスク回路37へ出力されるSDRAMビジー信号も、SDRAM13へのアクセスの頻度に応じて、細かく3段階にすることができる。   Through the above processing, the value of the period counter and the value of the SDRAM access counter are updated, and the output determination of the access frequency high detection signal is performed. In this manner, the SDRAM access frequency detection circuit 41 includes each control circuit (bus controller circuit 31, USB I / F control circuit 32, image processing control circuit 33, user I / F control circuit 34, recording control circuit 35, and Depending on the frequency of access from the read control circuit 36) to the SDRAM 13, the high access frequency detection signal output to the busy timing adjustment circuit 40 can be finely divided into three stages. Therefore, the SDRAM busy signal output from the busy timing adjustment circuit 40 to the SDRAM access request mask circuit 37 can be finely divided into three stages according to the frequency of access to the SDRAM 13.

以上、各実施の形態に基づき本発明を説明したが、本発明は上記形態に何ら限定されるものではなく、本発明の趣旨を逸脱しない範囲内で種々の変形改良が可能であることは容易に推察できるものである。   As described above, the present invention has been described based on each embodiment, but the present invention is not limited to the above-described embodiment, and various modifications can be easily made without departing from the gist of the present invention. Can be inferred.

例えば、上記の第2の実施の形態では、SDRAMアクセス要求マスク回路60のマスクレジスタ61は、3段階の値を記憶していた。また、SDRAMアクセス要求マスク回路60にビジータイミング調整回路40から出力されるSDRAMビジー信号も3段階であった。しかし、これに限らず、SDRAMアクセス要求マスク回路60のマスクレジスタ61に、例えば6段階の値を記憶させ、ビジータイミング調整回路40から出力されるSDRAMビジー信号も、例えば6段階としても良い。この場合には、各制御回路(バスコントローラ回路31、USB I/F制御回路32、画像処理制御回路33、ユーザI/F制御回路34、記録制御回路35、および読み取り制御回路36)毎にマスクレジスタ61に記憶される値を異ならせることにより、ビジータイミング調整回路40から出力される6段階のSDRAMビジー信号に応じて、SDRAMアクセス要求マスク回路60によるSDRAM使用要求信号のマスクを細かく6段階で実行することができる。   For example, in the second embodiment described above, the mask register 61 of the SDRAM access request mask circuit 60 stores three levels of values. The SDRAM busy signal output from the busy timing adjustment circuit 40 to the SDRAM access request mask circuit 60 is also in three stages. However, the present invention is not limited to this. For example, six stages of values may be stored in the mask register 61 of the SDRAM access request mask circuit 60, and the SDRAM busy signal output from the busy timing adjustment circuit 40 may be of six stages. In this case, each control circuit (bus controller circuit 31, USB I / F control circuit 32, image processing control circuit 33, user I / F control circuit 34, recording control circuit 35, and reading control circuit 36) is masked. By making the values stored in the register 61 different, the SDRAM access request mask circuit 60 masks the SDRAM use request signal in six steps in accordance with the six steps SDRAM busy signal output from the busy timing adjustment circuit 40. Can be executed.

多機能周辺装置の動作を制御する制御部の電気的構成を示すブロック図である。It is a block diagram which shows the electric constitution of the control part which controls operation | movement of a multifunction peripheral device. ASICの電気的構成を示すブロック図である。It is a block diagram which shows the electrical structure of ASIC. SDRAMアクセス要求マスク回路の電気的構成を示すブロック図である。3 is a block diagram showing an electrical configuration of an SDRAM access request mask circuit. FIG. マスクレジスタに記憶される値の一覧表である。It is a list of values stored in a mask register. 内部クロック信号と、期間カウンタの値と、SDRAMアクセスカウンタの値と、アクセス頻度高検出信号とのタイミングチャートを示した図である。FIG. 5 is a timing chart of an internal clock signal, a period counter value, an SDRAM access counter value, and a high access frequency detection signal. SDRAMアクセス頻度検出回路で実行されるメイン処理を示したフローチャートである。It is the flowchart which showed the main process performed with the SDRAM access frequency detection circuit. 記録制御回路および画像処理制御回路からSDRAM使用要求信号が出力された場合のASIC内で実行される処理のタイミングチャートを示した図である。FIG. 5 is a timing chart of processing executed in an ASIC when an SDRAM use request signal is output from a recording control circuit and an image processing control circuit. 第2の実施の形態におけるSDRAMアクセス要求マスク回路の電気的構成を示している。10 shows an electrical configuration of an SDRAM access request mask circuit in a second embodiment. 第2の実施の形態におけるマスクレジスタに記憶される値の一覧表である。It is a list of values stored in the mask register in the second embodiment. 第2の実施の形態におけるSDRAMアクセス頻度検出回路で実行されるメイン処理を示したフローチャートである。It is the flowchart which showed the main process performed with the SDRAM access frequency detection circuit in 2nd Embodiment.

符号の説明Explanation of symbols

13 SDRAM(記憶手段)
15 バスライン
20 ASIC(通信制御装置)
31 バスコントローラ回路(制御手段)
32 USB I/F制御回路(制御手段)
33 画像処理制御回路(制御手段)
34 ユーザI/F制御回路(制御手段)
35 記録制御回路(制御手段)
36 読み取り制御回路(制御手段)
37 SDRAMアクセス要求マスク回路(要求信号禁止手段)
38 SDRAMアクセス調停回路(バス調停手段、調停実行信号出力手段)
40 ビジータイミング調整回路(アクセス集中信号出力手段の一部、アクセス集中信号段階出力手段の一部、タイミング調整出力手段)
41 SDRAMアクセス頻度検出回路(カウント手段、アクセス頻度算出手段、アクセス集中信号出力手段の一部、アクセス集中信号段階出力手段の一部)
50 マスクレジスタ(入力禁止設定手段)
61 マスクレジスタ(入力禁止設定手段、順位段階設定手段)
62a〜62f マスクレベル比較回路(比較手段)
13 SDRAM (memory means)
15 Bus line 20 ASIC (communication control device)
31 Bus controller circuit (control means)
32 USB I / F control circuit (control means)
33 Image processing control circuit (control means)
34 User I / F control circuit (control means)
35 Recording control circuit (control means)
36 Reading control circuit (control means)
37 SDRAM access request mask circuit (request signal prohibition means)
38 SDRAM access arbitration circuit (bus arbitration means, arbitration execution signal output means)
40 Busy timing adjustment circuit (part of access concentrated signal output means, part of access concentrated signal stage output means, timing adjustment output means)
41 SDRAM access frequency detection circuit (count means, access frequency calculation means, part of access concentration signal output means, part of access concentration signal stage output means)
50 Mask register (input prohibition setting means)
61 Mask register (input prohibition setting means, rank stage setting means)
62a to 62f Mask level comparison circuit (comparison means)

Claims (4)

書き込み又は読み出しが可能な記憶手段と、
その記憶手段に書き込む情報またはその記憶手段から読み出す情報を伝送するバスラインと、
前記記憶手段にアクセスするために、そのバスラインを占有するためのバス使用要求信号を出力する複数の制御手段と、
その複数の制御手段から出力されるバス使用要求信号が複数同時に入力された場合に、その複数同時に入力されたバス使用要求信号を予め設定された優先度に基づいて前記バスラインを占有して前記記憶手段にアクセスさせる許可を前記バス使用要求信号を出力した複数の制御手段のうち1つの制御手段に付与するバス調停手段とを備え、
そのバス調停手段から前記許可が付与された1つの制御手段が、前記バスラインを占有して前記記憶手段にアクセスし、その記憶手段に書き込む情報またはその記憶手段から読み出す情報を入出力する通信制御装置であって、
前記複数の制御手段から前記記憶手段へのアクセス回数をカウントするカウント手段と、
そのカウント手段によりカウントされた前記アクセス回数を検出し、所定時間内における前記記憶手段へのアクセス頻度を算出するアクセス頻度算出手段と、
そのアクセス頻度算出手段が算出したアクセス頻度に応じて前記記憶手段へのアクセスが集中していることを示すアクセス集中信号を出力するアクセス集中信号出力手段と、
そのアクセス集中信号出力手段によりアクセス集中信号が出力された場合に、前記複数の制御手段のうち特定の制御手段から出力されるバス使用要求信号の前記バス調停手段への入力を禁止する要求信号禁止手段とを備えていることを特徴とする通信制御装置。
Storage means capable of writing or reading; and
A bus line for transmitting information to be written to the storage means or information to be read from the storage means;
A plurality of control means for outputting a bus use request signal for occupying the bus line in order to access the storage means;
When a plurality of bus use request signals outputted from the plurality of control means are inputted simultaneously, the bus use request signals inputted simultaneously are occupied by occupying the bus line based on a preset priority. A bus arbitration unit that grants permission to access the storage unit to one of the plurality of control units that output the bus use request signal;
One control means to which the permission is given from the bus arbitration means occupies the bus line, accesses the storage means, and inputs and outputs information written to the storage means or information read from the storage means A device,
Counting means for counting the number of accesses to the storage means from the plurality of control means;
An access frequency calculating means for detecting the number of accesses counted by the counting means and calculating an access frequency to the storage means within a predetermined time;
An access concentration signal output means for outputting an access concentration signal indicating that access to the storage means is concentrated according to the access frequency calculated by the access frequency calculation means;
Request signal prohibition for prohibiting input of a bus use request signal output from a specific control means among the plurality of control means to the bus arbitration means when an access concentration signal is output by the access concentration signal output means And a communication control device.
前記要求信号禁止手段は、
前記アクセス集中信号出力手段からアクセス集中信号が出力されている場合に、前記複数の制御手段から出力されるバス使用要求信号のうち前記バス調停手段への入力を禁止する特定の制御手段を設定可能な入力禁止設定手段を備えていることを特徴とする請求項1記載の通信制御装置。
The request signal prohibiting means includes
When an access concentration signal is output from the access concentration signal output means, it is possible to set a specific control means that prohibits input to the bus arbitration means from among the bus use request signals output from the plurality of control means 2. The communication control apparatus according to claim 1, further comprising an input prohibition setting unit.
前記アクセス集中信号出力手段は、
前記記憶手段へのアクセスが集中していることを示すアクセス集中信号を前記アクセス頻度算出手段が算出したアクセス頻度に応じて複数段階のアクセス集中信号として出力するアクセス集中信号段階出力手段を備えており、
前記入力禁止設定手段は、
前記複数の制御手段を複数の処理グループに分けると共に、前記バスラインを占有して前記記憶手段にアクセスさせる順位を前記複数の処理グループ毎に複数段階に設定する順位段階設定手段を備えており、
前記要求信号禁止手段は、
前記アクセス集中信号段階出力手段から出力されたアクセス集中信号の段階と前記順位段階設定手段により設定された前記複数の制御手段が属する処理グループの順位の段階とを比較する比較手段を備え、
その比較手段による比較結果に応じて、前記複数の制御手段のうち特定の処理グループに属する制御手段から出力されるバス使用要求信号の前記バス調停手段への入力を禁止するように構成されていることを特徴とする請求項2記載の通信制御装置。
The access concentration signal output means includes:
Access concentration signal stage output means for outputting an access concentration signal indicating that access to the storage means is concentrated as a plurality of stages of access concentration signals according to the access frequency calculated by the access frequency calculation means. ,
The input prohibition setting means includes
The control means is divided into a plurality of processing groups, and has a rank level setting means for setting the ranks for occupying the bus line and accessing the storage means in a plurality of stages for each of the plurality of processing groups,
The request signal prohibiting means includes
Comparing means for comparing the stage of the access concentration signal output from the access concentration signal stage output means and the stage of the processing group to which the plurality of control means set by the order stage setting means belong,
According to the comparison result by the comparison means, the bus use request signal output from the control means belonging to a specific processing group among the plurality of control means is prohibited from being input to the bus arbitration means. The communication control apparatus according to claim 2.
前記バス調停手段は、
前記複数の制御手段への前記許可の調停が実行可能な状態を示す調停実行信号を出力する調停実行信号出力手段を備えており、
その調停実行信号出力手段から調停実行信号が出力されている場合に、前記アクセス集中信号出力手段から出力されたアクセス集中信号を前記要求信号禁止手段に出力するタイミング調整出力手段を備えていることを特徴とする請求項1から3のいずれかに記載の通信制御装置。
The bus arbitration means is
An arbitration execution signal output means for outputting an arbitration execution signal indicating a state in which the permission arbitration to the plurality of control means can be executed;
Timing adjustment output means for outputting the access concentration signal output from the access concentration signal output means to the request signal prohibition means when the arbitration execution signal is output from the arbitration execution signal output means; The communication control device according to any one of claims 1 to 3, wherein
JP2006355260A 2006-12-28 2006-12-28 Communication control device Pending JP2008165547A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006355260A JP2008165547A (en) 2006-12-28 2006-12-28 Communication control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006355260A JP2008165547A (en) 2006-12-28 2006-12-28 Communication control device

Publications (1)

Publication Number Publication Date
JP2008165547A true JP2008165547A (en) 2008-07-17

Family

ID=39694949

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006355260A Pending JP2008165547A (en) 2006-12-28 2006-12-28 Communication control device

Country Status (1)

Country Link
JP (1) JP2008165547A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012043375A (en) * 2010-08-23 2012-03-01 Ricoh Co Ltd Data transfer device, data transfer method and program, and image forming device
JP2021140789A (en) * 2020-03-06 2021-09-16 インフィニオン テクノロジーズ アクチエンゲゼルシャフトInfineon Technologies AG Distribution of interconnect bandwidth among master agents

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012043375A (en) * 2010-08-23 2012-03-01 Ricoh Co Ltd Data transfer device, data transfer method and program, and image forming device
US8838862B2 (en) 2010-08-23 2014-09-16 Ricoh Company, Limited Data transfer device, method of transferring data, and image forming apparatus
JP2021140789A (en) * 2020-03-06 2021-09-16 インフィニオン テクノロジーズ アクチエンゲゼルシャフトInfineon Technologies AG Distribution of interconnect bandwidth among master agents

Similar Documents

Publication Publication Date Title
US8345285B2 (en) Displaying jobs in priority order with elapsed time on information processing apparatus
US9076102B2 (en) Image forming apparatus, host apparatus, image forming system having the same, and method of controlling power thereof
US20100293403A1 (en) Data processing apparatus, image processing apparatus, and method of processing data
US20080216155A1 (en) Image forming apparatus
US20070165255A1 (en) Image forming device
US20160226855A1 (en) Image forming system having user authentication function, image forming apparatus, method of controlling image forming system, and storage medium
JP6638669B2 (en) Display device and image forming device
JP2008165547A (en) Communication control device
JP2012065306A (en) Image processing system, image processing method, image processing program, and recording medium
JP3042668B2 (en) Information communication equipment
JPH09305524A (en) Multi-function peripheral
JP2015055929A (en) Image forming apparatus and operation control program
JP4572927B2 (en) Information processing apparatus and user authentication program
JP3339782B2 (en) Multi-function peripheral
US9197782B2 (en) Image processing device and image processing method
JP6589833B2 (en) Display input device and image forming apparatus having the same
JP2010098426A (en) Controller, image forming apparatus, and program
JP4697264B2 (en) Image forming apparatus, print job output method executed in image forming apparatus, print job output program, and image forming system
JP2013250296A (en) Image forming apparatus
JP5417895B2 (en) Interrupt control device and image forming apparatus
JP4093269B2 (en) Image reading apparatus connected to communication network
JP2005352666A (en) Dma controller and dma control method
JP2006191473A (en) Multifunction machine and printing method in multifunction machine
JP6674638B2 (en) Image forming device
JP2004345302A (en) Image formation device, printing condition reset method, printing condition reset program, and storage method storing the program