WO2008007419A1 - Memory controller - Google Patents

Memory controller Download PDF

Info

Publication number
WO2008007419A1
WO2008007419A1 PCT/JP2006/313688 JP2006313688W WO2008007419A1 WO 2008007419 A1 WO2008007419 A1 WO 2008007419A1 JP 2006313688 W JP2006313688 W JP 2006313688W WO 2008007419 A1 WO2008007419 A1 WO 2008007419A1
Authority
WO
WIPO (PCT)
Prior art keywords
image processing
image data
image
memory
memory controller
Prior art date
Application number
PCT/JP2006/313688
Other languages
French (fr)
Japanese (ja)
Inventor
Atsushi Yamada
Yasutsugu Nagusa
Original Assignee
Fujitsu Microelectronics Limited
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 Fujitsu Microelectronics Limited filed Critical Fujitsu Microelectronics Limited
Priority to PCT/JP2006/313688 priority Critical patent/WO2008007419A1/en
Publication of WO2008007419A1 publication Critical patent/WO2008007419A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1605Handling requests for interconnection or transfer for access to memory bus based on arbitration
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/39Control of the bit-mapped memory
    • G09G5/393Arrangements for updating the contents of the bit-mapped memory
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2360/00Aspects of the architecture of display systems
    • G09G2360/12Frame memory handling
    • G09G2360/126The frame memory having additional data ports, not inclusive of standard details of the output serial port of a VRAM
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2360/00Aspects of the architecture of display systems
    • G09G2360/12Frame memory handling
    • G09G2360/128Frame memory using a Synchronous Dynamic RAM [SDRAM]

