Electronic device and data access method thereof
By designing a direct memory access controller in the electronic device, the source data is stored to multiple storage blocks at the same time, solving the problem of low data access efficiency in the existing technology, and realizing efficient data access and display operations.
Patent Information
- Application Number
- CN202410035065.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-07-24
- Filing Date
- 2024-01-10
- Publication Date
- 2025-01-24
AI Technical Summary
Existing direct memory access controllers are less efficient when storing and reading data, especially when processing data containing static objects and dynamic objects, they require multiple storage and reading, resulting in low operational efficiency.
An electronic device is designed, including a direct memory access controller, a memory, a display controller and a display panel, by simultaneously storing source data into multiple storage blocks in the memory, and displaying the data on the display panel according to different storage blocks. The data is displayed, realizing efficient data access operations.
By storing the data into multiple storage blocks at the same time, the efficiency of the direct memory access operation is significantly improved. Especially when processing the data of static and dynamic objects, the number of storage and reading is reduced, and the display efficiency of the display panel is improved. Essence
Smart Images

Figure CN119360802A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an electronic device, and more particularly to an electronic device for accelerating direct memory access operations and a data access method thereof. Background Art
[0002] In order to speed up the display of images in the display panel, direct memory access technology (DMA) is often used in the field of image display. In the existing DMA technology, when the DMA controller intends to store source data to the first storage block and the second storage block in the memory, two steps need to be performed as follows. First, the DMA controller stores the source data to the first storage block. Second, the DMA controller stores the source data to the second storage block. Summary of the invention
[0003] An electronic device according to an embodiment of the present invention includes a memory, a direct memory access controller, a display controller, and a display panel. The memory includes a plurality of memory blocks. The direct memory access controller is electrically connected to the memory, receives a source data, and stores the source data in at least two memory blocks in the memory. The display controller is electrically connected to the direct memory access controller, reads the source data, and outputs a display signal corresponding to the source data. The display panel is electrically connected to the display controller, and displays according to the display signal.
[0004] As in the above electronic device, the source data includes a static object and a dynamic object.
[0005] As in the above electronic device, the storage block includes a first storage block and a second storage block.
[0006] In the electronic device as described above, the DMA controller stores static objects in the first storage block and the second storage block, and stores dynamic objects in the first storage block. When the display panel displays a picture corresponding to the first storage block, the DMA controller stores the dynamic objects in the second storage block.
[0007] As in the electronic device mentioned above, after the direct memory access controller stores the dynamic object in the second storage block, the display panel displays a picture corresponding to the second storage block.
[0008] As in the above electronic device, the storage block further includes a third storage block.
[0009] In the electronic device described above, when the display panel displays a picture corresponding to the second storage block, the direct memory access controller stores the static object in the third storage block and the first storage block, so that the source data in the first storage block is overwritten. The direct memory access controller stores the dynamic object in the third storage block.
[0010] As in the electronic device mentioned above, after the direct memory access controller stores the dynamic object in the third storage block, the display panel displays a picture corresponding to the third storage block.
[0011] As in the above-mentioned electronic device, the static object is the background, and the dynamic object is the mouse cursor.
[0012] In the electronic device as mentioned above, the direct memory access controller includes a first-in-first-out buffer for performing a first-in-first-out operation on source data.
[0013] In the electronic device as mentioned above, the memory is a dynamic random-access memory (DRAM).
[0014] As in the electronic device mentioned above, the source data comes from a storage block other than at least two storage blocks in the storage, or comes from a second storage.
[0015] According to an embodiment of the present invention, a data access method is used to access a memory including multiple storage blocks, including: receiving a source data; storing the source data in at least two storage blocks in the memory; reading the source data and outputting a display signal according to the source data; and displaying according to the display signal.
[0016] In the data access method as mentioned above, the source data includes a static object and a dynamic object.
[0017] As in the above data access method, the storage block includes a first storage block and a second storage block.
[0018] The data access method as described above further includes: storing static objects in the first storage block and the second storage block; storing dynamic objects in the first storage block; displaying a picture corresponding to the first storage block; storing dynamic objects in the second storage block; and displaying a picture corresponding to the second storage block.
[0019] As in the above data access method, the storage block includes a third storage block.
[0020] The data access method as described above further includes: storing static objects in the third storage block and the first storage block so that the source data in the first storage block is overwritten; storing dynamic objects in the third storage block; and displaying a screen corresponding to the third storage block.
[0021] In the above data access method, the static object is the background, and the dynamic object is the mouse cursor.
[0022] As in the above data access method, the memory is a dynamic random access memory. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 FIG. 1 is a schematic diagram of an electronic device 100 according to an embodiment of the present invention.
[0024] Figure 2 For the embodiment of the present invention Figure 1 Schematic diagram of the electronic device 100 performing data access.
[0025] Figure 3 Flow chart of a data access method according to an embodiment of the present invention.
[0026] Figure 4 is a detailed flow chart of a data access method according to an embodiment of the present invention.
[0027] Description of Figure Numbers:
[0028] 100: Electronic devices
[0029] 102: Direct Memory Access Controller
[0030] 104: Memory
[0031] 106: Display Controller
[0032] 108: Display panel
[0033] 112-1,112-2,112-n: Storage Blocks
[0034] 110: First-in-first-out buffer
[0035] 120: Source data
[0036] 130: Display signal
[0037] 200,202,204,206:Data status
[0038] 208,210,212,214:Data status
[0039] 220: Static objects
[0040] 222: Dynamic Objects
[0041] 230,232,234: storage blocks
[0042] 240,242,244: Location
[0043] S300, S302, S304, S306: Steps
[0044] S400, S402, S404, S406, S408: Steps DETAILED DESCRIPTION
[0045] Reference will now be made in detail to exemplary embodiments of the present invention, examples of which are illustrated in the accompanying drawings. Whenever possible, the same reference numerals are used in the drawings and the description to refer to the same or like parts.
[0046] Certain words are used throughout the specification and claims of the present invention to refer to specific components. It should be understood by those skilled in the art that electronic device manufacturers may refer to the same components by different names. This document does not intend to distinguish between components that have the same function but different names. In the following specification and claims, the words "including" and "comprising" are open-ended words and should be interpreted as "including but not limited to...".
[0047] The directional terms mentioned herein, such as "up", "down", "front", "back", "left", "right", etc., are only with reference to the directions of the drawings. Therefore, the directional terms used are for illustration and not for limiting the present invention. In the drawings, each figure illustrates the general characteristics of the methods, structures and / or materials used in a particular embodiment. However, these drawings should not be interpreted as defining or limiting the scope or nature covered by these embodiments. For example, for clarity, the relative size, thickness and position of each film layer, region and / or structure may be reduced or enlarged.
[0048] The structure (or layer, component, substrate) described in the present invention is located above / below another structure (or layer, component, substrate), which may mean that the two structures are adjacent and directly connected, or may mean that the two structures are adjacent but not directly connected. Indirect connection means that there is at least one intermediate structure (or intermediate layer, intermediate component, intermediate substrate, intermediate interval) between the two structures, the lower surface of one structure is adjacent to or directly connected to the upper surface of the intermediate structure, and the upper surface of the other structure is adjacent to or directly connected to the lower surface of the intermediate structure. The intermediate structure can be composed of a single-layer or multi-layer physical structure or a non-physical structure, without limitation. In the present invention, when a certain structure is set "on" other structures, it may mean that the certain structure is "directly" on the other structure, or that the certain structure is "indirectly" on the other structure, that is, it is assumed that there is at least one structure between the certain structure and the other structure.
[0049] The terms "approximately," "equal," "equal," or "same," "substantially," or "approximately" are generally interpreted as within 20% of a given value or range, or within 10%, 5%, 3%, 2%, 1% or 0.5% of a given value or range.
[0050] The ordinal numbers used in the specification and the patent application, such as "first", "second", etc., are used to modify the elements. They do not imply or represent any previous ordinal numbers of the (or those) elements, nor do they represent the order of one element and another element, or the order of the manufacturing method. The use of these ordinal numbers is only used to make the element with a certain name clearly distinguishable from another element with the same name. The same words may not be used in the claims and the specification. Accordingly, the first component in the specification may be the second component in the patent application.
[0051] The electrical connection or coupling described in the present invention may refer to direct connection or indirect connection. In the case of direct connection, the endpoints of the components on the two circuits are directly connected or connected to each other by a conductor segment, and in the case of indirect connection, there is a switch, diode, capacitor, inductor, resistor, other suitable components, or a combination of the above components between the endpoints of the components on the two circuits, but it is not limited thereto.
[0052] In the present invention, the thickness, length and width can be measured by an optical microscope, and the thickness or width can be measured by a cross-sectional image in an electron microscope, but it is not limited to this. In addition, any two values or directions used for comparison may have a certain error. In addition, the terms "equal", "equal", "same", "substantially" or "substantially" mentioned in the present invention usually represent a range of 10% within a given value or range. In addition, the terms "a given range is a first value to a second value", "a given range falls within the range of a first value to a second value" indicate that the given range includes the first value, the second value and other values therebetween. If the first direction is perpendicular to the second direction, the angle between the first direction and the second direction may be between 80 degrees and 100 degrees; if the first direction is parallel to the second direction, the angle between the first direction and the second direction may be between 0 degrees and 10 degrees.
[0053] It should be noted that the following embodiments can replace, reorganize, or mix features in several different embodiments to complete other embodiments without departing from the spirit of the present invention. The features between the embodiments can be mixed and matched as long as they do not violate the spirit of the invention or conflict with each other.
[0054] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meanings as commonly understood by those skilled in the art to which the present invention belongs. It is understood that these terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning consistent with the background or context of the relevant technology and the present invention, and should not be interpreted in an idealized or overly formal manner unless specifically defined in the embodiments of the present invention.
[0055] Figure 1 FIG. 1 is a schematic diagram of an electronic device 100 according to an embodiment of the present invention. Figure 1 As shown, the electronic device 100 includes a direct memory access (DMA) controller 102, a memory 104, a display controller 106, and a display panel 108. In some embodiments, the memory 104 includes a plurality of storage blocks, such as a storage block 112-1, a storage block 112-2, ..., a storage block 112-n, where n is a positive integer. The storage spaces of the storage blocks 112-1, the storage blocks 112-2, ..., and the storage blocks 112-n may not overlap or partially overlap with each other, but the present invention is not limited thereto.
[0056] The memory 104 is electrically connected between the direct memory access controller 102 and the display controller 106. In some embodiments, the direct memory access controller 102 receives a source data 120 and stores the source data 120 in at least two storage blocks in the memory 104. For example, Figure 1 As shown, the direct memory access controller 102 stores the source data 120 in the memory block 112 - 1 and the memory block 112 - 2 in the memory 104 , but the invention is not limited thereto.
[0057] In some embodiments, the direct memory access controller 102 includes a first-in-first-out buffer 110. The first-in-first-out buffer 110 receives the source data 120 and performs a first-in-first-out operation on the source data 120. In some embodiments, the source data 120 may include a static object and a dynamic object. For example, the static object may be a background, and the dynamic object may be a mouse cursor, but the present invention is not limited thereto.
[0058] In some embodiments, the display controller 106 reads the source data 120 stored in one of the storage blocks 112-1, 112-2, ..., and 112-n respectively each time. Figure 1As shown, the display controller 106 reads the source data 120 stored in the storage block 112-1, and outputs a display signal 130 to the display panel 108 according to the source data 120. The display controller 106 is electrically connected between the memory 104 and the display panel 108. The display panel 108 performs display according to the display signal 130.
[0059] In some embodiments, the storage space of the FIFO buffer 110 is smaller than the storage space of each of the storage blocks 112-1, 112-2, ..., 112-n. Therefore, when the FIFO buffer 110 of the direct memory access controller 102 stores the source data 120 in the storage blocks 112-1 and 112-2 in the memory 104, the FIFO buffer 110 divides the source data 120 into multiple segments and stores the multiple segments of the source data 120 in the storage blocks 112-1 and 112-2 in sequence.
[0060] In some embodiments, the electronic device 100 may be, for example, a desktop computer, a notebook computer, a smart phone, a tablet computer, and a workstation server, but the present invention is not limited thereto. In some embodiments, the memory 104 is a dynamic random access memory (DRAM), but the present invention is not limited thereto. In some embodiments, the display panel may be, for example, an organic light emitting diode (OLED) display, a sub-millimeter light emitting diode (mini LED) display, a micro LED display, or a quantum dot LED display, but the present invention is not limited thereto. In some embodiments, the source data 120 comes from one of the storage blocks 112-1 and 112-2 in the memory 104, or from another memory (not shown) in or outside the electronic device 100.
[0061] Figure 2 For the embodiment of the present invention Figure 1 Schematic diagram of the electronic device 100 performing data access. Figure 2 Disclosure Figure 1 Schematic diagram of data states 200, 202, 204, 206, 208, 210, 212, and 214 of the electronic device 100 when performing data access. In some embodiments, the data states 200, 202, 204, 206, 208, 210, 212, and 214 are data states ordered by time.
[0062] In other words, data state 200 is earlier than data state 202, and data state 202 is earlier than data state 204, and so on. In data state 200, data state 206, and data state 210, Figure 2 Disclosure Figure 1 104, and the display panel 108. In data state 202, data state 204, data state 208, data state 212, and data state 214, Figure 2 Disclosure Figure 1 The memory 104 and the display panel 108 are included in the device. Figure 2 Omitted Figure 1 The display controller 106 is described below.
[0063] like Figure 2 As shown, the FIFO buffer 110 in the direct memory access controller 102 includes a static object 220 and a dynamic object 222. In some embodiments, the FIFO buffer 110 receives the source data 120 to obtain the static object 220 and the dynamic object 222. In some embodiments, the static object 220 may be, for example, a background, and the dynamic object may be, for example, a mouse cursor, but the present invention is not limited thereto. The memory 104 includes a storage block 230, a storage block 232, and a storage block 234. Although Figure 2 It is disclosed that the memory 104 includes 3 storage blocks, but the present invention does not limit the number of storage blocks included in the memory 104 to 3. The present invention can be applied to the memory 104 including the number of storage blocks greater than 2.
[0064] In the data state 200, the FIFO buffer 110 in the DMA controller 102 stores the static object 220 in the storage block 232 and the storage block 234 (as indicated by the dotted arrows). In the data state 200, since the storage block 230 does not store any data, the display panel 108 displays a picture corresponding to the storage block 230, such as a completely black screen, but the present invention is not limited thereto.
[0065] In the data state 202, the FIFO buffer 110 in the DMA controller 102 stores the dynamic object 222 at the location 240 in the storage block 232 (as indicated by the solid arrow). In the data state 202, since the storage block 230 still does not store any data, the display panel 108 displays a picture corresponding to the storage block 230, such as a completely black screen, but the present invention is not limited thereto.
[0066] In the data state 204, the display controller 106 reads the static object 220 and the dynamic object 222 in the storage block 232 and generates a display signal accordingly. The display panel 108 displays the picture corresponding to the storage block 232 according to the display signal. In some embodiments, the position 240 of the dynamic object 222 in the storage block 232 may represent the position of the dynamic object 222 in the picture corresponding to the storage block 232 displayed by the display panel 108, but the present invention is not limited thereto. For example, in the data state 204, the display panel 108 displays the dynamic object 222 on the right side of the picture.
[0067] In the data state 206, the FIFO buffer 110 in the direct memory access controller 102 stores the dynamic object 222 to the position 242 in the storage block 232 (as shown by the solid arrow). In the data state 206, the display panel 108 displays the picture corresponding to the storage block 232 according to the display signal. In the data state 208, the display controller 106 reads the static object 220 and the dynamic object 222 in the storage block 234, and generates a display signal accordingly. The display panel 108 displays the picture corresponding to the storage block 234 according to the display signal. In some embodiments, the position 242 of the dynamic object 222 in the storage block 234 may represent the position of the dynamic object 222 in the picture corresponding to the storage block 234 displayed by the display panel 108, but the present invention is not limited thereto. For example, in the data state 206, the display panel 108 displays the dynamic object 222 on the left side of the picture.
[0068] Next, in data state 210, the FIFO buffer 110 in the DMA controller 102 stores the static object 220 in the storage block 230 and the storage block 232 (as indicated by the dotted arrows), so that the source data (e.g., the static object 220 and the dynamic object 222 in the data states 202-208) originally stored in the storage block 232 is overwritten. In data state 210, the display panel 108 displays the image corresponding to the storage block 234 according to the display signal.
[0069] In the data state 212 , the FIFO 110 in the DMA controller 102 stores the dynamic object 222 at the location 244 in the memory block 230 (as indicated by the solid arrow). In the data state 212 , the display panel 108 displays the image corresponding to the memory block 234 according to the display signal.
[0070] Afterwards, in the data state 214, the display controller 106 reads the static object 220 and the dynamic object 222 in the storage block 230, and generates a display signal accordingly. The display panel 108 displays the picture corresponding to the storage block 230 according to the display signal. In some embodiments, the position 244 of the dynamic object 222 in the storage block 234 may represent the position of the dynamic object 222 in the picture corresponding to the storage block 230 displayed by the display panel 108, but the present invention is not limited thereto. For example, in the data state 214, the display panel 108 displays the dynamic object 222 in the middle of the picture.
[0071] Figure 3 Flow chart of a data access method according to an embodiment of the present invention. The data access method according to the present invention is used to access a memory including a plurality of storage blocks, for example Figure 1 The memory 104 in the electronic device 100. Figure 3 As shown, the data access method of the present invention includes: receiving a source data (step S300); storing the source data in at least two storage blocks in the memory (step S302); reading the source data and outputting a display signal according to the source data (step S304); and displaying according to the display signal (step S306). In some embodiments, steps S300 and S302 are Figure 1 Step 304 is performed by the direct memory access controller 102 of the electronic device 100. Figure 1 Step S306 is performed by the display controller 106 of the electronic device 100. Figure 1 The display panel 108 of the electronic device 100 is executed.
[0072] Figure 4 is a detailed flow chart of a data access method according to an embodiment of the present invention. Figure 4 for Figure 3 In some embodiments, Figure 3 The source data in step S300 includes a static object and a dynamic object. In some embodiments, the static object is a background, and the dynamic object is a mouse cursor, but the present invention is not limited thereto. Figure 3 The storage blocks in step S302 include a first storage block and a second storage block. Figure 4As shown, the data access method of the present invention includes: storing static objects in a first storage block and a second storage block (step S400); storing dynamic objects in the first storage block (step S402); displaying a screen corresponding to the first storage block (step S404); storing dynamic objects in the second storage block (step S406); and displaying a screen corresponding to the second storage block (step S408). In some embodiments, steps S400, S402, and S406 are performed by Figure 1 The direct memory access controller 102 of the electronic device 100 executes the steps S404 and S408. Figure 1 The display panel 108 of the electronic device 100 is executed.
[0073] In some embodiments, Figure 3 The storage block in step S302 includes a third storage block. Figure 4 After step S408, the data access method of the present invention further includes: storing the static object in the third storage block and the first storage block, so that the source data in the first storage block is overwritten; storing the dynamic object in the third storage block; and displaying the screen corresponding to the third storage block.
[0074] The electronic device 100 and the data access method of the present invention improve the existing direct memory access controller that can only store source data in one storage block in the memory, so that the direct memory access controller of the present invention can store source data in multiple storage blocks in the memory at the same time, effectively increasing the efficiency of executing direct memory access operations. In particular, when the display content includes static objects and dynamic objects, the technical solution of the present invention can more effectively increase the efficiency of executing direct memory access operations compared to the existing method.
[0075] Although the embodiments of the present invention are described above, we should understand that what is presented above is only an example and not a limitation. Many changes to the above exemplary embodiments can be implemented without violating the spirit and scope of the disclosure according to this embodiment. Therefore, the breadth and scope of the present invention should not be limited by the embodiments described above. More specifically, the scope of the present invention should be defined by the following claims and their equivalents. Although the above disclosure has been illustrated and described by one or more related executions, equivalent changes and modifications will be thought of by others who are familiar with this field based on the above specifications and drawings. In addition, although a particular feature of the present invention has been demonstrated by one of the related multiple executions, the above feature may be combined with one or more other features so that there may be a need and help for any known or special application.
[0076] The professional terms used in this specification are only for the purpose of describing specific embodiments and are not intended to be used as limitations of the present invention. Unless the context clearly indicates otherwise, the singular, the one, the above and the above also include the plural. Furthermore, the words "include", "comprise", "have", "have", or their variations are either used as detailed descriptions or as the scope of the claims. The above words mean to include, and to some extent are equivalent to the word "include". Unless there are different definitions, all the terms used in this article (including technical or scientific terms) can be generally understood by people with general skills in the above-disclosed technology. We should be more aware that the above words, such as those defined in commonly used dictionaries, should be interpreted as the same meaning in the context of the relevant technology. Unless explicitly defined in this article, the above words will not be interpreted as idealized or overly formal.
Claims
1. An electronic device, characterized in that: include: a memory, comprising a plurality of memory blocks; a direct memory access controller, electrically connected to the memory, receiving a source data, and storing the source data in at least two or more memory blocks in the memory; a display controller electrically connected to the direct memory access controller, reading the source data and outputting a display signal corresponding to the source data; and A display panel is electrically connected to the display controller and performs display according to the display signal.
2. The electronic device according to claim 1, wherein: The source data includes a static object and a dynamic object.
3. The electronic device according to claim 2, characterized in that The plurality of storage blocks include a first storage block and a second storage block.
4. The electronic device as claimed in claim 3, characterized in that The direct memory access controller stores the static object in the first storage block and the second storage block, and stores the dynamic object in the first storage block; when the display panel displays the picture corresponding to the first storage block, the direct memory access controller stores the dynamic object in the second storage block.
5. The electronic device according to claim 4, characterized in that After the direct memory access controller stores the dynamic object in the second storage block, the display panel displays a picture corresponding to the second storage block.
6. The electronic device according to claim 5, characterized in that The plurality of storage blocks further include a third storage block.
7. The electronic device according to claim 6, characterized in that When the display panel displays a picture corresponding to the second storage block, the direct memory access controller stores the static object in the third storage block and the first storage block so that the source data in the first storage block is overwritten; the direct memory access controller stores the dynamic object in the third storage block.
8. The electronic device according to claim 7, characterized in that After the direct memory access controller stores the dynamic object in the third storage block, the display panel displays a picture corresponding to the third storage block.
9. The electronic device as claimed in claim 2, characterized in that The static object is the background, and the dynamic object is the mouse cursor.
10. The electronic device according to claim 1, wherein: The direct memory access controller includes a first-in-first-out buffer for performing a first-in-first-out operation on the source data.
11. The electronic device according to claim 1, wherein: The memory is a dynamic random access memory.
12. The electronic device according to claim 1, wherein: The source data comes from other storage blocks other than the at least two storage blocks of the plurality of storage blocks in the memory, or comes from a second memory.
13. A data access method, characterized in that: A method for accessing a memory including a plurality of memory blocks includes: Receiving source data; storing the source data in at least two storage blocks in the memory; Reading the source data, and outputting a display signal corresponding to the source data; and Display is performed according to the display signal.
14. The data access method according to claim 13, characterized in that: The source data includes a static object and a dynamic object.
15. The data access method according to claim 14, characterized in that: The plurality of storage blocks include a first storage block and a second storage block.
16. The data access method according to claim 15, characterized in that: Also includes: storing the static object in the first storage block and the second storage block; Storing the dynamic object in the first storage block; Displaying a frame corresponding to the first storage block; storing the dynamic object in the second storage block; and The frame corresponding to the second storage block is displayed.
17. The data access method according to claim 16, characterized in that: The plurality of storage blocks include a third storage block.
18. The data access method according to claim 17, characterized in that: Also includes: storing the static object in the third storage block and the first storage block so that the source data in the first storage block is overwritten; storing the dynamic object in the third storage block; and The frame corresponding to the third storage block is displayed.
19. The data access method according to claim 14, characterized in that: The static object is the background, and the dynamic object is the mouse cursor.
20. The data access method according to claim 13, characterized in that: The memory is a dynamic random access memory.