The present invention relates generally to video signal processing, and in particular to the generation of random burst addresses for the processing of video signals.
For video processing applications, conventional address generation of pixel data, stored sequentially or according to horizontal raster lines, are increasingly ineffective when applied to the transfer of video data directed to objects moving across frames. Since the moving object itself may be of interest, the redundancies in pixel data between frames may not be of concern. That is, certain portions of an image remain in the same location from frame to frame, whereas other portions of the image (i.e., including the object) tend to move from frame to frame.
Where that portion of the image containing the object is of interest, it can be represented as a macroblock. Thus, when referencing the macroblock, a starting or base address of the macroblock is required, along with any offset sufficient to represent the size of the macroblock. The beginning of each line of the macroblock can be associated with a random address. The rest of the line for the macroblock can be associated with a corresponding offset. This representation avoids the need to process pixel data at all sequential addresses of the raster scan line. To process the video data sequentially in an attempt to discern the pixel data associated with the macroblock would be a waste of processing cycles. Rather, what is needed is a solution to process video data by using the random addresses associated with the macroblock in a manner that does not impact processing throughput.
The present invention overcomes the deficiencies and limitations of the prior art by providing a video processing system having a processing unit, and an input address generator coupled in parallel with an output address generator, wherein the input address generator and output address generator both include an object locator that maps or converts a linear address to a random address.
According to one embodiment, the object locator can be a lookup table that is stored with predetermined random addresses associated with the macroblock. The input address generator generates read addresses associated with data to be read from a device. The read addresses generated are linear addresses corresponding to the base address of the macroblock and corresponding offset addresses. Similarly, the output address generator generates write addresses associated with data to be stored in the device. The write addresses generated are linear addresses corresponding to the base address of the macroblock and corresponding offset addresses.
These base and offset addresses are linear addresses, which are then mapped to random addresses under the control of a state machine and transfer counter. By using a transfer count to associate a plurality of data transfers facilitated by the input address generator, a batch (or burst) of data transfers can be carried out by the address generator with minimum processing needed by the processing unit. The generation of random address is applied to both the input address generator and to the output address generator.
The features and advantages described in this summary and the following detailed description are not all-inclusive, and particularly, many additional features and advantages will be apparent to one of ordinary skill in the art in view of the drawings, specification and claims hereof. Moreover, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter, resort to the claims being necessary to determine such inventive subject matter.
The teachings of the present invention can be readily understood by considering the following detailed description in conjunction with the accompanying drawings.
The figures depict a preferred embodiment of the present invention for purposes of illustration only. One skilled in the art will readily recognize from the following discussion that alternative embodiments of the structures and methods illustrated herein may be employed without departing from the principles of the invention described herein.
A system, method, and other embodiments for processing instructions representing a program are described. In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the invention. It will be apparent, however, to one skilled in the art that the invention can be practiced without these specific details. In other instances, structures and devices are shown in block diagram form in order to avoid obscuring the invention with unnecessary details.
Reference in the specification to “one embodiment” or to “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiments is included in at least one embodiment of the invention. The appearances of the phrase “in one embodiment” in various places in the specification are not necessarily all referring to the same embodiment.
Some portions of the detailed description that follow are presented in terms of algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. An algorithm is here, and generally, conceived to be a self-consistent sequence of steps (instructions) leading to a desired result. The steps are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical, magnetic or optical signals capable of being stored, transferred, combined, compared and otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like. Furthermore, it has also proven convenient at times, to refer to certain arrangements of steps requiring physical manipulations of physical quantities as (modules) code devices, without loss of generality.
It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise as apparent from the following discussion, it is appreciated that throughout the description, discussions utilizing terms such as “processing” or “computing” or “calculating” or determining” or “displaying” or the like, refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer-based system memories or registers or other such information storage, transmission or display devices.
One aspect in accordance with the present invention includes an embodiment of the process steps and instructions described herein in the form of hardware. Alternatively, the process steps and instructions of the present invention could be embodied in firmware or a computer program (software), and when embodied in software, could be downloaded to reside on and be operated from different platforms used by video processing systems and multimedia devices employed with real time network operating systems and applications.
The present invention also relates to an apparatus for performing the operations herein. This apparatus may be specially constructed for the required purposes, or it may comprise a general-purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program may be stored in a computer readable storage medium, such as, but is not limited to, any type of disk including floppy disks, optical disks, CD-ROMs, magnetic-optical disks, read-only memories (ROMs), random access memories (RAMs), EPROMs, EEPROMs, magnetic or optical cards, application specific integrated circuits (ASICs), or any type of media suitable for storing electronic instructions, and each coupled to a computer system bus. Furthermore, the computers referred to in the specification may include a single processor or may be architectures employing multiple processor designs for increased computing capability.
The methods and displays presented herein are not inherently related to any particular computer or other apparatus. Various general-purpose systems may also be used with programs in accordance with the teachings herein, or it may prove convenient to construct a more specialized apparatus to perform the required method steps. The required structure for a variety of these systems will appear from the description below. In addition, the present invention is not described with reference to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any references below to specific languages are provided for disclosure of enablement and best mode of the present invention.
Reference will now be made in detail to several embodiments of the present invention, examples of which are illustrated in the accompanying drawings. Wherever practicable, the same reference numbers will be used throughout the drawings to refer to the same or like parts to avoid obscuring the invention with unnecessary details.
Processor System Overview
In this section,
Referring to
Processing unit 120 includes output signals lines 128. A data bus 130 couples processing unit 120 to storage device 126. In particular, signal lines 132 provide read (data_in) signals retrieved from device 126 over data bus 130 to processing unit 120. Also, signal lines 134 provide write (data_out) signals from processing unit 120 over data bus 130 to device 126. Signal lines 131 provide read and write control signal from processing unit 120 to data bus 130, as will be described in more detail with reference to
Output signal lines 128 provide input port addresses over signal lines 136 from processing unit 120 to input address generator 122. Output signal lines 128 also provide output port addresses over signal lines 138 to output address generator 124. For example, the signal lines 136 and 138 may be read or write and latch enable signal lines.
Processor system 100 also includes a control bus 150, which provides control commands to various components, including the input address generator 122, the output address generator 126, and processing unit 120.
The input address generator 122 generates and provides to address bus 140 read addresses over signal lines 160. The read addresses are associated with read data from a device 126 over data bus 130 into processing unit 120. The output address generator 124 generates and provides to address bus 140 write addresses over signal lines 162. The write addresses are associated with write data written to device 126 over data bus 130 from processing unit 120 upon completion of processing.
One benefit of including the input address generator 122 and the output address generator 124 in processor system 100 is that because the read addresses and the write addresses are generated externally to processing unit 120, processing unit 120 need not include functionality to ascertain the read and write addresses, respectively. Accordingly, processing unit 120 can thereby process batch data seamlessly and devote its resources to other processing tasks. Data bus 130 couples the processing unit 120 to the device 126 and facilitates the transfer of read data over signal lines 132 and write data over signal lines 134. Typical video processing applications that can be performed by processing 120 include burst data move, matrix transposing, and video column processing, by way of example.
Control state machine 200 is coupled to the instruction address generator 202, the program memory 204, the instruction decoder 206, and the data processing module 208. Control state machine 200 can be conventionally designed to provide control for the behavior of sequential instructions to be processed by the processing unit 120, as will be understood by those skilled in the art. Additional details of control state machine 200 are not described so as to avoid obscuring the present invention with unnecessary details.
Program memory 204 stores the instructions (and/or microinstructions), typically at consecutive memory locations. It will be appreciated that such instructions can be loaded in program memory 204 as is known in the art. These instructions are generally executed sequentially one at a time. According to one particular implementation, program memory 204 is a static random access memory (SRAM). Although not shown explicitly, those of skill in the art will appreciate that program address generators that calculate the address of subsequent instructions after the execution of a current instruction is complete can be utilized in order to provide the instruction sequencing associated with execution of the instructions. The program memory 204 also receives an address generated by the instruction address generator 202 so as to index the corresponding instruction word stored therein. The program memory 204 further includes an output signal line coupled to the instruction decoder 206 in order to provide the instruction words indexed.
Instruction decoder 206 generally functions to convert the instruction binary code arising from (e.g., n-bit) coded inputs received from the program memory 204 into a plurality of (e.g., 2n) unique outputs, representing all of the address and control signals for operating the data processing module 208. These control signals are provided over signal lines 207 to the data processing module 208 and are a function of the output of the instruction decoder 206. In particular, instruction decoder 206 can be an n×m decoder capable of receiving the n-bit coded instruction words from the program memory 206 and of determining m corresponding decoded instructions or microinstructions (e.g., m=2n) to be executed by the data processing module 208. Both n and m are integers. Each of the m outputs represents one of the combination of n binary input variables. Typically, an enable signal is activated to select one of the m decoded microinstructions. By way of example, 16-bits of a microinstruction binary code can be driven to the decoder data output, which is then multiplexed to either the data bus 130, or address bus 140 by the control commands transmitted over the control bus 150. In one embodiment, a hierarchical instruction set may be designed so as to reduce the combinational logic complexity and to improve the timing of the decoder 206. Once a decoded instruction is generated by the instruction decoder 206, a START command is generated by the control state machine 200. This START command can be temporarily stored in buffer 216 before being transmitted to the control bus 150 for use elsewhere in processor system 100.
Data processing module 208 processes input read data (data_in) signals received on signal lines 132. Module 208 also processes output write data (data_out), which is provided over signal lines 134. The processing function can perform arithmetic and logic calculations depending upon the decoded instructions (and/or microinstructions, if applicable) determined by decoder 206. Data processing module 208 includes an interleaved arithmetic logic unit (ALU) sub-system 210, data selector 211, special registers 212, and general registers 214.
Still referring to
In
General registers 214 receive pre-fetched data (e.g., data_in) over data bus 130 from the device 126. When write data (e.g., data_out) is to be written from the I/O registers 300 to the device 126, the general registers 214 outputs a write-data signal (not shown) to the control bus 150 to permit indication to the device 126 that write data is about to be placed on the data bus 130. Thereafter, the write data can be latched by device 126 and stored at the appropriate write address.
Data processing module 208 includes an interleaved ALU sub-system 210, special registers 212 and general registers 214, and data selector 211. Data selector 211 is coupled to an internal data bus 301, and comprises a databus element 302, a bypass storage element 304, a selector 308, and a constant generator 312.
According to one particular embodiment, by way of example, data processing module 208 provides 16-bit RISC operations and control. In that embodiment, a large register file is not required, but instead, a 3-stage pipeline control protocol can be used. Both single bit and fixed length burst input/output (I/O) is supported by this embodiment, and the general registers 212 and special registers 214, respectively, can be implemented as a 16×16 register file which can be read and written to by external memory device 126 using 4, 8 and 16 bursts, by way of example. During an I/O cycle which include read and write cycles, interruption functions are disabled, although nested interruption is generally supported. Although not explicitly shown in
Once read data (data_in) is received by the I/O registers 300, the read data is then provided from the I/O registers 300 over the internal data bus 301 to the databus element 302. In one embodiment according to the present invention, databus element 302 is a register used to store selected data received from the I/O registers 300 via internal bus 301. Those of skill in the art will appreciate that databus element 302 functions as a selection register.
Bypass element 304 generally functions to hold feedback data output from the constant generator 312. In general, bypass element 304 stores data associated with a previous instruction for use with memory contention prediction. A latch enable (L/E) signal 306 is provided as an input to bypass element 304 in order to determine when data associated with a previous instruction should be latched. If memory contention associated with storage access to the same registers within I/O registers 300 occurs, the content of databus element 302 can be used for the next instruction or for subsequent instructions. Memory contention occurs when read and write instructions to the same address occur in the same clock (clk), as those of ordinary skill in the art will appreciate. The memory contention prediction can be implemented in a variety of ways in addition to the use of the bypass element 304 and databus element 302 discussed here.
In general, selector 308 determines whether data read from a source register within I/O registers 300 or data associated with a previous instruction and saved in the bypass element 304 to perform memory contention prediction will be selected for processing by the interleaved ALU subsystem 210. Selector 308 includes an input selection signal line 310, which is used to enable the selection of one of the two inputs provided to selector 308, namely inputs from databus element 302 and from bypass element 304. According to one embodiment, selector 308 may be implemented as a multiplexer.
Constant generator 312 receives an input control signal on signal line 314 and functions to generate a constant associated with an instruction. For example, one function of the constant generator 312 is to receive read data from the databus element 302, and to provide an output on signal line 316. This output on signal line 316 represents some constant which is generated as a result of the read data, and which will be part of an instruction and/or an operand that will be processed by the interleaved ALU sub-system 210 in a next instruction or a subsequent instruction. Output on signal line 316 is also transferred to the I/O registers 300 when write data is to written thereto prior to being transferred to the device 126, or when a constant needs to be stored in a destination register. By way of example, constant generator 312 includes conventional combinational logic to implement a bit set, bit clear, increment, and decrement instructions. The input control signal 314 can be generated by the instruction decoder 206 and provided over signal line 207.
Interleaved ALU sub-system 210 comprises a pair of accumulator registers 326 and 328 communicatively cross-coupled to a pair of arithmetic and logic units (ALUs) 322 and 324. In particular, accumulator 328 includes an output coupled to a first input of ALU 324 via signal line 336a. Similarly, accumulator 326 includes an output coupled to a first input of ALU 322 via signal line 334a. ALUs 322 and 324 each includes a second input coupled to the output of selector 308, as indicated by signal line 320, to receive either the read data from the databus element 302 or the data stored in the bypass element 304. ALU 324 includes an output coupled to an input of accumulator 326 as indicated by signal line 332. ALU 322 includes an output coupled to an input of the accumulator 328 as indicated by signal line 332.
Input and Output Address Generators
The selector 456 can be a multiplexer, which selects either the base or offset address, which is thereafter provided to object locator 446. Object locator 446 functions to convert the linear address generated from linear address generator 440 to a random address. One implementation of object locator 446 is a look-up table (LUT) which is loaded with predetermined random addresses for corresponding linear addresses that have been determined for the macroblock. Those of skill in the art will appreciate that if object locator 446 is omitted from the embodiment of
Where a temporal component of pixel data is present in the video data to be processed, object locator 446 is beneficial for mapping the linear address generated to a random address. An example of the type of video data processing that works well with an embodiment of input address generator 122′ that includes an object locator 446 involves reading one or more macroblocks of pixel data. For example, where video pixel data includes the movement of an object (such as a person's face) from frame to frame, random address generation of the object from a linear address would avoid having to process all video pixel data that is stored sequentially for each frame. Where the object locator 446 is a LUT, predetermined and pre-programmed random addresses can be easily determined from the linear address generated without the need to wait for the completion of the processing of video pixel data stored sequentially before that particular pixel data of interest is retrieved. By way of example, the input address generator 122′ with object locator 446 is beneficial for the processing of video data in the format following the Moving Pictures Experts Group 4 (MPEG 4) standard.
The operation of input address generator 122′ of
A START signal transmitted from processing unit 120 of
Referring to
The selector 556 can be a multiplexer, which selects either the base or offset address, which is thereafter provided to object locator 546. Object locator 546 functions to convert the linear address generated from linear address generator 540 to a random address in a similar manner as described with object locator 446 of
Where a temporal component of pixel data is present in the video data to be processed, object locator 546 is beneficial for mapping the linear address generated to a random address in a similar manner as described with object locator 446. Where the object locator 546 is a LUT, predetermined and pre-programmed random addresses can be easily determined from the linear address generated without the need to wait for the completion of the processing of video pixel data stored sequentially before that particular pixel data of interest.
The operation of input address generator 124′ of
A START signal transmitted from processing unit 120 of
Referring to
Reference is now made to the read state diagram 600 of
Reference is now made to the write state diagram 700 of
Selector 820 can be implemented with a multiplexer, and functions to select either pre-fetched data over signal line 132′ or feedback data 316 from the data selector 211 of
Selector 822 can be implemented with a multiplexer, and functions to select data stored in the special registers 212 or the general registers 214, as required for the particular instruction being executed. Details of an exemplary instruction set are described in the Video Processing Application. Selector 822 is controlled by the START signal which is received over signal line 131-a from the instruction decoder of
Although the invention has been described in considerable detail with reference to certain embodiments, other embodiments are possible. As will be understood by those of skill in the art, the invention may be embodied in other specific forms without departing from the essential characteristics thereof. Accordingly, the present invention is intended to embrace all such alternatives, modifications and variations as fall within the spirit and scope of the appended claims and equivalents.
This application claims priority under 35 U.S.C. § 119(e) to co-pending U.S. Provisional Patent Application No. 60/309,239, entitled “Video Processing System with Flexible Video Format,” filed Jul. 31, 2001, by He Ouyang, et al. (referenced hereinafter as “the Video Processing Application”), the subject matter of which is incorporated by reference in its entirety herein. This application is generally related to and being filed concurrently with U.S. patent application Ser. No. ______, Attorney Docket No. 22682-06383, entitled Processing Unit with Interleaved Arithmetic Logic Units, by Shuhua Xiang, et al. (referenced hereinafter as “the Interleaved ALU Sub-system Application”), the subject matter of which is incorporated by reference in its entirety herein.
Number | Date | Country | |
---|---|---|---|
60309239 | Jul 2001 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 10205884 | Jul 2002 | US |
Child | 11710772 | Feb 2007 | US |