Definitions

  • the present invention relates to a memory controller for controlling memory access.
  • a memory controller is arranged between a system bus and a memory, and accesses the memory in response to an access request output from a master controller such as a CPU.
  • an image processing controller that performs image processing is connected to the system bus and operates as a master controller.
  • the image is rotated by converting the coordinates of the image data to which the address is assigned (see, for example, Patent Document 1).
  • the image data transferred from the imaging unit is written in the memory.
  • the image data is read from the memory by the image processing controller, and image processing is performed.
  • the image processing controller writes the image processed image data in the memory.
  • Patent Document 1 Japanese Patent Laid-Open No. 6-40093
  • the image processing controller reads and writes image data using the system bus. For this reason, when image processing is performed, the usage rate of the system bus increases. Also, the CPU cannot use the system bus while image data is being transferred to the system bus. As a result, system performance is degraded.
  • An object of the present invention is to prevent the usage rate of a system bus from being lowered when a memory is accessed during image processing.
  • the access control unit is connected via a system bus.
  • the internal access request for accessing the memory is output to the memory according to the received access request.
  • the image processing unit performs image processing on image data supplied via the system bus.
  • the writing image selection unit selects either the processed image data processed by the image processing unit or the image data supplied via the system bus according to the writing selection instruction, and outputs the selected data to the memory. To do.
  • the processed image data processed by the image processing unit can be written to the memory without going through the system bus.
  • the read image selection unit outputs image data read from the memory to either the image processing unit or the system bus according to the read selection instruction.
  • the image processing unit performs image processing on the image data supplied via the read image selection unit, and outputs the processed image data subjected to the image processing to the system bus. Since the image processed image data is read out simply by accessing the memory, the controller accessing the memory can access the memory as if it were held in the image processed image data S memory. . It is not necessary to perform image processing by an image processing controller after image data has been read out to the system bus. For this reason, it is possible to prevent the system bus usage rate from decreasing.
  • the image processing control unit operates in response to an internal processing request supplied via the system bus, reads image data from the memory, and reads the read image data. Write to memory.
  • the image processing control unit supplies the image data read from the memory to the image processing unit, and writes the processed image data processed by the image processing unit to the memory.
  • the system bus usage rate can be prevented from decreasing.
  • FIG. 1 is a block diagram showing a first embodiment of the present invention.
  • FIG. 2 is a block diagram showing a bus matrix of the system shown in FIG.
  • FIG. 3 is a block diagram showing a comparative example of the present invention.
  • FIG. 4 is a block diagram showing a bus matrix of the system shown in FIG.
  • FIG. 5 is a block diagram showing a second embodiment of the present invention.
  • FIG. 6 is a block diagram showing a third embodiment of the present invention.
  • FIG. 7 is a block diagram showing a fourth embodiment of the present invention.
  • FIG. 8 is a block diagram showing a fifth embodiment of the present invention.
  • FIG. 9 is a block diagram showing a sixth embodiment of the present invention.
  • FIG. 10 is a block diagram showing a seventh embodiment of the present invention.
  • FIG. 11 is a block diagram showing an eighth embodiment of the present invention.
  • FIG. 1 shows a first embodiment of the memory controller of the present invention.
  • the memory controller MCNT is installed in a system SYS (electronic equipment) such as a digital camera.
  • SYS electronic equipment
  • the system S YS includes the memory MEM accessed by the memory controller MCNT, the CPU, DMAC, camera interface unit CAMIF, display interface unit DISPIF and arbiter ARB connected to the system bus SYSB together with the memory controller MCNT, and the display interface unit DISPIF.
  • a display DISP connected to the camera, and a camera unit CAM connected to the camera interface unit CAMIF.
  • the memory controller MCNT, CPU, DMAC, camera interface unit C AMIF, and arbiter ARB are configured as one chip as a system LSI.
  • the memory MEM is, for example, an SDRAM chip, and stores image data taken by the camera unit CAM and CPU work data.
  • the memory MEM may store programs executed by the CPU in the memory MEM! /.
  • Display interface unit DISPI F is, for example, a liquid crystal display controller.
  • Display DISP is, for example, a liquid crystal display.
  • the system LSI and memory MEM are mounted on the system board.
  • the camera unit CAM and display DISP are connected to the system bus SYSB via connectors attached to the system board.
  • the memory controller MCNT accesses the memory MEM in response to an access request from the bus master (CPU, DMAC, DISPIF and CAMIF).
  • the CPU controls the operation of the system SYS and always operates as a master controller.
  • DMAC, DISPIF, and CAMIF operate as a master controller when accessing the memory MEM, and operate as a slave controller when accessing the CPU.
  • the camera interface unit CAMIF receives camera unit CAM force image data having an image sensor such as a CCD.
  • the arbiter ARB determines the use order (priority order) of the system node SYSB when requests output from the CPU, DMAC, DISPIF, and CAMIF compete to use the system bus SYSB.
  • the CPU, DMAC, DISPIF, and CAMIF that operate as the master controller use the master port MP to input and output signals.
  • DMAC, DISPIF, and CAMIF that operate as slave controllers use the slave port SP to input and output signals.
  • the memory controller MCNT has an image selection unit IMGSEL, an access control unit ACSCNT, an image processing unit IMGPU, an image register IMGREG, and a first port P1 and a second port P2 connected to the system bus SYSB. .
  • the first and second ports P1-2 function as slave ports.
  • the first port P1 is an input-only port having an input buffer
  • the second port is an input / output port having an input buffer and an output buffer.
  • a symbol (W) indicated on the signal line in the figure indicates that write data to the memory MEM is transferred.
  • the symbol) indicates that the read data from the memory MEM is transferred.
  • the sign (RZW) indicates that the write data to the memory MEM and the read data of the memory MEM force are transferred.
  • the first port P1 is, for example, an image output from the camera interface unit CAMIF.
  • the data is received via the system bus SYSB, and the received image data is output to the image processing unit IMGPU via the data line DT1, the address line AD 1, and the command line CMD 1.
  • the second port P2 receives the address AD2 and command CMD2 for accessing the memory MEM and the data DT2 to be written to the memory MEM via the system bus SYSB, and outputs the data DT2 read from the memory MEM to the system bus SYSB.
  • the data DT2 is one of image data output from the camera interface unit CAMIF, image data accessed by the CPU or DMAC for display on the display DISP, and work data used by the CPU. is there.
  • the data DT2 may be program data.
  • the input terminals of the ports P1-2 that receive image data are connected to system data lines that are wired independently of each other as the system bus SYSB.
  • CPU, DMAC, DISPIF, and CAMIF output image data to the system data line connected to port P1 when image processing is performed by the image processing unit IMGPU.
  • the CPU, DMAC, DISPIF, and CAMIF when writing image data to the memory MEM without image processing, output the image data to the system data line connected to the port P2.
  • the access control unit ACSCNT is an access request supplied via the system bus SYSB.
  • the access control unit ACSCNT has a function to hold a plurality of access requests. Even when a large number of access requests are received in a short period of time, the internal address IAD and the internal command are optimized for the memory MEM. Generate ICMD.
  • the access control unit ACSCNT includes a circuit that generates a refresh request for causing the memory MEM to perform a refresh operation, and an arbiter that determines the priority order of the access request and the refresh request.
  • the access control unit ACSCNT writes the synchronization signal SYNC and selects the image to output the image data IDT output from the write image selection unit WINGSEL, which will be described later, to the memory MEM together with the internal access request (IAD, ICMD). Output to WINGSEL.
  • the image processing unit IMGPU performs different types of image processing using the image data DT1.
  • a plurality of image processing circuits are provided.
  • the image processing unit IMGPU includes a rotation processing circuit ROT that rotates the image data DT1, a mirror processing circuit MIR that mirrors the image data DTI, a resizing processing circuit RES that changes the size of the image data DTI, and
  • a data conversion circuit CNV that converts the data format of image data DT1 is built in as an image processing circuit.
  • the data conversion circuit CNV converts RGB data into YUV data, or converts some YUV data into YUV data in another format.
  • the processed image data PDT processed by the image processing unit IMGPU is supplied to the image selection unit IMGSEL.
  • Image processing circuit for performing image processing Processing selection instructions for selecting ROT, MIR, RES, and CNV, and parameters necessary for each image processing are set in the image processing area of the image register IMGREG.
  • the value of the image processing area is set by writing and accessing the image processing area by the CPU using the second port P2.
  • the image register IMGREG functions as a processing selection unit that selects one of the image processing circuits ROT, MIR, RES, and CNV in accordance with an image processing instruction supplied by the CPU power via the system bus SYSB. To do.
  • the image selection unit IMGSEL has a writing image selection unit WIMGSEL.
  • the write image selection unit WIMGSEL sets either the processed image data PDT processed by the image processing unit IMGPU or the image data DT2 supplied via the system bus SYSB in the selected area of the image register IMGREG. Select according to the selected value (write selection instruction).
  • the write image selection unit WIMGSEL has a holding circuit that temporarily holds the selected image data, and outputs the held image data to the memory MEM via the internal data line IDT in synchronization with the synchronization signal SYNC. To do.
  • the selection value set in the selection area of the image register IMGREG is set by writing and accessing the selection area by the CPU using the second port P2.
  • the access control unit ACSCNT selects one of the access requests AD2 and CMD2 from the second port P2 or the access request AD1-1 and CMD1-1 from the image processing unit IMGPU, and the internal access request IAD and ICMD. And the synchronization signal SYNC is output in synchronization with the internal access request IAD and ICMD output.
  • Memory MEM force The read image data and work data are output from the second port P2 to the system bus SYSB via the data line with the internal data line ID T and the sign (R). By directly transferring the read data to the second port P2 bypassing the image selection unit IMGSEL, the CPU, DMAC, DISPIF and CAMIF can read the data with the same memory access as the conventional read access.
  • FIG. 2 shows a bus matrix of the system SYS shown in FIG.
  • the CPU, DMAC, DISPIF, and CAMIF can operate as the master controller MST
  • the DISPIF, DMAC, CAMIF, and memory controller MCNT can operate as the slave controller SLV. Since the memory controller MCNT has two ports P1 -2, it is recognized as two slave controllers SLV. For this reason, the arbiter ARB has only to manage the connection between the four master controllers MST and the five slave controllers SLV.
  • the memory controller MCNT described above operates as follows. For example, when storing the image data captured by the camera cut CAM in the memory MEM without image processing, the camera interface unit CAMIF sends the image data, the write command CMD2 and the write address AD2 to the second port P2. Output.
  • the write image selection unit WIMGS EL selects the data line DT2 in advance by setting the image register IMGREG.
  • the access control unit ACSCNT outputs the internal write command ICMD, the internal write address IAD, and the synchronization signal SYNC in synchronization with the reception of the write command CMD2 and the write address AD2.
  • the write image selection unit WIMGSEL outputs the image data received from the data line DT2 to the data line IDT in synchronization with the synchronization signal SYN C. As a result, the image data is written to the memory MEM in synchronization with the write command CMD.
  • the DMAC When displaying the image data held in the memory MEM on the display DISP, for example, the DMAC outputs the read command CMD2 and the read address AD2 to the second port P2.
  • the access control unit ACSCNT outputs the internal read command ICMD and the internal read address IAD in synchronization with the reception of the read command CMD2 and the read address AD2. In the read operation cycle, the synchronization signal SYNC is not output. Yes.
  • the image data is also read from the memory MEM and output to the system bus SYSB via the data lines IDT and DT2.
  • the DMAC receives image data via the system bus SYSB and outputs the received data to the display DISP. The image is then displayed on the display DISP.
  • DISPIF outputs the read command CMD2 and read address AD2 to the second port P2.
  • the access control unit ACSCNT outputs the internal read command ICMD and the internal read address IAD in synchronization with the reception of the read command CMD2 and the read address AD2.
  • the synchronization signal SYNC is not output.
  • Image data is read out from the memory MEM and output to the system bus SYSB via the data lines IDT and DT2.
  • DISPIF receives image data via system node SYSB and outputs the received data to display DISP. The image is then displayed on the display DISP.
  • the camera interface unit CAMIF receives the image data DT1, the write command CMD1, and the write address AD1 in the first port P1. Output to.
  • the write image selection unit WIMGSEL selects the data line PDT in advance by setting the image register IMGREG.
  • the rotation processing circuit ROT selected by the image register IMGREG processes the image data so that the image is rotated by a predetermined angle, the processed image data is the data line PDT, and the converted address is the address line AD1. — 1, Output command to command line CMD1—1.
  • the time required for image rotation is T1.
  • the access control unit ACSCNT selects one of the address AD1-1, command CMD1-1 output from the image processing unit IMGPU, the address AD2, command CMD2 from the second port P2, and the internal write command. Outputs ICMD, internal write address IAD, and sync signal S YNC.
  • the original image data is not written to the memory MEM. By writing only the image data after image processing into the memory MEM, the area for storing the image data in the memory MEM can be reduced.
  • a dedicated port P11S memory controller MCNT that receives image data for performing image processing is formed.
  • Data line DT2 is directly connected to MEM via data line ID T.
  • the CPU is an image processing circuit.
  • image processing by ROT, MIR, RES, and CNV data or other image data can also be read from memory MEM using port P2.
  • FIG. 3 shows a comparative example of the present invention.
  • the four image processing circuits ROT, MIR, RES, and CNV (macro) force shown in FIG. 1 are connected to the system bus SYSB.
  • the memory controller MCNT has only the function of accessing the memory MEM and does not include the image processing circuits ROT, MIR, RES, and CNV. For this reason, the memory controller MCNT has only one slave port SP.
  • Each image processing circuit ROT, MIR, RES, CNV has a master port MP and a slave port SP.
  • the camera interface unit CAMIF first stores the image data in the memory. Write to MEM.
  • the rotation processing circuit ROT reads the image data written in the memory MEM, performs rotation processing, and writes the image data subjected to the rotation processing to the memory MEM. For this reason, image data appears three times on the system bus SYSB for each image process.
  • the frequency of image data appearing on the system bus SYSB is one third that of the system SYS shown in FIG.
  • FIG. 4 shows a bus matrix of the system SYS shown in FIG.
  • the image processing circuits ROT, MIR, RES, and CNV can operate as a master controller MST and a slave controller SLV.
  • the memory controller MCNT operates as a slave controller SLV.
  • the arbiter ARB must manage the connection between the eight master controllers MST and the eight slave controllers SLV. Therefore, the circuit scale of the arbiter A RB increases as compared to FIG. In other words, in the present invention, the circuit scale of the arbiter ARB can be reduced, and the system cost can be reduced.
  • the image data appears only once on the system bus SYSB. Therefore, when the memory MEM is accessed along with image processing, it is possible to prevent the usage rate of the system bus SYSB from being lowered, and the performance of the system SYS can be improved.
  • FIG. 5 shows a second embodiment of the memory controller of the present invention.
  • the memory controller MCNT of this embodiment has a common port PC instead of the port P1-2 in the first embodiment.
  • the common port PC is an input / output port with input and output buffers.
  • the input of the image processing unit IMGPU is connected to the common data line DT.
  • Other configurations are the same as those of the first embodiment. That is, the system SYS is an electronic device such as a digital camera, for example.
  • image data regardless of whether or not the image processing is performed is supplied to the common data line DT via the common port PC.
  • the write image selection unit WIMGS EL selects the data line PDT when image processing is performed, and selects the data line DT when image processing is not performed. For this reason, even when image data to be subjected to image processing is supplied to the common port PC, it is possible to prevent erroneous writing to the image data memory MEM. Only system data lines connected to the common port PC are formed on the system bus SYSB. For this reason, it is not necessary to form a dedicated data line for transferring image data for performing image processing in the system node SYSB.
  • the common data line DT is directly connected to the memory MEM via the data line IDT. For this reason, as in the first embodiment, for example, the CPU reads data or another image data using the port P2 during the image processing by the image processing circuits ROT, MIR, RES, and CNV. be able to.
  • the size of the memory controller MCNT can be reduced by forming the common port PC in the memory controller MCNT. It is also possible to prevent an increase in the number of system data lines wired to the system bus SYSB. Therefore, an increase in system cost can be prevented.
  • FIG. 6 shows a third embodiment of the memory controller of the present invention.
  • the memory controller MCNT is configured by adding an image processing control unit IMGCNT to the memory controller MCNT of the first embodiment.
  • the memory controller MCNT of this embodiment has a function of writing back image data read from the memory MEM to the memory MEM and a function of processing the read image data of the memory MEM and writing it back to the memory MEM.
  • the image processing control unit IM GCNT operates in response to an internal processing request (CMD 2, AD2) supplied to the port P2 via the system bus SYSB, and the memory MEM power is also imaged via the internal data line IDT.
  • the address line AD2, command line CMD2, and data line DT2 connected to the image processing control unit IMGCNT are used to access the setting unit of the image processing control unit IMGCNT and start the image processing control unit IMGCNT. Wired.
  • Image processing control unit The IMGCNT setting unit includes a register for setting the read area of the memory MEM, a register for selecting the image processing circuits ROT, MIR, RES, and CNV for image processing, and image processing for image processing.
  • the image processing control unit IMGCNT When the value set in the image register IMGREG indicates image processing, the image processing control unit IMGCNT writes the image data read from the memory MEM to the memory MEM. As described above, the image processing control unit IMGCNT has a function of performing read access and write access to the memory MEM. When accessing the memory MEM, the image processing control unit IMGCNT directly outputs an access command and an access address to the internal command line ICMD and the internal address line IAD. By making the area for writing image data (write address) different from the area for reading image data (read address), a copy function from memory MEM to memory MEM can be realized. That is, the image processing control unit IM GCNT operates as a DMAC built in the memory controller MCNT.
  • the image processing control unit IMGCNT supplies the read image data to the image processing unit IMGPU via the processing data line IMGDT, and Processing unit Writes processed image data processed by IMGPU to memory MEM.
  • the same effect as in the first embodiment described above can be obtained.
  • FIG. 7 shows a fourth embodiment of the memory controller of the present invention.
  • the same elements as those described in the first, second, and third embodiments are denoted by the same reference numerals, and detailed description thereof will be omitted.
  • the memory controller MCNT of this embodiment has a common port PC instead of the port P1-2 in the third embodiment (FIG. 6). That is, the memory controller MCNT is configured by combining the second and third embodiments. Other configurations are the same as those of the third embodiment.
  • the system SYS is an electronic device such as a digital camera.
  • the same effects as those of the first, second, and third embodiments described above can be obtained.
  • FIG. 8 shows a fifth embodiment of the memory controller of the present invention.
  • the same elements as those described in the first embodiment are denoted by the same reference numerals, and detailed description thereof will be omitted.
  • an image selection unit IMGSEL2 is formed instead of the image selection unit I MGSEL of the first embodiment (FIG. 1).
  • the first port P1 is formed as an input / output port.
  • the image processing unit IMGPU performs image processing on the image data supplied via the first port P1, outputs the processed image data to the data line PDT, and a memory via the internal data line IDT and the image selection unit IMGSEL. It has a function to perform image processing on the image data supplied from the MEM and output the processed image data to the system bus SYSB via the data line DT1.
  • Other configurations are the same as those in the first embodiment. That is, the system SYS is an electronic device such as a digital camera.
  • the image selection unit IMGSEL2 includes a read image selection unit RIMGSEL and a write image selection unit WIMGSEL of the first embodiment.
  • the read image selection unit RIMGSEL reads the image data to be read from the memory MEM via the internal data line IDT according to the selection value (read selection instruction) set in the selection area of the image register IMGREG. Or, output the data line DT2! Read from memory MEM
  • the processed image data is output to the image processing unit IMGPU when image processing is performed, and is output to the data line DT2 when image processing is not performed.
  • the sync signal SYNC is used only for the write image selection unit WIMGSEL.
  • the image register IMGREG is accessed using the second port P2 as in the first embodiment.
  • a master controller such as a CPU can read out image data that has undergone image processing only by accessing the memory MEM. For this reason, the master controller can access the memory MEM as a result of the image data subjected to image processing being held in the memory MEM. It is not necessary to perform image processing after the image data is read to the system bus SYSB. For this reason, it is possible to prevent the usage rate of the system bus SYSB from being lowered and to prevent the system performance from being lowered.
  • FIG. 9 shows a sixth embodiment of the memory controller of the present invention.
  • the same elements as those described in the first, second, and fifth embodiments are denoted by the same reference numerals, and detailed description thereof will be omitted.
  • the memory controller MCNT of this embodiment has a common port PC instead of the port P1-2 in the fifth embodiment (FIG. 8). That is, the memory controller MCNT is configured by combining the second and fifth embodiments. Other configurations are the same as those of the fifth embodiment.
  • the system SYS is an electronic device such as a digital camera. In the sixth embodiment, the same effects as those of the first, second, and fifth embodiments described above can be obtained.
  • FIG. 10 shows a seventh embodiment of the memory controller of the present invention.
  • the memory controller MCNT is configured by adding the image processing control unit IMGCNT of the third embodiment (FIG. 6) to the memory controller MCNT of the fifth embodiment (FIG. 8).
  • Other configurations are the same as those of the fifth embodiment.
  • the system SYS is an electronic device such as a digital camera.
  • FIG. 11 shows an eighth embodiment of the memory controller of the present invention. 1st, 2nd, 2nd
  • the same elements as those described in the third and fifth embodiments are denoted by the same reference numerals, and detailed description thereof will be omitted.
  • the memory controller MCNT of this embodiment has a common port PC instead of the port P1-2 in the seventh embodiment (FIG. 10). That is, the memory controller MCNT is configured by combining the second and seventh embodiments. Other configurations are the same as those of the seventh embodiment.
  • the system SYS is an electronic device such as a digital camera, for example.
  • the same effects as those of the first, second, third, and fifth embodiments described above can be obtained.
  • a system data line common to ports P1-2 may be formed on the system bus SYSB.
  • a register indicating which image data is supplied to the port P1-2 is formed in the memory controller MCNT.
  • the input buffer that is formed at port P1-2 and receives the image data permits data reception according to the register setting value.
  • a system data line common to the port P1-2 may be formed on the system bus SYSB.
  • the access control unit ACSCNT outputs the synchronization signal SYNC after the image processing time recognized in advance, and the image selection unit IMGSEL performs image synchronization in synchronization with the synchronization signal SYNC.
  • An example of outputting data to the memory MEM was described.
  • the present invention is not limited to such embodiments.
  • the image selection unit IMGSEL outputs a completion signal to the access control unit ACSCNT in synchronization with the completion of the image processing, and the access control unit ACSCNT outputs the internal access requests IAD and ICMD in response to the completion signal. Good.
  • the access control unit ACSCNT outputs the synchronization signal SYNC in response to the completion signal.
  • the present invention is applied to a memory controller mounted on a digital camera.
  • the invention is not limited to the powerful embodiments.
  • the present invention may be applied to a memory controller mounted on a mobile phone having a camera function or a memory controller mounted on a video camera.
  • the example in which the present invention is applied to a memory controller that accesses SDRAM is described.
  • the invention is not limited to the powerful embodiments.
  • the present invention may be applied to a volatile memory such as DRAM or SRAM or a non-volatile memory such as flash memory.
  • the example in which the four image processing circuits ROT, MIR, RES, and CNV are formed in the image processing unit IMGPU has been described.
  • the invention is not limited to the powerful embodiments.
  • at least two image processing circuits ROT, MIR, RES, and CNV may be formed in the image processing unit IMGPU.
  • an image processing circuit other than the image processing circuits ROT, MIR, RES, and CNV may be formed.
  • the present invention can be used for a memory controller for controlling memory access.

