CN114153409A - Grating operation circuit, device, display control system and display device - Google Patents

Grating operation circuit, device, display control system and display device Download PDF

Info

Publication number
CN114153409A
CN114153409A CN202111436487.4A CN202111436487A CN114153409A CN 114153409 A CN114153409 A CN 114153409A CN 202111436487 A CN202111436487 A CN 202111436487A CN 114153409 A CN114153409 A CN 114153409A
Authority
CN
China
Prior art keywords
raster
unit
operand
operator
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111436487.4A
Other languages
Chinese (zh)
Other versions
CN114153409B (en
Inventor
陈定昌
肖梁山
王炳全
黄紫朱
刘文峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Zero Boundary Integrated Circuit Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Zero Boundary Integrated Circuit Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai, Zhuhai Zero Boundary Integrated Circuit Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111436487.4A priority Critical patent/CN114153409B/en
Publication of CN114153409A publication Critical patent/CN114153409A/en
Application granted granted Critical
Publication of CN114153409B publication Critical patent/CN114153409B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a grating operation circuit, a device, a display control system and a display device, wherein the grating operation circuit comprises a decoding module and a calculating module; the input end of the decoding module and the input end of the computing module are respectively the input end of the grating operation circuit, the decoding module is connected with the computing module, and the output end of the computing module is used as the output end of the grating operation circuit; wherein: the decoding module is used for receiving the grating operation code, decoding the grating operation to obtain pixel calculation data and sending the pixel calculation data to the calculation module; and the calculation module is used for receiving the image pixel data, performing raster operation corresponding to the pixel calculation data on the image pixel data to obtain a pixel result value, and outputting the pixel result value. By constructing the raster operation circuit, raster operation can be directly performed on image pixel data through a hardware circuit, CPU resource occupation is avoided, and image processing efficiency can be improved.

Description

Grating operation circuit, device, display control system and display device
Technical Field
The present invention relates to data processing, and more particularly to a raster operation circuit, a raster operation device, a display control system, and a display device.
Background
At present, display devices are increasingly applied, and in order to improve visual experience of users, in the prior art, graphic image operations, such as aliasing, copying, transparent background, and the like, are generally required to be performed on image data, and all the graphic image operations are required to be performed on a bit basis, so that a large amount of CPU resources are occupied when the image data is large.
Disclosure of Invention
The invention mainly aims to provide a raster operation circuit, a raster operation device, a display control system and a display device, and aims to solve the problem that graphic image operation in the prior art occupies a large amount of CPU resources.
In order to achieve the above object, the present invention provides a raster operation circuit, which includes a decoding module and a calculating module; the input end of the decoding module and the input end of the computing module are respectively the input ends of the grating operation circuit, the decoding module is connected with the computing module, and the output end of the computing module is used as the output end of the grating operation circuit; wherein:
the decoding module is used for receiving the grating operation code, decoding the grating operation code to obtain pixel calculation data and sending the pixel calculation data to the calculation module;
the calculation module is used for receiving image pixel data, performing raster operation corresponding to the pixel calculation data on the image pixel data to obtain a pixel result value, and outputting the pixel result value.
Optionally, the decoding module includes an operator unit, an operation number unit, and a raster operand unit; the input ends of the operator unit and the raster operand unit are respectively used as the input ends of the decoding module, the output end of the operator unit is connected with the input end of the operation number unit, and the operator unit, the operation number unit and the raster operand unit are respectively used as the output ends of the decoding module and connected with the computing module; wherein:
the raster operand unit is used for decoding the raster operation code to obtain a raster operand corresponding to the raster operation code and sending the raster operand to the computing module;
the operator unit is used for decoding the raster operation code to obtain an operator corresponding to the raster operation code and sending the operator to the calculation module;
and the operation number unit is used for receiving the operational character, obtaining the operand number of the raster operand according to the operational character and sending the operand number to the calculation module.
Optionally, the operator unit comprises a first operator sub-unit and a plurality of second operator sub-units, inputs of the first operator sub-unit and each of the second operator sub-units are connected with each other and serve as inputs of the operator unit, and outputs of the first operator sub-unit and each of the second operator sub-units are connected with each other and serve as outputs of the operator unit; wherein:
each second operator sub-unit is configured to perform decoding operation on an independent coding unit in the operator data of the raster operation code, so as to obtain and output an operator corresponding to each coding unit to the calculation module;
the first operator sub-unit is configured to perform a decoding operation on an inverted acknowledgement bit in the operator data of the raster operation code to obtain and output an operator corresponding to the inverted acknowledgement bit to the calculation module.
Optionally, the raster operand unit includes a first operand subunit, a second operand subunit, and an offset calculation unit; the input ends of the first operand subunit and the second operand subunit are connected and used as the input ends of the raster operand unit, the output ends of the first operand subunit and the second operand subunit are respectively connected with the input end of the offset calculation unit, and the output end of the offset calculation unit is used as the output end of the raster operand unit; wherein:
the first operand subunit is configured to perform a decoding operation on the analysis string data of the raster operation code to obtain and output a first operand corresponding to the analysis string data to the offset calculation unit;
the second operand subunit is configured to perform a decoding operation on offset data of the raster operation code to obtain and output an offset value corresponding to the offset data to the offset calculation unit;
the offset calculation unit is configured to perform an offset operation on the first operand according to the offset value to obtain a second operand, and send the second operand to the calculation module.
Optionally, the calculation module includes a plurality of calculation units, and the number of the calculation units is the same as the maximum value of the operand number of the raster operation code; the operator end of each computing unit is connected with the decoding module; the computing units are connected end to end in sequence, the computing unit used as the input of the computing module is an input computing unit, the computing unit used as the output of the computing module is an output computing unit, and the computing unit connected between the input computing unit and the output computing unit is a transmission computing unit; wherein:
the input computing unit is configured to obtain a sub-result value of a current unit according to the raster operand, the operator, the image pixel data, and the corresponding operand number, generate a temporary result corresponding to the sub-result value, and send the image pixel data, the raster operand, the operator, and the temporary result to a next computing unit;
the transfer calculation unit is used for obtaining a sub-result value of the current unit according to the raster operand, the operational character, the image pixel data and the number of the corresponding operands, updating the received temporary result according to the sub-result value of the current unit, and outputting the updated temporary result to the next calculation unit;
the output calculation unit is configured to obtain a sub-result value of the current unit according to the raster operand, the operator, the image pixel data, and the number of the corresponding operands, update the received temporary result by the sub-result value of the current unit to obtain a total operation code, perform raster operation on the image pixel data by the total operation code to obtain a pixel result value, and output the pixel result value and a completion signal.
Optionally, the obtaining of the sub-result value of the current cell according to the raster operand, the operator, the image pixel data, and the corresponding operand number includes:
acquiring corresponding sub-operands from the raster operands according to the number of the corresponding operands, and acquiring corresponding sub-operators from the operators;
acquiring a corresponding operation main body from the image pixel data according to the sub-operand;
and combining the sub operator with the operation main body to obtain a sub result value of the current unit.
Optionally, the image pixel data comprises target pixel data, mode pixel data, and source pixel data; the circuit further comprises a data selection module; the input end of the data selection module is the input end of the grating operation circuit, and the output end of the data selection module is connected with the input end of the calculation module; wherein:
the data selection module is used for receiving the target image data, default pixel data and mode enabling data, and outputting the target image data or the default pixel data serving as the mode pixel data to the calculation module according to the mode enabling data;
the computing module is to receive image pixel data comprising the target pixel data, the source pixel data, and the mode pixel data.
In addition, in order to achieve the above object, the present invention further provides a grating operation device, which is characterized in that the grating operation device includes a housing and the grating operation circuit as described above, and the grating operation circuit is disposed in the housing.
In addition, in order to achieve the above object, the present invention further provides a display control system, which is characterized in that the display control system includes a processing module and the raster operation circuit as described above, an output end of the processing module is connected to an input end of the raster operation circuit, and an input end of the processing module is connected to an output end of the raster operation circuit.
In addition, in order to achieve the above object, the present invention further provides a display device, which is characterized in that the display device comprises a display and the display control system as described above, wherein the display is connected with the display control system.
The invention provides a grating operation circuit, a device, a display control system and a display device, wherein the grating operation circuit comprises a decoding module and a calculating module; the input end of the decoding module and the input end of the computing module are respectively the input ends of the grating operation circuit, the decoding module is connected with the computing module, and the output end of the computing module is used as the output end of the grating operation circuit; wherein: the decoding module is used for receiving the grating operation code, decoding the grating operation code to obtain pixel calculation data and sending the pixel calculation data to the calculation module; the calculation module is used for receiving image pixel data, performing raster operation corresponding to the pixel calculation data on the image pixel data to obtain a pixel result value, and outputting the pixel result value. By constructing the raster operation circuit, raster operation can be directly performed on image pixel data through a hardware circuit, CPU resource occupation is avoided, and image processing efficiency can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a functional block diagram of an embodiment of a raster operations circuit of the present invention;
FIG. 2 is a schematic diagram of a structure of a grating operation circuit applied to the decoding module in the embodiment of FIG. 1;
FIG. 3 is a schematic diagram of a computing module according to the embodiment of FIG. 1;
FIG. 4 is a functional block diagram of another embodiment of a raster operations circuit of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
The reference numbers illustrate:
reference numerals Name (R) Reference numerals Name (R)
100 Decoding module 200 Computing module
110 Operator element 210 Computing unit
111 First operator sub-element 300 Data selection module
112 Second operator sub-element 131 A first operand subunit
120 Operation number unit 132 A second operand subunit
130 Raster operand unit 133 Offset calculating unit
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that all directional indicators (such as up, down, left, right, front, and back) in the embodiments of the present invention are only used to explain the relative position relationship between the components, the motion situation, and the like in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indicator is changed accordingly.
In addition, the descriptions related to "first", "second", etc. in the present invention are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a functional block diagram of a raster operation circuit according to an embodiment of the present invention. In this embodiment, the raster operations circuit includes a decoding module 100 and a calculation module 200; the input end of the decoding module 100 and the input end of the computing module 200 are the input ends of the raster operation circuit, respectively, the decoding module 100 is connected with the computing module 200, and the output end of the computing module 200 is used as the output end of the raster operation circuit; wherein:
the decoding module 100 is configured to receive a raster operation code, decode the raster operation code to obtain pixel calculation data, and send the pixel calculation data to the calculation module 200;
the calculating module 200 is configured to receive image pixel data, perform a raster operation corresponding to the pixel calculation data on the image pixel data to obtain a pixel result value, and output the pixel result value.
It can be understood that the image displayed by the display device is formed by pixel combination, and when the image is output and displayed, the color data of each existing pixel point is read, and the pixel points are controlled to display corresponding colors; the color of the pixel point is expressed by unsigned integer, and the drawing is to change the color data; since the color data is changed, there are original data and new data, i.e., source pixel data and target pixel data, the raster operation is a bit operation, which can reassign pixel points or retain original data, i.e., set as source pixel data or target pixel data, and can also perform map operations such as and, or, negation, etc. on corresponding pixel points in different data; i.e. the raster operation is adapted to the operation of merging source image pixels and target image pixels. The pixel calculation data is specific operation data obtained by analyzing the raster operation code.
It should be noted that the raster operation in this embodiment may be, but is not limited to, a binary, ternary, or quaternary raster operation; the setting can be carried out according to the actual application scene and the requirement, and the limitation is not carried out again; the description is given by the triple raster operation, and other raster operations can be performed by analogy, which is not described again. In the triple raster operation, image pixel data includes source pixel data S, target pixel data D, and pattern pixel data P.
The raster operation code is used for defining a mode of combining the source pixel data, the target pixel data and the mode pixel data, provides Boolean operation, and combines the source pixel data, the target pixel data and the mode pixel data through the Boolean operation to obtain a pixel result value; the pixel result value refers to a pixel value to be finally displayed.
In the embodiment, the raster operation circuit is constructed, so that raster operation can be directly performed on image pixel data through a hardware circuit, CPU resource occupation is avoided, and the image processing efficiency can be improved.
Further, referring to fig. 2, the decoding module 100 includes an operator unit 110, an operation number unit 120, and a raster operand unit 130; the input ends of the operator unit 110 and the raster operand unit 130 are respectively used as the input ends of the decoding module 100, the output end of the operator unit 110 is connected with the input end of the operation number unit 120, and the operator unit 110, the operation number unit 120 and the raster operand unit 130 are respectively used as the output ends of the decoding module 100 and connected with the computing module 200; wherein:
the raster operand unit 130 is configured to decode the raster operation code to obtain a raster operand corresponding to the raster operation code, and send the raster operand to the computing module 200;
the operator unit 110 is configured to decode the raster operation code to obtain an operator corresponding to the raster operation code, and send the operator to the computing module 200;
the operation number unit 120 is configured to receive the operator, obtain the operand number of the raster operand according to the operator, and send the operand number to the calculation module 200.
The raster operation code is IMP _ ROP _ ROPCODE, the raster operand is ROP _ DATA, the operator is ROP _ CHAR, and the operand number is ROP _ DATA _ NUM.
The raster operand is used for representing the data type of raster operation, namely source pixel data, target pixel data or mode pixel data; the operators are used for representing Boolean operations performed bit by bit, AND comprise NOT OR OR, AND, XOR AND the like. The number of operands is used to characterize the number of times the Boolean operation is performed.
Further, the operator unit 110 includes a first operator sub-unit 111 and a plurality of second operator sub-units 112, inputs of the first operator sub-unit 111 and each of the second operator sub-units 112 are connected to each other and serve as an input of the operator unit 110, and outputs of the first operator sub-unit 111 and each of the second operator sub-units 112 are connected to each other and serve as an output of the operator unit 110; wherein:
each of the second operator sub-units 112 is configured to perform a decoding operation on an independent coding unit in the operator data of the raster operation code, so as to obtain and output an operator corresponding to each coding unit to the calculation module 200;
the first operator sub-unit 111 is configured to perform a decoding operation on an inverted acknowledgement bit in the operator data of the raster operation code, so as to obtain and output an operator corresponding to the inverted acknowledgement bit to the computing module 200.
The operator data is 11-bit binary data in the raster operation code, specifically [ 15: 5], wherein [ 15: 6] every two adjacent bits of data are an independent coding unit and represent a Boolean operation, and the 5 th bit of data is an inversion confirmation bit.
If the data bit 00 in the coding unit is a NOT, the operator corresponding to the coding unit is NOT; if the data bit 01 in the coding unit is a logical OR, the operator corresponding to the coding unit is an XOR; if the data bit 10 in the coding unit is an OR, the operator corresponding to the coding unit is an OR; if the data bit 11 in the coding unit is an AND, the operator corresponding to the coding unit is an AND; an inverted acknowledge bit of 0 would NOT require additional inverted NOT, and an inverted acknowledge bit of 1 would require additional inverted NOT. In addition, the operator is identified by an inverse wave-blue representation, specifically, a represents AND, n represents NOT, o represents OR, AND x represents XOR.
Further, the raster operand unit 130 includes a first operand subunit 131, a second operand subunit 132, and an offset calculation unit 133; the first operand sub-unit 131 is connected to the input of the second operand sub-unit 132 and serves as the input of the raster operand unit 130, the outputs of the first operand sub-unit 131 and the second operand sub-unit 132 are respectively connected to the input of the offset calculation unit 133, and the output of the offset calculation unit 133 serves as the output of the raster operand unit 130; wherein:
the first operand subunit 131 is configured to perform a decoding operation on the analysis string data of the raster operation code to obtain and output a first operand corresponding to the analysis string data to the offset calculation unit 133;
the second operand subunit 132 is configured to perform a decoding operation on the offset data of the raster operation code to obtain and output an offset value corresponding to the offset data to the offset calculation unit 133;
the offset calculating unit 133 is configured to perform an offset operation on the first operand according to the offset value to obtain a second operand, and send the second operand to the calculating module 200.
The analysis string data is three-bit binary data in the raster operation code, specifically [ 4: 2] bit data, the offset data is two-bit binary data in the raster operation code, specifically [ 0: 1] bit data. Specifically, the analysis string data and the first operand correspondence is referred to the following table:
Figure BDA0003378383730000081
Figure BDA0003378383730000091
wherein S denotes source pixel data, D denotes target pixel data, and P denotes pattern pixel data; the special operands are "+" and "-", 16 complex operations in 256 raster operations cannot be represented by a single accumulator mechanism, temporary storage of operands is required, "+" indicates push to stack, "-" indicates pop, and "+" and "-" need to appear in pairs. After obtaining a first operand by analyzing the string data, offsetting the first operand according to offset data to obtain a second operand; specifically, the offset value corresponding to the offset data is a value offset to the left, and the offset value corresponding to the offset data of 00 is 0; when the offset data is 01, the corresponding offset value is 1; when the offset data is 10, the corresponding offset value is 2; when the offset data is 11, the corresponding offset value is 3.
As in the raster opcode [ 15: 0] bit data is 0000011101000110; the coding units are 00, 01, 11 and 01 respectively, and the negation confirmation bit is 0; in this case, operators corresponding to the coding unit are respectively OP5 ═ NOT, OP4 ═ NOT, OP3 ═ XOR, OP2 ═ AND, AND OP1 ═ XOR, AND the inversion confirmation bit is NOT, AND xaxnn is obtained by representing the operators by the inverse wave-blue notation, AND xax is obtained by omitting the last NOT operator. When the analysis string data is 001, the corresponding first operand is spdspdspsp, the offset data is 10, and the corresponding offset value is 2, the first operand is offset to the left by two bits to obtain a second operand, which is dspdspdspsps. Wherein OP5-OP4 are unary operators, OP3-OP1 are binary operators, therefore, only 4 operands are needed when actually performing raster operations; the first four bits of the second operand DSPD can be used as the final operand; combining the operands with operators yields DSPDxax.
Further, referring to fig. 3, the calculation module 200 includes a plurality of calculation units 210, the number of the calculation units 210 is the same as the maximum value of the operand number of the raster operation code; the operator end of each computing unit 210 is connected to the decoding module 100; the computing units 210 are connected end to end in sequence, the computing unit 210 as an input computing unit of the computing module 200, the computing unit 210 as an output computing unit of the computing module 200, and the computing unit 210 connected between the input computing unit and the output computing unit is a transfer computing unit; wherein:
the input computing unit is configured to obtain a sub-result value of a current unit according to the raster operand, the operator, the image pixel data, and the number of corresponding operands, generate a temporary result corresponding to the sub-result value, and send the image pixel data, the raster operand, the operator, and the temporary result to a next computing unit 210;
the transfer calculation unit is configured to obtain a sub-result value of the current unit according to the raster operand, the operator, the image pixel data, and the number of corresponding operands, update the received temporary result according to the sub-result value of the current unit, and output the updated temporary result to the next calculation unit 210;
the output calculation unit is configured to obtain a sub-result value of the current unit according to the raster operand, the operator, the image pixel data, and the number of the corresponding operands, update the received temporary result by the sub-result value of the current unit to obtain a total operation code, perform raster operation on the image pixel data by the total operation code to obtain a pixel result value, and output the pixel result value and a completion signal.
Wherein the mode pixel DATA is PAT _ DATA, the target pixel DATA is IMP _ ROP _ DES _ DATA, the source pixel DATA is IMP _ ROP _ SRC _ DATA, the sub-result value is ROP _ TMP _ DES _ DATA, the pixel result value is IMP _ ROP _ DATA, and the completion signal is IMP _ ROP _ TX; IMP _ ROP _ EN is a raster operation enable signal.
The calculating unit 210 sequentially performs raster operations on image pixel data according to raster operands and operators bit by bit, the subsequent calculating unit 210 updates previous sub-result values of the calculating unit 210 according to the sub-result values obtained by the subsequent calculating unit 210, a final pixel result value is obtained after all the calculating units 210 are performed, a completion signal is used for representing completion of the raster operations, and the completion signal is output so that a device receiving the completion signal starts to receive the pixel result value.
Further, the obtaining of the sub-result value of the current cell according to the raster operand, the operator, the image pixel data, and the corresponding operand number includes:
acquiring corresponding sub-operands from the raster operands according to the number of the corresponding operands, and acquiring corresponding sub-operators from the operators;
acquiring a corresponding operation main body from the image pixel data according to the sub-operand;
and combining the sub operator with the operation main body to obtain a sub result value of the current unit.
The operation subject is the source pixel data S, the target pixel data D or the pattern pixel data P.
The calculating unit 210 obtains the corresponding sub-operands from the raster operands according to the sequence and the number of the operands in each calculating unit 210, and obtains the corresponding sub-operators from the operators; if the number of operands is 5 in this embodiment, taking dspdex as an example, for the input calculation unit, the order of the input calculation unit in each calculation unit 210 is 1, the input calculation unit obtains the first sub-operator OP1 in the operators, that is, x, the corresponding operation is xor, and since OP1 is a binary operator, the input calculation unit obtains the first two sub-operands D and S in the raster operand; acquiring target pixel data and source pixel data corresponding to D and S from the image pixel data; and D ^ S is obtained by carrying out XOR operation on the target pixel data and the source pixel data.
For the transfer calculation units connected to the input calculation unit, the order of the transfer calculation units in each calculation unit 210 is 2, and then the input calculation unit 210 obtains a second sub-operator OP2, i.e. a, in the operator, and the corresponding operation is and; acquiring a third sub-operand P, and acquiring mode pixel data for P pairing from the image pixel data; the sub-result values sent by the input calculation unit are updated in a superposition mode, and the updated sub-result values are D & S & P; the subsequent calculation unit 210 may refer to execution and is not described herein.
The embodiment can reasonably perform the raster operation on the image pixel data.
Further, referring to fig. 4, the image pixel data includes target pixel data, mode pixel data, and source pixel data; the circuit further comprises a data selection module 300; the input end of the data selection module 300 is the input end of the raster operation circuit, and the output end of the data selection module 300 is connected with the input end of the computation module 200; wherein:
the data selection module 300 is configured to receive the target image data, default pixel data, and mode enable data, and output the target image data or the default pixel data as the mode pixel data to the calculation module 200 according to the mode enable data;
the computing module 200 is configured to receive image pixel data including the target pixel data, the source pixel data, and the mode pixel data.
The default pixel DATA is IMP _ ROP _ PAT _ DATA.
It should be noted that the mode pixel data may be input data or default data of the present apparatus; the selection is made by mode enable data, which is one-bit binary data, representing target image data or default pixel data as mode pixel data by 0 and 1, respectively.
The embodiment can provide selection of mode pixel data, and has more flexibility.
The invention also provides a grating operating device, which comprises a shell and a grating operating circuit, wherein the grating operating circuit is arranged in the shell, and the structure of the grating operating circuit can refer to the embodiment and is not described herein again. It should be understood that, since the grating operation device of the present embodiment adopts the technical solution of the grating operation circuit, the grating operation device has all the beneficial effects of the grating operation circuit.
The present invention also provides a display control system, which includes a processing module and the above-mentioned grating operation circuit, wherein an output end of the processing module is connected to an input end of the grating operation circuit, and an input end of the processing module is connected to an output end of the grating operation circuit. It should be noted that, since the display control system of the present embodiment adopts the technical solution of the above-mentioned raster operation circuit, the display control system has all the beneficial effects of the above-mentioned raster operation circuit.
The present invention also provides a display device, which includes a display and a display control system, wherein the display is connected to the display control system, and the structure of the display control system can refer to the above embodiments, and is not described herein again. It should be understood that, since the display device of the present embodiment adopts the technical solution of the display control system, the display device has all the advantages of the display control system.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. The term "comprising", without further limitation, means that the element so defined is not excluded from the group of processes, methods, articles, or systems that include the element. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A raster operation circuit is characterized by comprising a decoding module and a calculating module; the input end of the decoding module and the input end of the computing module are respectively the input ends of the grating operation circuit, the decoding module is connected with the computing module, and the output end of the computing module is used as the output end of the grating operation circuit; wherein:
the decoding module is used for receiving the grating operation code, decoding the grating operation code to obtain pixel calculation data and sending the pixel calculation data to the calculation module;
the calculation module is used for receiving image pixel data, performing raster operation corresponding to the pixel calculation data on the image pixel data to obtain a pixel result value, and outputting the pixel result value.
2. The raster operations circuit of claim 1, wherein the decode module comprises an operator unit, an operation number unit, and a raster operand unit; the input ends of the operator unit and the raster operand unit are respectively used as the input ends of the decoding module, the output end of the operator unit is connected with the input end of the operation number unit, and the operator unit, the operation number unit and the raster operand unit are respectively used as the output ends of the decoding module and connected with the computing module; wherein:
the raster operand unit is used for decoding the raster operation code to obtain a raster operand corresponding to the raster operation code and sending the raster operand to the computing module;
the operator unit is used for decoding the raster operation code to obtain an operator corresponding to the raster operation code and sending the operator to the calculation module;
and the operation number unit is used for receiving the operational character, obtaining the operand number of the raster operand according to the operational character and sending the operand number to the calculation module.
3. The raster operations circuit of claim 2 wherein the operator elements comprise a first operator sub-element and a plurality of second operator sub-elements, inputs of the first operator sub-element and each of the second operator sub-elements being interconnected and acting as inputs of the operator elements, outputs of the first operator sub-element and each of the second operator sub-elements being interconnected and acting as outputs of the operator elements; wherein:
each second operator sub-unit is configured to perform decoding operation on an independent coding unit in the operator data of the raster operation code, so as to obtain and output an operator corresponding to each coding unit to the calculation module;
the first operator sub-unit is configured to perform a decoding operation on an inverted acknowledgement bit in the operator data of the raster operation code to obtain and output an operator corresponding to the inverted acknowledgement bit to the calculation module.
4. The raster operations circuit of claim 2, wherein the raster operand unit includes a first operand subunit, a second operand subunit, and an offset calculation unit; the input ends of the first operand subunit and the second operand subunit are connected and used as the input ends of the raster operand unit, the output ends of the first operand subunit and the second operand subunit are respectively connected with the input end of the offset calculation unit, and the output end of the offset calculation unit is used as the output end of the raster operand unit; wherein:
the first operand subunit is configured to perform a decoding operation on the analysis string data of the raster operation code to obtain and output a first operand corresponding to the analysis string data to the offset calculation unit;
the second operand subunit is configured to perform a decoding operation on offset data of the raster operation code to obtain and output an offset value corresponding to the offset data to the offset calculation unit;
the offset calculation unit is configured to perform an offset operation on the first operand according to the offset value to obtain a second operand, and send the second operand to the calculation module.
5. The raster operation circuit of claim 1, wherein the calculation module includes a plurality of calculation units, the number of calculation units being the same as a maximum value of the number of operands of the raster operation code; the operator end of each computing unit is connected with the decoding module; the computing units are connected end to end in sequence, the computing unit used as the input of the computing module is an input computing unit, the computing unit used as the output of the computing module is an output computing unit, and the computing unit connected between the input computing unit and the output computing unit is a transmission computing unit; wherein:
the input computing unit is configured to obtain a sub-result value of a current unit according to the raster operand, the operator, the image pixel data, and the corresponding operand number, generate a temporary result corresponding to the sub-result value, and send the image pixel data, the raster operand, the operator, and the temporary result to a next computing unit;
the transfer calculation unit is used for obtaining a sub-result value of the current unit according to the raster operand, the operational character, the image pixel data and the number of the corresponding operands, updating the received temporary result according to the sub-result value of the current unit, and outputting the updated temporary result to the next calculation unit;
the output calculation unit is configured to obtain a sub-result value of the current unit according to the raster operand, the operator, the image pixel data, and the number of the corresponding operands, update the received temporary result by the sub-result value of the current unit to obtain a total operation code, perform raster operation on the image pixel data by the total operation code to obtain a pixel result value, and output the pixel result value and a completion signal.
6. The raster operations circuitry of claim 5, wherein said deriving sub-result values for a current element from said raster operand, said operator, said image pixel data, and a corresponding number of said operands comprises:
acquiring corresponding sub-operands from the raster operands according to the number of the corresponding operands, and acquiring corresponding sub-operators from the operators;
acquiring a corresponding operation main body from the image pixel data according to the sub-operand;
and combining the sub operator with the operation main body to obtain a sub result value of the current unit.
7. The raster operations circuit of claim 1, wherein the image pixel data comprises target pixel data, mode pixel data, and source pixel data; the circuit further comprises a data selection module; the input end of the data selection module is the input end of the grating operation circuit, and the output end of the data selection module is connected with the input end of the calculation module; wherein:
the data selection module is used for receiving the target image data, default pixel data and mode enabling data, and outputting the target image data or the default pixel data serving as the mode pixel data to the calculation module according to the mode enabling data;
the computing module is to receive image pixel data comprising the target pixel data, the source pixel data, and the mode pixel data.
8. A raster manipulation apparatus comprising a housing and a raster manipulation circuit as claimed in any of claims 1 to 7, which is arranged in the housing.
9. A display control system, comprising a processing module and a raster operation circuit as claimed in any one of claims 1 to 7, wherein an output terminal of the processing module is connected to an input terminal of the raster operation circuit, and an input terminal of the processing module is connected to an output terminal of the raster operation circuit.
10. A display device, characterized in that the display device comprises a display and a display control system according to claim 9, wherein the display is connected to the display control system.
CN202111436487.4A 2021-11-26 2021-11-26 Grating operation circuit, device, display control system and display device Active CN114153409B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111436487.4A CN114153409B (en) 2021-11-26 2021-11-26 Grating operation circuit, device, display control system and display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111436487.4A CN114153409B (en) 2021-11-26 2021-11-26 Grating operation circuit, device, display control system and display device

Publications (2)

Publication Number Publication Date
CN114153409A true CN114153409A (en) 2022-03-08
CN114153409B CN114153409B (en) 2023-12-08

Family

ID=80784360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111436487.4A Active CN114153409B (en) 2021-11-26 2021-11-26 Grating operation circuit, device, display control system and display device

Country Status (1)

Country Link
CN (1) CN114153409B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1988006768A1 (en) * 1987-02-27 1988-09-07 Eastman Kodak Company High speed raster image processor
JPH07199907A (en) * 1993-12-27 1995-08-04 Toshiba Corp Display controller
US6765694B1 (en) * 1999-04-23 2004-07-20 Nec Corporation Color image processor
CN101093578A (en) * 2006-06-23 2007-12-26 辉达公司 Graphics device clustering with pci-express
CN108243336A (en) * 2016-12-26 2018-07-03 瑞萨电子株式会社 Image processor and semiconductor equipment
CN208208300U (en) * 2018-05-08 2018-12-07 深圳市中科创激光技术有限公司 LED display control system and LED flexible display screen

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1988006768A1 (en) * 1987-02-27 1988-09-07 Eastman Kodak Company High speed raster image processor
JPH07199907A (en) * 1993-12-27 1995-08-04 Toshiba Corp Display controller
US6765694B1 (en) * 1999-04-23 2004-07-20 Nec Corporation Color image processor
CN101093578A (en) * 2006-06-23 2007-12-26 辉达公司 Graphics device clustering with pci-express
CN108243336A (en) * 2016-12-26 2018-07-03 瑞萨电子株式会社 Image processor and semiconductor equipment
CN208208300U (en) * 2018-05-08 2018-12-07 深圳市中科创激光技术有限公司 LED display control system and LED flexible display screen

Also Published As

Publication number Publication date
CN114153409B (en) 2023-12-08

Similar Documents

Publication Publication Date Title
US5991865A (en) MPEG motion compensation using operand routing and performing add and divide in a single instruction
US9690544B2 (en) Round for reround mode in a decimal floating point instruction
EP0657803B1 (en) Three input arithmetic logic unit
US7725520B2 (en) Processor
EP0660227B1 (en) Three input arithmetic logic unit forming the sum of a first and a second boolean combination of the inputs
EP1206737B1 (en) Setting condition values in a computer
JPH07287567A (en) Arithmetical logical unit with plural independent segments and register that stores result from each fraction
US6820102B2 (en) DSP unit for multi-level global accumulation
US6288723B1 (en) Method and apparatus for converting data format to a graphics card
CN103793195A (en) Arithmetic logic unit
EP0657802A2 (en) Rotation register for orthogonal data transformation
GB2352065A (en) A memory access system
US20020002666A1 (en) Conditional operand selection using mask operations
CN108845828B (en) Coprocessor, matrix operation acceleration method and system
EP1204918A1 (en) Conditional instruction execution in a computer
CN114153409A (en) Grating operation circuit, device, display control system and display device
JPH0715346A (en) Method and circuit for encoding of digital signal for decision of scalar product of two vectors
US5850227A (en) Bit map stretching using operand routing and operation selective multimedia extension unit
CN117420982A (en) Chip comprising a fused multiply-accumulator, device and control method for data operations
WO2023124371A1 (en) Data processing apparatus and method, and chip, computer device and storage medium
JP3332606B2 (en) Microprocessor
CN115841140B (en) Anti-max pooling operation method and device, electronic equipment and storage medium
US6076098A (en) Adder for generating sum and sum plus one in parallel
US20020198916A1 (en) Method and circuit for normalization of floating point significands in a SIMD array MPP
CN112148371B (en) Data operation method, device, medium and equipment based on single-instruction multi-data stream

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant