WO2023039849A1 - Storage device and driving method therefor - Google Patents

Storage device and driving method therefor Download PDF

Info

Publication number
WO2023039849A1
WO2023039849A1 PCT/CN2021/119130 CN2021119130W WO2023039849A1 WO 2023039849 A1 WO2023039849 A1 WO 2023039849A1 CN 2021119130 W CN2021119130 W CN 2021119130W WO 2023039849 A1 WO2023039849 A1 WO 2023039849A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
bit plane
bit
storage device
compensation
Prior art date
Application number
PCT/CN2021/119130
Other languages
French (fr)
Chinese (zh)
Inventor
朱治宇
雷张伟
聂瑞杰
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2021/119130 priority Critical patent/WO2023039849A1/en
Publication of WO2023039849A1 publication Critical patent/WO2023039849A1/en

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/36Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using liquid crystals

Definitions

  • the embodiments of the present application relate to the circuit field, and in particular, to a storage device and a driving method thereof.
  • liquid crystal on silicon As a micro-display technology, is widely used in projectors, virtual reality (virtual reality, VR) display, augmented reality (augmented reality, AR) display, laser TV and other fields.
  • VR virtual reality
  • AR augmented reality
  • the original data can be compensated and corrected through the compensation circuit and compensation parameters, and the compensated data can be encoded and output to the LCOS panel.
  • FIG. 1 is a digital LCOS driver chip.
  • the driver chip includes a compensation circuit, a parameter memory, an encoding circuit, a row buffer, a memory, and a storage controller.
  • the input data is compensated and corrected through the compensation circuit and the compensation parameters.
  • the input data may be original image data, and the compensated data is input into the encoding circuit for encoding.
  • the storage controller cooperates with the line buffer to cache and transpose the encoded data.
  • the storage controller writes the coded data into the memory through the write pointer, and reads the data from the memory through the read pointer.
  • each pixel in the input data is 8 bits
  • each pixel in the output data after compensation encoding is expanded to 32 bits
  • the output data after compensation encoding is in the form of a bit-plane Output to LCOS panel.
  • Embodiments of the present application provide a storage device and a driving method thereof, which can reduce capacity and bandwidth requirements of the storage device and reduce costs.
  • a storage device which includes: a storage array, a read decoder, a compensation circuit, an encoding circuit, and a selector; the storage array is used for storing the first image frame data and compensating parameter, the storage array is coupled to the input end of the compensation circuit, the read decoder is connected to the row gate line or the column gate line of the memory array, and the output end of the compensation circuit is coupled to the input end of the selector through the encoding circuit.
  • the read decoder is used to gate the data of the first bit plane and the compensation parameters corresponding to the data of the first bit plane based on the read request;
  • the first image frame includes a plurality of bit planes, and the first bit plane is multiple Any one of the bit-planes.
  • the compensation circuit is configured to compensate the data of the first bit plane based on the compensation parameter corresponding to the data of the first bit plane.
  • An encoding circuit configured to encode the data of the first bit plane compensated by the compensation circuit.
  • the selector is used to select and output the data of the first bit plane encoded by the encoding circuit.
  • the read decoder can select part or all of the data of the first bit plane based on the read request, and the compensation parameters corresponding to the data of the bit plane, and pass The compensation circuit and the encoding circuit perform compensation and encoding on the data of the bit plane, and then output the compensated encoded data to the storage device.
  • the compensation circuit and the encoding circuit are built into the storage device in this solution, the data of the first bit plane can be gated, and the data of the first bit plane can be compensated and encoded inside the storage device. Data of the compensated-encoded first bit-plane may be directly output.
  • the memory is independent of the compensation circuit and the encoding circuit, it is necessary to sequentially read all the bit data of each pixel from the memory. Addressing the data of one bit plane, instead of addressing the data of all bits of a pixel, can reduce the read bandwidth requirement of the storage device. Moreover, in this solution, the first image frame data stored in the storage array is data without compensation encoding, so the amount of data written into the storage array is small, which can reduce the write bandwidth and capacity of the storage device.
  • the selector when the read decoder is connected to the row gate line of the memory array, the selector is used for column gate. When the read decoder is connected to the column gate line of the memory array, the selector is used for row gate.
  • the data of the first bit plane gated by the read decoder based on the read request is part or all of the data of the first bit plane.
  • the read decoder can select 1-bit data of some pixels located in the same bit plane in the first image frame based on the read request, and can also select all pixels located in the same bit plane in the first image frame
  • the 1-bit data is compensated and coded inside the storage device, and the compensated coded data of one bit plane is directly output. It is not necessary to read all the bit data of each pixel in the first image frame, and then perform compensation encoding on the read data outside the memory, thus reducing the bandwidth requirement of the storage device.
  • the above-mentioned read request includes a first address
  • a read decoder is specifically configured to gate the data of the first bit plane based on the first address in the read request, and the first bit The compensation parameters corresponding to the data of the plane.
  • the first address may be an upper address in the read request.
  • the read decoder can directly address the data of the first bit plane and the compensation parameters corresponding to the data of the first bit plane based on the high address (first address) in the read request, and can simultaneously select the first bit
  • the compensation parameters corresponding to the data of the plane and the data of the first bit plane are compensated and corrected based on the compensation parameters.
  • this solution can directly select the data of the bit plane, and the reading efficiency is higher.
  • this solution can not only reduce the cost, but also improve read efficiency.
  • the read request further includes a second address; the read decoder determines a selection signal based on the second address in the read request, and the selection signal is used to enable the selector.
  • the second address may be a lower address in the read request.
  • the read decoder can select the selector based on the lower address (second address) in the read request, so as to output data of a certain bit plane after compensation encoding. That is to say, in this scheme, the data of the bit plane is gated through the high-order address, and the selector is gated through the low-order address to output the data of the bit-plane after compensation and encoding of the bit-plane, and the compensation and encoding of the bit-plane are equal It is performed inside the storage device, so the read bandwidth of the storage device can be reduced.
  • the above selection signal is also used to select a target bit plane, and the target bit plane is a bit plane encoded by an encoding circuit; the selector is specifically used to select based on the selection signal Output the data of the target bit-plane.
  • This scheme can determine the output data based on the low address in the read request. the target bit plane, and output the compensated encoded data of the target bit plane through the selector.
  • this solution can realize compensation and encoding of a bit plane inside the storage device, and output the data of one of the bit planes after compensation and encoding from the storage device, which can significantly reduce the read bandwidth of the storage device .
  • the first image frame data stored in the storage array is original data.
  • the storage device further includes an image compression circuit configured to compress the first image frame before the first image frame is written into the storage array.
  • the data written into the storage array can be data processed by the image compression circuit, and the first image frame data written into the storage array has not been compensated and encoded, so the write bandwidth of the storage device can be further reduced and capacity.
  • the above-mentioned storage device may further include a write decoder, configured to sequentially write the data of each pixel in the first image frame into the storage array.
  • a write decoder configured to sequentially write the data of each pixel in the first image frame into the storage array.
  • the write decoder when the write decoder writes the data of each pixel in the first image frame into the memory array, it can write the data of the same bit in each pixel into the memory with the same row address or column address. In the unit, so that multiple storage units with the same row address or column address in the storage array store the data of the same bit plane.
  • the second aspect of the embodiment of the present application provides a method for driving a storage device
  • the storage device includes: a storage array, a read decoder, a compensation circuit, an encoding circuit, and a selector; the storage array is used to store the first image frame data As well as compensation parameters, the storage array is coupled to the input end of the compensation circuit, the read decoder is connected to the row gate line or the column gate line of the memory array, and the output end of the compensation circuit is coupled to the input end of the selector through the encoding circuit.
  • the driving method includes: the read decoder gates the data of the first bit plane based on the read request, and the compensation parameters corresponding to the data of the first bit plane; the first image frame includes a plurality of bit planes, and the first bit plane is multiple Any one of the bit-planes.
  • the compensation circuit compensates the data of the first bit plane based on the compensation parameter corresponding to the data of the first bit plane.
  • the encoding circuit encodes the data of the first bit plane compensated by the compensation circuit.
  • the selector selects and outputs the data of the first bit-plane encoded by the encoding circuit.
  • the data of the first bit plane gated by the read decoder based on the read request is part or all of the data of the first bit plane.
  • the read request includes the first address;
  • the read decoder gates the data of the first bit plane based on the read request, and the compensation parameters corresponding to the data of the first bit plane include:
  • the read decoding is based on the first address, strobes the data of the first bit plane, and the compensation parameter corresponding to the data of the first bit plane.
  • the read request further includes a second address; the method further includes:
  • the read decoder determines a selection signal based on the second address; the selection signal is used to gate the selector.
  • the selection signal is also used to select the target bit plane, and the target bit plane is a bit plane encoded by the encoding circuit; the selector selects and outputs the bit plane encoded by the encoding circuit based on the read request.
  • the data of the first bit plane including:
  • the selector selects an output target bit plane based on the selection signal.
  • the first image frame data stored in the storage array is original data.
  • the storage device further includes an image compression circuit
  • the method further includes:
  • the image compression circuit compresses the first image frame before the first image frame is written into the memory array.
  • the first image frame data stored in the storage array is data compressed by an image compression circuit.
  • the third aspect of the embodiments of the present application provides a driver chip, the driver chip includes an interface circuit, and the storage device as described in the above first aspect and various implementations of the first aspect, the storage device is used to The circuit receives the above-mentioned first image frame data.
  • the fourth aspect of the embodiments of the present application provides a drive system
  • the drive system includes the storage device, the interface circuit, and the LCOS panel as described in the first aspect and various implementations of the first aspect, and the storage device uses After receiving the above-mentioned first image frame data through the interface circuit, the LCOS panel is used to display the compensated and coded data output by the storage device.
  • Fig. 1 is the structural representation of the driver chip of a kind of digital LCOS that the embodiment of the application provides;
  • FIG. 2 is a schematic diagram of compensating the amount of data before and after encoding provided by the embodiment of the present application
  • Fig. 3 is the structural representation of another kind of digital LCOS driver chip that the embodiment of the present application provides;
  • FIG. 4 is a system architecture diagram of an application scenario of a storage device provided in an embodiment of the present application.
  • FIG. 5 is a system architecture diagram of an application scenario of another storage device provided in an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a storage device provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of another storage device provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a driver chip provided by an embodiment of the present application.
  • FIG. 9 is a schematic flowchart of a method for driving a storage device provided by an embodiment of the present application.
  • At least one item (piece) of a, b or c can represent: a, b, c, a and b, a and c, b and c, or, a and b and c, wherein a, b and c can be single or multiple.
  • words such as “first” and “second” are used to distinguish the same or similar items with basically the same function and effect, Those skilled in the art can understand that words such as “first” and “second” do not limit the quantity and execution order.
  • first in the first bit-plane and “second” in the second bit-plane in the embodiment of the present application are only used to distinguish different bit-planes.
  • the first, second, etc. descriptions that appear in the embodiments of this application are only for illustration and to distinguish the description objects. Any limitations of the examples.
  • bit plane in the embodiment of the present application is explained with reference to FIG. 2 .
  • the input data shown in (a) in FIG. 2 includes 8 bit planes, and data of the same bit in all pixels form a bit plane.
  • the values of the first bits of all pixels in the input data may form the first bit plane.
  • Figure 1 is a digital LCOS driver chip. As shown in Figure 1, since the data written into the memory and the data read from the memory are all compensated and encoded data, the amount of data written into the memory and the amount of data read from the memory are relatively large, which affects the bandwidth of the memory. The requirements for capacity and capacity are higher, and the cost is higher.
  • a method to improve memory bandwidth and capacity which can expand bandwidth by using a large number of double data rate (DDR) particles, or use high bandwidth memory (high bandwidth memory, HBM) technology to improve memory bandwidth and capacity.
  • DDR double data rate
  • HBM high bandwidth memory
  • Figure 3 is another digital LCOS driver chip. Take for example that each pixel is 8bit when uncompensated encoding, and each pixel is 32bit after compensation encoding.
  • the storage controller writes the input data (raw image data) shown in (a) in Fig. 2 into memory (for example, static random-access memory (static random-access memory, SRAM) ))middle.
  • the 8-bit data of each pixel is sequentially read from the memory, and the 8-bit data is compensated and encoded sequentially through the compensation circuit and the encoding circuit.
  • bit-plane bit-plane
  • (c) in Figure 2 Since the output data is output to the LCOS panel in the form of a bit-plane (bit-plane) shown in (c) in Figure 2, therefore, when outputting the first bit-plane, first, sequentially read from the memory The 8bit data of each pixel point is compensated and encoded, and only the 1bit data corresponding to the first bit plane is reserved in the 32bit data of each pixel point after compensation encoding, which is sequentially output to The LCOS panel discards the remaining 31bit data. Then, read the 8-bit data of each pixel from the memory in turn, and perform compensation and encoding on the 8-bit data of each pixel in turn.
  • bit-plane bit-plane
  • each pixel after compensation and encoding In the 32bit data only the 1bit data corresponding to the second bit plane is reserved, and it is output to the LCOS panel in turn, and the remaining 31bit data are discarded. And so on until all output data shown in (b) in FIG. 2 is output.
  • the embodiment of the present application provides a storage device.
  • the read decoder can gate part or all of the data of a bit plane, and The data of the bit plane is compensated and encoded, and the storage device can directly output the data of a bit plane after compensation and encoding.
  • the memory is independent of the compensation circuit and the encoding circuit, it is necessary to sequentially read all the bit data of each pixel from the memory.
  • Array setting, can gate the data of a bit plane, and perform compensation encoding on the data of a bit plane, can significantly reduce the read bandwidth of the storage device, and the cost is low. Moreover, in the embodiment of the present application, by storing the image frame data without compensation encoding in the storage array, the amount of data is small. Therefore, the capacity requirement of the storage array is small, and the write bandwidth and capacity of the storage device can be reduced.
  • the storage device provided in the embodiments of the present application can be applied to display devices such as projectors, VR/AR displays, and laser TVs.
  • the embodiment of the present application does not limit the type of the display device used by the storage device, and this is only an exemplary description.
  • FIG. 4 is a system architecture diagram of an application scenario of a storage device.
  • the driver chip receives the original image data from the video source through the interface circuit, and inputs the original image data into the storage device provided by the embodiment of the present application after image preprocessing, and the storage device is used to process the original image data Compensation and coding.
  • the image is finally projected to the human eye or the screen by the optical components.
  • the interface circuits in the driver chip shown in Figure 4 include but are not limited to high definition multimedia interface (high definition multimedia interface, HDMI), low-voltage differential signaling (low-voltage differential signaling, LVDS), mobile industry processor interface (mobile industry processor interface, MIPI) and other data interfaces.
  • high definition multimedia interface high definition multimedia interface, HDMI
  • low-voltage differential signaling low-voltage differential signaling
  • LVDS low-voltage differential signaling
  • MIPI mobile industry processor interface
  • the storage device provided in the embodiment of the present application may also be applied in the communication field, for example, the storage device may be used to drive an all-optical switching LCOS optical processor.
  • FIG. 5 is a system architecture diagram of another application scenario of a storage device.
  • the LCOS drive chip includes the storage device provided by the embodiment of the present application.
  • the optical signal is input by the optical fiber and incident on the mirror through the optical prism.
  • the storage device in the LCOS drive chip outputs the driving voltage to the LCOS panel to control the deflection of the liquid crystal. Angle, in order to control the angle of light signal reflection.
  • the reflected optical signal passes through the optical prism, the compensation optical unit to the grating for filtering. After filtering, it passes through the compensation optics and the optical prism unit and enters the mirror again.
  • the storage device in the LCOS driver chip outputs the driving voltage to the LCOS panel to control the liquid crystal again.
  • the LCOS driver chip can realize optical switching by controlling the liquid crystal deflection of the LCOS panel, which can reduce the bandwidth and capacity requirements of the LCOS driver chip.
  • the storage device includes a storage array, a read decoder, a compensation circuit, an encoding circuit, and a selector.
  • the storage array is used to store the first image frame data and compensation parameters
  • the storage array is coupled to the input end of the compensation circuit
  • the read decoder is connected to the row gate line or the column gate line of the storage array
  • the output end of the compensation circuit passes through the encoding
  • the circuit is coupled and connected to the input end of the selector.
  • the read decoder is configured to gate the data of the first bit plane and the compensation parameters corresponding to the data of the first bit plane based on the read request.
  • the first image frame data may be original image data.
  • the first image frame data may be raw image data received from a video source.
  • the first image frame data may be 2K*4K*8 data, and each pixel in the first image frame data may be represented by 8bit data.
  • the first image frame may include a plurality of bit-planes.
  • the first bit plane is any one of the multiple bit planes.
  • the number of bit planes included in the first image frame is related to the number of bits of each pixel in the first image frame. For example, as shown in (a) in FIG. 2, when the bit of each pixel in the first image frame is 8 bits, the first image frame includes 8 bit planes, and the first bit plane is 2K*4K bit.
  • the data of the first bit plane gated by the read decoder based on the read request may be part of the data of the first bit plane, or may be all of the data of the first bit plane, which is not limited in this embodiment of the present application. It can be understood that, compared with the prior art, the embodiment of the present application can directly address the data of a bit plane instead of addressing the data of all bits of a pixel, thus reducing the read bandwidth requirement of the storage device.
  • the first image frame data includes 8 bit planes
  • the read decoder can select the 1-bit data of the first bit of a pixel based on the read request, or select the 1-bit data of the first bit of multiple pixels. It is also possible to strobe the 1-bit data of the first bit of all pixels.
  • the embodiment of the present application does not limit the amount of data that the read decoder strobes based on the read request.
  • the size of the data is related to the storage method of the first image frame data in the storage array, the bit width of the selector and other parameters.
  • the read decoder can select N bit data of the first bit plane based on a read request, where N is less than or equal to M. That is, the amount of data gated by the read decoder based on the read request does not exceed the bit width of the selector.
  • the data of the same bit plane in the first image frame can be stored in the same row of the storage array, can also be stored in the same column of the storage array, and can also be stored in multiple rows and/or multiple columns of the storage array.
  • the embodiment of the application does not limit the specific storage manner of the first image frame data in the storage array.
  • the compensation parameters corresponding to different data of the same bit plane in the first image frame may be the same or different.
  • Compensation parameters corresponding to data of different bit planes may be the same or different, which is not limited in this embodiment of the present application. It can be understood that, in the case that the compensation parameters corresponding to the data of multiple bit planes in the first image frame are the same, when the decoder selects the data of any one of the multiple bit planes, the compensation parameter will be selected. In the case that the compensation parameters corresponding to the data of different bit planes in the first image frame are different, when the decoder selects the data of a bit plane, the compensation parameters corresponding to the data of the bit plane will also be selected.
  • compensation parameters corresponding to 1-bit data of the first bit-plane there may be one or more compensation parameters corresponding to 1-bit data of the first bit-plane.
  • the embodiment of the present application does not limit the number of compensation parameters corresponding to 1-bit data of the first bit-plane.
  • Figure 6 uses one There are two compensation parameters corresponding to 1-bit data of the bit plane, parameter 1 and parameter 2 respectively, for illustration.
  • the compensation parameters in the storage array can be preset in the storage array (for example, preset in the storage device when leaving the factory), and can also be written into the storage array by software. In the embodiment of the present application, the writing method of the compensation parameters in the storage array is Not limited.
  • the above read request is used to read the data of the first bit plane, and the read request may include the first address and the second address.
  • the first address can be a high address or a low address.
  • the second address is a low address.
  • the first address in the read request is used to select the data of the first bit plane and the compensation parameters corresponding to the data of the first bit plane.
  • the second address in the read request is used to assert the select signal to enable the selector.
  • the read decoder when the read request is used to read the data of the first bit plane, the read decoder based on The first address in the read request strobes the data of the first bit plane, and parameter 1 and parameter 2 corresponding to the data of the first bit plane.
  • the read decoder is further configured to determine a selection signal based on the second address in the read request, and the selection signal is used to enable the selector.
  • the selector When the read decoder is connected to the row gate line of the memory array, the selector is used for column gate. When the read decoder is connected to the column gate line of the memory array, the selector is used for row gate.
  • the embodiment of the present application does not limit whether the read decoder is connected to the row gate line or the column gate line of the storage array.
  • Figure 6, Figure 7 and Figure 8 take the read decoder connected to the column gate line of the storage array as an example. hint.
  • the compensation circuit is configured to compensate the data of the first bit plane based on the compensation parameter corresponding to the data of the first bit plane.
  • the data of the first bit plane and the first The parameter 1 and parameter 2 corresponding to the data of the bit plane are output to the compensation circuit, and the data of the first bit plane are compensated and corrected through multiplication and addition operations in the compensation circuit to adjust the gain and offset of each pixel gray scale.
  • the embodiment of the present application does not limit the specific circuit structure of the compensation circuit.
  • Figures 6 to 8 illustrate the compensation circuit including an adder and a multiplier as an example. In practical applications, other compensation methods can be used to correct the data of each bit plane Make compensation corrections.
  • An encoding circuit configured to encode the data of the first bit plane compensated by the compensation circuit.
  • the encoding circuit can use a look-up table (look-up-table, LUT) to realize the encoding function, and the amount of data encoded by the LUT can be expanded to 4 times of the original data.
  • LUT look-up-table
  • the data after compensation correction and LUT encoding can be expanded to 4*2K*4K. That is, data of one bit plane can be expanded into data of multiple bit planes after being compensated and encoded.
  • FIG. 6 to FIG. 8 are illustrated by taking the encoding circuit using LUT encoding as an example.
  • the selector is used to select and output the data of one bit plane encoded by the encoding circuit.
  • the selector may be a MUX (multiplexer), or may be other selection circuits, and the embodiment of the present application does not limit the specific type of the selector.
  • the selector may be coupled to the read decoder, or directly connected to the read pointer, and the present application does not limit the specific connection manner of the selector.
  • FIG. 6 and FIG. 7 illustrate an example by taking the coupled connection between the selector and the read decoder as an example.
  • the selector may determine a select signal for enabling the selector based on the second address in the read request.
  • This selector can be used for row gating as well as for column gating. For example, when the read decoder is connected to the row gate line, the selector is used for column gate. For another example, when the read decoder is connected to the column gate line, the selector is used to pass the column.
  • the selection signal is also used to select a target bit plane, where the target bit plane is a bit plane encoded by the encoding circuit.
  • the selector is specifically configured to select and output the target bit plane based on the selection signal.
  • the read decoder can determine a selection signal according to the low address in the read request, the selection signal is used for row gating, and Selecting and outputting the data of the target bit-plane, the selector outputs the data corresponding to the target bit-plane among the plurality of bit-planes encoded by the encoding circuit based on the selection signal.
  • the target bit plane is the second bit plane in the four bit planes as an example.
  • the coder determines to select and output the data of the second bit plane according to the low address in the read request, and the selector sequentially selects a plurality of row gate lines, and sequentially outputs a plurality of data corresponding to the second bit plane, so that The data of the second bit plane is output to the LCOS panel.
  • the scheme shown in FIG. 3 is used to read 8-bit data of one pixel from the memory at a time, and perform compensation coding on the 8-bit data of each pixel. If the data in FIG. 2 is to be All the data of one bit plane after the compensation coding shown in (c) is output, and the 8-bit data of all pixels needs to be read from the memory once, that is, the data shown in (a) in Figure 2 needs to be read once. All data is read out, the amount of data read is 2K*4K*8, and the power consumption is high.
  • the storage device With the storage device provided by the embodiment of the present application, by building the compensation circuit and the encoding circuit into the storage device, all the data of a bit plane is gated based on one or more read requests, and the data of the bit plane is selected inside the storage device. Compensation encoding is performed on the data. If one bit plane after compensation encoding shown in (c) in FIG. The data of one bit plane shown in (c) in FIG. 2 is read, and the amount of read data is 2K*4K*1.
  • the first image frame data is the input data of 2K*4K*8 shown in (a) in FIG.
  • the input data shown in a) 2K*4K*8 is read 32 times, that is, the size of the read data is 2K*4K*8*32.
  • the storage device provided by the embodiment of the present application, since the compensation circuit and the encoding circuit are arranged near the memory (storage array), if the data of 2K*4K*32 shown in (b) in FIG.
  • the storage device may further include an image compression circuit, where the image compression circuit is configured to compress the first image frame before the first image frame is written into the storage array.
  • the first image frame data stored in the storage array may be image data compressed by the image compression circuit. It can be understood that since the image data compressed by the image compression circuit has a smaller data volume than the uncompressed original data, by storing the compressed image data in the storage array, the write bandwidth and capacity of the storage array can be further reduced , saving storage resources.
  • the storage device may further include a write decoder for writing the first image frame data into the storage array.
  • the first image frame data written into the storage array by the write decoder may be original image data, or image data compressed by an image compression circuit.
  • the write decoder can sequentially write the 8-bit data of each pixel in the first image frame into the storage array. After the write decoder writes the 8bit data of each pixel in the first image frame into the storage array, the data of the same bit plane in the first image frame can be stored in the same row of the storage array, or can be stored in the storage array The same column can also be stored in multiple rows and/or columns of the storage array.
  • the compensation circuit and the encoding circuit are built into the storage device, so that the compensation circuit and the encoding circuit are arranged near the storage array, so that part or all of the data of a bit plane can be gated and stored in the storage device.
  • the data of the bit plane is compensated and encoded internally, and the storage device can directly output the data of a bit plane after compensation and encoding.
  • this scheme can gate the data of one bit plane by setting the compensation circuit and the encoding circuit close to the storage array, and can Reduce read bandwidth to 1/8.
  • the storage device provided by the embodiment of the present application can significantly reduce the read bandwidth, and the cost is low. And by writing the original image data or the first image frame data compressed by the compression circuit into the storage array, compared with the scheme shown in Figure 1, since the first image frame data written in the storage array has not been compensated and encoded , therefore, the amount of data written into the storage array is small, and the write bandwidth and capacity of the storage device can be reduced.
  • the embodiment of the present application also provides a driver chip, as shown in Figure 8, the driver chip may include the storage device shown in Figure 6 or Figure 7, and an interface circuit, the storage device is used to receive the first image through the interface circuit frame data.
  • the driver chip may include the storage device shown in Figure 6 or Figure 7, and an interface circuit, the storage device is used to receive the first image through the interface circuit frame data.
  • the driver chip can also include an image processing module, which can convert, adjust, and enhance the original image data to obtain the final video information stream in the RGB or YUV domain.
  • an image processing module which can convert, adjust, and enhance the original image data to obtain the final video information stream in the RGB or YUV domain.
  • the driver chip may also include an interface format conversion circuit and an output interface, and the interface format conversion circuit is used to perform data and frame format conversion on the data output by the storage device shown in Figure 6 or Figure 7 .
  • the output interface is used to output the converted data to the LCOS panel to drive the liquid crystal of the LCOS panel.
  • the output interface may include, but is not limited to, an LVDS interface.
  • FIG. 8 only illustrates an example where the output interface is an LVDS interface. In practical applications, the type of the output interface may be related to the type of the panel, which is not limited in this embodiment of the present application.
  • the present application provides a method for driving a storage device.
  • the storage device may be the storage device shown in FIG. 6 or 7. As shown in FIG. 9, the method may include the following steps:
  • the read decoder selects the data of the first bit plane and the compensation parameters corresponding to the data of the first bit plane based on the read request.
  • the first image frame includes multiple bit planes, and the first bit plane is any one of the multiple bit planes. Compensation parameters corresponding to different data of the same bit plane in the first image frame may be the same or different. Compensation parameters corresponding to data of multiple bit planes included in the first image frame may be the same or different, which is not limited in this embodiment of the present application. For related descriptions about the first image frame data and compensation parameters, reference may be made to the foregoing embodiments, and details are not repeated here.
  • the read request may include a high-order address and a low-order address
  • the high-order address may be used to gate the data of the first bit plane and the compensation parameters corresponding to the data of the first bit plane.
  • the lower bits of the address can be used to assert the select signal to enable the selector.
  • the read decoder in the above step S901 selects the data of the first bit plane and the compensation parameters corresponding to the data of the first bit plane, which may include: the read decoder selects the data based on the upper address in the read request Through the data of the first bit plane, and the compensation parameters corresponding to the data of the first bit plane.
  • the compensation circuit compensates the data of the first bit plane based on the compensation parameter corresponding to the data of the first bit plane.
  • the multiplier and the adder in the compensation circuit can compensate and correct the data of the first bit plane based on the compensation parameters corresponding to the data of the first bit plane, so as to adjust the gain and sum of the gray levels of each pixel. Offset.
  • the encoding circuit encodes the data of the first bit plane compensated by the compensation circuit.
  • the encoding circuit can use a look-up table LUT to implement the encoding function, and the amount of data encoded by the LUT can be expanded to four times the original data.
  • the selector selects and outputs the data of the first bit plane encoded by the encoding circuit.
  • the selector may determine a selection signal based on the lower address in the read request, and the selection signal is used to gate the selector.
  • the selection signal can also be used to select the target bit-plane encoded by the encoding circuit.
  • the selector sequentially selects multiple rows corresponding to the data of the second bit plane according to the low address in the read request.
  • the selector sequentially outputs a plurality of data corresponding to the second bit plane, so that the data of the second bit plane can be output to the LCOS panel.
  • the above method may further include writing the first image frame data into the storage array based on the write request by the write decoder.
  • the first image frame data written into the storage array by the write decoder may be original image data, or image data compressed by an image compression circuit.
  • the compensation circuit and the encoding circuit are built in the storage device, so that the compensation circuit and the encoding circuit are arranged close to the storage array, so that part or all of the data of a bit plane can be selected, and Compensation and coding are performed on the data of the bit plane inside the storage device, and the storage device can directly output the data of a bit plane after compensation and coding.
  • this scheme can reduce the read bandwidth to 1/8 by gating the data of one bit plane. Therefore, the storage device provided by the embodiment of the present application can significantly reduce the read bandwidth, and the cost is low.
  • the embodiment of the present application also provides a computer-readable storage medium, in which computer program code is stored.
  • the electronic device executes the driving method shown in FIG. 9 .
  • the embodiment of the present application also provides a computer program product, which causes the computer to execute the driving method shown in FIG. 9 when the computer program product is run on the computer.
  • the steps of the methods or algorithms described in connection with the disclosure of this application can be implemented in the form of hardware, or can be implemented in the form of a processor executing software instructions.
  • Software instructions can be composed of corresponding software modules, and software modules can be stored in random access memory (Random Access Memory, RAM), flash memory, erasable programmable read-only memory (Erasable Programmable ROM, EPROM), electrically erasable Programmable read-only memory (Electrically EPROM, EEPROM), registers, hard disk, removable hard disk, CD-ROM, or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium.
  • the storage medium may also be a component of the processor.
  • the processor and storage medium can be located in the ASIC.
  • the ASIC may be located in the core network interface device.
  • the processor and the storage medium may also exist in the core network interface device as discrete components.
  • the functions described in the present invention may be implemented by hardware, software, firmware or any combination thereof.
  • the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
  • Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage media may be any available media that can be accessed by a general purpose or special purpose computer.