Abstract

An access control unit receives an access request supplied through a system bus and provides a memory with an internal access request to access the memory in response to the received access request. An image processing unit carries out image processing for an image data supplied through the system bus. A writing image selecting unit selects either the image data processed by the image processing unit or the image data supplied through the system bus in accordance with a writing selection instruction, and outputs the selected image data to the memory. Thus, the image data that does not pass through the system bus but are processed by the image processing unit can be written into the memory. As a result, when the memory is accessed in relation to the image processing, the utilization of the system bus can be prevented from falling down.

Description

明 細 書  Specification
メモリコントローラ 技術分野  Memory controller technology
[0001] 本発明は、メモリのアクセスを制御するためのメモリコントローラに関する。  The present invention relates to a memory controller for controlling memory access.
背景技術  Background art
[0002] 一般に、メモリコントローラは、システムバスとメモリの間に配置され、 CPU等のマス タコントローラから出力されるアクセス要求に応じてメモリをアクセスする。  Generally, a memory controller is arranged between a system bus and a memory, and accesses the memory in response to an access request output from a master controller such as a CPU.
一方、画像を回転あるいはリサイズ等する画像処理機能を有する電子機器 (デジタ ルカメラ等)では、画像処理を実施する画像処理コントローラがシステムバスに接続さ れ、マスタコントローラとして動作する。例えば、アドレスが割り当てられた画像データ の座標を変換することにより、画像が回転される (例えば、特許文献 1参照)。この種 のシステムでは、撮像部から転送される画像データは、メモリにー且書き込まれる。こ の後、画像データは、画像処理コントローラによりメモリから読み出され、画像処理が 実施される。そして、画像処理コントローラは、画像処理された画像データをメモリに 書き込む。  On the other hand, in an electronic device (such as a digital camera) having an image processing function for rotating or resizing an image, an image processing controller that performs image processing is connected to the system bus and operates as a master controller. For example, the image is rotated by converting the coordinates of the image data to which the address is assigned (see, for example, Patent Document 1). In this type of system, the image data transferred from the imaging unit is written in the memory. Thereafter, the image data is read from the memory by the image processing controller, and image processing is performed. Then, the image processing controller writes the image processed image data in the memory.
特許文献 1:特開平 6— 40093号公報  Patent Document 1: Japanese Patent Laid-Open No. 6-40093
発明の開示  Disclosure of the invention
発明が解決しょうとする課題  Problems to be solved by the invention
[0003] 上述した画像処理機能を有する電子機器では、画像処理コントローラは、システム バスを使用して画像データを読み書きする。このため、画像処理が実施されるときに 、システムバスの使用率は高くなる。また、画像データがシステムバスに転送されてい る期間、 CPU等は、システムバスを使用できない。この結果、システムの性能が低下 する。 [0003] In the electronic apparatus having the image processing function described above, the image processing controller reads and writes image data using the system bus. For this reason, when image processing is performed, the usage rate of the system bus increases. Also, the CPU cannot use the system bus while image data is being transferred to the system bus. As a result, system performance is degraded.
本発明の目的は、画像処理に伴ってメモリをアクセスするときに、システムバスの使 用率が低下することを防止することである。  An object of the present invention is to prevent the usage rate of a system bus from being lowered when a memory is accessed during image processing.
課題を解決するための手段  Means for solving the problem
[0004] 本発明のメモリコントローラの一形態では、アクセス制御部は、システムバスを介し て供給されるアクセス要求を受け、受けたアクセス要求に応じてメモリをアクセスする ための内部アクセス要求をメモリに出力する。画像処理部は、システムバスを介して 供給される画像データを画像処理する。書き込み画像選択部は、画像処理部で処 理された処理画像データおよびシステムバスを介して供給される画像データのいず れかを書き込み選択指示に応じて選択し、選択したデータをメモリに出力する。これ により、画像処理部で処理された処理画像データを、システムバスを介することなくメ モリに書き込むことができる。この結果、画像処理に伴ってメモリをアクセスするときに 、システムバスの使用率が低下することを防止できる。 In one form of the memory controller of the present invention, the access control unit is connected via a system bus. The internal access request for accessing the memory is output to the memory according to the received access request. The image processing unit performs image processing on image data supplied via the system bus. The writing image selection unit selects either the processed image data processed by the image processing unit or the image data supplied via the system bus according to the writing selection instruction, and outputs the selected data to the memory. To do. As a result, the processed image data processed by the image processing unit can be written to the memory without going through the system bus. As a result, it is possible to prevent the usage rate of the system bus from being lowered when the memory is accessed during image processing.
[0005] 本発明の一形態における好ましい例では、読み出し画像選択部は、メモリから読み 出される画像データを読み出し選択指示に応じて画像処理部およびシステムバスの いずれかに出力する。画像処理部は、読み出し画像選択部を介して供給される画像 データを画像処理し、画像処理した処理画像データをシステムバスに出力する。メモ リをアクセスするだけで画像処理された画像データが読み出されるため、メモリをァク セスするコントローラは、画像処理された画像データ力 Sメモリに保持されているものと して、メモリをアクセスできる。画像データがシステムバスに読み出された後に、画像 処理コントローラ等により画像処理する必要はない。このため、システムバスの使用率 が低下することを防止できる。  In a preferred example of one aspect of the present invention, the read image selection unit outputs image data read from the memory to either the image processing unit or the system bus according to the read selection instruction. The image processing unit performs image processing on the image data supplied via the read image selection unit, and outputs the processed image data subjected to the image processing to the system bus. Since the image processed image data is read out simply by accessing the memory, the controller accessing the memory can access the memory as if it were held in the image processed image data S memory. . It is not necessary to perform image processing by an image processing controller after image data has been read out to the system bus. For this reason, it is possible to prevent the system bus usage rate from decreasing.
[0006] 本発明の一形態における好ま 、例では、画像処理制御部は、システムバスを介し て供給される内部処理要求に応じて動作し、メモリから画像データを読み出し、読み 出した画像データをメモリに書き込む。これにより、システムノ スを使用することなぐ メモリに保持されている画像データをメモリの別の領域にコピーできる。また、画像処 理制御部は、メモリから読み出した画像データを画像処理部に供給し、画像処理部 により処理された処理画像データをメモリに書き込む。これにより、システムバスを使 用することなぐメモリに保持されている画像データを画像処理できる。この結果、シス テムバスの使用率が低下することを防止できる。 発明の効果 [0006] Preferably, in one example of the present invention, the image processing control unit operates in response to an internal processing request supplied via the system bus, reads image data from the memory, and reads the read image data. Write to memory. As a result, it is possible to copy the image data held in the memory without using the system node to another area of the memory. The image processing control unit supplies the image data read from the memory to the image processing unit, and writes the processed image data processed by the image processing unit to the memory. As a result, it is possible to perform image processing on the image data held in the memory without using the system bus. As a result, the system bus usage rate can be prevented from decreasing. The invention's effect
[0007] 画像処理に伴ってメモリをアクセスするときに、システムバスの使用率が低下するこ とを防止できる。 図面の簡単な説明 [0007] When the memory is accessed during image processing, it is possible to prevent the system bus usage rate from decreasing. Brief Description of Drawings
[0008] [図 1]本発明の第 1の実施形態を示すブロック図である。  FIG. 1 is a block diagram showing a first embodiment of the present invention.
[図 2]図 1に示したシステムのバスマトリクスを示すブロック図である。  2 is a block diagram showing a bus matrix of the system shown in FIG.
[図 3]本発明の比較例を示すブロック図である。  FIG. 3 is a block diagram showing a comparative example of the present invention.
[図 4]図 3に示したシステムのバスマトリクスを示すブロック図である。  4 is a block diagram showing a bus matrix of the system shown in FIG.
[図 5]本発明の第 2の実施形態を示すブロック図である。  FIG. 5 is a block diagram showing a second embodiment of the present invention.
[図 6]本発明の第 3の実施形態を示すブロック図である。  FIG. 6 is a block diagram showing a third embodiment of the present invention.
[図 7]本発明の第 4の実施形態を示すブロック図である。  FIG. 7 is a block diagram showing a fourth embodiment of the present invention.
[図 8]本発明の第 5の実施形態を示すブロック図である。  FIG. 8 is a block diagram showing a fifth embodiment of the present invention.
[図 9]本発明の第 6の実施形態を示すブロック図である。  FIG. 9 is a block diagram showing a sixth embodiment of the present invention.
[図 10]本発明の第 7の実施形態を示すブロック図である。  FIG. 10 is a block diagram showing a seventh embodiment of the present invention.
[図 11]本発明の第 8の実施形態を示すブロック図である。  FIG. 11 is a block diagram showing an eighth embodiment of the present invention.
発明を実施するための最良の形態  BEST MODE FOR CARRYING OUT THE INVENTION
[0009] 以下、本発明の実施形態を図面を用いて説明する。図中、太線で示した信号線は 、複数本で構成されている。太線が接続されているブロックの一部は、複数の回路で 構成されている。信号が伝達される信号線には、信号名と同じ符号を使用する。 図 1は、本発明のメモリコントローラの第 1の実施形態を示している。メモリコントロー ラ MCNTは、デジタルカメラ等のシステム SYS (電子機器)に搭載される。システム S YSは、メモリコントローラ MCNTにアクセスされるメモリ MEMと、メモリコントローラ M CNTとともにシステムバス SYSBに接続された CPU、 DMAC、カメラインタフェース ユニット CAMIF、ディスプレイインタフェースユニット DISPIFおよびアービタ ARBと 、ディスプレイインタフェースユニット DISPIFに接続されたディスプレイ DISP、カメラ インタフェースユニット CAMIFに接続されたカメラユニット CAMとを有している。  Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the figure, the signal lines indicated by bold lines are composed of a plurality of lines. Some of the blocks to which the bold lines are connected are composed of multiple circuits. The same reference numerals as the signal names are used for signal lines through which signals are transmitted. FIG. 1 shows a first embodiment of the memory controller of the present invention. The memory controller MCNT is installed in a system SYS (electronic equipment) such as a digital camera. The system S YS includes the memory MEM accessed by the memory controller MCNT, the CPU, DMAC, camera interface unit CAMIF, display interface unit DISPIF and arbiter ARB connected to the system bus SYSB together with the memory controller MCNT, and the display interface unit DISPIF. A display DISP connected to the camera, and a camera unit CAM connected to the camera interface unit CAMIF.
[0010] 例えば、メモリコントローラ MCNT、 CPU, DMAC、カメラインタフェースユニット C AMIFおよびアービタ ARBは、システム LSIとして 1チップで構成されている。メモリ MEMは、例えば、 SDRAMチップであり、カメラユニット CAMにより撮影された画像 のデータおよび CPUのワークデータを記憶する。メモリ MEMは、 CPUが実行する プログラムをメモリ MEMに記憶してもよ!/、。ディスプレイインタフェースユニット DISPI Fは、例えば、液晶ディスプレイコントローラである。ディスプレイ DISPは、たとえば液 晶ディスプレイである。システム LSIおよびメモリ MEMは、システム基板に搭載され ている。カメラユニット CAMおよびディスプレイ DISPは、システム基板に取り付けら れたコネクタ等を介してシステムバス SYSBに接続されている。 For example, the memory controller MCNT, CPU, DMAC, camera interface unit C AMIF, and arbiter ARB are configured as one chip as a system LSI. The memory MEM is, for example, an SDRAM chip, and stores image data taken by the camera unit CAM and CPU work data. The memory MEM may store programs executed by the CPU in the memory MEM! /. Display interface unit DISPI F is, for example, a liquid crystal display controller. Display DISP is, for example, a liquid crystal display. The system LSI and memory MEM are mounted on the system board. The camera unit CAM and display DISP are connected to the system bus SYSB via connectors attached to the system board.
[0011] メモリコントローラ MCNTは、バスマスタ(CPU、 DMAC、 DISPIFおよび CAMIF) 力ものアクセス要求に応答して、メモリ MEMをアクセスする。 CPUは、システム SYS の動作を制御し、常にマスタコントローラとして動作する。 DMAC、 DISPIFおよび C AMIFは、メモリ MEMをアクセスするときにマスタコントローラとして動作し、 CPUに アクセスされるときにスレーブコントローラとして動作する。カメラインタフェースュニッ ト CAMIFは、 CCD等の撮像素子を有するカメラユニット CAM力 画像データを受 ける。 [0011] The memory controller MCNT accesses the memory MEM in response to an access request from the bus master (CPU, DMAC, DISPIF and CAMIF). The CPU controls the operation of the system SYS and always operates as a master controller. DMAC, DISPIF, and CAMIF operate as a master controller when accessing the memory MEM, and operate as a slave controller when accessing the CPU. The camera interface unit CAMIF receives camera unit CAM force image data having an image sensor such as a CCD.
[0012] アービタ ARBは、システムバス SYSBを使用するために CPU、 DMAC、 DISPIF, CAMIFから出力されるリクエストが競合するときに、システムノ ス SYSBの使用順( 優先順)を決定する。マスタコントローラとして動作する CPU、 DMAC、 DISPIFおよ び CAMIFは、マスタポート MPを使用して信号を入出力する。スレーブコントローラと して動作する DMAC、 DISPIFおよび CAMIFは、スレーブポート SPを使用して信 号を入出力する。  [0012] The arbiter ARB determines the use order (priority order) of the system node SYSB when requests output from the CPU, DMAC, DISPIF, and CAMIF compete to use the system bus SYSB. The CPU, DMAC, DISPIF, and CAMIF that operate as the master controller use the master port MP to input and output signals. DMAC, DISPIF, and CAMIF that operate as slave controllers use the slave port SP to input and output signals.
[0013] メモリコントローラ MCNTは、画像選択部 IMGSEL、アクセス制御部 ACSCNT、 画像処理部 IMGPU、画像レジスタ IMGREGと、システムバス SYSBに接続された 第 1ポート P1および第 2ポート P2とを有している。  [0013] The memory controller MCNT has an image selection unit IMGSEL, an access control unit ACSCNT, an image processing unit IMGPU, an image register IMGREG, and a first port P1 and a second port P2 connected to the system bus SYSB. .
第 1および第 2ポート P1— 2は、スレーブポートとして機能する。第 1ポート P1は、入 力バッファを有する入力専用ポートであり、第 2ポートは、入力バッファおよび出カバ ッファを有する入出力ポートである。図中の信号線に示した符号 (W)は、メモリ MEM への書き込みデータが転送されることを示している。符号 )は、メモリ MEMからの 読み出しデータが転送されることを示している。符号 (RZW)は、メモリ MEMへの書 き込みデータおよびメモリ MEM力 の読み出しデータが転送されることを示している  The first and second ports P1-2 function as slave ports. The first port P1 is an input-only port having an input buffer, and the second port is an input / output port having an input buffer and an output buffer. A symbol (W) indicated on the signal line in the figure indicates that write data to the memory MEM is transferred. The symbol) indicates that the read data from the memory MEM is transferred. The sign (RZW) indicates that the write data to the memory MEM and the read data of the memory MEM force are transferred.
[0014] 第 1ポート P1は、例えば、カメラインタフェースユニット CAMIFから出力される画像 データを、システムバス SYSBを介して受け、受けた画像データをデータ線 DT1、ァ ドレス線 AD 1およびコマンド線 CMD 1を介して画像処理部 IMGPUに出力する。第 2ポート P2は、メモリ MEMをアクセスするためのアドレス AD2およびコマンド CMD2 と、メモリ MEMに書き込むデータ DT2とをシステムバス SYSBを介して受け、メモリ MEMから読み出されるデータ DT2をシステムバス SYSBに出力する。ここで、デー タ DT2は、カメラインタフェースユニット CAMIFから出力される画像データと、デイス プレイ DISPに表示するために CPUまたは DMACによりアクセスされる画像データと 、 CPUにより使用されるワークデータのいずれかである。メモリ MEMにプログラムが 記憶される場合、データ DT2は、プログラムデータの場合もある。 [0014] The first port P1 is, for example, an image output from the camera interface unit CAMIF. The data is received via the system bus SYSB, and the received image data is output to the image processing unit IMGPU via the data line DT1, the address line AD 1, and the command line CMD 1. The second port P2 receives the address AD2 and command CMD2 for accessing the memory MEM and the data DT2 to be written to the memory MEM via the system bus SYSB, and outputs the data DT2 read from the memory MEM to the system bus SYSB. . Here, the data DT2 is one of image data output from the camera interface unit CAMIF, image data accessed by the CPU or DMAC for display on the display DISP, and work data used by the CPU. is there. When a program is stored in the memory MEM, the data DT2 may be program data.
[0015] 画像データを受けるポート P1— 2の入力端子は、システムバス SYSBとして互いに 独立に配線されたシステムデータ線に接続されている。 CPU, DMAC, DISPIFお よび CAMIFは、画像処理部 IMGPUで画像処理を実施する場合、画像データをポ ート P1に接続されたシステムデータ線に出力する。一方、 CPU、 DMAC, DISPIF および CAMIFは、画像データを画像処理することなくメモリ MEMに書き込む場合、 画像データをポート P2に接続されたシステムデータ線に出力する。  [0015] The input terminals of the ports P1-2 that receive image data are connected to system data lines that are wired independently of each other as the system bus SYSB. CPU, DMAC, DISPIF, and CAMIF output image data to the system data line connected to port P1 when image processing is performed by the image processing unit IMGPU. On the other hand, the CPU, DMAC, DISPIF, and CAMIF, when writing image data to the memory MEM without image processing, output the image data to the system data line connected to the port P2.
[0016] アクセス制御部 ACSCNTは、システムバス SYSBを介して供給されるアクセス要求  [0016] The access control unit ACSCNT is an access request supplied via the system bus SYSB.
(アドレス AD2およびコマンド CMD2)および画像処理部 IMGPUを介して供給され るアクセス要求(アドレス AD1およびコマンド CMD1)を内部アドレス IADおよび内部 コマンド ICMDとしてメモリ MEMに出力する。アクセス制御部 ACSCNTは、複数の アクセス要求を保持する機能を有しており、多数のアクセス要求を短期間に受けた場 合にも、メモリ MEMに対して最適なタイミングで内部アドレス IADおよび内部コマン ド ICMDを生成する。また、アクセス制御部 ACSCNTは、メモリ MEMにリフレッシュ 動作を実行させるためのリフレッシュ要求を生成する回路と、アクセス要求とリフレツシ ュ要求の優先順を決めるアービタとを有している。さらに、アクセス制御部 ACSCNT は、後述する書き込み画像選択部 WINGSELから出力される画像データ IDTを、内 部アクセス要求 (IAD、 ICMD)とともにメモリ MEMに出力するために、同期信号 SY NCを書き込み画像選択部 WINGSELに出力する。  (Address AD2 and command CMD2) and the access request (address AD1 and command CMD1) supplied via the image processor IMGPU are output to the memory MEM as the internal address IAD and internal command ICMD. The access control unit ACSCNT has a function to hold a plurality of access requests. Even when a large number of access requests are received in a short period of time, the internal address IAD and the internal command are optimized for the memory MEM. Generate ICMD. The access control unit ACSCNT includes a circuit that generates a refresh request for causing the memory MEM to perform a refresh operation, and an arbiter that determines the priority order of the access request and the refresh request. Furthermore, the access control unit ACSCNT writes the synchronization signal SYNC and selects the image to output the image data IDT output from the write image selection unit WINGSEL, which will be described later, to the memory MEM together with the internal access request (IAD, ICMD). Output to WINGSEL.
[0017] 画像処理部 IMGPUは、画像データ DT1を用いて異種の画像処理をそれぞれ実 施する複数の画像処理回路を有している。具体的には、画像処理部 IMGPUは、画 像データ DT1を回転する回転処理回路 ROT、画像データ DTIをミラー反転するミラ 一処理回路 MIR、画像データ DTIのサイズを変更するリサイズ処理回路 RES、およ び画像データ DT1のデータ形式を変換するデータ変換回路 CNVを、画像処理回 路として内蔵している。例えば、データ変換回路 CNVは、 RGBデータを YUVデータ に変換し、あるいはある YUVデータを別の形式の YUVデータに変換する。画像処 理部 IMGPUにより処理された処理画像データ PDTは、画像選択部 IMGSELに供 給される。 [0017] The image processing unit IMGPU performs different types of image processing using the image data DT1. A plurality of image processing circuits are provided. Specifically, the image processing unit IMGPU includes a rotation processing circuit ROT that rotates the image data DT1, a mirror processing circuit MIR that mirrors the image data DTI, a resizing processing circuit RES that changes the size of the image data DTI, and In addition, a data conversion circuit CNV that converts the data format of image data DT1 is built in as an image processing circuit. For example, the data conversion circuit CNV converts RGB data into YUV data, or converts some YUV data into YUV data in another format. The processed image data PDT processed by the image processing unit IMGPU is supplied to the image selection unit IMGSEL.
[0018] 画像処理を実施する画像処理回路 ROT、 MIR、 RES、 CNVを選択する処理選択 指示と、各画像処理に必要なパラメータは、画像レジスタ IMGREGの画像処理領域 に設定される。画像処理領域の値は、第 2ポート P2を用いて CPUにより画像処理領 域を書き込みアクセスすることにより設定される。このように、画像レジスタ IMGREG は、システムバス SYSBを介して CPU力 供給される画像処理の指示に応じて、画 像処理回路 ROT、 MIR、 RES、 CNVのいずれかを選択する処理選択部として機能 する。  Image processing circuit for performing image processing Processing selection instructions for selecting ROT, MIR, RES, and CNV, and parameters necessary for each image processing are set in the image processing area of the image register IMGREG. The value of the image processing area is set by writing and accessing the image processing area by the CPU using the second port P2. In this way, the image register IMGREG functions as a processing selection unit that selects one of the image processing circuits ROT, MIR, RES, and CNV in accordance with an image processing instruction supplied by the CPU power via the system bus SYSB. To do.
[0019] 画像選択部 IMGSELは、書き込み画像選択部 WIMGSELを有している。書き込 み画像選択部 WIMGSELは、画像処理部 IMGPUで画像処理された処理画像デ ータ PDTまたはシステムバス SYSBを介して供給される画像データ DT2のいずれか を、画像レジスタ IMGREGの選択領域に設定された選択値 (書き込み選択指示)に 応じて選択する。書き込み画像選択部 WIMGSELは、選択した画像データを一時 的に保持する保持回路を有しており、保持している画像データを同期信号 SYNCに 同期して内部データ線 IDTを介してメモリ MEMに出力する。画像レジスタ IMGRE Gの選択領域に設定される選択値は、第 2ポート P2を用いて CPUにより選択領域を 書き込みアクセスすることにより設定される。  The image selection unit IMGSEL has a writing image selection unit WIMGSEL. The write image selection unit WIMGSEL sets either the processed image data PDT processed by the image processing unit IMGPU or the image data DT2 supplied via the system bus SYSB in the selected area of the image register IMGREG. Select according to the selected value (write selection instruction). The write image selection unit WIMGSEL has a holding circuit that temporarily holds the selected image data, and outputs the held image data to the memory MEM via the internal data line IDT in synchronization with the synchronization signal SYNC. To do. The selection value set in the selection area of the image register IMGREG is set by writing and accessing the selection area by the CPU using the second port P2.
[0020] アクセス制御部 ACSCNTは、第 2ポート P2からのアクセス要求 AD2、 CMD2もし くは画像処理部 IMGPUからのアクセス要求 AD1— 1、 CMD1 - 1の一方を選択し、 内部アクセス要求 IAD、 ICMDとして出力し、内部アクセス要求 IAD、 ICMDの出力 に同期して同期信号 SYNCを出力する。 メモリ MEM力 読み出される画像データおよびワークデータは、内部データ線 ID Tおよび符号 (R)が付いたデータ線を介して、第 2ポート P2からシステムバス SYSB に出力される。読み出しデータを画像選択部 IMGSELをバイパスして第 2ポート P2 に直接伝達することにより、 CPU, DMAC、 DISPIFおよび CAMIFは、従来と同じ 読み出しアクセスによりメモリ MEM力もデータを読み出すことができる。 [0020] The access control unit ACSCNT selects one of the access requests AD2 and CMD2 from the second port P2 or the access request AD1-1 and CMD1-1 from the image processing unit IMGPU, and the internal access request IAD and ICMD. And the synchronization signal SYNC is output in synchronization with the internal access request IAD and ICMD output. Memory MEM force The read image data and work data are output from the second port P2 to the system bus SYSB via the data line with the internal data line ID T and the sign (R). By directly transferring the read data to the second port P2 bypassing the image selection unit IMGSEL, the CPU, DMAC, DISPIF and CAMIF can read the data with the same memory access as the conventional read access.
[0021] 図 2は、図 1に示したシステム SYSのバスマトリクスを示している。本実施形態では、 CPU, DMAC、 DISPIFおよび CAMIFは、マスタコントローラ MSTとして動作可能 であり、 DISPIF, DMAC、 CAMIFおよびメモリコントローラ MCNTは、スレーブコ ントローラ SLVとして動作可能である。メモリコントローラ MCNTは、 2つのポート P1 —2を有するため、 2つのスレーブコントローラ SLVとして認識される。このため、ァー ビタ ARBは、 4つのマスタコントローラ MSTと 5つのスレーブコントローラ SLVの接続 を管理すればよい。 FIG. 2 shows a bus matrix of the system SYS shown in FIG. In this embodiment, the CPU, DMAC, DISPIF, and CAMIF can operate as the master controller MST, and the DISPIF, DMAC, CAMIF, and memory controller MCNT can operate as the slave controller SLV. Since the memory controller MCNT has two ports P1 -2, it is recognized as two slave controllers SLV. For this reason, the arbiter ARB has only to manage the connection between the four master controllers MST and the five slave controllers SLV.
[0022] 上述したメモリコントローラ MCNTは、以下のように動作する。例えば、カメラュ-ッ ト CAMで撮影された画像データを画像処理することなくメモリ MEMに格納する場合 、カメラインタフェースユニット CAMIFは、画像データ、書き込みコマンド CMD2およ び書き込みアドレス AD2を第 2ポート P2に出力する。書き込み画像選択部 WIMGS ELは、画像レジスタ IMGREGの設定により、データ線 DT2を予め選択している。ァ クセス制御部 ACSCNTは、書き込みコマンド CMD2および書き込みアドレス AD2 の受信に同期して、内部書き込みコマンド ICMD、内部書き込みアドレス IADおよび 同期信号 SYNCを出力する。書き込み画像選択部 WIMGSELは、同期信号 SYN Cに同期してデータ線 DT2から受けた画像データをデータ線 IDTに出力する。これ により、画像データは、書き込みコマンド CMDに同期してメモリ MEMに書き込まれ る。  [0022] The memory controller MCNT described above operates as follows. For example, when storing the image data captured by the camera cut CAM in the memory MEM without image processing, the camera interface unit CAMIF sends the image data, the write command CMD2 and the write address AD2 to the second port P2. Output. The write image selection unit WIMGS EL selects the data line DT2 in advance by setting the image register IMGREG. The access control unit ACSCNT outputs the internal write command ICMD, the internal write address IAD, and the synchronization signal SYNC in synchronization with the reception of the write command CMD2 and the write address AD2. The write image selection unit WIMGSEL outputs the image data received from the data line DT2 to the data line IDT in synchronization with the synchronization signal SYN C. As a result, the image data is written to the memory MEM in synchronization with the write command CMD.
[0023] メモリ MEMに保持されている画像データをディスプレイ DISPに表示する場合、例 えば、 DMACは、読み出しコマンド CMD2および読み出しアドレス AD2を第 2ポート P2に出力する。アクセス制御部 ACSCNTは、読み出しコマンド CMD2および読み 出しアドレス AD2の受信に同期して、内部読み出しコマンド ICMD、内部読み出しァ ドレス IADを出力する。読み出し動作サイクルでは、同期信号 SYNCは出力されな い。画像データは、メモリ MEM力も読み出され、データ線 IDT、 DT2を経由してシス テムバス SYSBに出力される。 DMACは、システムバス SYSBを介して画像データを 受け、受けたデータをディスプレイ DISPに出力する。そして、画像がディスプレイ DI SPに表示される。また別の例では、 DISPIFは、読み出しコマンド CMD2および読 み出しアドレス AD2を第 2ポート P2に出力する。アクセス制御部 ACSCNTは、読み 出しコマンド CMD2および読み出しアドレス AD2の受信に同期して、内部読み出し コマンド ICMD、内部読み出しアドレス IADを出力する。読み出し動作サイクルでは 、同期信号 SYNCは出力されない。画像データは、メモリ MEM力 読み出され、デ ータ線 IDT、 DT2を経由してシステムバス SYSBに出力される。 DISPIFは、システ ムノ ス SYSBを介して画像データを受け、受けたデータをディスプレイ DISPに出力 する。そして、画像がディスプレイ DISPに表示される。 [0023] When displaying the image data held in the memory MEM on the display DISP, for example, the DMAC outputs the read command CMD2 and the read address AD2 to the second port P2. The access control unit ACSCNT outputs the internal read command ICMD and the internal read address IAD in synchronization with the reception of the read command CMD2 and the read address AD2. In the read operation cycle, the synchronization signal SYNC is not output. Yes. The image data is also read from the memory MEM and output to the system bus SYSB via the data lines IDT and DT2. The DMAC receives image data via the system bus SYSB and outputs the received data to the display DISP. The image is then displayed on the display DISP. In another example, DISPIF outputs the read command CMD2 and read address AD2 to the second port P2. The access control unit ACSCNT outputs the internal read command ICMD and the internal read address IAD in synchronization with the reception of the read command CMD2 and the read address AD2. In the read operation cycle, the synchronization signal SYNC is not output. Image data is read out from the memory MEM and output to the system bus SYSB via the data lines IDT and DT2. DISPIF receives image data via system node SYSB and outputs the received data to display DISP. The image is then displayed on the display DISP.
[0024] 一方、カメラユニット CAMで撮影された画像データを画像処理した後にメモリ ME Mに格納する場合、カメラインタフェースユニット CAMIFは、画像データ DT1、書き 込みコマンド CMD1および書き込みアドレス AD1を第 1ポート P1に出力する。書き 込み画像選択部 WIMGSELは、画像レジスタ IMGREGの設定により、データ線 PD Tを予め選択している。例えば、画像レジスタ IMGREGにより選択された回転処理回 路 ROTは、画像が所定の角度だけ回転するように画像データを処理し、処理した画 像データをデータ線 PDT、変換後のアドレスをアドレス線 AD1— 1,コマンドをコマン ド線 CMD1— 1に出力する。ここで、画像の回転に要する時間を T1とする。  [0024] On the other hand, when image data captured by the camera unit CAM is processed and stored in the memory MEM, the camera interface unit CAMIF receives the image data DT1, the write command CMD1, and the write address AD1 in the first port P1. Output to. The write image selection unit WIMGSEL selects the data line PDT in advance by setting the image register IMGREG. For example, the rotation processing circuit ROT selected by the image register IMGREG processes the image data so that the image is rotated by a predetermined angle, the processed image data is the data line PDT, and the converted address is the address line AD1. — 1, Output command to command line CMD1—1. Here, the time required for image rotation is T1.
[0025] アクセス制御部 ACSCNTは、画像処理部 IMGPUから出力されたアドレス AD1— 1、コマンド CMD1— 1と、第 2ポート P2からのアドレス AD2、コマンド CMD2との一 方を選択し、内部書込みコマンド ICMD、内部書込みアドレス IADおよび同期信号 S YNCを出力する。画像処理を実施する場合に、元の画像データは、メモリ MEMに 書き込まれない。メモリ MEMに画像処理後の画像データのみを書き込むことで、メ モリ MEMにおいて画像データを記憶する領域を小さくできる。  [0025] The access control unit ACSCNT selects one of the address AD1-1, command CMD1-1 output from the image processing unit IMGPU, the address AD2, command CMD2 from the second port P2, and the internal write command. Outputs ICMD, internal write address IAD, and sync signal S YNC. When performing image processing, the original image data is not written to the memory MEM. By writing only the image data after image processing into the memory MEM, the area for storing the image data in the memory MEM can be reduced.
[0026] 本実施形態では、画像処理を実施するための画像データを受ける専用のポート P1 1S メモリコントローラ MCNTに形成されている。また、データ線 DT2は、データ線 ID Tを介して MEMに直接接続されている。このため、例えば、 CPUは、画像処理回路 ROT、 MIR、 RES、 CNVによる画像処理中に、データあるいは別の画像データをポ ート P2を用いてメモリ MEM力も読み出すことができる。 In the present embodiment, a dedicated port P11S memory controller MCNT that receives image data for performing image processing is formed. Data line DT2 is directly connected to MEM via data line ID T. For this reason, for example, the CPU is an image processing circuit. During image processing by ROT, MIR, RES, and CNV, data or other image data can also be read from memory MEM using port P2.
[0027] 図 3は、本発明の比較例を示している。図 3に示したシステム SYSでは、図 1に示し た 4つの画像処理回路 ROT、 MIR、 RES、 CNV (マクロ)力 システムバス SYSBに 接続されている。メモリコントローラ MCNTは、メモリ MEMをアクセスする機能のみを 有しており、画像処理回路 ROT、 MIR、 RES、 CNVを含まない。このため、メモリコ ントローラ MCNTは、 1つのスレーブポート SPのみを有する。各画像処理回路 ROT 、 MIR、 RES、 CNVは、マスタポート MPおよびスレーブポート SPを有する。  FIG. 3 shows a comparative example of the present invention. In the system SYS shown in FIG. 3, the four image processing circuits ROT, MIR, RES, and CNV (macro) force shown in FIG. 1 are connected to the system bus SYSB. The memory controller MCNT has only the function of accessing the memory MEM and does not include the image processing circuits ROT, MIR, RES, and CNV. For this reason, the memory controller MCNT has only one slave port SP. Each image processing circuit ROT, MIR, RES, CNV has a master port MP and a slave port SP.
[0028] 図 3に示したシステム SYSでは、例えば、カメラユニット CAMで撮影された画像デ ータを回転処理した後にメモリ MEMに格納する場合、まず、カメラインタフェースュ ニット CAMIFは、画像データをメモリ MEMに書き込む。次に、回転処理回路 ROT は、メモリ MEMに書き込まれた画像データを読み出し、回転処理を実施し、回転処 理が実施された画像データをメモリ MEMに書き込む。このため、画像データは、画 像処理毎にシステムバス SYSB上に 3回現れる。換言すれば、図 1に示したシステム SYSでは、システムバス SYSB上に現れる画像データの頻度は、図 3に示したシステ ム SYSに比べて 3分の 1になる。  In the system SYS shown in FIG. 3, for example, when image data captured by the camera unit CAM is rotated and stored in the memory MEM, the camera interface unit CAMIF first stores the image data in the memory. Write to MEM. Next, the rotation processing circuit ROT reads the image data written in the memory MEM, performs rotation processing, and writes the image data subjected to the rotation processing to the memory MEM. For this reason, image data appears three times on the system bus SYSB for each image process. In other words, in the system SYS shown in FIG. 1, the frequency of image data appearing on the system bus SYSB is one third that of the system SYS shown in FIG.
[0029] 図 4は、図 3に示したシステム SYSのバスマトリクスを示している。この例では、画像 処理回路 ROT、 MIR、 RES、 CNVは、マスタコントローラ MSTおよびスレーブコント ローラ SLVとして動作可能である。メモリコントローラ MCNTは、スレーブコントローラ SLVとして動作する。このため、アービタ ARBは、 8つのマスタコントローラ MSTと 8 つのスレーブコントローラ SLVの接続を管理する必要がある。したがって、アービタ A RBの回路規模は、図 2に比べて増加する。換言すれば、本発明では、アービタ ARB の回路規模を削減でき、システムコストを削減できる。  FIG. 4 shows a bus matrix of the system SYS shown in FIG. In this example, the image processing circuits ROT, MIR, RES, and CNV can operate as a master controller MST and a slave controller SLV. The memory controller MCNT operates as a slave controller SLV. For this reason, the arbiter ARB must manage the connection between the eight master controllers MST and the eight slave controllers SLV. Therefore, the circuit scale of the arbiter A RB increases as compared to FIG. In other words, in the present invention, the circuit scale of the arbiter ARB can be reduced, and the system cost can be reduced.
[0030] 以上、第 1の実施形態では、画像データを画像処理し、処理した画像データをメモ リ MEMに格納する場合に、画像データは、システムバス SYSB上に 1回しか現れな い。したがって、画像処理に伴ってメモリ MEMをアクセスするときに、システムバス S YSBの使用率が低下することを防止でき、システム SYSの性能を向上できる。  As described above, in the first embodiment, when image processing is performed on image data and the processed image data is stored in the memory MEM, the image data appears only once on the system bus SYSB. Therefore, when the memory MEM is accessed along with image processing, it is possible to prevent the usage rate of the system bus SYSB from being lowered, and the performance of the system SYS can be improved.
図 5は、本発明のメモリコントローラの第 2の実施形態を示している。第 1の実施形態 で説明した要素と同一の要素については、同一の符号を付し、これ等については、 詳細な説明を省略する。この実施形態のメモリコントローラ MCNTは、第 1の実施形 態のポート P1— 2の代わりに、共通ポート PCを有している。共通ポート PCは、入力 ノ ッファおよび出力バッファを有する入出力ポートである。画像処理部 IMGPUの入 力は、共通のデータ線 DTに接続されている。その他の構成は、第 1の実施形態と同 じである。すなわち、システム SYSは、例えば、デジタルカメラ等の電子機器である。 FIG. 5 shows a second embodiment of the memory controller of the present invention. First embodiment The same elements as those described in the above are denoted by the same reference numerals, and detailed description thereof will be omitted. The memory controller MCNT of this embodiment has a common port PC instead of the port P1-2 in the first embodiment. The common port PC is an input / output port with input and output buffers. The input of the image processing unit IMGPU is connected to the common data line DT. Other configurations are the same as those of the first embodiment. That is, the system SYS is an electronic device such as a digital camera, for example.
[0031] この実施形態では、画像処理を実施する力否かにかかわりなぐ画像データは、共 通ポート PCを介して共通データ線 DTに供給される。書き込み画像選択部 WIMGS ELは、画像処理を実施する場合にデータ線 PDTを選択し、画像処理を実施しない 場合にデータ線 DTを選択する。このため、画像処理を実施する画像データを共通 ポート PCに供給する場合にも、誤った画像データカ モリ MEMに書き込まれること を防止できる。システムバス SYSBには、共通ポート PCに接続されるシステムデータ 線のみが形成される。このため、画像処理を実施する画像データを転送するための 専用のデータ線を、システムノ ス SYSBに形成する必要がない。  In this embodiment, image data regardless of whether or not the image processing is performed is supplied to the common data line DT via the common port PC. The write image selection unit WIMGS EL selects the data line PDT when image processing is performed, and selects the data line DT when image processing is not performed. For this reason, even when image data to be subjected to image processing is supplied to the common port PC, it is possible to prevent erroneous writing to the image data memory MEM. Only system data lines connected to the common port PC are formed on the system bus SYSB. For this reason, it is not necessary to form a dedicated data line for transferring image data for performing image processing in the system node SYSB.
[0032] 共通データ線 DTは、データ線 IDTを介してメモリ MEMに直接接続されている。画 このため、第 1の実施形態と同様に、例えば、 CPUは、画像処理回路 ROT、 MIR、 RES、 CNVによる画像処理中に、データあるいは別の画像データをポート P2を用い てメモリ MEM力も読み出すことができる。  [0032] The common data line DT is directly connected to the memory MEM via the data line IDT. For this reason, as in the first embodiment, for example, the CPU reads data or another image data using the port P2 during the image processing by the image processing circuits ROT, MIR, RES, and CNV. be able to.
以上、第 2の実施形態においても、上述した第 1の実施形態と同様の効果を得るこ とができる。さらに、この実施形態では、メモリコントローラ MCNTに共通ポート PCを 形成することにより、メモリコントローラ MCNTのサイズを小さくできる。また、システム バス SYSBに配線されるシステムデータ線の数が増えることを防止できる。したがって 、システムコストが増加することを防止できる。  As described above, also in the second embodiment, it is possible to obtain the same effect as that of the first embodiment described above. Furthermore, in this embodiment, the size of the memory controller MCNT can be reduced by forming the common port PC in the memory controller MCNT. It is also possible to prevent an increase in the number of system data lines wired to the system bus SYSB. Therefore, an increase in system cost can be prevented.
[0033] 図 6は、本発明のメモリコントローラの第 3の実施形態を示している。第 1の実施形態 で説明した要素と同一の要素については、同一の符号を付し、これ等については、 詳細な説明を省略する。この実施形態では、メモリコントローラ MCNTは、第 1の実 施形態のメモリコントローラ MCNTに、画像処理制御部 IMGCNTを加えて構成され ている。その他の構成は、画像処理制御部 IMGCNTに配線される信号線を除き、 第 1の実施形態と同じである。すなわち、システム SYSは、例えば、デジタルカメラ等 の電子機器である。 FIG. 6 shows a third embodiment of the memory controller of the present invention. The same elements as those described in the first embodiment are denoted by the same reference numerals, and detailed description thereof will be omitted. In this embodiment, the memory controller MCNT is configured by adding an image processing control unit IMGCNT to the memory controller MCNT of the first embodiment. Other configurations, except for the signal line wired to the image processing control unit IMGCNT, The same as in the first embodiment. That is, the system SYS is an electronic device such as a digital camera, for example.
[0034] この実施形態のメモリコントローラ MCNTは、メモリ MEMから読み出した画像デー タをメモリ MEMに書き戻す機能と、メモリ MEM力 読み出した画像データを画像処 理し、メモリ MEMに書き戻す機能とを有している。このために、画像処理制御部 IM GCNTは、システムバス SYSBを介してポート P2に供給される内部処理要求(CMD 2、 AD2)に応じて動作し、内部データ線 IDTを介してメモリ MEM力も画像データを [0034] The memory controller MCNT of this embodiment has a function of writing back image data read from the memory MEM to the memory MEM and a function of processing the read image data of the memory MEM and writing it back to the memory MEM. Have. For this purpose, the image processing control unit IM GCNT operates in response to an internal processing request (CMD 2, AD2) supplied to the port P2 via the system bus SYSB, and the memory MEM power is also imaged via the internal data line IDT. Data
BJCみ出す。 BJC sticks out.
[0035] 画像処理制御部 IMGCNTに接続されたアドレス線 AD2、コマンド線 CMD2およ びデータ線 DT2は、画像処理制御部 IMGCNTの設定部をアクセスし、画像処理制 御部 IMGCNTを起動するために配線されて ヽる。画像処理制御部 IMGCNTの設 定部は、メモリ MEMの読み出し領域が設定されるレジスタと、画像処理する画像処 理回路 ROT、 MIR、 RES、 CNVを選択するためのレジスタと、画像処理した画像デ ータを格納するメモリ MEMの書き込み領域が設定されるレジスタと、画像処理制御 部 IMGCNTを起動するための起動ビットを有するレジスタとを有している。  [0035] The address line AD2, command line CMD2, and data line DT2 connected to the image processing control unit IMGCNT are used to access the setting unit of the image processing control unit IMGCNT and start the image processing control unit IMGCNT. Wired. Image processing control unit The IMGCNT setting unit includes a register for setting the read area of the memory MEM, a register for selecting the image processing circuits ROT, MIR, RES, and CNV for image processing, and image processing for image processing. A register for setting a write area of the memory MEM for storing data and a register having a start bit for starting the image processing control unit IMGCNT.
[0036] 画像レジスタ IMGREGに設定された値が画像処理を示して ヽな 、場合、画像処理 制御部 IMGCNTは、メモリ MEMから読み出した画像データをメモリ MEMに書き込 む。このように、画像処理制御部 IMGCNTは、メモリ MEMを読み出しアクセスし、書 き込みアクセスする機能を有している。画像処理制御部 IMGCNTは、メモリ MEMを アクセスするときに、内部コマンド線 ICMDおよび内部アドレス線 IADにアクセスコマ ンドおよびアクセスアドレスを直接出力する。画像データを書き込む領域 (書き込みァ ドレス)を、画像データを読み出す領域 (読み出しアドレス)と相違させることで、メモリ MEMからメモリ MEMへのコピー機能を実現できる。すなわち、画像処理制御部 IM GCNTは、メモリコントローラ MCNTに内蔵された DMACとして動作する。  [0036] When the value set in the image register IMGREG indicates image processing, the image processing control unit IMGCNT writes the image data read from the memory MEM to the memory MEM. As described above, the image processing control unit IMGCNT has a function of performing read access and write access to the memory MEM. When accessing the memory MEM, the image processing control unit IMGCNT directly outputs an access command and an access address to the internal command line ICMD and the internal address line IAD. By making the area for writing image data (write address) different from the area for reading image data (read address), a copy function from memory MEM to memory MEM can be realized. That is, the image processing control unit IM GCNT operates as a DMAC built in the memory controller MCNT.
[0037] 一方、画像レジスタ IMGREGに設定された値が画像処理を示している場合、画像 処理制御部 IMGCNTは、読み出した画像データを処理データ線 IMGDTを介して 画像処理部 IMGPUに供給し、画像処理部 IMGPUにより画像処理された処理画像 データをメモリ MEMに書き込む。 以上、第 3の実施形態においても、上述した第 1の実施形態と同様の効果を得るこ とができる。さらに、この実施形態では、システムノ ス SYSBに画像データを読み出 すことなぐメモリ MEMに保持されている画像データを画像処理し、処理した画像デ ータをメモリ MEMに書き戻すことができる。 On the other hand, when the value set in the image register IMGREG indicates image processing, the image processing control unit IMGCNT supplies the read image data to the image processing unit IMGPU via the processing data line IMGDT, and Processing unit Writes processed image data processed by IMGPU to memory MEM. As described above, also in the third embodiment, the same effect as in the first embodiment described above can be obtained. Furthermore, in this embodiment, it is possible to perform image processing on the image data held in the memory MEM without reading out the image data to the system node SYSB, and write the processed image data back into the memory MEM.
[0038] 図 7は、本発明のメモリコントローラの第 4の実施形態を示している。第 1、第 2およ び第 3の実施形態で説明した要素と同一の要素については、同一の符号を付し、こ れ等については、詳細な説明を省略する。この実施形態のメモリコントローラ MCNT は、第 3の実施形態(図 6)のポート P1— 2の代わりに、共通ポート PCを有している。 すなわち、メモリコントローラ MCNTは、第 2および第 3の実施形態を組み合わせて 構成されている。その他の構成は、第 3の実施形態と同じである。システム SYSは、 例えば、デジタルカメラ等の電子機器である。第 4の実施形態においても、上述した 第 1、第 2および第 3の実施形態と同様の効果を得ることができる。  FIG. 7 shows a fourth embodiment of the memory controller of the present invention. The same elements as those described in the first, second, and third embodiments are denoted by the same reference numerals, and detailed description thereof will be omitted. The memory controller MCNT of this embodiment has a common port PC instead of the port P1-2 in the third embodiment (FIG. 6). That is, the memory controller MCNT is configured by combining the second and third embodiments. Other configurations are the same as those of the third embodiment. The system SYS is an electronic device such as a digital camera. In the fourth embodiment, the same effects as those of the first, second, and third embodiments described above can be obtained.
[0039] 図 8は、本発明のメモリコントローラの第 5の実施形態を示している。第 1の実施形態 で説明した要素と同一の要素については、同一の符号を付し、これ等については、 詳細な説明を省略する。この実施形態では、第 1の実施形態(図 1)の画像選択部 I MGSELの代わりに、画像選択部 IMGSEL2が形成されている。また、第 1ポート P1 は、入出力ポートとして形成されている。画像処理部 IMGPUは、第 1ポート P1を介し て供給される画像データを画像処理し、処理した画像データをデータ線 PDTに出力 する機能と、内部データ線 IDTおよび画像選択部 IMGSELを介してメモリ MEMか ら供給される画像データを画像処理し、処理した画像データをデータ線 DT1を介し てシステムバス SYSBに出力する機能を有している。その他の構成は、第 1の実施形 態と同じである。すなわち、システム SYSは、例えば、デジタルカメラ等の電子機器で ある。  FIG. 8 shows a fifth embodiment of the memory controller of the present invention. The same elements as those described in the first embodiment are denoted by the same reference numerals, and detailed description thereof will be omitted. In this embodiment, an image selection unit IMGSEL2 is formed instead of the image selection unit I MGSEL of the first embodiment (FIG. 1). The first port P1 is formed as an input / output port. The image processing unit IMGPU performs image processing on the image data supplied via the first port P1, outputs the processed image data to the data line PDT, and a memory via the internal data line IDT and the image selection unit IMGSEL. It has a function to perform image processing on the image data supplied from the MEM and output the processed image data to the system bus SYSB via the data line DT1. Other configurations are the same as those in the first embodiment. That is, the system SYS is an electronic device such as a digital camera.
[0040] 画像選択部 IMGSEL2は、読み出し画像選択部 RIMGSELと、第 1の実施形態の 書き込み画像選択部 WIMGSELを有して 、る。読み出し画像選択部 RIMGSELは 、メモリ MEMから内部データ線 IDTを介して読み出させる画像データを、画像レジス タ IMGREGの選択領域に設定された選択値 (読み出し選択指示)に応じて画像処 理部 IMGPUまたはデータ線 DT2の!、ずれかに出力する。メモリ MEMから読み出 された画像データは、画像処理を実施する場合に画像処理部 IMGPUに出力され、 画像処理を実施しない場合にデータ線 DT2に出力される。同期信号 SYNCは、書 き込み画像選択部 WIMGSELのみに使用される。画像レジスタ IMGREGは、第 1 の実施形態と同様に、第 2ポート P2を用いてアクセスされる。 [0040] The image selection unit IMGSEL2 includes a read image selection unit RIMGSEL and a write image selection unit WIMGSEL of the first embodiment. The read image selection unit RIMGSEL reads the image data to be read from the memory MEM via the internal data line IDT according to the selection value (read selection instruction) set in the selection area of the image register IMGREG. Or, output the data line DT2! Read from memory MEM The processed image data is output to the image processing unit IMGPU when image processing is performed, and is output to the data line DT2 when image processing is not performed. The sync signal SYNC is used only for the write image selection unit WIMGSEL. The image register IMGREG is accessed using the second port P2 as in the first embodiment.
[0041] 以上、第 5の実施形態においても、上述した第 1の実施形態と同様の効果を得るこ とができる。さらに、この実施形態では、 CPU等のマスタコントローラは、メモリ MEM をアクセスするだけで画像処理された画像データを読み出すことができる。このため、 マスタコントローラは、画像処理された画像データがメモリ MEMに保持されて 、るも のとして、メモリ MEMをアクセスできる。画像データがシステムバス SYSBに読み出さ れた後に画像処理する必要はない。このため、システムバス SYSBの使用率が低下 することを防止でき、システムの性能が低下することを防止できる。  As described above, also in the fifth embodiment, the same effect as in the first embodiment described above can be obtained. Furthermore, in this embodiment, a master controller such as a CPU can read out image data that has undergone image processing only by accessing the memory MEM. For this reason, the master controller can access the memory MEM as a result of the image data subjected to image processing being held in the memory MEM. It is not necessary to perform image processing after the image data is read to the system bus SYSB. For this reason, it is possible to prevent the usage rate of the system bus SYSB from being lowered and to prevent the system performance from being lowered.
[0042] 図 9は、本発明のメモリコントローラの第 6の実施形態を示している。第 1、第 2およ び第 5の実施形態で説明した要素と同一の要素については、同一の符号を付し、こ れ等については、詳細な説明を省略する。この実施形態のメモリコントローラ MCNT は、第 5の実施形態(図 8)のポート P1— 2の代わりに、共通ポート PCを有している。 すなわち、メモリコントローラ MCNTは、第 2および第 5の実施形態を組み合わせて 構成されている。その他の構成は、第 5の実施形態と同じである。システム SYSは、 例えば、デジタルカメラ等の電子機器である。第 6の実施形態においても、上述した 第 1、第 2および第 5の実施形態と同様の効果を得ることができる。  FIG. 9 shows a sixth embodiment of the memory controller of the present invention. The same elements as those described in the first, second, and fifth embodiments are denoted by the same reference numerals, and detailed description thereof will be omitted. The memory controller MCNT of this embodiment has a common port PC instead of the port P1-2 in the fifth embodiment (FIG. 8). That is, the memory controller MCNT is configured by combining the second and fifth embodiments. Other configurations are the same as those of the fifth embodiment. The system SYS is an electronic device such as a digital camera. In the sixth embodiment, the same effects as those of the first, second, and fifth embodiments described above can be obtained.
[0043] 図 10は、本発明のメモリコントローラの第 7の実施形態を示している。第 1、第 3およ び第 5の実施形態で説明した要素と同一の要素については、同一の符号を付し、こ れ等については、詳細な説明を省略する。この実施形態では、メモリコントローラ MC NTは、第 5の実施形態(図 8)のメモリコントローラ MCNTに、第 3の実施形態(図 6) の画像処理制御部 IMGCNTをカ卩えて構成されている。その他の構成は、第 5の実 施形態と同じである。システム SYSは、例えば、デジタルカメラ等の電子機器である。 第 7の実施形態においても、上述した第 1、第 3および第 5の実施形態と同様の効果 を得ることができる。  FIG. 10 shows a seventh embodiment of the memory controller of the present invention. The same elements as those described in the first, third and fifth embodiments are denoted by the same reference numerals, and detailed description thereof will be omitted. In this embodiment, the memory controller MCNT is configured by adding the image processing control unit IMGCNT of the third embodiment (FIG. 6) to the memory controller MCNT of the fifth embodiment (FIG. 8). Other configurations are the same as those of the fifth embodiment. The system SYS is an electronic device such as a digital camera. In the seventh embodiment, the same effects as those of the first, third, and fifth embodiments described above can be obtained.
[0044] 図 11は、本発明のメモリコントローラの第 8の実施形態を示している。第 1、第 2、第 3および第 5の実施形態で説明した要素と同一の要素については、同一の符号を付 し、これ等については、詳細な説明を省略する。この実施形態のメモリコントローラ M CNTは、第 7の実施形態(図 10)のポート P1— 2の代わりに、共通ポート PCを有して いる。すなわち、メモリコントローラ MCNTは、第 2および第 7の実施形態を組み合わ せて構成されている。その他の構成は、第 7の実施形態と同じである。システム SYS は、例えば、デジタルカメラ等の電子機器である。第 8の実施形態においても、上述 した第 1、第 2、第 3および第 5の実施形態と同様の効果を得ることができる。 FIG. 11 shows an eighth embodiment of the memory controller of the present invention. 1st, 2nd, 2nd The same elements as those described in the third and fifth embodiments are denoted by the same reference numerals, and detailed description thereof will be omitted. The memory controller MCNT of this embodiment has a common port PC instead of the port P1-2 in the seventh embodiment (FIG. 10). That is, the memory controller MCNT is configured by combining the second and seventh embodiments. Other configurations are the same as those of the seventh embodiment. The system SYS is an electronic device such as a digital camera, for example. In the eighth embodiment, the same effects as those of the first, second, third, and fifth embodiments described above can be obtained.
[0045] なお、上述した第 1の実施形態では、ポート P1— 2にそれぞれ対応するシステムデ 一タ線をシステムバス SYSBに形成する例について述べた。本発明はかかる実施形 態に限定されるものではない。例えば、ポート P1— 2に共通のシステムデータ線をシ ステムバス SYSBに形成してもよい。この場合、例えば、画像データをポート P1— 2 のどちらに供給するかを示すレジスタがメモリコントローラ MCNTに形成される。そし て、ポート P1— 2に形成され画像データを受ける入力バッファは、レジスタの設定値 に応じてデータの受信を許可 Z禁止する。同様に、第 3、第 5および第 7の実施形態 においても、ポート P1— 2に共通のシステムデータ線をシステムバス SYSBに形成し てもよい。 In the first embodiment described above, the example in which the system data lines respectively corresponding to the ports P1-2 are formed on the system bus SYSB has been described. The present invention is not limited to such an embodiment. For example, a system data line common to ports P1-2 may be formed on the system bus SYSB. In this case, for example, a register indicating which image data is supplied to the port P1-2 is formed in the memory controller MCNT. The input buffer that is formed at port P1-2 and receives the image data permits data reception according to the register setting value. Similarly, in the third, fifth and seventh embodiments, a system data line common to the port P1-2 may be formed on the system bus SYSB.
[0046] 上述した第 1の実施形態では、アクセス制御部 ACSCNTは、予め認識している画 像処理時間後に同期信号 SYNCを出力し、画像選択部 IMGSELは、同期信号 SY NCに同期して画像データをメモリ MEMに出力する例について述べた。本発明はか 力る実施形態に限定されるものではない。例えば、画像選択部 IMGSELが画像処 理の完了に同期してアクセス制御部 ACSCNTに完了信号を出力し、アクセス制御 部 ACSCNTは、完了信号に応答して内部アクセス要求 IAD、 ICMDを出力してもよ い。さらに、アクセス制御部 ACSCNTは、完了信号に応答して同期信号 SYNCを出 力してちょい。  In the first embodiment described above, the access control unit ACSCNT outputs the synchronization signal SYNC after the image processing time recognized in advance, and the image selection unit IMGSEL performs image synchronization in synchronization with the synchronization signal SYNC. An example of outputting data to the memory MEM was described. The present invention is not limited to such embodiments. For example, the image selection unit IMGSEL outputs a completion signal to the access control unit ACSCNT in synchronization with the completion of the image processing, and the access control unit ACSCNT outputs the internal access requests IAD and ICMD in response to the completion signal. Good. In addition, the access control unit ACSCNT outputs the synchronization signal SYNC in response to the completion signal.
[0047] 上述した実施形態では、本発明を、デジタルカメラに搭載されるメモリコントローラに 適用する例について述べた。本発明は力かる実施形態に限定されるものではない。 例えば、本発明を、カメラ機能を有する携帯電話に搭載されるメモリコントローラや、 ビデオカメラに搭載されるメモリコントローラに適用してもよい。 上述した実施形態では、本発明を、 SDRAMをアクセスするメモリコントローラに適 用する例について述べた。本発明は力かる実施形態に限定されるものではない。例 えば、本発明を、 DRAM, SRAM等の揮発性メモリあるいはフラッシュメモリ等の不 揮発性メモリに適用してもょ 、。 In the embodiment described above, an example in which the present invention is applied to a memory controller mounted on a digital camera has been described. The invention is not limited to the powerful embodiments. For example, the present invention may be applied to a memory controller mounted on a mobile phone having a camera function or a memory controller mounted on a video camera. In the above-described embodiment, the example in which the present invention is applied to a memory controller that accesses SDRAM is described. The invention is not limited to the powerful embodiments. For example, the present invention may be applied to a volatile memory such as DRAM or SRAM or a non-volatile memory such as flash memory.
[0048] 上述した実施形態では、画像処理部 IMGPUに、 4つの画像処理回路 ROT、 MIR 、 RES、 CNVを形成する例について述べた。本発明は力かる実施形態に限定され るものではない。例えば、画像処理部 IMGPUに、画像処理回路 ROT、 MIR、 RES 、 CNVの少なくとも 2つを形成すればよい。あるいは、画像処理回路 ROT、 MIR、 R ES、 CNV以外の画像処理回路を形成してもよい。  In the embodiment described above, the example in which the four image processing circuits ROT, MIR, RES, and CNV are formed in the image processing unit IMGPU has been described. The invention is not limited to the powerful embodiments. For example, at least two image processing circuits ROT, MIR, RES, and CNV may be formed in the image processing unit IMGPU. Alternatively, an image processing circuit other than the image processing circuits ROT, MIR, RES, and CNV may be formed.
[0049] 以上、本発明につ 、て詳細に説明してきた力 上記の実施形態およびその変形例 は発明の一例に過ぎず、本発明はこれに限定されるものではない。本発明を逸脱し ない範囲で変形可能であることは明らかである。  As described above, the force that has been described in detail for the present invention. The above-described embodiments and modifications thereof are merely examples of the present invention, and the present invention is not limited thereto. Obviously, modifications can be made without departing from the scope of the present invention.
産業上の利用可能性  Industrial applicability
[0050] 本発明は、メモリのアクセスを制御するためのメモリコントローラに利用できる。 The present invention can be used for a memory controller for controlling memory access.

