Data processing method based on RISC-V chip and ADC module
By adding a double-ended to single-ended module, a cache module and an arbiter module to the ADC module, the problem of low efficiency when the ADC module is connected to the RISC-V chip is solved, and efficient reception and processing of differential pins and bilateral data are achieved. Improved signal transmission performance.
Patent Information
- Application Number
- CN202410549955.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-06
- Publication Date
- 2024-08-30
AI Technical Summary
When the existing ADC module is connected to a RISC-V chip, functions such as differential pins and bilateral clock transmission cannot be directly connected to the pins of the chip, resulting in low efficiency of the ADC module and inability to exert its full performance.
By adding a double-ended to single-ended module, a cache module and an arbiter module, the reception of differential pins and bilateral data is realized, and the arbitration design of channel logic numbers is carried out for different bit numbers, which improves the use efficiency of the ADC module, and ultimately The signal is transmitted to the RISC-V chip.
It effectively improves the usage efficiency of the ADC module, achieves efficient reception and processing of differential pins and bilateral data, and improves signal transmission performance.
Smart Images

Figure CN118569171A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer communication technology, and in particular to a data processing method based on a RISC-V chip and an ADC module. Background Art
[0002] With the development of RISC-V chips, more and more functions are required. However, as a chip, the information processed is based on the field of digital signals. In the development of information systems, compared with digital signals, the processing of analog signals is also a very important part. The process of chip processing analog signals needs to rely on the ADC module to realize the conversion of analog signals into chip signals. However, the adaptability of the ADC module in the chip is restricted by many aspects such as pins and conversion rate. If a powerful ADC module is directly linked to the chip, its differential pins, bilateral clock transmission and other functions cannot be directly connected to the pins of the chip, and its full performance cannot be exerted.
[0003] Therefore, in the existing technical solutions, there is a problem of low efficiency of the ADC module.
[0004] 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
[0005] 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.
[0006] The disclosed embodiment provides a data processing method based on a RISC-V chip and an ADC module. By adding a dual-end to single-end module, a cache module, and an arbiter module, the reception of differential pins and bilateral data is realized. At the same time, an arbiter of the channel logic number is designed for different bit numbers, thereby improving the use efficiency of the ADC module. Finally, the signal is transmitted to the RISC-V chip.
[0007] In some embodiments, the method comprises:
[0008] The double-ended to single-ended module converts the differential signal output by the ADC module into a single-ended signal. The conversion mode corresponding to the conversion into a single-ended signal is to take the rising edge of the clock, or take the falling edge of the clock and invert it to form a new clock with multiple valid rising edges. At the same time, the clock module that takes the rising edge is one clock cycle ahead of the clock module that takes the falling edge.
[0009] A cache module caches the single-ended signal converted by the dual-ended to single-ended module;
[0010] The arbitrator module arbitrates the cached single-ended signal based on the number of bits and sends the arbitration result to the RISC-V chip module.
[0011] In some embodiments, a single-ended signal is a signal that has data on both the rising and falling edges of the clock.
[0012] In some embodiments, each rising edge of the clock in the single-ended signal carries 1 bit of data sent by the ADC module.
[0013] In some embodiments, caching the single-ended signal converted by the double-ended to single-ended module includes:
[0014] Multiple single-ended signals are aligned according to the positions of rising edges, and the aligned single-ended signals are cached.
[0015] In some embodiments, arbitrating the cached single-ended signal based on the number of bits and sending the arbitration result to the RISC-V chip module includes:
[0016] Arbitration is performed based on the number of bits in each aligned single-ended signal, and the arbitration result is sent to the RISC-V chip module.
[0017] In some embodiments, arbitration is performed based on the number of bits in each aligned single-ended signal, and the arbitration result is sent to the RISC-V chip module, including:
[0018] When the number of bits in the aligned single-ended signal is an integer multiple of the data path of the single-ended signal, each single-ended signal is sent to the RISC-V chip module according to the clock cycle;
[0019] When the number of bits in the aligned single-ended signal is not an integer multiple of the data path of the single-ended signal, the first bit data of the first single-ended signal is associated with the first bit data of the last single-ended signal and sent to the RISC-V chip module according to the clock cycle.
[0020] In some embodiments, the system also includes a host computer that displays the results output by the RISC-V chip module.
[0021] In some embodiments, the storage medium stores program instructions, characterized in that when the program instructions are run, they execute the data processing method based on the RISC-V chip and ADC module in the above-mentioned embodiment.
[0022] The data processing method based on the RISC-V chip and the ADC module and the storage medium provided in the embodiments of the present disclosure can achieve the following technical effects:
[0023] By adding a dual-ended to single-ended module, a cache module and an arbiter module, the reception of differential pins and bilateral data is realized. At the same time, an arbiter with different channel logic numbers is designed for different bit numbers, which improves the utilization efficiency of the ADC module.
[0024] 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
[0025] 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:
[0026] Figure 1 It is a flowchart of a data processing method based on a RISC-V chip and an ADC module provided by an embodiment of the present disclosure;
[0027] Figure 2 It is a structural schematic diagram of a data processing system based on a RISC-V chip and an ADC module provided by an embodiment of the present disclosure;
[0028] Figure 3 is a schematic diagram of an ADC module provided by an embodiment of the present disclosure;
[0029] Figure 4 is a signal schematic diagram of an original data stream provided by an embodiment of the present disclosure;
[0030] Figure 5 is a schematic diagram of data before alignment provided by an embodiment of the present disclosure;
[0031] Figure 6 is a schematic diagram of aligned data provided by an embodiment of the present disclosure;
[0032] Figure 7 is a sending rule provided by an embodiment of the present disclosure;
[0033] Figure 8 is another sending rule provided by the embodiment of the present disclosure;
[0034] Fig. 9 is another sending rule provided by the embodiment of the present disclosure;
[0035] Fig.10It is a structural schematic diagram of a data processing system based on a RISC-V chip and an ADC module provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0036] 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.
[0037] The terms "first", "second", etc. in the embodiments of the present disclosure are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so as to describe the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0038] Unless otherwise stated, the term "plurality" means two or more.
[0039] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0040] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0041] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0042] The multi-pipeline heterogeneous filtering acceleration method and system for a column storage database provided by an embodiment of the present disclosure are described below in conjunction with the accompanying drawings.
[0043] Figure 1 It is a flow chart of a data processing method based on a RISC-V chip and an ADC module provided in an embodiment of the present disclosure.
[0044] Figure 2 The present invention provides a structural diagram of a data processing system based on a RISC-V chip and an ADC module, including an ADC module, a double-ended to single-ended module, a cache module, an arbiter module, a RISC-V chip module, and a host computer. Figure 1 and Figure 2, the data processing method based on the RISC-V chip and the ADC module provided by the present disclosure may include:
[0045] S01, a double-ended to single-ended module, converts the differential signal output by the ADC module into a single-ended signal, wherein the conversion mode corresponding to the conversion into a single-ended signal is to take away the rising edge of the clock, or take away the falling edge of the clock and invert it, to form a new clock with multiple rising edges valid, and at the same time, the clock module that takes away the rising edge is one clock cycle ahead of the clock module that takes away the falling edge;
[0046] S02, a cache module, caches the single-ended signal converted by the double-ended to single-ended module;
[0047] S03, the arbitrator module, arbitrates the cached single-ended signal based on the number of bits, and sends the arbitration result to the RISC-V chip module.
[0048] Combination Figure 2 It can be seen that the cache module is implemented through a first-in-first-out (FIFO) data buffer.
[0049] In the present disclosure, by adding a dual-ended to single-ended module, a cache module and an arbiter module, the reception of differential pins and bilateral data is realized. At the same time, an arbiter design of channel logic numbers is carried out for different bit numbers, thereby improving the utilization efficiency of the ADC module.
[0050] The following will continue to describe the data processing method based on the RISC-V chip and the ADC module in conjunction with the accompanying drawings.
[0051] Figure 3 is a schematic diagram of an ADC module provided by an embodiment of the present disclosure, Figure 4 It is a signal diagram of an original data stream provided by an embodiment of the present disclosure.
[0052] The analog signal enters from the ADC module, and the signal output by the ADC is a differential signal, including differential signals represented by differential DATA and differential Clock. The module diagram is as follows Figure 3 As shown, the differential signal is then connected to the double-ended to single-ended module to convert the differential signal into a single-ended signal. The conversion types include clock and DATA. The converted data becomes a signal with data on both the rising and falling edges of the clock. Figure 4 shown.
[0053] Figure 5 is a schematic diagram of data before alignment provided by an embodiment of the present disclosure. Figure 6 This is a schematic diagram of aligned data provided by an embodiment of the present disclosure.
[0054] Before the double-ended to single-ended signal is sent to the FIFO, it will be further processed to take the rising edge of the clock, or take the falling edge of the clock and invert it to form multiple new clocks with valid rising edges. At the same time, the clock module that takes the rising edge must be one clock cycle ahead of the clock module that takes the falling edge, and so on. Each rising edge of the output clock will carry 1 bit of data sent by the ADC module, such as Figure 5 After entering the FIFO buffer module, the data stream will be aligned as shown below: Figure 6 shown.
[0055] That is, in some embodiments, a single-ended signal is a signal that has data on both the rising and falling edges of the clock.
[0056] In some embodiments, each rising edge of the clock in the single-ended signal carries 1 bit of data sent by the ADC module.
[0057] In some embodiments, caching the single-ended signal converted by the double-ended to single-ended module includes:
[0058] Multiple single-ended signals are aligned according to the positions of rising edges, and the aligned single-ended signals are cached.
[0059] After alignment, the arbiter determines the number of bits to be sent and outputs them by module. At the same time, for integer multiples of bits, Figure 7 The rules shown are sent.
[0060] That is, in some embodiments, arbitrating the cached single-ended signal based on the number of bits and sending the arbitration result to the RISC-V chip module includes:
[0061] Arbitration is performed based on the number of bits in each aligned single-ended signal, and the arbitration result is sent to the RISC-V chip module.
[0062] If the number of bits is an integer multiple + 1, press Figure 8 The rules shown are sent.
[0063] If the number of bits is an integer multiple of +2, press Fig. 9 The rules shown are sent.
[0064] That is, when the number of bits in the aligned single-ended signal is an integer multiple of the data path of the single-ended signal, each single-ended signal is sent to the RISC-V chip module according to the clock cycle;
[0065] When the number of bits in the aligned single-ended signal is not an integer multiple of the data path of the single-ended signal, the first bit data of the first single-ended signal is associated with the first bit data of the last single-ended signal and sent to the RISC-V chip module according to the clock cycle.
[0066] At the same time, the present invention is not only aimed at the case of 3 lanes, but also multiple lanes. The corresponding integer multiple case can be extended to at most 8 lanes, and the corresponding rules should be 7. According to the rules in the above figure, they are not explained one by one. Note: each lane refers to the data path from BitN to Bit1 / Bit0, the second BitN-1 to Bit2 / Bit0 / X, the third BitN-2 to Bit2 / Bit1 / Bit0, etc.
[0067] In addition, it needs to be further explained that the ADC module is a high-performance ADC module that supports bilateral data transmission and level conversion.
[0068] The function of the dual-end to single-end module is to convert the differential signal output by the ADC module into a single-end signal. However, unlike the common single-end to dual-end signal, the conversion mode here is to take the rising edge of the clock, or take the falling edge of the clock and invert it to form a new clock with multiple rising edges. At the same time, the clock module that takes the rising edge is one clock cycle ahead of the clock module that takes the falling edge, and so on. Each rising edge of the output clock will carry 1 bit of data sent by the ADC module.
[0069] The cache module caches the data converted by the double-ended to single-ended module. Because the former data has a phase difference, it also plays a role in clock synchronization. The cache module is implemented through FIFO. After the data is cached in FIFO, it is output as required according to the arbitration result of the arbitrator module.
[0070] RISC-V chip, which is a chip supporting RISC-V architecture, can receive data from the above modules.
[0071] The host computer is a general host computer, including but not limited to common functions such as display, and can display the results that need to be displayed output by the RISC-V chip.
[0072] The data processing method based on the RISC-V chip and the ADC module provided in the embodiment of the present disclosure realizes the reception of differential pins and bilateral data by adding a dual-end to single-end module, a cache module and an arbiter module. At the same time, an arbiter of the channel logic number is designed for different bit numbers, thereby improving the utilization efficiency of the ADC module. Finally, the signal is transmitted to the RISC-V chip, and the chip outputs the data to be displayed to the host computer, which displays the content to be output.
[0073] Combination Fig.10 As shown, an embodiment of the present disclosure provides a data processing system 1000 based on a RISC-V chip and an ADC module, including a processor 1004 and a memory 1001. Optionally, the system may also include a communication interface 1002 and a bus 1003. Among them, the processor 1004, the communication interface 1002, and the memory 1001 can communicate with each other through the bus 1003. The communication interface 1002 can be used for information transmission. The processor 1004 can call the logic instructions in the memory 1001 to execute the data processing method based on the RISC-V chip and the ADC module of the above embodiment.
[0074] In addition, the logic instructions in the above-mentioned memory 1001 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.
[0075] The memory 1001 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 1004 executes the functional application and data processing by running the program instructions / modules stored in the memory 1001, that is, the data processing method based on the RISC-V chip and the ADC module in the above embodiment is implemented.
[0076] The memory 1001 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 1001 may include a high-speed random access memory and may also include a non-volatile memory.
[0077] 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 a data processing method based on a RISC-V chip and an ADC module.
[0078] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0079] 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 causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method of 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.
[0080] 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 possible changes only. Unless explicitly required, separate components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. As used in the description of the embodiments, unless the context clearly indicates otherwise, 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 one or more associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or including (comprising) refer to the existence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the existence or addition of one or more other features, wholes, steps, operations, elements, components and / or these groups. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence 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 or 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.
[0081] 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. Technicians can 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. Technicians can clearly understand that for the convenience and simplicity of description, the specific working process of the systems, devices and units described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0082] 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 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.
[0083] The flowchart and block diagram in the accompanying drawings show the possible architecture, functions and operations 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 a part of the module, program segment or 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 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 data processing method based on RISC-V chip and ADC module, characterized in that: The method is applied to a system including an ADC module, a dual-end to single-end conversion module, a cache module, an arbiter module, and a RISC-V chip module, and the method includes: The double-ended to single-ended module converts the differential signal output by the ADC module into a single-ended signal, wherein the conversion mode corresponding to the conversion into the single-ended signal is to take away the rising edge of the clock, or take away the falling edge of the clock and invert it, to form a new clock with multiple valid rising edges, and at the same time, the clock module that takes away the rising edge is one clock cycle ahead of the clock module that takes away the falling edge; The cache module caches the single-ended signal converted by the double-ended to single-ended module; The arbitrator module arbitrates the cached single-ended signal based on the number of bits, and sends the arbitration result to the RISC-V chip module.
2. The method according to claim 1, characterized in that The single-ended signal is a signal that has data on both the rising and falling edges of the clock.
3. The method according to claim 1, characterized in that Each rising edge of the clock in the single-ended signal carries 1 bit of data sent by the ADC module.
4. The method according to claim 1, characterized in that: The step of caching the single-ended signal converted by the double-ended to single-ended module comprises: Multiple single-ended signals are aligned according to the positions of rising edges, and the aligned single-ended signals are cached.
5. The method according to claim 4, characterized in that The method of arbitrating the cached single-ended signal based on the number of bits and sending the arbitration result to the RISC-V chip module includes: Arbitration is performed based on the number of bits in each aligned single-ended signal, and the arbitration result is sent to the RISC-V chip module.
6. The method according to claim 5, characterized in that The method of performing arbitration based on the number of bits in each aligned single-ended signal and sending the arbitration result to the RISC-V chip module includes: When the number of bits in the aligned single-ended signal is an integer multiple of the data path of the single-ended signal, sending each path of the single-ended signal to the RISC-V chip module according to the clock cycle; When the number of bits in the aligned single-ended signal is not an integer multiple of the data path of the single-ended signal, the first bit data of the first single-ended signal is associated with the first bit data of the last single-ended signal and sent to the RISC-V chip module according to the clock cycle.
7. The method according to claim 1, characterized in that The system also includes a host computer that displays the results output by the RISC-V chip module.
8. A storage medium storing program instructions, characterized in that: When the program instructions are run, they execute the data processing method based on the RISC-V chip and ADC module as described in any one of claims 1 to 7.
