SoC system
By designing a modular structure and open memory in the SoC system, the problem of black box design of the development board is solved, students' operation and expansion capabilities are improved, and higher practical flexibility is achieved.
Patent Information
- Application Number
- CN202323593037.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-27
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2033-12-27
AI Technical Summary
Existing development boards cannot effectively improve students' thinking expansion capabilities and operating skills in college electronic design competitions because the processor part is a black box design, and students cannot understand the internal organizational structure and communication protocols, making it difficult to improve and expand device connections on their own.
Design an SoC system, including CPU, AXI interface module, instruction and data memory module, peripheral AXI interface module, AXI4 bus and display and expansion memory module, by dividing the system into multiple functional modules, allowing the operator to understand the modules The cooperation between the modules and the impact of instruction data on system execution are provided, and open instruction and data memory modules are provided for self-written code.
Through modular design, the operator's hands-on ability and understanding ability are improved, and the operator's practical expansion ability is enhanced. Students are allowed to not only use built-in code, but also write their own code, improving operational flexibility.
Smart Images

Figure CN221708050U
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of integrated circuit SoC, in particular to a SoC system. Background Art
[0002] Some electronic design competitions currently held by colleges and universities to improve students' hands-on skills generally require the installation of embedded systems on various devices to achieve device interconnection and information processing functions.
[0003] However, the development boards commonly used in current competitions, including 51 single-chip microcomputers and STM32 embedded development boards, are all general and reliable embedded development boards that can meet the general needs of college electronic design competitions. However, they also have obvious limitations, including: 1. The processor part is a black box design for students. Students only know how to use the processor, but do not know the specific internal organizational structure and implementation methods of the processor. 2. The devices on the development board, including the processor, bus, memory, and peripherals, as well as the communication between the development board and the host computer are all packaged. Students can only use them according to the operating instructions. They do not know the device connection relationship and communication protocol on the development board, and it is difficult to improve and expand them by themselves.
[0004] Therefore, the current development boards cannot effectively improve students' thinking expansion ability and operational skills. Utility Model Content
[0005] In order to solve the above problems existing in the prior art, the utility model provides a SoC system, including: a CPU, a CPU-side AXI interface module, an instruction and data memory AXI interface module, a peripheral-side AXI interface module, an instruction and data memory module, an AXI4 bus, and a display and expansion storage module;
[0006] The CPU is used to obtain instruction data in the instruction and data memory module through the instruction and data memory AXI interface module, and issue instruction information and access peripherals according to the instruction data;
[0007] The CPU-side AXI interface module is connected to the CPU via a SRAM-like bus and is used to convert the SRAM-like interface into an AXI interface;
[0008] The instruction and data memory AXI interface module is used to encapsulate the output of the instruction and data memory module into an AXI interface, so as to provide instruction data to the CPU through the AXI interface;
[0009] The peripheral-side AXI interface module is used to encapsulate multiple peripheral interfaces into an AXI bus interface, and implement CPU access to different peripherals through the AXI bus interface;
[0010] The instruction and data memory module is used to store the instruction data and operation data of the CPU;
[0011] The display and expansion storage module is used to execute corresponding actions according to the instruction information.
[0012] Optionally, the SoC system further includes: a GPU;
[0013] The GPU is used to obtain the instruction information sent by the CPU, and control the display and extended storage modules to display images according to the instruction information.
[0014] Optionally, the CPU-side AXI interface module includes: a CPU-side instruction memory AXI interface, a CPU-side data memory AXI interface, Icache, and Dcache;
[0015] When the CPU accesses peripherals, the CPU-side instruction memory AXI interface and the CPU-side data memory AXI interface are used to enable the CPU to interact directly through the AXI4 bus;
[0016] Icache and Dcache are used to store instructions and data pre-fetched from the instruction and data memory modules, respectively.
[0017] Optionally, the instruction and data memory AXI interface module includes: an instruction memory-side AXI interface and a data memory-side AXI interface;
[0018] One end of the instruction memory side AXI interface and the data memory side AXI interface is connected to the AXI4 bus;
[0019] The other ends of the instruction memory side AXI interface and the data memory side AXI interface are connected to the instruction and data memory modules.
[0020] Optionally, the instruction and data memory module includes: an instruction memory and a data memory;
[0021] The instruction memory is connected to the instruction memory end AXI interface;
[0022] The data memory is connected to the data memory end AXI interface.
[0023] Optionally, the peripheral-side AXI interface module includes: an IO configuration module, a GPIO driver module, a UART driver module, a PWM driver module, a digital tube driver module, a VGA driver module and an SRAM driver module.
[0024] Optionally, the display and expansion storage module includes: a digital tube display module and a VGA display module;
[0025] The digital tube display module is used to display the logical operation results in the command information on the LED light or digital tube;
[0026] The VGA display module is used to display images according to instruction information.
[0027] Optionally, the display and expansion storage module further comprises: an expansion module;
[0028] The expansion module is used to expand and supplement the storage capacity of the SoC system when the capacity of the instruction and data memory modules is insufficient.
[0029] Optionally, the SoC system further includes: an IO function selection module;
[0030] One end of the IO function selection module is connected to the IO configuration module, the GPIO driver module, the UART driver module and the PWM driver module, and the other end is connected to the corresponding peripheral;
[0031] The IO function selection module is used to control the corresponding peripherals to perform corresponding actions according to the instruction data.
[0032] Optionally, the SoC system further includes: an interrupt flag register;
[0033] One end of the interrupt flag register is connected to the CPU, and the other end is connected to the GPIO driver module, the UART driver module, the VGA driver module and the SRAM driver module;
[0034] The interrupt flag register is used to collect interrupt requests from the GPIO driver module, the UART driver module, the VGA driver module, and the SRAM driver module, and pass the interrupt requests to the CPU.
[0035] The utility model provides a SoC system, comprising: a CPU, a CPU-side AXI interface module, an instruction and data memory AXI interface module, a peripheral-side AXI interface module, an instruction and data memory module, an AXI4 bus, and a display and expansion storage module; the CPU is used to obtain instruction data in the instruction and data memory module through the instruction and data memory AXI interface module, and issue instruction information and access peripherals according to the instruction data; the CPU-side AXI interface module is connected to the CPU through a SRAM-like bus, and is used to convert the SRAM-like interface into an AXI interface; the instruction and data memory AXI interface module is used to encapsulate the output of the instruction and data memory module into an AXI interface, so as to provide instruction data to the CPU through the AXI interface; the peripheral-side AXI interface module is used to encapsulate multiple peripheral interfaces into an AXI bus interface, and realize the CPU's access to different peripherals through the AXI bus interface; the instruction and data memory module is used to store the instruction data and operation data of the CPU; the display and expansion storage module is used to execute corresponding actions according to the instruction information. In the utility model, by dividing the system into multiple functional modules, the operator can understand the coordination between the modules and the influence of different instruction data on the system execution action, thereby improving the operator's hands-on ability and understanding ability; in addition, due to the open characteristics of the instruction and data storage module, the operator can not only use the module's built-in code but also write the code by himself, which improves the operator's flexibility in the practice process and further improves the operator's practical expansion ability.
[0036] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A schematic diagram of the structure of a SoC system provided in an embodiment of the utility model. DETAILED DESCRIPTION
[0038] The present invention is further described in detail below in conjunction with specific embodiments, but the implementation methods of the present invention are not limited thereto.
[0039] In order to enhance students' or operators' ability to understand and practice the SoC system, an embodiment of the utility model provides a SoC system. Figure 1 The structure diagram of a SoC system provided by the embodiment of the utility model is shown in FIG. Figure 1As shown, the SoC system includes: a CPU, a CPU-side AXI interface module 1, an instruction and data memory AXI interface module 2, a peripheral-side AXI interface module 3, an instruction and data memory module 4, an AXI4 bus, and a display and expansion storage module 5; the CPU is used to obtain instruction data in the instruction and data memory module 4 through the instruction and data memory AXI interface module 2, and issue instruction information and access peripherals according to the instruction data; the CPU-side AXI interface module 1 is connected to the CPU through a SRAM-like bus, and is used to convert the SRAM-like interface into an AXI interface; the instruction and data memory AXI interface module 2 is used to encapsulate the output of the instruction and data memory module 4 into an AXI interface, so as to provide instruction data to the CPU through the AXI interface; the peripheral-side AXI interface module 3 is used to encapsulate multiple peripheral interfaces into an AXI bus interface, and realize the CPU's access to different peripherals through the AXI bus interface; the instruction and data memory module 4 is used to store the CPU's instruction data and operation data; the display and expansion storage module 5 is used to perform corresponding actions according to the instruction information.
[0040] It should be noted that in the embodiment of the utility model, the CPU can support a 32-bit reduced instruction set, including: logical, shift operations and empty instructions, logical, shift operations and empty instructions, move operation instructions, arithmetic operation instructions, transfer instructions, load storage class instructions, coprocessor access instructions, exception-related instructions, that is, a complete 32-bit integer processing instruction set.
[0041] In order to realize the functions of SoC, 8 built-in program instructions are designed in the utility model, which are equivalent to macro instructions (custom instructions composed of multiple assembly / machine instructions), which can be downloaded to the SoC system after being compiled by the external device host computer. The built-in program instructions are as follows:
[0042] (1) CY_INST_SEND: The CPU receives the application program and converts it into binary and stores it in the instruction memory in the instruction and data memory module 4.
[0043] It should be noted that, in this embodiment, the application program refers to instructions downloaded from the host computer.
[0044] (2) CY_DATA_SEND: The CPU receives the data attached to the application and converts it into binary and stores it in the data memory in the instruction and data memory module 4.
[0045] (3)CY_INST_RUN: Runs the application stored in the instruction memory.
[0046] (4)CY_IMAGE_RGB_444_SEND: Accepts an image in RGB444 format, converts all its pixels into binary and stores it in the extension module.
[0047] (5)CY_IMAGE_01_SEND: Accepts a binary image, converts all its pixels into binary values and stores them in the extension module.
[0048] (6)CY_IMAGE_DISPLAY: Turns the GPU image display function on or off.
[0049] (7)CY_REG_W: Write data to any address space.
[0050] (8)CY_REG_R: Read data from any address space.
[0051] The built-in program instruction is equivalent to the system boot program, that is, the system on chip (SoC) starts to execute from this boot program when it is powered on. The built-in program instruction is named BOOT_INST_ROM_addr, with a specific value of 0x00000000, and the corresponding system data address is named: BOOT_DATA_ROM_addr, with a specific value of 0x00002000. The initial value of the address where the application downloaded from the host computer is placed (that is, the starting address of the application) is named: Usr_INST_RAM_addr, with a specific value of 0x00400000, and the corresponding data storage address initial value is named Usr_DATA_RAM_addr, with a specific value of 0x10010000.
[0052] It should be noted that, in the embodiment of the utility model, the above-mentioned built-in program instructions (1), (2), and (3) are application-related instructions for receiving and executing applications, and the built-in program instructions (4), (5), and (6) are image transmission-related instructions for simplifying highly repetitive image transmission tasks, and instructions (7) and (8) are general instructions that can be used to verify all functional modules.
[0053] The utility model provides a SoC system, comprising: a CPU, a CPU-side AXI interface module 1, an instruction and data memory AXI interface module 2, a peripheral-side AXI interface module 3, an instruction and data memory module 4, an AXI4 bus, and a display and expansion storage module 5; the CPU is used to obtain instruction data in the instruction and data memory module 4 through the instruction and data memory AXI interface module 2, and issue instruction information and access peripherals according to the instruction data; the CPU-side AXI interface module 1 is connected to the CPU through a SRAM-like bus, and is used to convert the SRAM-like interface into an AXI interface; the instruction and data memory AXI interface module 2 is used to encapsulate the output of the instruction and data memory module 4 into an AXI interface, so as to provide instruction data to the CPU through the AXI interface; the peripheral-side AXI interface module 3 is used to encapsulate multiple peripheral interfaces into an AXI bus interface, and realize the CPU's access to different peripherals through the AXI bus interface; the instruction and data memory module 4 is used to store the instruction data and operation data of the CPU; the display and expansion storage module 5 is used to execute corresponding actions according to the instruction information. In the utility model, by dividing the system into multiple functional modules, the operator can understand the coordination between the modules and the influence of different instruction data on the system execution actions, thereby improving the operator's hands-on ability and understanding ability; in addition, due to the open characteristics of the instruction and data storage module 4, the operator can not only use the module's built-in code but also write the code by himself, which improves the operator's flexibility in practice and further improves the operator's practical expansion capabilities.
[0054] Optionally, the SoC system further includes: a GPU; the GPU is used to obtain instruction information sent by the CPU, and control the display and expansion storage module 5 to display images according to the instruction information.
[0055] In the embodiment of the utility model, the function of the GPU module is mainly to carry and display control of the image. In one possible implementation, the external device host computer can directly write data to the image buffer space of the VGA display module to directly change the current image of the VGA display module. In another possible implementation, the image can also be sent to the data memory (image data storage address) in the instruction and data storage module by the external device host computer first, and then the CPU sends instructions to the GPU. The GPU will directly carry the image to the VGA display module according to the instructions, and display it under the drive of the VGA driver module in the 640×480 format.
[0056] It should be noted that in this embodiment, four types of registers are integrated inside the GPU, namely: image display enable register (VGA_display_en), background enable register (VGA_background_en), image buffer register (VGA_buffer) and background pixel register (VGA_background_pixel).
[0057] The image display enable register (VGA_display_en) address is 0x70112C00, which can be directly controlled by the CPU. If it is non-zero, the VGA display module is enabled to display the image, and if it is 0, the VGA display module is disabled. The background enable register (VGA_background_en) address is 0x70112C01, which is directly controlled by the CPU. The background enable register is used in conjunction with the background pixel register. When the background enable register is valid, if the VGA display module is valid, the pure black points in the image are modified to background pixels. If the VGA display module is invalid, the background pixels are displayed in full screen. The image buffer (VGA_buffer) address is 0x70100000-0x70112BFF, which can store a frame of image with a resolution of 320×240, a total of 76800 pixels. The background pixel register (VGA_background_pixel) address is 0x70112C02, which stores the background pixel color. In addition, the initial value of the general image data storage address is Image_data_addr, and its specific value is 0x70200000.
[0058] In addition, in the embodiment of the utility model, when the image transfer is completed, the VGA driver module will also generate an interrupt signal and send it to the interrupt flag register, indicating that the image transfer is completed. One end of the VGA driver module is directly mounted on the AXI4 bus, and the other end is connected to the VGA display module.
[0059] Optionally, the CPU-side AXI interface module 1 includes: a CPU-side instruction memory AXI interface, a CPU-side data memory AXI interface, Icache and Dcache; when the CPU accesses peripherals, the CPU-side instruction memory AXI interface and the CPU-side data memory AXI interface are used to enable the CPU to interact directly through the AXI4 bus; Icache and Dcache are respectively used to store instructions and data pre-fetched from the instruction and data memory module 4.
[0060] It should be noted that in the embodiment of the utility model, the CPU-side instruction memory AXI interface and the CPU-side data memory AXI interface are used to directly access the instruction memory, data memory and peripherals through the AXI4 bus when the CPU accesses peripherals, which can greatly improve the access efficiency of the CPU.
[0061] In addition, Icache is used to pre-fetch some recently used instructions from the instruction memory; Dcache is used to pre-fetch some recently used data from the data memory. In this way, when the CPU runs the program normally (less or no need to access peripherals), it can directly fetch instructions from Icache and data from Dcache, thereby improving the efficiency of CPU instruction fetching and data access.
[0062] In addition, it should be emphasized that the CPU-side instruction memory AXI interface, the CPU-side data memory AXI interface, Icache and Dcache all have an interface protocol conversion function. Because the communication with the CPU generally adopts a SRAM-like interface, and the AXI bus interface used for communication with the AXI4 bus. Therefore, in this embodiment, the CPU-side instruction memory AXI interface, the CPU-side data memory AXI interface, Icache and Dcache can be used to convert the SRAM-like bus into an AXI bus interface.
[0063] Optionally, the instruction and data memory AXI interface module 2 includes: an instruction memory end AXI interface and a data memory end AXI interface; one end of the instruction memory end AXI interface and the data memory end AXI interface are connected to the AXI4 bus; the other end of the instruction memory end AXI interface and the data memory end AXI interface are connected to the instruction and data memory module 4.
[0064] In this embodiment, the main function of the AXI interface on the instruction memory side and the AXI interface on the data memory side is to connect to the AXI4 bus with the AXI bus interface, while being able to access the instruction memory and the data memory in the form of an SRAM-like interface, which is a signal conversion function.
[0065] Optionally, the instruction and data memory module 4 includes: an instruction memory and a data memory; the instruction memory is connected to the instruction memory end AXI interface; the data memory is connected to the data memory end AXI interface.
[0066] It should be noted that in the embodiment of the utility model, the instruction memory is used to store all startup codes (built-in program instructions) and applications (application program instructions). The difference is that the built-in program instructions are equivalent to the system boot program, and the starting address is 0x00000000, and the application is downloaded from the host computer, and the initial address value is: 0x00400000.
[0067] The data memory is used to store the data required by the startup code and the data required by the application. The initial value of the system data address corresponding to the startup code is 0x00002000. The initial value of the data storage address corresponding to the application instruction is 0x10010000.
[0068] Optionally, the peripheral end AXI interface module 3 includes: an IO configuration module, a GPIO driver module, a UART driver module, a PWM driver module, a digital tube driver module, a VGA driver module and an SRAM driver module.
[0069] It should be noted that, in this embodiment, the IO configuration module is used to connect to the AXI4 bus with the AXI bus interface, and can also access the IO function selection module. For example, corresponding access settings can be made to the peripheral interface, including setting the peripheral interface type, input or output direction, etc.
[0070] The GPIO driver module is used to adapt to the simple input and output of various types of peripherals, making it easier to expand peripherals.
[0071] The UART driver module is a conversion module between the AXI bus and the UART protocol (Universal Asynchronous Receiver / Transmitter, a serial data transmission protocol). Its function is to connect to the AXI4 bus with the AXI bus interface, and at the same time convert to the UART protocol for access operations. The UART protocol usually converts parallel data into serial data at the sending end and converts serial data into parallel data at the receiving end. UART uses a first-in-first-out stack (FIFO) as an input and output buffer to store the data sent or received. For example, this module can realize the function of the CPU communicating with the host computer through the serial port.
[0072] The PWM driver module is a conversion module between the AXI bus and PWM (pulse width modulation). Its function is to connect to the AXI4 bus with the AXI bus interface and convert it into the signal form required by PWM. PWM is a technology that uses digital output to control analog circuits. It controls the duty cycle by modulating a series of pulse widths. The duty cycle refers to the ratio of the time the high level is maintained in the output PWM to the time of the PWM clock cycle. The required waveform can be obtained by setting the duty cycle. For example, the speed control of a DC motor can be achieved through the PWM driver module.
[0073] The function of the digital tube driver module is to connect to the AXI4 bus with the AXI bus interface, and at the same time, it can convert the command information into digital tube and LED light control signals. For example, some basic data information can be displayed on the connected digital tube display module through the digital tube driver module.
[0074] The function of the VGA driver module is to connect to the AXI4 bus with the AXI bus interface, and at the same time, it can convert the command information into VGA interface signals and display them correctly on the screen (VGA display module). The VGA driver module uses image scanning to display images, and scans the pixels that make up the image onto the display screen from top to bottom and from left to right under the synchronization of the horizontal synchronization signal and the field synchronization signal.
[0075] The function of the SRAM driver module is to connect to the AXI4 bus with the AXI bus interface, and at the same time, it can convert the instruction information into SRAM interface signals to access the storage resources of the expansion module. This module can supplement and expand the storage function of the instruction and data storage module.
[0076] Optionally, the display and expansion storage module 5 includes: a digital tube display module and a VGA display module; the digital tube display module is used to display the logic operation result in the instruction information on an LED lamp or a digital tube; the VGA display module is used to display an image according to the instruction information.
[0077] In this embodiment, the digital tube display module is used to display some basic data information on the LED lamp or digital tube. For example, the arithmetic logic operation result is displayed on the LED lamp or digital tube to facilitate the implementation of simple applications.
[0078] The VGA display module is used to display image information on the screen, making it easier to observe the running results of more complex applications.
[0079] Optionally, the display and expansion storage module 5 further includes: an expansion module; the expansion module is used to expand and supplement the storage capacity of the SoC system when the capacity of the instruction and data storage module 4 is insufficient.
[0080] In this embodiment, the expansion module is used when there are more instructions or data than the capacity of the instruction and data storage module 4 (Note: both the instruction storage and the data storage use FPGA chip resources). The storage resources can be expanded through the onboard SRAM chip to store more instructions and data.
[0081] Optionally, the SoC system also includes: an IO function selection module; one end of the IO function selection module is connected to the IO configuration module, the GPIO driver module, the Uart driver module and the PWM driver module, and the other end is connected to the corresponding peripheral; the IO function selection module is used to control the corresponding peripheral to perform corresponding actions according to the instruction data.
[0082] Optionally, the SoC system also includes: an interrupt flag register; one end of the interrupt flag register is connected to the CPU, and the other end is connected to the GPIO driver module, the UART driver module, the VGA driver module and the SRAM driver module; the interrupt flag register is used to collect interrupt requests from the GPIO driver module, the UART driver module, the VGA driver module and the SRAM driver module, and pass the interrupt requests to the CPU.
[0083] In the embodiment of the utility model, the interrupt flag register specifically uses the Cause register (decimal register address 13). The Cause register is mainly used to record the current exception and interrupt information, wherein the ExcCode of the Cause register is used to record what kind of exception (generalized exception, including interrupt) is currently occurring. The encoding table corresponding to ExcCode is shown in Table 1:
[0084] Table 1ExcCode encoding table
[0085] ExcCode Mnemonics describe 0 Int Interrupt … … … 8 Sys System call exceptionSyscall …(until 31) … …
[0086] IP[7:0] of the Cause register is used to determine which interrupt source it is. A corresponding bit of 1 indicates that an interrupt has occurred, and a corresponding bit of 0 indicates that no corresponding interrupt has occurred. Table 2 is a corresponding relationship table of IP fields provided in an embodiment of the present utility model.
[0087] Table 2 IP field correspondence table
[0088]
[0089]
[0090] In this embodiment, hardware interrupts generally refer to interrupts caused by external devices, such as interrupts caused by UART serial port communication, VGA image information transfer, etc. Software interrupts generally refer to interrupts caused by internal devices, such as instructions or system calls in software. In this embodiment, software interrupt No. 1 and software interrupt No. 0 are currently pre-set interrupts, that is, they can be added as the SoC system functions are continuously improved in the future.
[0091] Since a single-stage interrupt processing mode is adopted in the present invention, when an interrupt occurs, if the current CPU is in an abnormal (broad sense) processing, the interrupt will not be responded to. If the current CPU does not have an abnormal (broad sense) processing, the interrupt can be responded to.
[0092] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the utility model. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification.
[0093] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art can understand and implement other changes to the disclosed embodiments by viewing the drawings and the disclosed content. In the description of the present utility model, the term "comprising" does not exclude other components or steps, "one" or "an" does not exclude multiple situations, and "multiple" means two or more, unless otherwise clearly and specifically limited. In addition, certain measures are recorded in different embodiments, but this does not mean that these measures cannot be combined to produce good results.
[0094] The above contents are further detailed descriptions of the present invention in combination with specific preferred implementations, and the specific implementation of the present invention cannot be considered to be limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. A SoC system, characterized in that: include: CPU, CPU-side AXI interface module, instruction and data memory AXI interface module, peripheral-side AXI interface module, instruction and data memory module, AXI4 bus, and display and expansion storage module; The CPU is used to obtain instruction data in the instruction and data memory module through the instruction and data memory AXI interface module, and issue instruction information and access peripherals according to the instruction data; The CPU-side AXI interface module is connected to the CPU via a SRAM-like bus and is used to convert the SRAM-like interface into an AXI interface; The instruction and data memory AXI interface module is used to encapsulate the output of the instruction and data memory module into an AXI interface to provide instruction data to the CPU through the AXI interface; The peripheral end AXI interface module is used to encapsulate multiple peripheral interfaces into an AXI bus interface, and implement the CPU's access to different peripherals through the AXI bus interface; The instruction and data memory module is used to store instruction data and operation data of the CPU; The display and expansion storage module is used to execute corresponding actions according to the instruction information.
2. A SoC system according to claim 1, characterized in that: The SoC system further includes: a GPU; The GPU is used to obtain the instruction information sent by the CPU, and control the display and extended storage module to display images according to the instruction information.
3. A SoC system according to claim 1, characterized in that: The CPU-side AXI interface module includes: a CPU-side instruction memory AXI interface, a CPU-side data memory AXI interface, Icache and Dcache; When the CPU accesses a peripheral device, the CPU-side instruction memory AXI interface and the CPU-side data memory AXI interface are used to enable the CPU to interact directly through the AXI4 bus; The Icache and the Dcache are used to store instructions and data pre-fetched from the instruction and data memory modules, respectively.
4. A SoC system according to claim 1, characterized in that: The instruction and data memory AXI interface module comprises: an instruction memory end AXI interface and a data memory end AXI interface; One end of the instruction memory-side AXI interface and one end of the data memory-side AXI interface are connected to the AXI4 bus; The other ends of the instruction memory side AXI interface and the data memory side AXI interface are connected to the instruction and data memory module.
5. A SoC system according to claim 4, characterized in that: The instruction and data memory module includes: an instruction memory and a data memory; The instruction memory is connected to the instruction memory end AXI interface; The data storage is connected to the data storage end AXI interface.
6. A SoC system according to claim 1, characterized in that: The peripheral end AXI interface module includes: an IO configuration module, a GPIO driver module, a UART driver module, a PWM driver module, a digital tube driver module, a VGA driver module and an SRAM driver module.
7. A SoC system according to claim 2, characterized in that: The display and expansion storage module includes: a digital tube display module and a VGA display module; The digital tube display module is used to display the logic operation result in the instruction information on an LED lamp or a digital tube; The VGA display module is used to display images according to the instruction information.
8. A SoC system according to claim 2, characterized in that: The display and expansion storage module also includes: an expansion module; The expansion module is used to expand and supplement the storage capacity of the SoC system when the capacity of the instruction and data memory module is insufficient.
9. A SoC system according to claim 6, characterized in that: The SoC system further includes: an IO function selection module; One end of the IO function selection module is connected to the IO configuration module, the GPIO driver module, the UART driver module and the PWM driver module, and the other end is connected to the corresponding peripheral device; The IO function selection module is used to control the corresponding peripheral device to perform corresponding actions according to the instruction data.
10. The SoC system according to claim 6, characterized in that: The SoC system also includes: an interrupt flag register; One end of the interrupt flag register is connected to the CPU, and the other end is connected to the GPIO driver module, the UART driver module, the VGA driver module and the SRAM driver module; The interrupt flag register is used to collect interrupt requests of the GPIO driver module, the UART driver module, the VGA driver module and the SRAM driver module, and transmit the interrupt requests to the CPU.
