Method and system for improving SDIO functionality
By introducing HOST module, bus bridge module, USI CTRL module and SDIO module into the SDIO interface system, it supports multiple communication protocols and dynamic bus selection, solves the problem of insufficient compatibility of SDIO interfaces between different devices, and achieves high efficiency and flexibility. data transmission and low power consumption design.
Patent Information
- Application Number
- CN202410778574.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-10
AI Technical Summary
The existing SDIO interface lacks compatibility and versatility among different devices, limiting its cross-device adaptability and data transmission efficiency.
A system is designed, including HOST module, bus bridge module, USI CTRL module and SDIO module, communicating with peripheral peripherals through AXI protocol, supporting multiple communication protocols, such as UART, SPI, IIC, DSPI and QSPI, and through FIFO The module optimizes data transmission efficiency, dynamically selects the APB or AHB bus to achieve low-power design, and expands the number of pins to support parallel processing of high-bit-width data.
It significantly improves the flexibility and compatibility of the system, achieves support for multiple protocols, reduces development costs, improves data transmission efficiency and system reliability, and is suitable for efficient data reading and writing of different peripherals.
Smart Images

Figure CN118626426A
Abstract
Description
Technical Field
[0001] The present application relates to the field of information transmission technology, and more particularly to a method and system for improving SDIO functionality. Background Art
[0002] At present, RISC-V has a broad development in the field of IOT devices due to its lightweight data set. Integrating RISC-V as a chip controller with the SDIO interface can greatly improve the performance and adaptability of the SDIO interface, and has a higher main frequency, which can improve the data throughput of SDIO. Based on the idea of the ordinary USI interface, the idea of pin multiplexing is extended to the SDIO interface, which can allow SDIO to be expanded to support UART, SPI, DSPI, QSPI, IIC and SDIO protocols. The host multi-control operation can also be realized through the controller, and the high and low bits can be split to control two SDIO interface chips at the same time. Because of the characteristics of supporting many protocols, the SDIO interface can not only read data in the SD device, but also read, for example, FLASH chips that support the SPI protocol (the corresponding adapter needs to be transferred to the SDIO). The advantage of this is that the cost of developing different peripherals can be greatly reduced through the reuse mode. For common peripherals, only one interface is needed to realize all data reading and writing needs.
[0003] As mobile devices become more powerful, the compatibility and versatility of Secure Digital Input Output (SDIO) cards are becoming increasingly demanding. Existing SDIO interfaces and cards usually need to be closely matched with the hardware and software configuration of a specific device, which limits their versatility across devices.
[0004] In order to solve this problem, it is necessary to develop a system that enables the SDIO interface to automatically adapt to the needs of different devices while ensuring efficient and secure data transmission.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0007] The embodiments of the present disclosure provide a method and system for improving SDIO functionality to solve the above technical problems.
[0008] In some embodiments, the method comprises:
[0009] Add the HOST module, which supports the central control chip of RISC-V architecture and communicates with peripherals through the AXI protocol;
[0010] Configure the bus bridge module to support AXI to AHB protocol and AXI to APB protocol, convert the signal sent by the HOST module into AHB and APB protocols, and control the mounted interface;
[0011] Integrated USI CTRL module, supports conventional USI functions, including UART, SPI, IIC, and is upgraded to support DSPI and QSPI;
[0012] Implement the SDIO controller module to support the SDIO protocol, multiplex pins with the USI CTRL module to implement the input of various protocols, and add a FIFO module to optimize data transmission efficiency.
[0013] Preferably, the HOST module has a low power consumption protector.
[0014] Preferably, the bus bridge module selects the bus type according to the working main frequency. When the working main frequency is 0-50M, the APB bus is used, and when the working main frequency is above 50M, the AHB bus is used.
[0015] Preferably, the USI CTRL module expands the original 4 pins to 6 pins.
[0016] Preferably, the FIFO module in the SDIO controller module is used to temporarily store data during the SD card startup process, and then perform data transmission after the startup is completed.
[0017] A system for improving SDIO functionality, comprising:
[0018] HOST module: Based on RISC-V architecture, connected to the host computer, receiving tasks and instructions, supporting AXI bus protocol, and used for information transmission with other internal modules;
[0019] Bus bridge module: bridges the HOST module and the USI module to realize the conversion from AXI bus protocol to AHB or APB bus protocol, automatically selects APB or AHB bus protocol according to the main frequency, and has mode configuration function;
[0020] USI CTRL module: converts AHB / APB to the corresponding communication mode, supports calling two modules at the same time, and can process 8-bit width signals in parallel through the same chip select signal control. When processing high-width data, two USI modules can be called to process the high and low four-bit signals respectively;
[0021] SDIO module: includes two SDIO CTRL modules and one FIFO module. The SDIO CTRL module receives the signal output by the USI module and distributes it to the corresponding pin for data output. The FIFO module is used to cache the data to be sent.
[0022] Preferably, the SDIO module further has four pins used as output pins of DATA[7], DATA[6], DATA[5], and DATA[4].
[0023] The method and system for improving SDIO functionality provided by the embodiments of the present disclosure can achieve the following technical effects:
[0024] By integrating the HOST module, bus bridge module, USI CTRL module and SDIO module, the system can support multiple communication protocols, including UART, SPI, IIC, DSPI and QSPI, thereby greatly improving the system's flexibility and compatibility with different peripherals.
[0025] The bus bridge module dynamically selects the APB or AHB bus according to the operating main frequency to achieve a low-power design. Using the APB bus at a low main frequency and switching to the AHB bus at a high main frequency helps reduce energy consumption, which is especially important in long-term operation or mobile devices.
[0026] The introduction of the FIFO module in the SDIO module significantly improves data transmission efficiency. During the startup process of peripherals such as SD cards or FLASH, FIFO can temporarily store data to avoid wasting bus resources and ensure continuous and efficient data transmission.
[0027] By increasing the number of pins, especially the four additional pins of the SDIO module, DATA[7], DATA[6], DATA[5], and DATA[4], the system supports parallel processing of data with higher bit widths, which not only improves the data transmission speed but also leaves room for possible future expansion or upgrades.
[0028] Through modular design, the solution integrates complex functions into several core modules, simplifying the complexity of system design and maintenance while improving the reliability and stability of the system.
[0029] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0031] Figure 1 is a schematic diagram of the method flow chart;
[0032] Figure 2 is a schematic diagram of a system provided by an embodiment of the present disclosure;
[0033] Figure 3 It is a schematic diagram of a device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0034] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0035] like Figure 1 As shown, a method for improving SDIO functionality includes:
[0036] S1: Add the HOST module, which supports the central control chip of RISC-V architecture and communicates with peripherals through the AXI protocol.
[0037] S2: Configure the bus bridge module to support AXI to AHB protocol and AXI to APB protocol, convert the signal sent by the HOST module into AHB and APB protocols, and control the mounted interface.
[0038] S3: Integrated USI CTRL module, supports regular USI functions including UART, SPI, IIC, and is upgraded to support DSPI and QSPI.
[0039] S4: Implement the SDIO controller module to support the SDIO protocol, multiplex pins with the USI CTRL module to implement the input of various protocols, and add a FIFO module to optimize data transmission efficiency.
[0040] As a refinement of the above steps, in order to meet the low power consumption characteristics of IOT devices, the HOST module is equipped with a low power protection device.
[0041] All signal mode transmissions need to be selected through bus configuration and configured through the usi module.
[0042] The bus bridge module selects the bus type according to the working main frequency. The APB bus is used when the working main frequency is 0-50M, and the AHB bus is used when the working main frequency is above 50M.
[0043] The USI CTRL module expands the original 4 pins to 6 pins.
[0044] The FIFO module in the SDIO controller module is used to temporarily store data during the SD card startup process and then transmit data after the startup is completed.
[0045] The multiplexing logic of the USI CTRL module and the SDIO module is described in the following table:
[0046] Multiplexing logic table of USI CTRL module and SDIO module
[0047]
[0048] In the table: NC means not used, IRQ means interrupt, RW means read wait, CS\NCS means chip select high\low valid, RTS\CTS means send request\send permission
[0049] All signal mode transmissions need to be selected through bus configuration and configured through the usi module.
[0050] like Figure 2 As shown, a system for improving SDIO functionality includes:
[0051] HOST module: connected to the host computer, receiving relevant tasks and instructions from the host computer. The HOST module is a RISC-V architecture and supports the AXI bus protocol for information transmission. Then the HOST module is connected to the bus bridge module.
[0052] Bus bridge module: It can change the AXI bus protocol output by the HOST module into the AHB bus protocol and the APB bus protocol, or into one of the two protocols. It uses the APB bus to work at a main frequency of 0-50M, and the AHB bus to work above 50M. This variable clock and variable bus method can achieve low power consumption. At the same time, the bus bridge also has the function of mode configuration, where you can select several communication protocols listed in the table above and output them to the USI module through the bus bridge module.
[0053] USI module: performs conversion from AHB / APB to the corresponding communication mode, and also supports calling two modules at the same time. The two modules are controlled by the same chip select signal and can process 8-bit wide signals at the same time. Taking USI (AHB) as an example, this module processes the high 4-bit signal, and the other module processes the low 4-bit signal. It is pointed out that the USI module is not only able to process AHB or APB signals alone. When there are requests for two modules to call at the same time, the two USI modules can be called at the same time to perform high-width parallel data processing operations.
[0054] SDIO module: It contains two SDIO CTRL modules and a FIFO module. The SDIO CTRL module is responsible for receiving the signal output by the usi module (Note: USI has a total of 6 signals for SDIO, which are sent in QSPI mode here. The signal names are specifically referred to in the above table. Because there are too many multiplexed names for each signal, they are just given as examples here). The corresponding signal is assigned to the corresponding pin for data output. It should be noted that in order to adapt to the high-width output requirements, the module has 4 more pins used as DATA[7], DATA[6], DATA[5], and DATA[4] output pins to ensure the pin usage requirements in the high-width parallel mode.
[0055] The significance of setting FIFO is that if the peripheral is an SD card or FLASH series peripheral, in many cases, the peripheral needs more than 70 clock cycles to start. For the bus, such waiting is a waste of resources. Here, the bus can first store the data to be sent into the FIFO, and then after the startup is completed, the corresponding signal of the startup completion is used as the read enable of the FIFO, so that the cached data can be output, thereby ensuring the efficiency of the entire interface and not occupying the extra working time of the bus.
[0056] Combination Figure 3 As shown, the embodiment of the present disclosure provides a device 300 for improving SDIO functionality, including a processor 304 and a memory 301. Optionally, the device may also include a communication interface 302 and a bus 303. The processor 304, the communication interface 302, and the memory 301 may communicate with each other through the bus 303. The communication interface 302 may be used for information transmission. The processor 304 may call the logic instructions in the memory 301 to execute the method for improving SDIO functionality of the above embodiment.
[0057] In addition, the logic instructions in the memory 301 described above can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0058] The memory 301 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 304 executes the functional application and data processing by running the program instructions / modules stored in the memory 301, that is, the method for improving the functionality of SDIO in the above embodiment is implemented.
[0059] The memory 301 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 301 may include a high-speed random access memory and may also include a non-volatile memory.
[0060] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned method for improving SDIO functionality.
[0061] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0062] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, and other media that can store program codes, or a transient storage medium.
[0063] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0064] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. The technicians may clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0065] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0066] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for improving SDIO functionality, characterized in that: The following steps are involved: Add the HOST module, which supports the central control chip of RISC-V architecture and communicates with peripherals through the AXI protocol; Configure the bus bridge module to support AXI to AHB protocol and AXI to APB protocol, convert the signal sent by the HOST module into AHB and APB protocols, and control the mounted interface; Integrated USI CTRL module, supports conventional USI functions, including UART, SPI, IIC, and is upgraded to support DSPI and QSPI; Implement the SDIO controller module to support the SDIO protocol, multiplex pins with the USI CTRL module to implement the input of various protocols, and add a FIFO module to optimize data transmission efficiency.
2. The method for improving SDIO functionality as claimed in claim 1, characterized in that: The HOST module has a low power protection device.
3. The method for improving SDIO functionality according to any one of claims 1 or 2, characterized in that: The bus bridge module selects the bus type according to the working main frequency. The APB bus is used when the working main frequency is 0-50M, and the AHB bus is used when the working main frequency is above 50M.
4. The method for improving SDIO functionality as claimed in claim 1, characterized in that: The USICTRL module expands the original 4 pins to 6 pins.
5. The method for improving SDIO functionality as claimed in claim 1, characterized in that: The FIFO module in the SDIO controller module is used to temporarily store data during the SD card startup process and then transmit data after the startup is completed.
6. A system for improving SDIO functionality, characterized in that: include: HOST module: Based on RISC-V architecture, connected to the host computer, receiving tasks and instructions, supporting AXI bus protocol, and used for information transmission with other internal modules; Bus bridge module: bridges the HOST module and the USI module to realize the conversion from AXI bus protocol to AHB or APB bus protocol, automatically selects APB or AHB bus protocol according to the main frequency, and has mode configuration function; USI CTRL module: converts AHB / APB to the corresponding communication mode, supports calling two modules at the same time, and can process 8-bit width signals in parallel through the same chip select signal control. When processing high-width data, two USI modules can be called to process the high and low four-bit signals respectively; SDIO module: includes two SDIO CTRL modules and one FIFO module. The SDIO CTRL module receives the signal output by the USI module and distributes it to the corresponding pin for data output. The FIFO module is used to cache the data to be sent.
7. The system for improving SDIO functionality as claimed in claim 6, characterized in that: The SDIO module also has four pins used as output pins of DATA[7], DATA[6], DATA[5], and DATA[4].
8. A device for improving SDIO functionality, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for improving SDIO functionality according to any one of claims 1 to 5 when running the program instructions.
9. A storage medium storing program instructions, characterized in that: When the program instructions are executed, the method for improving SDIO functionality as claimed in any one of claims 1 to 5 is executed.
Citation Information
Cited By
Server management system and method, device, computer program product, and medium
WO2026138347A1