Abstract

A storage device and a driving method therefor, which relate to the field of circuits, and which solve the problem of the relatively high memory bandwidth and capacity requirements of existing memories. Specifically: customizing a storage device, the storage device comprising a storage array, a read decoder, a compensation circuit, an encoding circuit, and a selector. The storage array is used to store image frame data and compensation parameters. On the basis of a read request, the read decoder gates bit-plane data and compensation parameters corresponding to the bit-plane data. On the basis of the compensation parameters corresponding to the bit-plane data, the compensation circuit compensates the bit-plane data. The encoding circuit encodes the bit-plane data compensated by the compensation circuit. On the basis of the read request, the selector selects and outputs the bit-plane data encoded by the encoding circuit.

Description

一种存储装置及其驱动方法A storage device and its driving method 技术领域technical field
本申请实施例涉及电路领域,尤其涉及一种存储装置及其驱动方法。The embodiments of the present application relate to the circuit field, and in particular, to a storage device and a driving method thereof.
背景技术Background technique
目前,硅基液晶(liquid cystal on silicon,LCOS)作为一种微显示技术,广泛应用于投影仪、虚拟现实(virtual reality,VR)显示、增强现实(augmented reality,AR)显示、激光电视等领域。为了提升LCOS的显示效果,在LCOS驱动时,可以通过补偿电路和补偿参数对原始数据进行补偿校正,并将补偿后的数据编码输出至LCOS面板。At present, liquid crystal on silicon (LCOS), as a micro-display technology, is widely used in projectors, virtual reality (virtual reality, VR) display, augmented reality (augmented reality, AR) display, laser TV and other fields. . In order to improve the display effect of LCOS, when LCOS is driven, the original data can be compensated and corrected through the compensation circuit and compensation parameters, and the compensated data can be encoded and output to the LCOS panel.
图1为一种数字LCOS的驱动芯片,如图1所示,该驱动芯片包括补偿电路、参数存储器、编码电路、行缓存、存储器以及存储控制器。通过补偿电路及补偿参数对输入数据进行补偿校正,该输入数据可以是原始图像数据,将补偿后的数据输入编码电路进行编码,存储控制器配合行缓存对编码后的数据进行缓存和转置。存储控制器通过写指针将编码后的数据写入存储器,通过读指针从存储器读出数据。FIG. 1 is a digital LCOS driver chip. As shown in FIG. 1 , the driver chip includes a compensation circuit, a parameter memory, an encoding circuit, a row buffer, a memory, and a storage controller. The input data is compensated and corrected through the compensation circuit and the compensation parameters. The input data may be original image data, and the compensated data is input into the encoding circuit for encoding. The storage controller cooperates with the line buffer to cache and transpose the encoded data. The storage controller writes the coded data into the memory through the write pointer, and reads the data from the memory through the read pointer.
但是,输入数据经过补偿校正及编码后,数据量会急剧增加(例如,通常数据量可以膨胀3至6倍)。例如,如图2所示,输入数据中每个像素点为8bit,经补偿编码后的输出数据中每个像素点膨胀为32bit,补偿编码后的输出数据以比特平面(bit-plane)的形式输出至LCOS面板。结合图1可知,由于写入存储器的数据以及从存储器读出的数据均为补偿及编码后的数据,因此写入存储器的数据量以及从存储器读出的数据量较大,对存储器的带宽和容量的要求较高,成本较高。However, after the input data is compensated, corrected and encoded, the amount of data will increase dramatically (for example, the amount of data can usually be expanded by 3 to 6 times). For example, as shown in Figure 2, each pixel in the input data is 8 bits, and each pixel in the output data after compensation encoding is expanded to 32 bits, and the output data after compensation encoding is in the form of a bit-plane Output to LCOS panel. It can be seen from Fig. 1 that since the data written into the memory and the data read from the memory are compensated and coded data, the amount of data written into the memory and the amount of data read from the memory are relatively large, which affects the bandwidth of the memory and the data read from the memory. The capacity requirement is higher and the cost is higher.
发明内容Contents of the invention
本申请实施例提供一种存储装置及其驱动方法,能够降低存储装置的容量和带宽需求,降低成本。Embodiments of the present application provide a storage device and a driving method thereof, which can reduce capacity and bandwidth requirements of the storage device and reduce costs.
本申请实施例采用如下技术方案:The embodiment of the present application adopts the following technical solutions:
本申请实施例的第一方面,提供一种存储装置,该存储装置包括:存储阵列、读译码器、补偿电路、编码电路以及选择器;该存储阵列用于存储第一图像帧数据以及补偿参数,存储阵列耦合至补偿电路的输入端,读译码器连接存储阵列的行选通线或列选通线,补偿电路的输出端通过编码电路与选择器的输入端耦合连接。其中,读译码器,用于基于读请求,选通第一比特平面的数据,以及第一比特平面的数据对应的补偿参数;第一图像帧包括多个比特平面,第一比特平面为多个比特平面中的任一个比特平面。补偿电路,用于基于第一比特平面的数据对应的补偿参数,对第一比特平面的数据进行补偿。编码电路,用于对补偿电路补偿后的第一比特平面的数据进行编码。选择器,用于选择输出编码电路编码后的第一比特平面的数据。According to the first aspect of the embodiments of the present application, there is provided a storage device, which includes: a storage array, a read decoder, a compensation circuit, an encoding circuit, and a selector; the storage array is used for storing the first image frame data and compensating parameter, the storage array is coupled to the input end of the compensation circuit, the read decoder is connected to the row gate line or the column gate line of the memory array, and the output end of the compensation circuit is coupled to the input end of the selector through the encoding circuit. Wherein, the read decoder is used to gate the data of the first bit plane and the compensation parameters corresponding to the data of the first bit plane based on the read request; the first image frame includes a plurality of bit planes, and the first bit plane is multiple Any one of the bit-planes. The compensation circuit is configured to compensate the data of the first bit plane based on the compensation parameter corresponding to the data of the first bit plane. An encoding circuit, configured to encode the data of the first bit plane compensated by the compensation circuit. The selector is used to select and output the data of the first bit plane encoded by the encoding circuit.
基于本方案,通过将补偿电路和编码电路内置于存储装置中,读译码器基于读请求可以选通第一比特平面的部分或全部数据,以及该比特平面的数据对应的补偿参数, 并通过补偿电路和编码电路对该比特平面的数据进行补偿和编码,再将补偿编码后的数据输出存储装置。可以理解的,由于本方案将补偿电路和编码电路内置于存储装置中,因此可以选通第一比特平面的数据,并在存储装置内部对该第一比特平面的数据进行补偿编码,该存储装置可以直接输出补偿编码后的第一比特平面的数据。与存储器独立于补偿电路和编码电路时,需要从存储器依次读取每个像素点的所有比特位的数据相比,本方案通过将补偿电路和编码电路近内存(存储阵列)设置,可以直接寻址一个比特平面的数据,而不是寻址一个像素点的所有比特位的数据,因此能够降低存储装置的读带宽需求。而且,本方案在存储阵列中存储的第一图像帧数据为未经补偿编码的数据,因此写入存储阵列的数据量较小,能够降低存储装置的写带宽和容量。Based on this scheme, by building the compensation circuit and the encoding circuit into the storage device, the read decoder can select part or all of the data of the first bit plane based on the read request, and the compensation parameters corresponding to the data of the bit plane, and pass The compensation circuit and the encoding circuit perform compensation and encoding on the data of the bit plane, and then output the compensated encoded data to the storage device. It can be understood that since the compensation circuit and the encoding circuit are built into the storage device in this solution, the data of the first bit plane can be gated, and the data of the first bit plane can be compensated and encoded inside the storage device. Data of the compensated-encoded first bit-plane may be directly output. Compared with when the memory is independent of the compensation circuit and the encoding circuit, it is necessary to sequentially read all the bit data of each pixel from the memory. Addressing the data of one bit plane, instead of addressing the data of all bits of a pixel, can reduce the read bandwidth requirement of the storage device. Moreover, in this solution, the first image frame data stored in the storage array is data without compensation encoding, so the amount of data written into the storage array is small, which can reduce the write bandwidth and capacity of the storage device.
可选的,当读译码器连接存储阵列的行选通线时,选择器用于列选通。当读译码器连接存储阵列的列选通线时,选择器用于行选通。Optionally, when the read decoder is connected to the row gate line of the memory array, the selector is used for column gate. When the read decoder is connected to the column gate line of the memory array, the selector is used for row gate.
结合第一方面,在一种实现方式中,上述读译码器基于读请求选通的第一比特平面的数据为该第一比特平面的部分数据或全部数据。With reference to the first aspect, in an implementation manner, the data of the first bit plane gated by the read decoder based on the read request is part or all of the data of the first bit plane.
基于本方案,读译码器基于读请求可以选通第一图像帧中位于同一个比特平面的部分像素点的1bit数据,也可以选通第一图像帧中位于同一个比特平面的所有像素点的1bit数据,并且在存储装置内部进行补偿和编码,直接将补偿编码后的一个比特平面的数据输出。而不需要读取第一图像帧中每个像素点的所有比特位的数据,再对读取的数据在存储器外进行补偿编码,因此能够降低存储装置带宽的需求。Based on this scheme, the read decoder can select 1-bit data of some pixels located in the same bit plane in the first image frame based on the read request, and can also select all pixels located in the same bit plane in the first image frame The 1-bit data is compensated and coded inside the storage device, and the compensated coded data of one bit plane is directly output. It is not necessary to read all the bit data of each pixel in the first image frame, and then perform compensation encoding on the read data outside the memory, thus reducing the bandwidth requirement of the storage device.
结合第一方面,在一种实现方式中,上述读请求包括第一地址,读译码器,具体用于基于读请求中的第一地址,选通第一比特平面的数据,以及第一比特平面的数据对应的补偿参数。With reference to the first aspect, in an implementation manner, the above-mentioned read request includes a first address, and a read decoder is specifically configured to gate the data of the first bit plane based on the first address in the read request, and the first bit The compensation parameters corresponding to the data of the plane.
可选的,该第一地址可以为读请求中的高位地址。Optionally, the first address may be an upper address in the read request.
基于本方案,读译码器可以基于读请求中的高位地址(第一地址)直接寻址第一比特平面的数据及该第一比特平面的数据对应的补偿参数,能够同时选通第一比特平面的数据及该第一比特平面的数据对应的补偿参数,并基于该补偿参数对第一比特平面的数据进行补偿校正。与现有技术在存储器中依次读取第一图像帧中每个像素点的数据相比,本方案能够直接选通比特平面的数据,读取效率较高。与现有技术中将补偿参数和图像数据存储在不同的存储器相比,本方案通过将补偿参数与第一图像帧数据均存入存储装置中的存储阵列中,不仅能够降低成本,而且可以提高读取效率。Based on this solution, the read decoder can directly address the data of the first bit plane and the compensation parameters corresponding to the data of the first bit plane based on the high address (first address) in the read request, and can simultaneously select the first bit The compensation parameters corresponding to the data of the plane and the data of the first bit plane are compensated and corrected based on the compensation parameters. Compared with the prior art of sequentially reading the data of each pixel in the first image frame in the memory, this solution can directly select the data of the bit plane, and the reading efficiency is higher. Compared with storing the compensation parameters and image data in different memories in the prior art, this solution can not only reduce the cost, but also improve read efficiency.
结合第一方面,在一种实现方式中,上述读请求还包括第二地址;读译码器基于该读请求中的第二地址,确定选择信号,该选择信号用于选通选择器。With reference to the first aspect, in an implementation manner, the read request further includes a second address; the read decoder determines a selection signal based on the second address in the read request, and the selection signal is used to enable the selector.
可选的,该第二地址可以为读请求中的低位地址。Optionally, the second address may be a lower address in the read request.
基于本方案,读译码器可以基于读请求中的低位地址(第二地址),选通选择器,从而输出补偿编码后的某一个比特平面的数据。也就是说,本方案通过高位地址选通比特平面的数据,并通过低位地址选通选择器,以将该比特平面补偿编码后的比特平面的数据输出,而且对该比特平面的补偿和编码均在存储装置内部进行,因此能够降低存储装置的读带宽。Based on this solution, the read decoder can select the selector based on the lower address (second address) in the read request, so as to output data of a certain bit plane after compensation encoding. That is to say, in this scheme, the data of the bit plane is gated through the high-order address, and the selector is gated through the low-order address to output the data of the bit-plane after compensation and encoding of the bit-plane, and the compensation and encoding of the bit-plane are equal It is performed inside the storage device, so the read bandwidth of the storage device can be reduced.
结合第一方面,在一种实现方式中,上述选择信号还用于选通目标比特平面,该目标比特平面为经编码电路编码后的一个比特平面;选择器,具体用于基于选择信号, 选择输出目标比特平面的数据。In combination with the first aspect, in an implementation manner, the above selection signal is also used to select a target bit plane, and the target bit plane is a bit plane encoded by an encoding circuit; the selector is specifically used to select based on the selection signal Output the data of the target bit-plane.
基于本方案,由于第一比特平面的数据经补偿和编码后,数据量会发生膨胀,第一比特平面可能会膨胀为多个比特平面,本方案基于读请求中的低位地址可以确定需要输出的目标比特平面,并通过选择器输出补偿编码后的该目标比特平面的数据。与存储器独立于补偿电路和编码电路时,如果要输出一个比特平面的数据,需要将图像帧中所有像素点的数据依次读取,并对每个像素点的数据进行补偿编码,才能完成一个比特平面的数据输出相比,本方案可以在存储装置内部实现对一个比特平面进行补偿和编码,并将补偿编码后的其中一个比特平面的数据从存储装置输出,能够显著的降低存储装置的读带宽。Based on this scheme, after the data of the first bit plane is compensated and encoded, the amount of data will expand, and the first bit plane may expand into multiple bit planes. This scheme can determine the output data based on the low address in the read request. the target bit plane, and output the compensated encoded data of the target bit plane through the selector. When the memory is independent of the compensation circuit and the encoding circuit, if you want to output the data of a bit plane, you need to read the data of all pixels in the image frame in sequence, and perform compensation encoding on the data of each pixel to complete a bit Compared with the data output of two planes, this solution can realize compensation and encoding of a bit plane inside the storage device, and output the data of one of the bit planes after compensation and encoding from the storage device, which can significantly reduce the read bandwidth of the storage device .
结合第一方面,在一种实现方式中,存储阵列中存储的第一图像帧数据为原始数据。With reference to the first aspect, in an implementation manner, the first image frame data stored in the storage array is original data.
基于本方案,通过将未经补偿编码的原始数据写入存储阵列,与存入存储器的图像数据为补偿和编码后的数据相比,由于本方案在存储阵列中存储的第一图像帧数据未经补偿和编码处理,因此数据量较小,能够降低存储装置的写带宽和容量。Based on this scheme, by writing the original data without compensation and encoding into the storage array, compared with the image data stored in the memory as compensated and encoded data, since the first image frame data stored in the storage array in this scheme is not After compensation and encoding processing, the amount of data is small, which can reduce the write bandwidth and capacity of the storage device.
结合第一方面,在一种实现方式中,存储装置还包括图像压缩电路,该图像压缩电路用于在第一图像帧写入存储阵列之前,对第一图像帧进行压缩。With reference to the first aspect, in an implementation manner, the storage device further includes an image compression circuit configured to compress the first image frame before the first image frame is written into the storage array.
基于本方案,写入存储阵列的数据可以为经图像压缩电路处理后的数据,而且该写入存储阵列中的第一图像帧数据未经补偿和编码处理,因此能够进一步降低存储装置的写带宽和容量。Based on this solution, the data written into the storage array can be data processed by the image compression circuit, and the first image frame data written into the storage array has not been compensated and encoded, so the write bandwidth of the storage device can be further reduced and capacity.
结合第一方面,在一种实现方式中,上述存储装置还可以包括写译码器,该写译码器用于将第一图像帧中每个像素点数据依次写入存储阵列中。可选的,写译码器在将第一图像帧中每个像素点的数据写入存储阵列时,可以将每个像素点中同一个比特位的数据写入行地址或列地址相同的存储单元中,从而使得存储阵列中同一行地址或列地址的多个存储单元存储同一个比特平面的数据。With reference to the first aspect, in an implementation manner, the above-mentioned storage device may further include a write decoder, configured to sequentially write the data of each pixel in the first image frame into the storage array. Optionally, when the write decoder writes the data of each pixel in the first image frame into the memory array, it can write the data of the same bit in each pixel into the memory with the same row address or column address. In the unit, so that multiple storage units with the same row address or column address in the storage array store the data of the same bit plane.
本申请实施例的第二方面,提供一种存储装置的驱动方法,该存储装置包括:存储阵列、读译码器、补偿电路、编码电路以及选择器;存储阵列用于存储第一图像帧数据以及补偿参数,存储阵列耦合至补偿电路的输入端,读译码器连接存储阵列的行选通线或列选通线,补偿电路的输出端通过编码电路与选择器的输入端耦合连接。该驱动方法包括:读译码器基于读请求,选通第一比特平面的数据,以及第一比特平面的数据对应的补偿参数;第一图像帧包括多个比特平面,第一比特平面为多个比特平面中的任一个比特平面。补偿电路基于第一比特平面的数据对应的补偿参数,对第一比特平面的数据进行补偿。编码电路对补偿电路补偿后的第一比特平面的数据进行编码。选择器选择输出编码电路编码后的第一比特平面的数据。The second aspect of the embodiment of the present application provides a method for driving a storage device, the storage device includes: a storage array, a read decoder, a compensation circuit, an encoding circuit, and a selector; the storage array is used to store the first image frame data As well as compensation parameters, the storage array is coupled to the input end of the compensation circuit, the read decoder is connected to the row gate line or the column gate line of the memory array, and the output end of the compensation circuit is coupled to the input end of the selector through the encoding circuit. The driving method includes: the read decoder gates the data of the first bit plane based on the read request, and the compensation parameters corresponding to the data of the first bit plane; the first image frame includes a plurality of bit planes, and the first bit plane is multiple Any one of the bit-planes. The compensation circuit compensates the data of the first bit plane based on the compensation parameter corresponding to the data of the first bit plane. The encoding circuit encodes the data of the first bit plane compensated by the compensation circuit. The selector selects and outputs the data of the first bit-plane encoded by the encoding circuit.
结合第二方面,在一种实现方式中,上述读译码器基于所述读请求选通的所述第一比特平面的数据为所述第一比特平面的部分数据或全部数据。With reference to the second aspect, in an implementation manner, the data of the first bit plane gated by the read decoder based on the read request is part or all of the data of the first bit plane.
结合第二方面,在一种实现方式中,读请求包括第一地址;读译码器基于读请求,选通第一比特平面的数据,以及第一比特平面的数据对应的补偿参数,包括:With reference to the second aspect, in an implementation manner, the read request includes the first address; the read decoder gates the data of the first bit plane based on the read request, and the compensation parameters corresponding to the data of the first bit plane include:
读译码基于第一地址,选通第一比特平面的数据,以及第一比特平面的数据对应的补偿参数。The read decoding is based on the first address, strobes the data of the first bit plane, and the compensation parameter corresponding to the data of the first bit plane.
结合第二方面,在一种实现方式中,读请求还包括第二地址;该方法还包括:With reference to the second aspect, in an implementation manner, the read request further includes a second address; the method further includes:
读译码器基于第二地址,确定选择信号;选择信号用于选通选择器。The read decoder determines a selection signal based on the second address; the selection signal is used to gate the selector.
结合第二方面,在一种实现方式中,选择信号还用于选通目标比特平面,目标比特平面为经编码电路编码后的一个比特平面;选择器基于读请求,选择输出编码电路编码后的第一比特平面的数据,包括:In combination with the second aspect, in an implementation manner, the selection signal is also used to select the target bit plane, and the target bit plane is a bit plane encoded by the encoding circuit; the selector selects and outputs the bit plane encoded by the encoding circuit based on the read request. The data of the first bit plane, including:
选择器基于选择信号,选择输出目标比特平面。The selector selects an output target bit plane based on the selection signal.
结合第二方面,在一种实现方式中,存储阵列中存储的第一图像帧数据为原始数据。With reference to the second aspect, in an implementation manner, the first image frame data stored in the storage array is original data.
结合第二方面,在一种实现方式中,存储装置还包括图像压缩电路,该方法还包括:With reference to the second aspect, in an implementation manner, the storage device further includes an image compression circuit, and the method further includes:
图像压缩电路在第一图像帧写入存储阵列之前,对第一图像帧进行压缩。The image compression circuit compresses the first image frame before the first image frame is written into the memory array.
结合第二方面,在一种实现方式中,存储阵列中存储的第一图像帧数据为经图像压缩电路压缩后的数据。With reference to the second aspect, in an implementation manner, the first image frame data stored in the storage array is data compressed by an image compression circuit.
上述第二方面的各种实现方式的效果描述可以参考第一方面的相应实现方式的效果描述,在此不再赘述。For descriptions of effects of various implementations of the second aspect above, reference may be made to descriptions of effects of corresponding implementations of the first aspect, and details are not repeated here.
本申请实施例的第三方面,提供一种驱动芯片,该驱动芯片包括接口电路,以及如上述第一方面以及第一方面的各种实现方式所述的存储装置,该存储装置用于通过接口电路接收上述第一图像帧数据。The third aspect of the embodiments of the present application provides a driver chip, the driver chip includes an interface circuit, and the storage device as described in the above first aspect and various implementations of the first aspect, the storage device is used to The circuit receives the above-mentioned first image frame data.
本申请实施例的第四方面,提供一种驱动系统,该驱动系统包括如上述第一方面以及第一方面的各种实现方式所述的存储装置、接口电路,以及LCOS面板,该存储装置用于通过接口电路接收上述第一图像帧数据,该LCOS面板用于显示存储装置输出的补偿及编码后的数据。The fourth aspect of the embodiments of the present application provides a drive system, the drive system includes the storage device, the interface circuit, and the LCOS panel as described in the first aspect and various implementations of the first aspect, and the storage device uses After receiving the above-mentioned first image frame data through the interface circuit, the LCOS panel is used to display the compensated and coded data output by the storage device.
附图说明Description of drawings
图1为本申请实施例提供的一种数字LCOS的驱动芯片的结构示意图;Fig. 1 is the structural representation of the driver chip of a kind of digital LCOS that the embodiment of the application provides;
图2为本申请实施例提供的一种补偿编码前后数据量大小的示意图;FIG. 2 is a schematic diagram of compensating the amount of data before and after encoding provided by the embodiment of the present application;
图3为本申请实施例提供的另一种数字LCOS驱动芯片的结构示意图;Fig. 3 is the structural representation of another kind of digital LCOS driver chip that the embodiment of the present application provides;
图4为本申请实施例提供的一种存储装置的应用场景的系统架构图;FIG. 4 is a system architecture diagram of an application scenario of a storage device provided in an embodiment of the present application;
图5为本申请实施例提供的另一种存储装置的应用场景的系统架构图;FIG. 5 is a system architecture diagram of an application scenario of another storage device provided in an embodiment of the present application;
图6为本申请实施例提供的一种存储装置的结构示意图;FIG. 6 is a schematic structural diagram of a storage device provided by an embodiment of the present application;
图7为本申请实施例提供的另一种存储装置的结构示意图;FIG. 7 is a schematic structural diagram of another storage device provided by an embodiment of the present application;
图8为本申请实施例提供的一种驱动芯片的结构示意图;FIG. 8 is a schematic structural diagram of a driver chip provided by an embodiment of the present application;
图9为本申请实施例提供的一种存储装置的驱动方法的流程示意图。FIG. 9 is a schematic flowchart of a method for driving a storage device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。在本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达, 是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,a和b,a和c,b和c,或,a和b和c,其中a、b和c可以是单个,也可以是多个。另外,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分,本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定。比如,本申请实施例中的第一比特平面的“第一”和第二比特平面中的“第二”仅用于区分不同的比特平面。本申请实施例中出现的第一、第二等描述,仅作示意与区分描述对象之用,没有次序之分,也不表示本申请实施例中对设备个数的特别限定,不能构成对本申请实施例的任何限制。The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In this application, "at least one" means one or more, and "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one item (piece) of a, b or c can represent: a, b, c, a and b, a and c, b and c, or, a and b and c, wherein a, b and c can be single or multiple. In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect, Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order. For example, "first" in the first bit-plane and "second" in the second bit-plane in the embodiment of the present application are only used to distinguish different bit-planes. The first, second, etc. descriptions that appear in the embodiments of this application are only for illustration and to distinguish the description objects. Any limitations of the examples.
需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in this application, words such as "exemplary" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design described herein as "exemplary" or "for example" is not to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.
首先结合图2对本申请实施例中的比特平面进行解释。First, the bit plane in the embodiment of the present application is explained with reference to FIG. 2 .
如图2中的(a)所示,以输入数据的分辨率为2K*4K,每个像素点为8bit为例。图2中的(a)所示的输入数据包括8个比特平面,所有像素点中相同比特位的数据组成一个比特平面。例如,输入数据中所有像素点的第一个比特位的数值可以组成第一个比特平面。As shown in (a) in FIG. 2 , take the resolution of input data as 2K*4K and each pixel as 8 bits as an example. The input data shown in (a) in FIG. 2 includes 8 bit planes, and data of the same bit in all pixels form a bit plane. For example, the values of the first bits of all pixels in the input data may form the first bit plane.
图1为一种数字LCOS的驱动芯片。如图1所示,由于写入存储器的数据以及从存储器读出的数据均为补偿及编码后的数据,因此写入存储器的数据量以及从存储器读出的数据量较大,对存储器的带宽和容量的要求较高,成本较高。Figure 1 is a digital LCOS driver chip. As shown in Figure 1, since the data written into the memory and the data read from the memory are all compensated and encoded data, the amount of data written into the memory and the amount of data read from the memory are relatively large, which affects the bandwidth of the memory. The requirements for capacity and capacity are higher, and the cost is higher.
一种提高存储器带宽和容量的方法,可以通过使用大量的双倍速率(double data rate,DDR)颗粒扩展带宽,或者,使用高带宽存储器(high bandwidth memory,HBM)技术,以提高存储器的带宽和容量。但是,由于图像数据的数据量相对于DDR的容量较小,如果使用大量的DDR颗粒扩展带宽,将造成较多DDR的容量浪费,成本较高。而且在使用大量的DDR颗粒扩展带宽时,由于芯片管脚的数量过多,导致芯片的尺寸较大,成本较高。如果使用HBM技术扩展带宽,需要用先进封装技术,芯片成本较高。A method to improve memory bandwidth and capacity, which can expand bandwidth by using a large number of double data rate (DDR) particles, or use high bandwidth memory (high bandwidth memory, HBM) technology to improve memory bandwidth and capacity. However, since the amount of image data is relatively small compared to the capacity of DDR, if a large number of DDR particles are used to expand the bandwidth, more DDR capacity will be wasted and the cost will be higher. Moreover, when a large number of DDR particles are used to expand the bandwidth, due to the excessive number of chip pins, the size of the chip is larger and the cost is higher. If HBM technology is used to expand bandwidth, advanced packaging technology is required, and the chip cost is relatively high.
图3为另一种数字LCOS的驱动芯片。以未补偿编码时每个像素点为8bit,补偿编码后每个像素点为32bit为例。结合图2,如图3所示,存储控制器将图2中的(a)所示的输入数据(原始图像数据)写入存储器(例如,静态随机存取存储器(static random-access memory,SRAM))中。并从存储器中依次读取每个像素点的8bit数据,通过补偿电路和编码电路依次对该8bit数据进行补偿和编码。由于输出数据输出至LCOS面板时是以图2中的(c)所示的比特平面(bit-plane)的方式输出,因此,在输出第一个比特平面时,首先,从存储器中依次读取每个像素点的8bit数据,对每个像素点的8bit数据进行补偿编码,并对补偿编码后每个像素点的32bit数据中仅保留第一个比特平面对应的1bit数据,将其依次输出至LCOS面板,将其余31bit数据丢弃。然后,再次从存储器中依次读取每个像素点的8bit数据,并再次对每个像素点的8bit数据依次进行补偿和编码,在输出第二个比特平面时,将补偿编码后每个像素点 的32bit数据中仅保留第二个比特平面对应的1bit数据,并将其依次输出至LCOS面板,将其余31bit数据丢弃。依次类推,直至输出完图2中的(b)所示的所有输出数据。Figure 3 is another digital LCOS driver chip. Take for example that each pixel is 8bit when uncompensated encoding, and each pixel is 32bit after compensation encoding. In conjunction with Fig. 2, as shown in Fig. 3, the storage controller writes the input data (raw image data) shown in (a) in Fig. 2 into memory (for example, static random-access memory (static random-access memory, SRAM) ))middle. The 8-bit data of each pixel is sequentially read from the memory, and the 8-bit data is compensated and encoded sequentially through the compensation circuit and the encoding circuit. Since the output data is output to the LCOS panel in the form of a bit-plane (bit-plane) shown in (c) in Figure 2, therefore, when outputting the first bit-plane, first, sequentially read from the memory The 8bit data of each pixel point is compensated and encoded, and only the 1bit data corresponding to the first bit plane is reserved in the 32bit data of each pixel point after compensation encoding, which is sequentially output to The LCOS panel discards the remaining 31bit data. Then, read the 8-bit data of each pixel from the memory in turn, and perform compensation and encoding on the 8-bit data of each pixel in turn. When outputting the second bit plane, each pixel after compensation and encoding In the 32bit data, only the 1bit data corresponding to the second bit plane is reserved, and it is output to the LCOS panel in turn, and the remaining 31bit data are discarded. And so on until all output data shown in (b) in FIG. 2 is output.
图3所示的驱动芯片中,由于写入存储器的输入数据为原始图像数据,并未进行补偿和编码,因此相较于图1所示的方案,能够降低存储器的写入带宽和容量。但是,由于图3所示的方案中,每输出图2中的(c)所示的一个比特平面,就要从存储器中将所有像素点的8bit数据读取一遍,结合图2中(b)所示,如果要将补偿编码后的32个比特平面全部输出,就需要从存储器中将所有像素点的8bit数据读取32遍。这将导致存储器的读带宽变为原来的32倍,功耗较高。In the driver chip shown in FIG. 3 , since the input data written into the memory is original image data without compensation and encoding, compared with the solution shown in FIG. 1 , the write bandwidth and capacity of the memory can be reduced. However, since in the scheme shown in Figure 3, every time a bit plane shown in (c) in Figure 2 is output, the 8bit data of all pixels will be read from the memory once, combined with (b) in Figure 2 As shown, if all 32-bit planes after compensation encoding are to be output, it is necessary to read 8-bit data of all pixels from the memory 32 times. This will result in 32 times the read bandwidth of the memory and higher power consumption.
为了解决LCOS驱动时存储器的读带宽和写带宽较大,导致成本较高的问题。本申请实施例提供了一种存储装置,通过在该存储装置中内置补偿电路和编码电路,因此读译码器可以选通一个比特平面的部分或全部数据,并在该存储装置的内部对该比特平面的数据进行补偿和编码,该存储装置可以直接输出补偿编码后的一个比特平面的数据。与图3所示的方案中存储器独立于补偿电路和编码电路时,需要从存储器依次读取每个像素点的所有比特位的数据相比,本方案通过将补偿电路和编码电路近内存(存储阵列)设置,可以选通一个比特平面的数据,并对一个比特平面的数据进行补偿编码,能够显著的降低存储装置的读带宽,成本较低。而且本申请实施例通过在存储阵列中存储未经补偿编码的图像帧数据,数据量较小,因此,对存储阵列的容量需求较小,能够降低存储装置的写带宽和容量。In order to solve the problem of high cost caused by the large read bandwidth and write bandwidth of the memory when the LCOS is driven. The embodiment of the present application provides a storage device. By building a compensation circuit and an encoding circuit in the storage device, the read decoder can gate part or all of the data of a bit plane, and The data of the bit plane is compensated and encoded, and the storage device can directly output the data of a bit plane after compensation and encoding. Compared with the scheme shown in Figure 3, when the memory is independent of the compensation circuit and the encoding circuit, it is necessary to sequentially read all the bit data of each pixel from the memory. Array) setting, can gate the data of a bit plane, and perform compensation encoding on the data of a bit plane, can significantly reduce the read bandwidth of the storage device, and the cost is low. Moreover, in the embodiment of the present application, by storing the image frame data without compensation encoding in the storage array, the amount of data is small. Therefore, the capacity requirement of the storage array is small, and the write bandwidth and capacity of the storage device can be reduced.
本申请实施例提供的存储装置可以应用于投影仪、VR/AR显示、激光电视等显示设备中。本申请实施例对于该存储装置应用的显示设备的类型并不进行限定,在此仅是示例性说明。The storage device provided in the embodiments of the present application can be applied to display devices such as projectors, VR/AR displays, and laser TVs. The embodiment of the present application does not limit the type of the display device used by the storage device, and this is only an exemplary description.
图4为一种存储装置的应用场景的系统架构图。如图4所示,驱动芯片通过接口电路从视频源接收原始图像数据,将原始图像数据经过图像预处理后输入到本申请实施例提供的存储装置中,该存储装置用于对原始图像数据进行补偿和编码。将经存储装置补偿及编码后的图像数据输出到LCOS面板,控制LCOS面板像素对应区域的液晶材料,调整控制光的反射率,从而控制光源经过LCOS面板后的反射光强度,形成不同灰阶的图像,最终由光学组件投影到人眼或者幕布。FIG. 4 is a system architecture diagram of an application scenario of a storage device. As shown in Figure 4, the driver chip receives the original image data from the video source through the interface circuit, and inputs the original image data into the storage device provided by the embodiment of the present application after image preprocessing, and the storage device is used to process the original image data Compensation and coding. Output the image data compensated and encoded by the storage device to the LCOS panel, control the liquid crystal material in the area corresponding to the pixel of the LCOS panel, and adjust the reflectivity of the control light, so as to control the intensity of the reflected light after the light source passes through the LCOS panel, forming different gray levels The image is finally projected to the human eye or the screen by the optical components.
可选的,图4所示的驱动芯片中的接口电路包括但不限于高清多媒体接口(high definition multimedia interface,HDMI),低电压差分信号(low-voltage differential signaling,LVDS)、移动产业处理器接口(mobile industry processor interface,MIPI)等数据接口。Optionally, the interface circuits in the driver chip shown in Figure 4 include but are not limited to high definition multimedia interface (high definition multimedia interface, HDMI), low-voltage differential signaling (low-voltage differential signaling, LVDS), mobile industry processor interface (mobile industry processor interface, MIPI) and other data interfaces.
本申请实施例提供的存储装置也可以应用于通信领域,例如,该存储装置可以用于驱动全光交换LCOS光处理器。The storage device provided in the embodiment of the present application may also be applied in the communication field, for example, the storage device may be used to drive an all-optical switching LCOS optical processor.
图5为另一种存储装置的应用场景的系统架构图。如图5所示,LCOS驱动芯片包括本申请实施例提供的存储装置,光信号由光纤输入,经过光学棱镜入射到镜子,LCOS驱动芯片中的存储装置输出驱动电压至LCOS面板,控制液晶偏转的角度,以此来控制光信号反射的角度。反射后的光信号经过光学棱镜、补偿光学单元至光栅进行滤光,滤光后经过补偿光学、光学棱镜单元再次入射镜子,LCOS驱动芯片中的存 储装置通过输出驱动电压至LCOS面板,再次控制液晶偏转,反射信号经光学成像及偏振光单元的棱镜至输出的光纤,完成全光交换。本申请实施例提供的存储装置应用于图5所示的LCOS驱动芯片中时,该LCOS驱动芯片通过控制LCOS面板液晶偏转可以实现光交换,能够降低LCOS驱动芯片的带宽和容量需求。FIG. 5 is a system architecture diagram of another application scenario of a storage device. As shown in Figure 5, the LCOS drive chip includes the storage device provided by the embodiment of the present application. The optical signal is input by the optical fiber and incident on the mirror through the optical prism. The storage device in the LCOS drive chip outputs the driving voltage to the LCOS panel to control the deflection of the liquid crystal. Angle, in order to control the angle of light signal reflection. The reflected optical signal passes through the optical prism, the compensation optical unit to the grating for filtering. After filtering, it passes through the compensation optics and the optical prism unit and enters the mirror again. The storage device in the LCOS driver chip outputs the driving voltage to the LCOS panel to control the liquid crystal again. Deflection and reflection signals pass through the prism of the optical imaging and polarization unit to the output optical fiber to complete all-optical switching. When the storage device provided by the embodiment of the present application is applied to the LCOS driver chip shown in FIG. 5 , the LCOS driver chip can realize optical switching by controlling the liquid crystal deflection of the LCOS panel, which can reduce the bandwidth and capacity requirements of the LCOS driver chip.
本申请实施例提供一种存储装置,如图6所示,该存储装置包括存储阵列、读译码器、补偿电路、编码电路以及选择器。存储阵列用于存储第一图像帧数据以及补偿参数,该存储阵列耦合至补偿电路的输入端,读译码器连接存储阵列的行选通线或列选通线,补偿电路的输出端通过编码电路与选择器的输入端耦合连接。读译码器,用于基于读请求,选通第一比特平面的数据,以及第一比特平面的数据对应的补偿参数。An embodiment of the present application provides a storage device. As shown in FIG. 6 , the storage device includes a storage array, a read decoder, a compensation circuit, an encoding circuit, and a selector. The storage array is used to store the first image frame data and compensation parameters, the storage array is coupled to the input end of the compensation circuit, the read decoder is connected to the row gate line or the column gate line of the storage array, and the output end of the compensation circuit passes through the encoding The circuit is coupled and connected to the input end of the selector. The read decoder is configured to gate the data of the first bit plane and the compensation parameters corresponding to the data of the first bit plane based on the read request.
可选的,第一图像帧数据可以为原始图像数据。例如,第一图像帧数据可以为从视频源接收的原始图像数据。如图2中的(a)所示,该第一图像帧数据可以为2K*4K*8的数据,第一图像帧数据中每个像素点可以用8bit数据表示。Optionally, the first image frame data may be original image data. For example, the first image frame data may be raw image data received from a video source. As shown in (a) in FIG. 2 , the first image frame data may be 2K*4K*8 data, and each pixel in the first image frame data may be represented by 8bit data.
第一图像帧可以包括多个比特平面(bit-plane)。第一比特平面为该多个比特平面中的任一个比特平面。第一图像帧包括的比特平面的数量与第一图像帧中每个像素点的比特位数有关。例如,如图2中的(a)所示,第一图像帧中每个像素点的比特位为8bit时,该第一图像帧包括8个比特平面,第一比特平面为2K*4K bit。The first image frame may include a plurality of bit-planes. The first bit plane is any one of the multiple bit planes. The number of bit planes included in the first image frame is related to the number of bits of each pixel in the first image frame. For example, as shown in (a) in FIG. 2, when the bit of each pixel in the first image frame is 8 bits, the first image frame includes 8 bit planes, and the first bit plane is 2K*4K bit.
读译码器基于读请求选通的第一比特平面的数据可以为该第一比特平面的部分数据,也可以为该第一比特平面的全部数据,本申请实施例对此并不限定。可以理解的,与现有技术相比,本申请实施例可以直接寻址一个比特平面的数据,而不是寻址一个像素点的所有比特位的数据,因此能够降低存储装置的读带宽需求。The data of the first bit plane gated by the read decoder based on the read request may be part of the data of the first bit plane, or may be all of the data of the first bit plane, which is not limited in this embodiment of the present application. It can be understood that, compared with the prior art, the embodiment of the present application can directly address the data of a bit plane instead of addressing the data of all bits of a pixel, thus reducing the read bandwidth requirement of the storage device.
例如,以第一图像帧数据为图2中的(a)所示的2K*4K*8的数据为例,该第一图像帧数据包括8个比特平面,若第一比特平面为8个比特平面中的第一个比特平面,读译码器基于读请求可以选通一个像素点的第一个比特位的1bit数据,也可以选通多个像素点的第一个比特位的1bit数据,还可以选通所有像素点的第一个比特位的1bit数据。本申请实施例对于读译码器基于读请求选通的数据量大小并不限定,该数据里大小与第一图像帧数据在存储阵列中的存储方式、选择器的位宽等参数有关。例如,以第一比特平面包括2K*4K bit数据,选择器的位宽为M为例,读译码器基于读请求可以选通第一比特平面的N bit数据,其中N小于等于M。即读译码器基于读请求选通的数据量大小不超过选择器的位宽。For example, taking the first image frame data as the data of 2K*4K*8 shown in (a) in FIG. 2 as an example, the first image frame data includes 8 bit planes, if the first bit plane is 8 bits In the first bit plane in the plane, the read decoder can select the 1-bit data of the first bit of a pixel based on the read request, or select the 1-bit data of the first bit of multiple pixels. It is also possible to strobe the 1-bit data of the first bit of all pixels. The embodiment of the present application does not limit the amount of data that the read decoder strobes based on the read request. The size of the data is related to the storage method of the first image frame data in the storage array, the bit width of the selector and other parameters. For example, taking the first bit plane includes 2K*4K bit data, and the bit width of the selector is M as an example, the read decoder can select N bit data of the first bit plane based on a read request, where N is less than or equal to M. That is, the amount of data gated by the read decoder based on the read request does not exceed the bit width of the selector.
可选的,第一图像帧中同一个比特平面的数据可以存储在存储阵列的同一行,也可以存储在存储阵列的同一列,还可以存储在存储阵列的多行和/或多列,本申请实施例对于第一图像帧数据在存储阵列中的具体存储方式并不限定。Optionally, the data of the same bit plane in the first image frame can be stored in the same row of the storage array, can also be stored in the same column of the storage array, and can also be stored in multiple rows and/or multiple columns of the storage array. The embodiment of the application does not limit the specific storage manner of the first image frame data in the storage array.
示例性的,第一图像帧中同一个比特平面的不同数据对应的补偿参数可以相同,也可以不同。不同比特平面的数据对应的补偿参数可以相同,也可以不同,本申请实施例对此并不限定。可以理解的,在第一图像帧中多个比特平面的数据对应的补偿参数相同的情况下,当读译码器选通该多个比特平面中的任一个比特平面的数据时,该补偿参数均会被选通。在第一图像帧中不同比特平面的数据对应的补偿参数不同的情况下,当读译码器选通一个比特平面的数据时,该比特平面的数据对应的补偿参数也会被选通。Exemplarily, the compensation parameters corresponding to different data of the same bit plane in the first image frame may be the same or different. Compensation parameters corresponding to data of different bit planes may be the same or different, which is not limited in this embodiment of the present application. It can be understood that, in the case that the compensation parameters corresponding to the data of multiple bit planes in the first image frame are the same, when the decoder selects the data of any one of the multiple bit planes, the compensation parameter will be selected. In the case that the compensation parameters corresponding to the data of different bit planes in the first image frame are different, when the decoder selects the data of a bit plane, the compensation parameters corresponding to the data of the bit plane will also be selected.
可选的,第一比特平面的1比特数据对应的补偿参数可以为一个或多个,本申请实施例对于第一比特平面的1比特数据对应的补偿参数的数量并不限定,图6以一个比特平面的1比特数据对应的补偿参数为两个,分别为参数1和参数2为例进行示意。存储阵列中的补偿参数可以预置在存储阵列中(例如,出厂时预置在存储装置中),也可以通过软件写入存储阵列中,本申请实施例对于存储阵列中补偿参数的写入方式并不进行限定。Optionally, there may be one or more compensation parameters corresponding to 1-bit data of the first bit-plane. The embodiment of the present application does not limit the number of compensation parameters corresponding to 1-bit data of the first bit-plane. Figure 6 uses one There are two compensation parameters corresponding to 1-bit data of the bit plane, parameter 1 and parameter 2 respectively, for illustration. The compensation parameters in the storage array can be preset in the storage array (for example, preset in the storage device when leaving the factory), and can also be written into the storage array by software. In the embodiment of the present application, the writing method of the compensation parameters in the storage array is Not limited.
上述读请求用于读取第一比特平面的数据,读请求可以包括第一地址和第二地址。该第一地址可以为高位地址,也可以为低位地址。当第一地址为高位地址时,第二地址为低位地址。当第一地址为低位地址时,第二地址为高位地址。读请求中的第一地址用于选通第一比特平面的数据,以及该第一比特平面的数据对应的补偿参数。读请求中的第二地址用于确定选择信号,以选通选择器。例如,如图6所示,以每个比特平面的1比特数据对应的补偿参数包括参数1和参数2为例,当读请求用于读取第一比特平面的数据时,读译码器基于该读请求中的第一地址选通该第一比特平面的数据,以及该第一比特平面的数据对应的参数1和参数2。The above read request is used to read the data of the first bit plane, and the read request may include the first address and the second address. The first address can be a high address or a low address. When the first address is a high address, the second address is a low address. When the first address is a low address, the second address is a high address. The first address in the read request is used to select the data of the first bit plane and the compensation parameters corresponding to the data of the first bit plane. The second address in the read request is used to assert the select signal to enable the selector. For example, as shown in Figure 6, taking the compensation parameters corresponding to 1 bit data of each bit plane including parameter 1 and parameter 2 as an example, when the read request is used to read the data of the first bit plane, the read decoder based on The first address in the read request strobes the data of the first bit plane, and parameter 1 and parameter 2 corresponding to the data of the first bit plane.
可选的,读译码器还用于基于读请求中的第二地址,确定选择信号,该选择信号用于选通选择器。Optionally, the read decoder is further configured to determine a selection signal based on the second address in the read request, and the selection signal is used to enable the selector.
当读译码器连接存储阵列的行选通线时,选择器用于列选通。当读译码器连接存储阵列的列选通线时,选择器用于行选通。本申请实施例对于读译码器连接存储阵列的行选通线还是列选通线并不限定,图6、图7和图8以读译码器连接存储阵列的列选通线为例进行示意。When the read decoder is connected to the row gate line of the memory array, the selector is used for column gate. When the read decoder is connected to the column gate line of the memory array, the selector is used for row gate. The embodiment of the present application does not limit whether the read decoder is connected to the row gate line or the column gate line of the storage array. Figure 6, Figure 7 and Figure 8 take the read decoder connected to the column gate line of the storage array as an example. hint.
补偿电路,用于基于第一比特平面的数据对应的补偿参数,对第一比特平面的数据进行补偿。The compensation circuit is configured to compensate the data of the first bit plane based on the compensation parameter corresponding to the data of the first bit plane.
示例性的,如图6所示,读译码器选通第一比特平面的数据以及该第一比特平面的数据对应的参数1和参数2后,将第一比特平面的数据以及该第一比特平面的数据对应的参数1和参数2输出到补偿电路,通过补偿电路中的乘法和加法运算对第一比特平面的数据进行补偿校正,以调整各个像素灰阶的增益和偏移量。本申请实施例对于补偿电路的具体电路结构并不进行限定,图6至图8以补偿电路包括加法器和乘法器为例进行示意,实际应用中可以采用其他补偿方式对每个比特平面的数据进行补偿校正。Exemplarily, as shown in FIG. 6, after the read decoder strobes the data of the first bit plane and the parameter 1 and parameter 2 corresponding to the data of the first bit plane, the data of the first bit plane and the first The parameter 1 and parameter 2 corresponding to the data of the bit plane are output to the compensation circuit, and the data of the first bit plane are compensated and corrected through multiplication and addition operations in the compensation circuit to adjust the gain and offset of each pixel gray scale. The embodiment of the present application does not limit the specific circuit structure of the compensation circuit. Figures 6 to 8 illustrate the compensation circuit including an adder and a multiplier as an example. In practical applications, other compensation methods can be used to correct the data of each bit plane Make compensation corrections.
编码电路,用于对补偿电路补偿后的第一比特平面的数据进行编码。An encoding circuit, configured to encode the data of the first bit plane compensated by the compensation circuit.
示例性的,如图6所示,该编码电路可以使用查找表(look-up-table,LUT)实现编码功能,经该LUT编码后的数据量可以膨胀为原始数据的4倍。比如,以第一比特平面的数据为2K*4K为例,经补偿校正和LUT编码后的数据可以膨胀为4*2K*4K。即一个比特平面的数据经补偿和编码后可以膨胀为多个比特平面的数据。本申请实施例对于编码电路的具体编码方式并不限定,图6至图8以编码电路使用LUT编码为例进行示意。Exemplarily, as shown in FIG. 6 , the encoding circuit can use a look-up table (look-up-table, LUT) to realize the encoding function, and the amount of data encoded by the LUT can be expanded to 4 times of the original data. For example, taking the data of the first bit plane as 2K*4K as an example, the data after compensation correction and LUT encoding can be expanded to 4*2K*4K. That is, data of one bit plane can be expanded into data of multiple bit planes after being compensated and encoded. The embodiment of the present application does not limit the specific encoding manner of the encoding circuit, and FIG. 6 to FIG. 8 are illustrated by taking the encoding circuit using LUT encoding as an example.
选择器,用于选择输出编码电路编码后的一个比特平面的数据。The selector is used to select and output the data of one bit plane encoded by the encoding circuit.
示例性的,选择器可以为MUX(multiplexer),也可以为其他选择电路,本申请实施例对于选择器的具体类型并不限定。Exemplarily, the selector may be a MUX (multiplexer), or may be other selection circuits, and the embodiment of the present application does not limit the specific type of the selector.
可选的,选择器可以与读译码器耦合连接,也可以直接连接读指针,本申请对选择器的具体连接方式并不限定。图6和图7以选择器与读译码器耦合连接为例进行示例性示意。Optionally, the selector may be coupled to the read decoder, or directly connected to the read pointer, and the present application does not limit the specific connection manner of the selector. FIG. 6 and FIG. 7 illustrate an example by taking the coupled connection between the selector and the read decoder as an example.
选择器可以基于读请求中的第二地址,确定用于选通选择器的选择信号。该选择器可以用于行选通,也可以用于列选通。例如,读译码器连接行选通线时,选择器用于列选通。再例如,读译码器连接列选通线时,选择器用于行通列。The selector may determine a select signal for enabling the selector based on the second address in the read request. This selector can be used for row gating as well as for column gating. For example, when the read decoder is connected to the row gate line, the selector is used for column gate. For another example, when the read decoder is connected to the column gate line, the selector is used to pass the column.
可选的,选择信号还用于选通目标比特平面,该目标比特平面为经编码电路编码后的一个比特平面。选择器,具体用于基于选择信号,选择输出该目标比特平面。Optionally, the selection signal is also used to select a target bit plane, where the target bit plane is a bit plane encoded by the encoding circuit. The selector is specifically configured to select and output the target bit plane based on the selection signal.
示例性的,以读译码器用于列选通,选择器用于行选通为例,读译码器可以根据读请求中的低位地址,确定选择信号,该选择信号用于行选通,并选择输出目标比特平面的数据,选择器基于选择信号输出编码电路编码后的多个比特平面中该目标比特平面对应的数据。Exemplarily, taking the example where the read decoder is used for column gating and the selector is used for row gating as an example, the read decoder can determine a selection signal according to the low address in the read request, the selection signal is used for row gating, and Selecting and outputting the data of the target bit-plane, the selector outputs the data corresponding to the target bit-plane among the plurality of bit-planes encoded by the encoding circuit based on the selection signal.
例如,如图6所示,以第一比特平面经补偿和LUT编码后膨胀为4个2K*4K的比特平面,目标比特平面为4个比特平面中的第二个比特平面为例,读译码器根据读请求中的低位地址,确定选择输出第二个比特平面的数据,选择器依次选通多个行选通线,并依次输出该第二个比特平面对应的多个数据,从而可以将第二比特平面的数据输出至LCOS面板。For example, as shown in Figure 6, take the first bit plane expanded to four 2K*4K bit planes after compensation and LUT encoding, and the target bit plane is the second bit plane in the four bit planes as an example. The coder determines to select and output the data of the second bit plane according to the low address in the read request, and the selector sequentially selects a plurality of row gate lines, and sequentially outputs a plurality of data corresponding to the second bit plane, so that The data of the second bit plane is output to the LCOS panel.
示例性的,结合图2所示,采用图3所示的方案,每次从存储器读取一个像素点的8bit数据,并对每个像素点的8bit数据进行补偿编码,如果要将图2中的(c)所示的补偿编码后的1个比特平面的数据全部输出,就需要从存储器中将所有像素点的8bit数据读取1遍,即需要将图2中的(a)所示的全部数据读出,读取的数据量为2K*4K*8,功耗较高。而采用本申请实施例提供的存储装置,通过将补偿电路和编码电路内置于存储装置中,基于一个或多个读请求选通一个比特平面的全部数据,并在存储装置内部对该比特平面的数据进行补偿编码,如果要将图2中的(c)所示的补偿编码后的1个比特平面全部输出,只需要从存储装置读取补偿编码后的1个比特平面即可,即只需要读取图2中的(c)所示的一个比特平面的数据,读取的数据量为2K*4K*1。Exemplarily, in combination with the scheme shown in FIG. 2, the scheme shown in FIG. 3 is used to read 8-bit data of one pixel from the memory at a time, and perform compensation coding on the 8-bit data of each pixel. If the data in FIG. 2 is to be All the data of one bit plane after the compensation coding shown in (c) is output, and the 8-bit data of all pixels needs to be read from the memory once, that is, the data shown in (a) in Figure 2 needs to be read once. All data is read out, the amount of data read is 2K*4K*8, and the power consumption is high. With the storage device provided by the embodiment of the present application, by building the compensation circuit and the encoding circuit into the storage device, all the data of a bit plane is gated based on one or more read requests, and the data of the bit plane is selected inside the storage device. Compensation encoding is performed on the data. If one bit plane after compensation encoding shown in (c) in FIG. The data of one bit plane shown in (c) in FIG. 2 is read, and the amount of read data is 2K*4K*1.
示例性的,以第一图像帧数据为图2中的(a)所示的2K*4K*8的输入数据,对第一图像帧补偿编码后的数据为图2中的(b)所示的2K*4K*32的输出数据为例,采用图3所示的方案要将图2中的(b)所示的2K*4K*32的数据输出至LCOS面板,需要将图2中的(a)所示的输入数据2K*4K*8读取32遍,即读取的数据量大小为2K*4K*8*32。而采用本申请实施例提供的存储装置,由于补偿电路和编码电路近内存(存储阵列)设置,因此如果要将图2中的(b)所示的2K*4K*32的数据输出至LCOS面板,只需要从存储装置读取图2中的(b)所示的补偿编码后的32个比特平面即可,即对于存储装置而言读取的数据量大小为2K*4K*32。很显然,采用本申请实施例提供的存储装置,相对于图3所示的方案,读取的数据量降低至1/8。可以理解的,带宽可以认为是传输数据的速度,相同时间内带宽越大传输的数据量越多。同理,从数据量的角度来看,相同时间内传输的数据越少,带宽需求越低,因此本方案提供存储装置通过将数据量降低至1/8,故该存储装置的读带宽需求可以降低至1/8。Exemplarily, the first image frame data is the input data of 2K*4K*8 shown in (a) in FIG. Take the output data of 2K*4K*32 as an example, use the scheme shown in Figure 3 to output the data of 2K*4K*32 shown in (b) in Figure 2 to the LCOS panel, you need to ( The input data shown in a) 2K*4K*8 is read 32 times, that is, the size of the read data is 2K*4K*8*32. With the storage device provided by the embodiment of the present application, since the compensation circuit and the encoding circuit are arranged near the memory (storage array), if the data of 2K*4K*32 shown in (b) in FIG. 2 is to be output to the LCOS panel , it is only necessary to read the compensated coded 32-bit planes shown in (b) in FIG. Obviously, using the storage device provided by the embodiment of the present application, compared with the solution shown in FIG. 3 , the amount of read data is reduced to 1/8. It can be understood that the bandwidth can be regarded as the speed of data transmission, and the larger the bandwidth in the same time, the more the amount of data transmitted. Similarly, from the perspective of data volume, the less data transmitted within the same time period, the lower the bandwidth requirement. Therefore, this solution provides a storage device that reduces the data volume to 1/8, so the read bandwidth requirement of the storage device can be Reduced to 1/8.
可选的,如图7所示,本申请实施例提供的存储装置还可以包括图像压缩电路, 该图像压缩电路用于在第一图像帧写入存储阵列之前,对第一图像帧进行压缩。当存储装置包括图像压缩电路时,上述存储阵列中存储的第一图像帧数据可以为经该图像压缩电路压缩后的图像数据。可以理解的,由于经图像压缩电路压缩后的图像数据相较于未压缩的原始数据的数据量小,因此,通过在存储阵列存储压缩后的图像数据,可以进一步降低存储阵列的写带宽和容量,节省存储资源。Optionally, as shown in FIG. 7 , the storage device provided by the embodiment of the present application may further include an image compression circuit, where the image compression circuit is configured to compress the first image frame before the first image frame is written into the storage array. When the storage device includes an image compression circuit, the first image frame data stored in the storage array may be image data compressed by the image compression circuit. It can be understood that since the image data compressed by the image compression circuit has a smaller data volume than the uncompressed original data, by storing the compressed image data in the storage array, the write bandwidth and capacity of the storage array can be further reduced , saving storage resources.
可选的,如图7所示,存储装置还可以包括写译码器,该写译码器用于将第一图像帧数据写入存储阵列。写译码器写入存储阵列中的第一图像帧数据可以为原始图像数据,也可以为经图像压缩电路压缩后的图像数据。Optionally, as shown in FIG. 7 , the storage device may further include a write decoder for writing the first image frame data into the storage array. The first image frame data written into the storage array by the write decoder may be original image data, or image data compressed by an image compression circuit.
例如,结合图2和图7所示,写译码器可以将第一图像帧中每个像素点的8bit数据依次写入存储阵列中。写译码器在将第一图像帧中每个像素点的8bit数据写入存储阵列后,第一图像帧中同一个比特平面的数据可以存储在存储阵列的同一行,也可以存储在存储阵列的同一列,还可以存储在存储阵列的多行和/或多列。For example, as shown in FIG. 2 and FIG. 7 , the write decoder can sequentially write the 8-bit data of each pixel in the first image frame into the storage array. After the write decoder writes the 8bit data of each pixel in the first image frame into the storage array, the data of the same bit plane in the first image frame can be stored in the same row of the storage array, or can be stored in the storage array The same column can also be stored in multiple rows and/or columns of the storage array.
本申请实施例提供的存储装置,通过将补偿电路和编码电路内置在存储装置中,使得补偿电路和编码电路近存储阵列设置,从而可以选通一个比特平面的部分或全部数据,并在存储装置内部对该比特平面的数据进行补偿和编码,该存储装置可以直接输出补偿编码后的一个比特平面的数据。与图3所示的方案中从存储器依次读取每个像素点的所有比特位的数据相比,本方案通过将补偿电路和编码电路近存储阵列设置,可以选通一个比特平面的数据,能够将读带宽降低至1/8。因此,本申请实施例提供的存储装置能够显著的降低读带宽,成本较低。而且通过将原始图像数据或经压缩电路压缩后的第一图像帧数据写入存储阵列,与图1所示的方案相比,由于写入存储阵列中的第一图像帧数据没有经过补偿和编码,因此,写入存储阵列的数据量较小,能够降低存储装置的写带宽和容量。In the storage device provided by the embodiment of the present application, the compensation circuit and the encoding circuit are built into the storage device, so that the compensation circuit and the encoding circuit are arranged near the storage array, so that part or all of the data of a bit plane can be gated and stored in the storage device. The data of the bit plane is compensated and encoded internally, and the storage device can directly output the data of a bit plane after compensation and encoding. Compared with the scheme shown in Figure 3, which sequentially reads the data of all bits of each pixel from the memory, this scheme can gate the data of one bit plane by setting the compensation circuit and the encoding circuit close to the storage array, and can Reduce read bandwidth to 1/8. Therefore, the storage device provided by the embodiment of the present application can significantly reduce the read bandwidth, and the cost is low. And by writing the original image data or the first image frame data compressed by the compression circuit into the storage array, compared with the scheme shown in Figure 1, since the first image frame data written in the storage array has not been compensated and encoded , therefore, the amount of data written into the storage array is small, and the write bandwidth and capacity of the storage device can be reduced.
本申请实施例还提供一种驱动芯片,如图8所示,该驱动芯片可以包括图6或图7所示的存储装置,以及接口电路,该存储装置用于通过该接口电路接收第一图像帧数据。The embodiment of the present application also provides a driver chip, as shown in Figure 8, the driver chip may include the storage device shown in Figure 6 or Figure 7, and an interface circuit, the storage device is used to receive the first image through the interface circuit frame data.
可选的,该驱动芯片还可以包括图像处理模块,该图像处理模块可以将原始图像数据进行转换、调整、增强,得到RGB或者YUV域的最终视频信息流。Optionally, the driver chip can also include an image processing module, which can convert, adjust, and enhance the original image data to obtain the final video information stream in the RGB or YUV domain.
可选的,如图8所示,该驱动芯片还可以包括接口格式转换电路和输出接口,该接口格式转换电路用于将图6或图7所示存储装置输出的数据进行数据和帧格式转换。输出接口用于将转换后的数据输出至LCOS面板以驱动LCOS面板液晶。该输出接口可以包括但不限于LVDS接口,图8仅以输出接口为LVDS接口为例进行示意。实际应用中,该输出接口的类型可以与面板类型有关,本申请实施例对此并不限定。Optionally, as shown in Figure 8, the driver chip may also include an interface format conversion circuit and an output interface, and the interface format conversion circuit is used to perform data and frame format conversion on the data output by the storage device shown in Figure 6 or Figure 7 . The output interface is used to output the converted data to the LCOS panel to drive the liquid crystal of the LCOS panel. The output interface may include, but is not limited to, an LVDS interface. FIG. 8 only illustrates an example where the output interface is an LVDS interface. In practical applications, the type of the output interface may be related to the type of the panel, which is not limited in this embodiment of the present application.
本申请提供一种存储装置的驱动方法,该存储装置可以为图6或图7所示的存储装置,如图9所示,该方法可以包括以下步骤:The present application provides a method for driving a storage device. The storage device may be the storage device shown in FIG. 6 or 7. As shown in FIG. 9, the method may include the following steps:
S901、读译码器基于读请求,选通第一比特平面的数据,以及第一比特平面的数据对应的补偿参数。S901. The read decoder selects the data of the first bit plane and the compensation parameters corresponding to the data of the first bit plane based on the read request.
该第一图像帧包括多个比特平面,第一比特平面为多个比特平面中的任一个比特平面。第一图像帧中同一个比特平面的不同数据对应的补偿参数可以相同,也可以不同。第一图像帧包括的多个比特平面的数据对应的补偿参数可以相同,也可以不同, 本申请实施例对此并不限定。关于第一图像帧数据以及补偿参数的相关描述可以参考前述实施例,在此不再赘述。The first image frame includes multiple bit planes, and the first bit plane is any one of the multiple bit planes. Compensation parameters corresponding to different data of the same bit plane in the first image frame may be the same or different. Compensation parameters corresponding to data of multiple bit planes included in the first image frame may be the same or different, which is not limited in this embodiment of the present application. For related descriptions about the first image frame data and compensation parameters, reference may be made to the foregoing embodiments, and details are not repeated here.
可选的,读请求可以包括高位地址和低位地址,高位地址可以用于选通第一比特平面的数据,以及该第一比特平面的数据对应的补偿参数。低位地址可以用于确定选择信号,以选通选择器。Optionally, the read request may include a high-order address and a low-order address, and the high-order address may be used to gate the data of the first bit plane and the compensation parameters corresponding to the data of the first bit plane. The lower bits of the address can be used to assert the select signal to enable the selector.
上述步骤S901中的读译码器基于读请求,选通第一比特平面的数据,以及第一比特平面的数据对应的补偿参数,可以包括:读译码器基于读请求中的高位地址,选通第一比特平面的数据,以及第一比特平面的数据对应的补偿参数。The read decoder in the above step S901, based on the read request, selects the data of the first bit plane and the compensation parameters corresponding to the data of the first bit plane, which may include: the read decoder selects the data based on the upper address in the read request Through the data of the first bit plane, and the compensation parameters corresponding to the data of the first bit plane.
S902、补偿电路基于第一比特平面的数据对应的补偿参数,对第一比特平面的数据进行补偿。S902. The compensation circuit compensates the data of the first bit plane based on the compensation parameter corresponding to the data of the first bit plane.
例如,如图6所示,补偿电路中的乘法器和加法器可以基于第一比特平面的数据对应的补偿参数,对第一比特平面的数据进行补偿校正,以调整各个像素灰阶的增益和偏移量。For example, as shown in FIG. 6, the multiplier and the adder in the compensation circuit can compensate and correct the data of the first bit plane based on the compensation parameters corresponding to the data of the first bit plane, so as to adjust the gain and sum of the gray levels of each pixel. Offset.
S903、编码电路对补偿电路补偿后的第一比特平面的数据进行编码。S903. The encoding circuit encodes the data of the first bit plane compensated by the compensation circuit.
例如,如图6所示,编码电路可以使用查找表LUT实现编码功能,经该LUT编码后的数据量可以膨胀为原始数据的4倍。For example, as shown in FIG. 6 , the encoding circuit can use a look-up table LUT to implement the encoding function, and the amount of data encoded by the LUT can be expanded to four times the original data.
S904、选择器选择输出编码电路编码后的第一比特平面的数据。S904. The selector selects and outputs the data of the first bit plane encoded by the encoding circuit.
可选的,选择器可以基于读请求中的低位地址,确定选择信号,该选择信号用于选通选择器。Optionally, the selector may determine a selection signal based on the lower address in the read request, and the selection signal is used to gate the selector.
选择信号还可以用于选通经编码电路编码后的目标比特平面。The selection signal can also be used to select the target bit-plane encoded by the encoding circuit.
例如,如图6所示,读译码器根据读请求中的低位地址,如果确定选择输出第二个比特平面的数据,选择器依次选通该第二个比特平面的数据对应的多个行选通线,选择器依次输出该第二个比特平面对应的多个数据,从而可以将第二比特平面的数据输出至LCOS面板。For example, as shown in Figure 6, if the read decoder determines to select and output the data of the second bit plane according to the low address in the read request, the selector sequentially selects multiple rows corresponding to the data of the second bit plane The selector sequentially outputs a plurality of data corresponding to the second bit plane, so that the data of the second bit plane can be output to the LCOS panel.
可选的,上述方法还可以包括写译码器基于写请求,将第一图像帧数据写入存储阵列。写译码器写入存储阵列中的第一图像帧数据可以为原始图像数据,也可以为经图像压缩电路压缩后的图像数据。Optionally, the above method may further include writing the first image frame data into the storage array based on the write request by the write decoder. The first image frame data written into the storage array by the write decoder may be original image data, or image data compressed by an image compression circuit.
本申请实施例提供的存储装置的驱动方法,通过将补偿电路和编码电路内置在存储装置中,使得补偿电路和编码电路近存储阵列设置,从而可以选通一个比特平面的部分或全部数据,并在存储装置内部对该比特平面的数据进行补偿和编码,该存储装置可以直接输出补偿编码后的一个比特平面的数据。与图3所示的方案中从存储器依次读取每个像素点的所有比特位的数据相比,本方案通过选通一个比特平面的数据,因此能够将读带宽降低至1/8。因此,本申请实施例提供的存储装置能够显著的降低读带宽,成本较低。而且通过将原始图像数据或经压缩电路压缩后的第一图像帧数据写入存储阵列,与图1所示的方案相比,由于写入存储阵列中的第一图像帧数据没有经过补偿和编码,因此,写入存储阵列的数据量较小,能够降低存储装置的写带宽和容量。In the driving method of the storage device provided by the embodiment of the present application, the compensation circuit and the encoding circuit are built in the storage device, so that the compensation circuit and the encoding circuit are arranged close to the storage array, so that part or all of the data of a bit plane can be selected, and Compensation and coding are performed on the data of the bit plane inside the storage device, and the storage device can directly output the data of a bit plane after compensation and coding. Compared with the scheme shown in FIG. 3 , which sequentially reads all the bits of data of each pixel from the memory, this scheme can reduce the read bandwidth to 1/8 by gating the data of one bit plane. Therefore, the storage device provided by the embodiment of the present application can significantly reduce the read bandwidth, and the cost is low. And by writing the original image data or the first image frame data compressed by the compression circuit into the storage array, compared with the scheme shown in Figure 1, since the first image frame data written in the storage array has not been compensated and encoded , therefore, the amount of data written into the storage array is small, and the write bandwidth and capacity of the storage device can be reduced.
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序代码,当上述处理器执行该计算机程序代码时,电子设备执行图9所示的 驱动方法。The embodiment of the present application also provides a computer-readable storage medium, in which computer program code is stored. When the above-mentioned processor executes the computer program code, the electronic device executes the driving method shown in FIG. 9 .
本申请实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行图9所示的驱动方法。The embodiment of the present application also provides a computer program product, which causes the computer to execute the driving method shown in FIG. 9 when the computer program product is run on the computer.
结合本申请公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(Random Access Memory,RAM)、闪存、可擦除可编程只读存储器(Erasable Programmable ROM,EPROM)、电可擦可编程只读存储器(Electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于核心网接口设备中。当然,处理器和存储介质也可以作为分立组件存在于核心网接口设备中。The steps of the methods or algorithms described in connection with the disclosure of this application can be implemented in the form of hardware, or can be implemented in the form of a processor executing software instructions. Software instructions can be composed of corresponding software modules, and software modules can be stored in random access memory (Random Access Memory, RAM), flash memory, erasable programmable read-only memory (Erasable Programmable ROM, EPROM), electrically erasable Programmable read-only memory (Electrically EPROM, EEPROM), registers, hard disk, removable hard disk, CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be a component of the processor. The processor and storage medium can be located in the ASIC. In addition, the ASIC may be located in the core network interface device. Certainly, the processor and the storage medium may also exist in the core network interface device as discrete components.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本发明所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should be aware that, in the above one or more examples, the functions described in the present invention may be implemented by hardware, software, firmware or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Protection scope, any modification, equivalent replacement, improvement, etc. made on the basis of the technical solution of the present invention shall be included in the protection scope of the present invention.

Claims (17)

  1. 一种存储装置,其特征在于,所述存储装置包括存储阵列、读译码器、补偿电路、编码电路以及选择器;所述存储阵列用于存储第一图像帧数据以及补偿参数,所述存储阵列耦合至所述补偿电路的输入端,所述读译码器连接所述存储阵列的行选通线或列选通线,所述补偿电路的输出端通过所述编码电路与所述选择器的输入端耦合连接;A storage device, characterized in that the storage device includes a storage array, a read decoder, a compensation circuit, an encoding circuit, and a selector; the storage array is used to store the first image frame data and compensation parameters, and the storage The array is coupled to the input end of the compensation circuit, the read decoder is connected to the row gate line or column gate line of the memory array, and the output end of the compensation circuit is connected to the selector through the encoding circuit The input end coupling connection;
    所述读译码器,用于基于读请求,选通第一比特平面的数据,以及所述第一比特平面的数据对应的补偿参数;所述第一图像帧包括多个比特平面,所述第一比特平面为所述多个比特平面中的任一个比特平面;The read decoder is configured to gate the data of the first bit plane and the compensation parameters corresponding to the data of the first bit plane based on a read request; the first image frame includes a plurality of bit planes, the The first bit-plane is any one of the plurality of bit-planes;
    所述补偿电路,用于基于所述第一比特平面的数据对应的补偿参数,对所述第一比特平面的数据进行补偿;The compensation circuit is configured to compensate the data of the first bit plane based on a compensation parameter corresponding to the data of the first bit plane;
    所述编码电路,用于对所述补偿电路补偿后的所述第一比特平面的数据进行编码;The encoding circuit is configured to encode the data of the first bit plane compensated by the compensation circuit;
    所述选择器,用于选择输出所述编码电路编码后的所述第一比特平面的数据。The selector is configured to select and output the data of the first bit plane encoded by the encoding circuit.
  2. 根据权利要求1所述的存储装置,其特征在于,所述读译码器基于所述读请求选通的所述第一比特平面的数据为所述第一比特平面的部分数据或全部数据。The storage device according to claim 1, wherein the data of the first bit plane gated by the read decoder based on the read request is part or all of the data of the first bit plane.
  3. 根据权利要求1或2所述的存储装置,其特征在于,所述读请求包括第一地址;The storage device according to claim 1 or 2, wherein the read request includes a first address;
    所述读译码器,具体用于基于所述第一地址,选通所述第一比特平面的数据,以及所述第一比特平面的数据对应的补偿参数。The read decoder is specifically configured to select the data of the first bit plane and the compensation parameter corresponding to the data of the first bit plane based on the first address.
  4. 根据权利要求3所述的存储装置,其特征在于,所述读请求还包括第二地址;The storage device according to claim 3, wherein the read request further includes a second address;
    所述读译码器,具体还用于基于所述第二地址,确定选择信号;所述选择信号用于选通所述选择器。The read decoder is specifically further configured to determine a selection signal based on the second address; the selection signal is used to gate the selector.
  5. 根据权利要求4所述的存储装置,其特征在于,所述选择信号还用于选通目标比特平面,所述目标比特平面为经所述编码电路编码后的一个比特平面;The storage device according to claim 4, wherein the selection signal is also used to select a target bit plane, and the target bit plane is a bit plane encoded by the encoding circuit;
    所述选择器,具体用于基于所述选择信号,选择输出所述目标比特平面。The selector is specifically configured to select and output the target bit plane based on the selection signal.
  6. 根据权利要求1-5中任一项所述的存储装置,其特征在于,所述存储阵列中存储的所述第一图像帧数据为原始数据。The storage device according to any one of claims 1-5, wherein the first image frame data stored in the storage array is original data.
  7. 根据权利要求1-5中任一项所述的存储装置,其特征在于,所述存储装置还包括图像压缩电路,所述图像压缩电路用于在所述第一图像帧写入所述存储阵列之前,对所述第一图像帧进行压缩。The storage device according to any one of claims 1-5, wherein the storage device further comprises an image compression circuit, and the image compression circuit is used to write the memory array in the first image frame Before, the first image frame is compressed.
  8. 根据权利要求7所述的存储装置,其特征在于,所述存储阵列中存储的所述第一图像帧数据为经所述图像压缩电路压缩后的数据。The storage device according to claim 7, wherein the first image frame data stored in the storage array is data compressed by the image compression circuit.
  9. 一种存储装置的驱动方法,其特征在于,所述存储装置包括存储阵列、读译码器、补偿电路、编码电路以及选择器;所述存储阵列用于存储第一图像帧数据以及补偿参数,所述存储阵列耦合至所述补偿电路的输入端,所述读译码器连接所述存储阵列的行选通线或列选通线,所述读译码器与所述选择器的选择端耦合连接,所述补偿电路的输出端通过所述编码电路与所述选择器的输入端耦合连接;所述方法包括:A method for driving a storage device, wherein the storage device includes a storage array, a read decoder, a compensation circuit, an encoding circuit, and a selector; the storage array is used to store first image frame data and compensation parameters, The memory array is coupled to the input end of the compensation circuit, the read decoder is connected to the row gate line or the column gate line of the memory array, and the read decoder is connected to the selection end of the selector Coupling connection, the output terminal of the compensation circuit is coupled and connected with the input terminal of the selector through the encoding circuit; the method includes:
    所述读译码器基于读请求,选通第一比特平面的数据,以及所述第一比特平面的数据对应的补偿参数;所述第一图像帧包括多个比特平面,所述第一比特平面为所述多个比特平面中的任一个比特平面;The read decoder gates the data of the first bit plane and the compensation parameters corresponding to the data of the first bit plane based on the read request; the first image frame includes a plurality of bit planes, and the first bit The plane is any bit plane in the plurality of bit planes;
    所述补偿电路基于所述第一比特平面的数据对应的补偿参数,对所述第一比特平面的数据进行补偿;The compensation circuit compensates the data of the first bit plane based on a compensation parameter corresponding to the data of the first bit plane;
    所述编码电路对所述补偿电路补偿后的所述第一比特平面的数据进行编码;The encoding circuit encodes the data of the first bit plane compensated by the compensation circuit;
    所述选择器选择输出所述编码电路编码后的所述第一比特平面的数据。The selector selects and outputs the data of the first bit plane encoded by the encoding circuit.
  10. 根据权利要求9所述的方法,其特征在于,所述读译码器基于所述读请求选通的所述第一比特平面的数据为所述第一比特平面的部分数据或全部数据。The method according to claim 9, wherein the data of the first bit plane gated by the read decoder based on the read request is part or all of the data of the first bit plane.
  11. 根据权利要求9或10所述的方法,其特征在于,所述读请求包括第一地址;所述读译码器基于读请求,选通第一比特平面的数据,以及所述第一比特平面的数据对应的补偿参数,包括:The method according to claim 9 or 10, wherein the read request includes a first address; the read decoder gates the data of the first bit plane based on the read request, and the first bit plane The corresponding compensation parameters of the data include:
    所述读译码基于所述第一地址,选通所述第一比特平面的数据,以及所述第一比特平面的数据对应的补偿参数。The read decoding is based on the first address, gating the data of the first bit plane, and the compensation parameter corresponding to the data of the first bit plane.
  12. 根据权利要求11所述的方法,其特征在于,所述读请求还包括第二地址;所述方法还包括:The method according to claim 11, wherein the read request further comprises a second address; the method further comprises:
    所述读译码器基于所述第二地址,确定选择信号;所述选择信号用于选通所述选择器。The read decoder determines a selection signal based on the second address; the selection signal is used to gate the selector.
  13. 根据权利要求12所述的方法,其特征在于,所述选择信号还用于选通目标比特平面,所述目标比特平面为经所述编码电路编码后的一个比特平面;所述选择器基于所述读请求,选择输出所述编码电路编码后的所述第一比特平面的数据,包括:The method according to claim 12, wherein the selection signal is also used to select a target bit plane, and the target bit plane is a bit plane encoded by the encoding circuit; the selector is based on the A reading request, selecting and outputting the data of the first bit plane encoded by the encoding circuit, including:
    所述选择器基于所述选择信号,选择输出所述目标比特平面。The selector selects and outputs the target bit-plane based on the selection signal.
  14. 根据权利要求9-13中任一项所述的方法,其特征在于,所述存储阵列中存储的所述第一图像帧数据为原始数据。The method according to any one of claims 9-13, wherein the first image frame data stored in the storage array is original data.
  15. 根据权利要求9-13中任一项所述的方法,其特征在于,所述存储装置还包括图像压缩电路,所述方法还包括:The method according to any one of claims 9-13, wherein the storage device further comprises an image compression circuit, and the method further comprises:
    所述图像压缩电路在所述第一图像帧写入所述存储阵列之前,对所述第一图像帧进行压缩。The image compression circuit compresses the first image frame before the first image frame is written into the storage array.
  16. 根据权利要求15所述的方法,其特征在于,所述存储阵列中存储的所述第一图像帧数据为经所述图像压缩电路压缩后的数据。The method according to claim 15, wherein the first image frame data stored in the storage array is data compressed by the image compression circuit.
  17. 一种驱动芯片,其特征在于,所述驱动芯片包括接口电路,以及如权利要求1-8中任一项所述的存储装置,所述存储装置用于通过所述接口电路接收所述第一图像帧数据。A driver chip, characterized in that the driver chip includes an interface circuit, and the storage device according to any one of claims 1-8, the storage device is used to receive the first Image frame data.
PCT/CN2021/119130 2021-09-17 2021-09-17 Storage device and driving method therefor WO2023039849A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/119130 WO2023039849A1 (en) 2021-09-17 2021-09-17 Storage device and driving method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/119130 WO2023039849A1 (en) 2021-09-17 2021-09-17 Storage device and driving method therefor

Publications (1)

Publication Number Publication Date
WO2023039849A1 true WO2023039849A1 (en) 2023-03-23

Family

ID=85602321

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/119130 WO2023039849A1 (en) 2021-09-17 2021-09-17 Storage device and driving method therefor

Country Status (1)

Country Link
WO (1) WO2023039849A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5715007A (en) * 1995-02-09 1998-02-03 Yamaha Corporation Image decoder with block image shifting device
US20070247413A1 (en) * 2006-04-24 2007-10-25 Junichi Maruyama Display Device
CN101241680A (en) * 2007-02-09 2008-08-13 三星电子株式会社 System for response speed compensation in liquid crystal display using embedded memory device and method of controlling frame data of image
CN106878740A (en) * 2015-12-10 2017-06-20 格科微电子(上海)有限公司 Suitable for the method for compressing image and image compression system of liquid crystal driving
CN110570803A (en) * 2019-10-17 2019-12-13 南京芯视元电子有限公司 System for increasing effective display digit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5715007A (en) * 1995-02-09 1998-02-03 Yamaha Corporation Image decoder with block image shifting device
US20070247413A1 (en) * 2006-04-24 2007-10-25 Junichi Maruyama Display Device
CN101241680A (en) * 2007-02-09 2008-08-13 三星电子株式会社 System for response speed compensation in liquid crystal display using embedded memory device and method of controlling frame data of image
CN106878740A (en) * 2015-12-10 2017-06-20 格科微电子(上海)有限公司 Suitable for the method for compressing image and image compression system of liquid crystal driving
CN110570803A (en) * 2019-10-17 2019-12-13 南京芯视元电子有限公司 System for increasing effective display digit

Similar Documents

Publication Publication Date Title
US6151074A (en) Integrated MPEG decoder and image resizer for SLM-based digital display system
US6828982B2 (en) Apparatus and method for converting of pixels from YUV format to RGB format using color look-up tables
US8686977B2 (en) Display apparatus having a timing controller and method of driving the timing controller
US20120098864A1 (en) System and method for downsizing video data for memory bandwidth optimization
CN101388950B (en) Content-adaptive contrast improving method and apparatus for digital image
JP5082240B2 (en) Image control IC
CN104780374A (en) Luminance-coding-based frame buffer destructive compression method and device
US8233003B2 (en) Image processing device, image processing method, and electronic instrument
US9123090B2 (en) Image data compression device, image data decompression device, display device, image processing system, image data compression method, and image data decompression method
WO2023039849A1 (en) Storage device and driving method therefor
TWI260573B (en) Digital video signal processing device for LCD
JP2007184977A (en) Picture output system
CN210777797U (en) Display screen over-driving device and display device
US20170345356A1 (en) Display Driving Apparatus And Operating Method Thereof
KR100852958B1 (en) Apparatus and control method for display driver by sub-pixel rendering and data compression
JP2007181052A (en) Image output system
JP2008217018A (en) Integrated mpeg decoder and image resizer for slm-based digital display
US11503310B2 (en) Method and apparatus for an HDR hardware processor inline to hardware encoder and decoder
US20060170708A1 (en) Circuits for processing encoded image data using reduced external memory access and methods of operating the same
CN109102770B (en) Low-power-consumption low-bandwidth display panel driving chip for high-performance calculation
US9317891B2 (en) Systems and methods for hardware-accelerated key color extraction
US20140125821A1 (en) Signal processing circuit, imaging apparatus and program
CN112385224A (en) Efficient electro-optic transfer function encoding for limited luminance range displays
TW201616478A (en) Power saving display system and method
CN111009225A (en) Display screen overdrive device, overdrive method and display device

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: 21957131

Country of ref document: EP

Kind code of ref document: A1