Claims

請求の範囲 The scope of the claims
[1] システムバスを介して供給されるアクセス要求を受け、受けたアクセス要求に応じて [1] In response to an access request supplied via the system bus,
、メモリをアクセスするための内部アクセス要求を前記メモリに出力するアクセス制御 部と、 An access control unit for outputting an internal access request for accessing the memory to the memory;
前記システムバスを介して供給される画像データを画像処理する画像処理部と、 前記画像処理部で処理された処理画像データおよびシステムバスを介して供給さ れる画像データの!/ヽずれかを書き込み選択指示に応じて選択し、選択した画像デー タを前記メモリに出力する書き込み画像選択部とを備えていることを特徴とするメモリ コントローラ。  An image processing unit that performs image processing on the image data supplied through the system bus, and writes whether the processed image data processed by the image processing unit and the! / 供給 deviation of the image data supplied through the system bus A memory controller, comprising: a writing image selection unit that selects according to a selection instruction and outputs the selected image data to the memory.
[2] 請求項 1記載のメモリコントローラにおいて、  [2] The memory controller according to claim 1,
前記システムバスに接続され、前記画像処理部に供給する画像データを受ける第 1ポートと、前記書き込み選択部に供給する画像データを受ける第 2ポートとを備えて V、ることを特徴とするメモリコントローラ。  A memory comprising: a first port connected to the system bus and receiving image data supplied to the image processing unit; and a second port receiving image data supplied to the write selection unit. controller.
[3] 請求項 1記載のメモリコントローラにおいて、 [3] The memory controller according to claim 1,
前記システムバスに接続され、前記画像処理部に供給する画像データおよび前記 書き込み選択部に供給する画像データを共通に受ける共通ポートを備えていること を特徴とするメモリコントローラ。  A memory controller, comprising: a common port connected to the system bus for commonly receiving image data supplied to the image processing unit and image data supplied to the writing selection unit.
[4] 請求項 1記載のメモリコントローラにおいて、 [4] The memory controller according to claim 1,
前記画像処理部は、異種の画像処理をそれぞれ実施する複数の画像処理回路を 備え、  The image processing unit includes a plurality of image processing circuits for performing different types of image processing,
メモリコントローラは、システムバスを介して供給される画像処理の指示に応じて、画 像処理を実施する前記画像処理回路の!/ヽずれかを選択する処理選択部を備えて ヽ ることを特徴とするメモリコントローラ。  The memory controller includes a processing selection unit that selects whether the image processing circuit performs image processing according to an image processing instruction supplied via the system bus. And memory controller.
[5] 請求項 4記載のメモリコントローラにおいて、 [5] The memory controller according to claim 4,
前記画像処理部は、画像データを回転する回転処理回路、画像データをミラー反 転するミラー処理回路、画像データのサイズを変更するリサイズ処理回路および画像 データのデータ形式を変換するデータ変換回路の少なくとも 2つを、前記画像処理 回路として備えて 、ることを特徴とするメモリコントローラ。 The image processing unit includes at least a rotation processing circuit that rotates image data, a mirror processing circuit that mirrors image data, a resizing processing circuit that changes the size of image data, and a data conversion circuit that converts a data format of image data. A memory controller, comprising two as the image processing circuit.
[6] 請求項 1記載のメモリコントローラにおいて、 [6] The memory controller according to claim 1,
前記アクセス制御部は、前記画像処理部により画像処理が実施されるときに、画像 処理の完了に同期して前記内部アクセス要求および前記同期信号を出力し、 前記書き込み画像選択部は、前記同期信号に同期して前記処理画像データを出 力することを特徴とするメモリコントローラ。  When the image processing is performed by the image processing unit, the access control unit outputs the internal access request and the synchronization signal in synchronization with completion of image processing, and the write image selection unit is configured to output the synchronization signal. A memory controller for outputting the processed image data in synchronism with the image data.
[7] 請求項 1記載のメモリコントローラにおいて、 [7] The memory controller according to claim 1,
前記メモリから読み出される画像データを、読み出し選択指示に応じて前記画像処 理部および前記システムバスのいずれかに出力する読み出し画像選択部を備え、 前記画像処理部は、前記読み出し画像選択部を介して供給される画像データを画 像処理し、画像処理した処理画像データを前記システムバスに出力する機能を有し て 、ることを特徴とするメモリコントローラ。  A read image selection unit that outputs image data read from the memory to either the image processing unit or the system bus in response to a read selection instruction; and the image processing unit passes through the read image selection unit. A memory controller having a function of performing image processing on the supplied image data and outputting the processed image data to the system bus.
[8] 請求項 1記載のメモリコントローラにおいて、 [8] The memory controller according to claim 1,
前記システムバスを介して供給される内部処理要求に応じて動作し、前記メモリか ら画像データを読み出し、読み出した画像データを前記メモリに書き込む画像処理 制御部を備えていることを特徴とするメモリコントローラ。  A memory comprising an image processing control unit that operates in accordance with an internal processing request supplied via the system bus, reads image data from the memory, and writes the read image data to the memory. controller.
[9] 請求項 8記載のメモリコントローラにおいて、 [9] The memory controller according to claim 8,
前記画像処理制御部は、前記メモリから読み出した画像データを前記画像処理部 に供給し、前記画像処理部により処理された処理画像データを前記メモリに書き込 むことを特徴とするメモリコントローラ。  The memory controller, wherein the image processing control unit supplies the image data read from the memory to the image processing unit, and writes the processed image data processed by the image processing unit to the memory.
[10] 請求項 9記載のメモリコントローラにおいて、 [10] The memory controller according to claim 9,
前記画像処理部は、異種の画像処理をそれぞれ実施する複数の画像処理回路を 備え、  The image processing unit includes a plurality of image processing circuits for performing different types of image processing,
メモリコントローラは、システムバスを介して供給される画像処理の指示に応じて、画 像処理を実施する前記画像処理回路の!/ヽずれかを選択する処理選択部を備えて ヽ ることを特徴とするメモリコントローラ。  The memory controller includes a processing selection unit that selects whether the image processing circuit performs image processing according to an image processing instruction supplied via the system bus. And memory controller.
[11] 請求項 10記載のメモリコントローラにおいて、 [11] The memory controller according to claim 10,
前記画像処理部は、画像データを回転する回転処理回路、画像データをミラー反 転するミラー処理回路、画像データのサイズを変更するリサイズ処理回路および画像 データのデータ形式を変換するデータ変換回路の少なくとも 2つを、前記画像処理 回路として備えて 、ることを特徴とするメモリコントローラ。 The image processing unit includes: a rotation processing circuit that rotates image data; a mirror processing circuit that mirrors image data; a resizing processing circuit that changes the size of image data; A memory controller comprising at least two data conversion circuits for converting data format of data as the image processing circuit.
PCT/JP2006/313688 2006-07-10 2006-07-10 Memory controller WO2008007419A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/JP2006/313688 WO2008007419A1 (en) 2006-07-10 2006-07-10 Memory controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2006/313688 WO2008007419A1 (en) 2006-07-10 2006-07-10 Memory controller

Publications (1)

Publication Number Publication Date
WO2008007419A1 true WO2008007419A1 (en) 2008-01-17

Family

ID=38922990

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2006/313688 WO2008007419A1 (en) 2006-07-10 2006-07-10 Memory controller

Country Status (1)

Country Link
WO (1) WO2008007419A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0612368A (en) * 1992-06-29 1994-01-21 Mitsubishi Electric Corp High-definition image processor
JPH08314798A (en) * 1995-05-17 1996-11-29 Seiko Epson Corp Semiconductor integrated circuit and cartridge for game machine
JPH09198302A (en) * 1996-01-23 1997-07-31 Toshiba Corp Main storage control circuit and main storage device
WO2000033199A1 (en) * 1998-12-03 2000-06-08 Hitachi, Ltd. Signal processing circuit
JP2000235516A (en) * 1999-02-17 2000-08-29 Nec Corp Memory system with operation function, method for controlling memory to be used for the system and recording medium recording control program
JP2005535051A (en) * 2002-08-06 2005-11-17 インターナショナル・ビジネス・マシーンズ・コーポレーション System and method for using compressed main memory based on compressibility

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0612368A (en) * 1992-06-29 1994-01-21 Mitsubishi Electric Corp High-definition image processor
JPH08314798A (en) * 1995-05-17 1996-11-29 Seiko Epson Corp Semiconductor integrated circuit and cartridge for game machine
JPH09198302A (en) * 1996-01-23 1997-07-31 Toshiba Corp Main storage control circuit and main storage device
WO2000033199A1 (en) * 1998-12-03 2000-06-08 Hitachi, Ltd. Signal processing circuit
JP2000235516A (en) * 1999-02-17 2000-08-29 Nec Corp Memory system with operation function, method for controlling memory to be used for the system and recording medium recording control program
JP2005535051A (en) * 2002-08-06 2005-11-17 インターナショナル・ビジネス・マシーンズ・コーポレーション System and method for using compressed main memory based on compressibility

Similar Documents

Publication Publication Date Title
JP3573614B2 (en) Image processing apparatus and image processing system
JP4790227B2 (en) Display control apparatus and display control method
JP2006301724A (en) Memory controller, image processing controller and electronic equipment
US7185133B2 (en) Data processor
JP2007172254A (en) Memory control circuit
US20030011691A1 (en) Camera-mounted apparatus and data writing control method for the same
JP4446968B2 (en) Data processing device
WO2008007419A1 (en) Memory controller
US9489139B2 (en) Command processing apparatus, method and integrated circuit apparatus
JP2005190487A (en) Graphics processor
JP6210742B2 (en) Data processing device and data transfer control device
TW200805069A (en) Memory controller
JPH03232070A (en) Picture processor
JP2009063699A (en) Image display drive unit and image display system
JP4292218B2 (en) Image processing apparatus and image processing system
JP3959407B2 (en) Image processing apparatus and image processing system
JP4647578B2 (en) Radar signal processing device
JP7199885B2 (en) memory controller
JP2018191154A (en) Image processing apparatus, image processing method, and program
JP2018005389A (en) Image deformation circuit, image processing apparatus, and image deformation method
JP2914277B2 (en) Image composition method
JP2022144862A (en) Image processing controller, image forming device, and control method
JP2015034891A (en) Register setting control device
JP2637519B2 (en) Data transfer control device
JPH09186836A (en) Digital copying machine

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 06768050

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

NENP Non-entry into the national phase

Ref country code: RU

122 Ep: pct application non-entry in european phase

Ref document number: 06768050

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP