CN118760647A - Function expansion device, system on chip, method and product - Google Patents
Function expansion device, system on chip, method and product Download PDFInfo
- Publication number
- CN118760647A CN118760647A CN202411244336.2A CN202411244336A CN118760647A CN 118760647 A CN118760647 A CN 118760647A CN 202411244336 A CN202411244336 A CN 202411244336A CN 118760647 A CN118760647 A CN 118760647A
- Authority
- CN
- China
- Prior art keywords
- chip
- operation instruction
- conversion module
- bus
- protocol conversion
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000006243 chemical reaction Methods 0.000 claims abstract description 124
- 230000005540 biological transmission Effects 0.000 claims abstract description 74
- 230000006870 function Effects 0.000 claims description 144
- 238000012795 verification Methods 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 20
- 238000004458 analytical method Methods 0.000 claims description 14
- 230000003993 interaction Effects 0.000 claims description 5
- 238000012544 monitoring process Methods 0.000 claims description 4
- 238000005070 sampling Methods 0.000 claims description 3
- 230000005856 abnormality Effects 0.000 claims description 2
- 238000004806 packaging method and process Methods 0.000 claims 1
- 230000008569 process Effects 0.000 abstract description 14
- 238000011084 recovery Methods 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 17
- 238000004364 calculation method Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 9
- 239000000872 buffer Substances 0.000 description 8
- 238000013461 design Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 5
- 230000004044 response Effects 0.000 description 5
- 238000004422 calculation algorithm Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 125000004122 cyclic group Chemical group 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- LHMQDVIHBXWNII-UHFFFAOYSA-N 3-amino-4-methoxy-n-phenylbenzamide Chemical compound C1=C(N)C(OC)=CC=C1C(=O)NC1=CC=CC=C1 LHMQDVIHBXWNII-UHFFFAOYSA-N 0.000 description 1
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 239000011324 bead Substances 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000003139 buffering effect Effects 0.000 description 1
- 238000012512 characterization method Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 229910000859 α-Fe Inorganic materials 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4004—Coupling between buses
- G06F13/4009—Coupling between buses with data restructuring
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/1608—Error detection by comparing the output signals of redundant hardware
- G06F11/1625—Error detection by comparing the output signals of redundant hardware in communications, e.g. transmission, interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/76—Architectures of general purpose stored program computers
- G06F15/78—Architectures of general purpose stored program computers comprising a single central processing unit
- G06F15/7807—System on chip, i.e. computer system on a single chip; System in package, i.e. computer system on one or more chips in a single package
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computing Systems (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Bus Control (AREA)
Abstract
本申请实施例提供了一种功能扩展装置、片上系统、方法以及产品,所述功能扩展装置,应用于包括控制单元的片上系统,功能扩展装置包括协议转换模块、片间传输总线和片外功能拓展组件,片外功能拓展组件中包括拓展功能模块;协议转换模块的主机用于在片上系统的片内总线上,获取控制单元下发的针对拓展功能模块的目标操作指令,通过片间传输总线发送至片外功能拓展组件;片外功能拓展组件中包括协议转换模块的从机,协议转换模块的从机用于接收目标操作指令,并发送至片外功能拓展组件的拓展功能模块;拓展功能模块用于响应于目标操作指令后,执行目标操作。本申请实施例旨在提高SOC系统的功能故障恢复和新功能扩展过程效率。
The embodiment of the present application provides a function expansion device, a system on chip, a method and a product, wherein the function expansion device is applied to a system on chip including a control unit, and the function expansion device includes a protocol conversion module, an inter-chip transmission bus and an off-chip function expansion component, wherein the off-chip function expansion component includes an expansion function module; the host of the protocol conversion module is used to obtain the target operation instruction for the expansion function module issued by the control unit on the on-chip bus of the system on chip, and send it to the off-chip function expansion component through the inter-chip transmission bus; the off-chip function expansion component includes a slave of the protocol conversion module, and the slave of the protocol conversion module is used to receive the target operation instruction and send it to the expansion function module of the off-chip function expansion component; the expansion function module is used to execute the target operation after responding to the target operation instruction. The embodiment of the present application aims to improve the efficiency of the functional fault recovery and new function expansion process of the SOC system.
Description
技术领域Technical Field
本申请实施例涉及片上系统的技术领域,具体而言,涉及一种功能扩展装置、片上系统、方法以及产品。Embodiments of the present application relate to the technical field of system on chip, and more specifically, to a function expansion device, system on chip, method and product.
背景技术Background Art
随着集成电路技术的发展,SOC系统(System-on-a-Chip,片上系统)中集成的功能也越来越多,各种功能的实现依赖于SOC系统中各种各样的功能的IP(IntellectualProperty,也称为IP核)模块,这些功能模块一般由CPU(Central Processing Unit,中央处理器)来统一进行控制,CPU与各个功能模块间的通信是通过片内总线实现的。With the development of integrated circuit technology, more and more functions are integrated in SOC systems (System-on-a-Chip). The realization of various functions depends on various functional IP (Intellectual Property, also known as IP core) modules in the SOC system. These functional modules are generally controlled by the CPU (Central Processing Unit). The communication between the CPU and various functional modules is realized through the on-chip bus.
但是随着功能模块数量越来越多,众多的IP模块带来了一系列不确定性的问题,示例地,当某个IP模块设计存在失误不能使用时,就使得SOC系统不再具备该IP模块提供的功能,并且对于不仅仅挂载在片内总线上而且与其他功能模块存在大量数据交互的功能模块,若是出现故障问题,不容易找到解决故障的方法,只能通过重新修改SOC系统并流片;而且SOC系统的应用环境随着需求的发展产生变化,需要支持新的接口或者增加新的IP模块的功能时,需要重新进行整个SOC系统的设计,即重新流片才可以实现新功能的升级,从而导致SOC系统的功能故障恢复和新功能扩展过程效率较低。However, with the increasing number of functional modules, numerous IP modules have brought about a series of uncertainty problems. For example, when an IP module has a design error and cannot be used, the SOC system no longer has the functions provided by the IP module. In addition, for functional modules that are not only mounted on the on-chip bus but also have a large amount of data interaction with other functional modules, if a fault occurs, it is not easy to find a solution to the fault, and the only solution is to re-modify the SOC system and tape out the chip. Moreover, the application environment of the SOC system changes with the development of demand. When it is necessary to support new interfaces or add new IP module functions, the entire SOC system needs to be redesigned, that is, the new function can be upgraded only by re-taping the chip, which results in low efficiency in the functional fault recovery and new function expansion process of the SOC system.
发明内容Summary of the invention
本申请实施例提供一种功能扩展装置、片上系统、方法以及产品,旨在提高SOC系统的功能故障恢复和新功能扩展过程效率。The embodiments of the present application provide a function expansion device, a system on chip, a method and a product, which are intended to improve the efficiency of the function failure recovery and new function expansion process of the SOC system.
第一方面本申请实施例提供一种功能扩展装置,应用于片上系统,所述片上系统包括控制单元;所述功能扩展装置包括协议转换模块、片间传输总线和片外功能拓展组件,所述片外功能拓展组件中包括拓展功能模块;In a first aspect, an embodiment of the present application provides a function expansion device, which is applied to a system on chip, wherein the system on chip includes a control unit; the function expansion device includes a protocol conversion module, an inter-chip transmission bus and an off-chip function expansion component, wherein the off-chip function expansion component includes an expansion function module;
所述协议转换模块的主机设置在所述片上系统中,所述协议转换模块的主机用于在所述片上系统的片内总线上,获取所述控制单元下发的针对所述拓展功能模块的目标操作指令,通过所述片间传输总线发送至所述片外功能拓展组件;The host of the protocol conversion module is arranged in the system on chip, and the host of the protocol conversion module is used to obtain the target operation instruction for the extended function module issued by the control unit on the on-chip bus of the system on chip, and send it to the off-chip function extension component through the inter-chip transmission bus;
所述片外功能拓展组件中包括所述协议转换模块的从机,所述协议转换模块的从机用于接收所述目标操作指令,并发送至所述片外功能拓展组件的拓展功能模块;The off-chip function expansion component includes a slave of the protocol conversion module, and the slave of the protocol conversion module is used to receive the target operation instruction and send it to the expansion function module of the off-chip function expansion component;
所述拓展功能模块用于响应于所述目标操作指令后,执行目标操作。The extended function module is used to execute the target operation after responding to the target operation instruction.
可选地,所述片间传输总线包括:Optionally, the inter-chip transmission bus includes:
时钟线,所述时钟线的方向为从所述协议转换模块的主机向所述协议转换模块的从机,所述协议转换模块的从机用于根据所述时钟线进行数据的采样与发送;A clock line, the direction of the clock line is from the host of the protocol conversion module to the slave of the protocol conversion module, and the slave of the protocol conversion module is used to sample and send data according to the clock line;
两根发送数据线,所述发送数据线的方向为从所述协议转换模块的主机向所述协议转换模块的从机;Two data transmission lines, the direction of the data transmission lines is from the host of the protocol conversion module to the slave of the protocol conversion module;
两根接收数据线,所述接收数据线的方向为从所述协议转换模块的从机向所述协议转换模块的主机。Two receiving data lines, the direction of the receiving data lines is from the slave of the protocol conversion module to the host of the protocol conversion module.
可选地,所述两根发送数据线和所述两根接收数据线均采用双边沿传输方式。Optionally, the two transmitting data lines and the two receiving data lines both adopt a double-edge transmission mode.
可选地,所述目标操作指令包括写操作指令,所述协议转换模块的主机包括:Optionally, the target operation instruction includes a write operation instruction, and the host of the protocol conversion module includes:
片上总线协议解析单元,用于通过所述片内总线所述写操作指令,解析得到所述写操作指令对应的写地址与写数据,并发送至发送数据缓存单元;An on-chip bus protocol parsing unit, used to parse the write operation instruction through the on-chip bus, obtain the write address and write data corresponding to the write operation instruction, and send them to the sending data buffer unit;
发送数据缓存单元,用于缓存所述写操作指令对应的写地址与写数据;A sending data buffer unit, used for buffering the write address and write data corresponding to the write operation instruction;
协议状态机单元,用于将所述写操作指令对应的写地址与写数据,封装成所述写操作指令对应的发送帧数据;A protocol state machine unit, used for encapsulating the write address and write data corresponding to the write operation instruction into the sending frame data corresponding to the write operation instruction;
串行器单元,用于将所述协议状态机单元封装后的所述写操作指令对应的发送帧数据,通过所述片间传输总线发送至所述协议转换模块的从机。The serializer unit is used to send the sending frame data corresponding to the write operation instruction encapsulated by the protocol state machine unit to the slave of the protocol conversion module through the inter-chip transmission bus.
可选地,所述片上系统的协议转换模块的主机还包括:Optionally, the host of the protocol conversion module of the system on chip further includes:
第一校验单元,用于生成所述写操作指令对应的写地址与写数据的校验值。The first verification unit is used to generate a verification value of a write address and write data corresponding to the write operation instruction.
可选地,所述目标操作指令包括读操作指令,Optionally, the target operation instruction includes a read operation instruction.
所述片上总线协议解析单元,用于通过所述片内总线获取所述读操作指令,解析得到所述读操作指令对应的读地址;The on-chip bus protocol parsing unit is used to obtain the read operation instruction through the on-chip bus, and parse to obtain the read address corresponding to the read operation instruction;
所述协议状态机单元,用于将所述读操作指令对应的读地址,封装成所述读操作指令对应的发送帧数据;The protocol state machine unit is used to encapsulate the read address corresponding to the read operation instruction into the sending frame data corresponding to the read operation instruction;
所述串行器单元,用于将所述协议状态机单元封装的所述读操作指令对应的发送帧数据,通过所述片间传输总线发送至所述协议转换模块的从机。The serializer unit is used to send the sending frame data corresponding to the read operation instruction encapsulated by the protocol state machine unit to the slave of the protocol conversion module through the inter-chip transmission bus.
可选地,所述协议转换模块的主机还包括:Optionally, the host of the protocol conversion module further includes:
解串器单元,用于在所述片间传输总线的数据线上,获取所述读操作指令对应的串行读取数据,并生成所述读操作指令对应的接收帧数据;A deserializer unit, configured to obtain serial read data corresponding to the read operation instruction on a data line of the inter-chip transmission bus, and generate received frame data corresponding to the read operation instruction;
解码分析单元,用于对所述读操作指令对应的接收帧数据进行解码,得到所述读操作指令对应的读取数据;A decoding and analysis unit, used for decoding the received frame data corresponding to the read operation instruction to obtain the read data corresponding to the read operation instruction;
接收数据缓存单元,用于缓存所述读操作指令对应的读取数据;A receiving data cache unit, used for caching the read data corresponding to the read operation instruction;
所述片上总线协议解析单元,用于从所述接收数据缓存单元中获取所述读操作指令对应的读取数据,并发送至所述片内总线,所述控制单元用于通过所述片内总线获取所述读操作指令对应的读取数据。The on-chip bus protocol parsing unit is used to obtain the read data corresponding to the read operation instruction from the received data cache unit and send it to the on-chip bus. The control unit is used to obtain the read data corresponding to the read operation instruction through the on-chip bus.
可选地,所述协议转换模块的主机还包括:Optionally, the host of the protocol conversion module further includes:
第二校验单元,用于对所述读操作指令对应的读取数据进行校验。The second verification unit is used to verify the read data corresponding to the read operation instruction.
可选地,所述协议转换模块的主机还包括:Optionally, the host of the protocol conversion module further includes:
相位调节单元,用于调节所述片间传输总线的两个接收数据线上传输的信号的相位差,以使所述两个接收数据线上的信号为同一周期内的信号。The phase adjustment unit is used to adjust the phase difference of the signals transmitted on the two receiving data lines of the inter-chip transmission bus so that the signals on the two receiving data lines are signals within the same period.
可选地,所述协议转换模块的主机还包括总线接口控制单元;Optionally, the host of the protocol conversion module further includes a bus interface control unit;
所述片上总线协议解析单元,用于获取所述片内总线上的任一操作指令,解析该操作指令的目标地址范围,当所述目标地址范围为所述总线接口控制单元的地址范围时,将该操作指令作为总线操作指令发送至所述总线接口控制单元;The on-chip bus protocol parsing unit is used to obtain any operation instruction on the on-chip bus, parse the target address range of the operation instruction, and when the target address range is the address range of the bus interface control unit, send the operation instruction as a bus operation instruction to the bus interface control unit;
所述总线接口控制单元,用于响应于所述总线操作指令,对所述协议转换模块的主机中的任一单元的参数进行调节或对任一单元进行异常监控。The bus interface control unit is used to adjust the parameters of any unit in the host of the protocol conversion module or perform abnormal monitoring on any unit in response to the bus operation instruction.
可选地,所述片外功能拓展组件包括可编程电路模块,所述可编程电路模块用于为所述协议转换模块的从机和所述拓展功能模块提供运行环境。Optionally, the off-chip function expansion component includes a programmable circuit module, and the programmable circuit module is used to provide an operating environment for the slave of the protocol conversion module and the expansion function module.
第二方面,本申请实施例提供一种片上系统,所述片上系统包括控制单元,所述控制单元基于片内总线与多个功能模块进行数据交互,所述片上系统包括实施例第一方面所述的功能扩展装置。In a second aspect, an embodiment of the present application provides a system on chip, which includes a control unit, and the control unit interacts with multiple functional modules based on an internal bus. The system on chip includes the function expansion device described in the first aspect of the embodiment.
第三方面,本申请实施例提供一种数据传输方法,应用于实施例第二方面所述的片上系统,所述方法包括:In a third aspect, an embodiment of the present application provides a data transmission method, which is applied to the system on chip described in the second aspect of the embodiment, and the method includes:
协议转换模块的主机在所述片上系统的片内总线上,获取控制单元下发的针对拓展功能模块的目标操作指令,通过片间传输总线发送至片外功能拓展组件;The host of the protocol conversion module obtains the target operation instruction for the extended function module issued by the control unit on the on-chip bus of the system on chip, and sends it to the off-chip function extension component through the inter-chip transmission bus;
片外功能拓展组件中的所述协议转换模块的从机接收所述目标操作指令,并发送至所述片外功能拓展组件的拓展功能模块;The slave of the protocol conversion module in the off-chip function expansion component receives the target operation instruction and sends it to the expansion function module of the off-chip function expansion component;
所述拓展功能模块响应于所述目标操作指令后,执行目标操作。The extended function module executes the target operation after responding to the target operation instruction.
第四方面,本申请实施例提供一种计算机设备,包括:至少一个处理器,以及存储器,所述存储器存储有可在所述处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时执行实施例第三方面的数据传输方法。In a fourth aspect, an embodiment of the present application provides a computer device, comprising: at least one processor, and a memory, wherein the memory stores a computer program that can be run on the processor, wherein the processor executes the data transmission method of the third aspect of the embodiment when executing the computer program.
第五方面,本申请实施例提供一种非易失性可读存储介质,所述非易失性可读存储介质存储有计算机程序,其中,所述计算机程序被处理器执行时执行实施例第三方面所述的数据传输方法。In a fifth aspect, an embodiment of the present application provides a non-volatile readable storage medium, wherein the non-volatile readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the data transmission method described in the third aspect of the embodiment is performed.
第六方面,本申请实施例提供一种计算机程序产品,包括计算机程序/指令,该计算机程序/指令被处理器执行时实现实施例第三方面所述的数据传输方法。In a sixth aspect, an embodiment of the present application provides a computer program product, including a computer program/instruction, which, when executed by a processor, implements the data transmission method described in the third aspect of the embodiment.
有益效果:Beneficial effects:
本实施例提供的功能扩展装置中,功能扩展装置包括协议转换模块、片间传输总线和片外功能拓展组件,片外功能拓展组件中包括拓展功能模块;In the function expansion device provided in this embodiment, the function expansion device includes a protocol conversion module, an inter-chip transmission bus and an off-chip function expansion component, and the off-chip function expansion component includes an expansion function module;
所述协议转换模块的主机在所述片上系统的片内总线上获取所述控制单元下发的针对所述拓展功能模块的目标操作指令,通过所述片间传输总线发送至所述片外功能拓展组件;设置在所述片外功能拓展组件中的协议转换模块的从机,接收到所述目标操作指令后,发送至所述片外功能拓展组件的拓展功能模块;所述拓展功能模块响应于所述目标操作指令后,执行目标操作。The host of the protocol conversion module obtains the target operation instruction for the extended function module issued by the control unit on the on-chip bus of the system-on-chip, and sends it to the off-chip function extension component through the inter-chip transmission bus; the slave of the protocol conversion module arranged in the off-chip function extension component sends the target operation instruction to the extended function module of the off-chip function extension component after receiving it; the extended function module executes the target operation after responding to the target operation instruction.
当片上系统中原有的任一功能模块故障时,或者需要为片上系统拓展新功能时,可以通过功能扩展装置,片上系统的控制单元可以基于片上总线将目标操作指令基于协议转换模块和片间传输总线,发送至片外功能拓展组件中的拓展功能模块,进而在功能故障恢复和新功能扩展过程中,不需要重新流片即可以应用片外的拓展功能模块实现对应的功能,可以提高SOC系统的功能故障恢复和新功能扩展过程效率。When any of the original functional modules in the system on chip fails, or when new functions need to be expanded for the system on chip, the control unit of the system on chip can send the target operation instructions to the expanded functional modules in the off-chip functional expansion component based on the protocol conversion module and the inter-chip transmission bus through the functional expansion device. In the process of functional failure recovery and new function expansion, the corresponding functions can be implemented by the expanded functional modules outside the chip without re-flowing the chip, which can improve the efficiency of the functional failure recovery and new function expansion process of the SOC system.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图做简单的介绍。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art.
图1示出了本申请实施例提供的功能扩展装置的结构示意图;FIG1 is a schematic diagram showing the structure of a function expansion device provided in an embodiment of the present application;
图2示出了本申请实施例提供的片间传输总线的示意图;FIG2 shows a schematic diagram of an inter-chip transmission bus provided in an embodiment of the present application;
图3示出了本申请实施例提供的协议转换模块的主机的结构示意图;FIG3 shows a schematic diagram of the structure of a host of a protocol conversion module provided in an embodiment of the present application;
图4示出了本申请实施例提供的相位调节单元的示意图;FIG4 shows a schematic diagram of a phase adjustment unit provided in an embodiment of the present application;
图5示出了本申请实施例提供的功能扩展装置的应用示意图;FIG5 shows a schematic diagram of an application of a function expansion device provided in an embodiment of the present application;
图6示出了本申请实施例提供的数据传输方法的步骤流程图;FIG6 shows a flowchart of the steps of the data transmission method provided in an embodiment of the present application;
图7示出了本申请实施例提供的计算机设备的示意图;FIG7 shows a schematic diagram of a computer device provided in an embodiment of the present application;
图8示出了本申请实施例提供的非易失性可读存储介质的示意图;FIG8 shows a schematic diagram of a non-volatile readable storage medium provided in an embodiment of the present application;
图9示出了本申请实施例提供的计算机程序产品的示意图。FIG9 shows a schematic diagram of a computer program product provided in an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请的各实施方式进行详细的阐述。然而,本领域的普通技术人员可以理解,在本申请各实施方式中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施方式的种种变化和修改,也可以实现本申请所要求保护的技术方案。以下各个实施例的划分是为了描述方便,不应对本申请的具体实现方式构成任何限定,各个实施例在不矛盾的前提下可以相互结合相互引用。To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, each embodiment of the present application will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in each embodiment of the present application, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can also be implemented. The division of the following embodiments is for convenience of description, and the specific implementation of the present application should not constitute any limitation, and the various embodiments can be combined with each other and referenced to each other without contradiction.
CPU:Central Processing Unit,中央处理器;CPU: Central Processing Unit, central processing unit;
UART:Universal Asynchronous Receiver/Transmitter,通用异步收发传输器;UART: Universal Asynchronous Receiver/Transmitter, universal asynchronous receiver/transmitter;
I2C:Inter-Integrated Circuit,集成电路总线,它是一种串行通信总线;I2C: Inter-Integrated Circuit, integrated circuit bus, it is a serial communication bus;
SOC:System-on-a-Chip,片上系统;SOC的核心是微芯片,在单个集成电路上包含了完整功能系统所需的所有电子电路,即CPU、内部存储器、I/O端口、模拟输入和输出以及额外的应用特定的电路块都被设计成集成在同一个芯片上。SOC: System-on-a-Chip; the core of SOC is a microchip, which contains all the electronic circuits required for a complete functional system on a single integrated circuit, that is, the CPU, internal memory, I/O ports, analog input and output, and additional application-specific circuit blocks are all designed to be integrated on the same chip.
IP:Intellectual Property,一般也称为IP核,IP是芯片中具有独立功能的电路模块设计,是一种预先设计好的甚至已经过验证的具有某种确定功能的集成电路、器件或部件,这种电路模块设计可以应用在包含该电路模块的其他芯片设计中,可以缩短设计的周期从而减少设计的工作量,以此提高芯片设计的成功率。IP: Intellectual Property, also commonly known as IP core, is a circuit module design with independent functions in a chip. It is a pre-designed or even verified integrated circuit, device or component with a certain function. This circuit module design can be applied to other chip designs that contain the circuit module, which can shorten the design cycle and reduce the design workload, thereby improving the success rate of chip design.
GPIO:General-purpose input/output Ports,通用输入/输出端口,可以通过端口引脚输出高低电平或者通过它们读入引脚的状态是高电平或是低电平。GPIO: General-purpose input/output Ports, general-purpose input/output ports, can output high and low levels through port pins or read the pin status as high or low through them.
APB:Advanced Peripheral Bus,外围总线,该总线协议是ARM公司提出的AMBA总线结构之一,几乎已成为一种标准的片上总线结构。APB: Advanced Peripheral Bus, peripheral bus. This bus protocol is one of the AMBA bus structures proposed by ARM and has almost become a standard on-chip bus structure.
FPGA:Field Programmable Gate Array,现场可编程逻辑门阵列;FPGA: Field Programmable Gate Array, field programmable logic gate array;
CPLD:Complex Programmable Logic Device,是复杂的可编辑逻辑元件;CPLD: Complex Programmable Logic Device, is a complex editable logic element;
CRC:Cyclic redundancy check,循环冗余校验;CRC: Cyclic redundancy check, cyclic redundancy check;
I3C:Improved Inter-Integrated Circuit,是一种用于嵌入式系统的新型串行通信协议。I3C: Improved Inter-Integrated Circuit, is a new serial communication protocol for embedded systems.
随着集成电路技术的发展,SOC系统中集成的功能也越来越多,各种功能的实现依赖于SOC系统中各种各样的功能的IP模块,这些功能模块一般由CPU来统一进行控制,而CPU与各个功能模块间的通信是通过片内总线实现的。With the development of integrated circuit technology, more and more functions are integrated into SOC systems. The realization of various functions depends on various functional IP modules in the SOC system. These functional modules are generally controlled by the CPU, and the communication between the CPU and various functional modules is realized through the on-chip bus.
但是随着功能模块数量越来越多,众多的IP模块带来了一系列不确定性的问题,示例地,当某个IP模块设计存在失误不能使用时,就使得SOC系统不再具备该IP模块提供的功能,并且对于不仅仅挂载在片内总线上而且与其他功能模块存在大量数据交互的功能模块,若是出现故障问题,不容易找到解决故障的方法,只能通过重新修改SOC系统并流片。However, as the number of functional modules increases, numerous IP modules have brought about a series of uncertainty problems. For example, when an IP module has a design error and cannot be used, the SOC system no longer has the functions provided by the IP module. Moreover, for functional modules that are not only mounted on the on-chip bus but also have a large amount of data interaction with other functional modules, if a fault occurs, it is not easy to find a solution to the fault, and the only solution is to re-modify the SOC system and tape out the chip.
而且SOC系统的应用环境随着需求的发展产生变化,需要支持新的接口或者增加新的IP模块的功能时,需要重新进行整个SOC系统的设计,即重新流片才可以实现新功能的升级。Moreover, the application environment of the SOC system changes with the development of demand. When it is necessary to support new interfaces or add new IP module functions, the entire SOC system needs to be redesigned, that is, re-tapeout, to achieve the upgrade of new functions.
现有的方法中,对于除总线以外与其它模块均没有数据交互的IP模块出现问题的解决方式是基于CPU运算来代替故障的IP模块的功能。In the existing method, the solution to the problem of an IP module that has no data interaction with other modules except the bus is to replace the function of the faulty IP module based on CPU calculation.
一类是接口类的IP模块,例如UART模块,IIC模块,SPI模块等,若SOC系统有GPIO,则可以通过CPU控制GPIO的输入输出,模拟这些低速通信接口的时序,从而实现这些接口与芯片外接口进行数据交互的功能。One type is interface IP modules, such as UART modules, IIC modules, SPI modules, etc. If the SOC system has GPIO, the CPU can control the input and output of GPIO and simulate the timing of these low-speed communication interfaces, thereby realizing the function of data interaction between these interfaces and external chip interfaces.
另一类是运算类的IP模块,如加密或压缩等算法IP模块,运算类的IP模块从片内总线读取数据并进行运算,再将运算结果写回到片内总线,这种场景下也可以通过CPU来替代运算类的IP模块,实现相同的运算功能。The other type is computational IP modules, such as encryption or compression algorithm IP modules. Computational IP modules read data from the on-chip bus and perform calculations, and then write the calculation results back to the on-chip bus. In this scenario, the CPU can also be used to replace the computational IP modules to achieve the same computational functions.
但以上两种IP模块的解决方案的需要CPU运算来实现对应功能,进而会大大降低CPU运算的效率,如在实现软件模拟UART模块的功能时,CPU需要进行计数来产生特定的波特率,并控制GPIO不断改变输入输出来发送、接收数据,而如果正常使用UART模块的情况下,CPU只需要操作一次片内总线,通过读取对应的寄存器就可以实现一次串口读写操作,即对于CPU来说只需要执行很少的指令,而基于CPU控制GPIO模拟UART模块的功能的方式中,则需要执行数万次的指令才能完成一次读写操作,占用了CPU的处理进程,导致CPU执行其他运算的效率降低,并且基于软件产生的信号精度也比较低。However, the above two IP module solutions require CPU operations to implement corresponding functions, which will greatly reduce the efficiency of CPU operations. For example, when implementing the function of software simulating the UART module, the CPU needs to count to generate a specific baud rate and control the GPIO to continuously change the input and output to send and receive data. If the UART module is used normally, the CPU only needs to operate the on-chip bus once, and a serial port read and write operation can be implemented by reading the corresponding register. That is, only a few instructions need to be executed for the CPU. In the method based on the CPU controlling the GPIO to simulate the function of the UART module, tens of thousands of instructions need to be executed to complete a read and write operation, which occupies the CPU's processing process, resulting in a reduction in the efficiency of the CPU in executing other operations, and the accuracy of the signal generated based on the software is also relatively low.
而对于不与片外交互的IP模块,基于CPU软件模拟的方法缺点也是类似的,如加解密运算中可能涉及到很多乘法计算,对应的算法IP模块有专门用于计算的乘法器,可以在一个或者几个周期内完成计算;但是若使用CPU软件计算仅一次乘法计算就需要很多条指令完成,此外CPU还需要执行数据搬运的任务,最终算法的实现时间就会大大增加,很可能无法满足实际应用对于算法速度的需求。For IP modules that do not interact with the outside of the chip, the method based on CPU software simulation has similar shortcomings. For example, encryption and decryption operations may involve many multiplication calculations. The corresponding algorithm IP module has a multiplier specifically used for calculations, which can complete the calculations in one or several cycles; however, if CPU software is used to calculate only one multiplication calculation, many instructions are required to complete it. In addition, the CPU also needs to perform data movement tasks. In the end, the implementation time of the algorithm will be greatly increased, and it is likely that the actual application requirements for algorithm speed will not be met.
因此,为了提高SOC系统的功能故障恢复和新功能扩展过程效率,本申请实施例提供一种功能扩展装置。Therefore, in order to improve the efficiency of the functional failure recovery and new function expansion process of the SOC system, an embodiment of the present application provides a function expansion device.
参照图1,示出了本申请实施例提供的一种功能扩展装置的结构示意图,所述功能扩展装置可以应用于片上系统,所述片上系统包括控制单元,片内总线和多个功能模块,多个功能模块用于通过片内总线与控制单元进行数据交互。Referring to Figure 1, a structural schematic diagram of a function expansion device provided in an embodiment of the present application is shown, and the function expansion device can be applied to an on-chip system, and the on-chip system includes a control unit, an on-chip bus and multiple functional modules, and the multiple functional modules are used to interact with the control unit through the on-chip bus for data.
示例地,多个功能模块1-N可以是GPIO模块、UART模块、I2C模块和Timer模块等,Timer模块是一种关键的硬件组件,用于生成时间基准信号、实现时间管理以及执行基于时间的任务。For example, the plurality of functional modules 1-N may be a GPIO module, a UART module, an I2C module, a Timer module, etc. The Timer module is a key hardware component for generating a time reference signal, implementing time management, and executing time-based tasks.
所述功能扩展装置包括协议转换模块、片间传输总线和片外功能拓展组件,所述片外功能拓展组件中包括拓展功能模块;所述协议转换模块包括协议转换模块的主机和协议转换模块的从机。The function expansion device includes a protocol conversion module, an inter-chip transmission bus and an off-chip function expansion component, wherein the off-chip function expansion component includes an expansion function module; the protocol conversion module includes a host of the protocol conversion module and a slave of the protocol conversion module.
其中,协议转换模块的主机设置在片上系统,并连接至片上系统的片内总线上,进而使得协议转换模块的主机可以与片上系统的控制单元如CPU进行数据交互;协议转换模块的从机设置在片外功能拓展组件中,协议转换模块的主机和从机通过片间传输总线进行数据交互,协议转换模块的从机用于接收协议转换模块的主机发送任一指令请求并处理它们,然后将处理结果返回给协议转换模块。Among them, the host of the protocol conversion module is set in the system on chip and connected to the on-chip bus of the system on chip, so that the host of the protocol conversion module can interact with the control unit of the system on chip, such as the CPU; the slave of the protocol conversion module is set in the off-chip function expansion component, and the host and slave of the protocol conversion module interact with data through the inter-chip transmission bus. The slave of the protocol conversion module is used to receive any command request sent by the host of the protocol conversion module and process them, and then return the processing result to the protocol conversion module.
具体地,协议转换模块的主机用于在所述片上系统的片内总线上,获取所述控制单元下发的针对所述拓展功能模块的目标操作指令,通过所述片间传输总线发送至所述片外功能拓展组件;协议转换模块的从机在接收到所述目标操作指令后,发送至所述片外功能拓展组件的拓展功能模块,拓展功能模块响应于所述目标操作指令后执行目标操作。Specifically, the host of the protocol conversion module is used to obtain the target operation instructions for the extended function module issued by the control unit on the on-chip bus of the system-on-chip, and send them to the off-chip function extension component through the inter-chip transmission bus; after receiving the target operation instructions, the slave of the protocol conversion module sends them to the extended function module of the off-chip function extension component, and the extended function module executes the target operation after responding to the target operation instructions.
所述片外功能拓展组件包括可编程电路模块,所述可编程电路模块用于为所述协议转换模块的从机和所述拓展功能模块提供运行环境,示例地,可编程电路模块可以采用FPGA或CPLD,通过可编程的FPGA或CPLD,可以适应性地为拓展功能模块及时编程提供正常的运行环境,在实际实施的过程中,所述片外功能拓展组件的可编程电路模块还可以是另一块SOC系统。The off-chip function expansion component includes a programmable circuit module, which is used to provide an operating environment for the slave of the protocol conversion module and the extended function module. By way of example, the programmable circuit module can adopt FPGA or CPLD. Through the programmable FPGA or CPLD, it is possible to adaptively provide a normal operating environment for timely programming of the extended function module. In the actual implementation process, the programmable circuit module of the off-chip function expansion component can also be another SOC system.
所述片间传输总线包括:时钟线,所述时钟线的方向为从所述协议转换模块的主机向所述协议转换模块的从机,所述协议转换模块的从机用于根据所述时钟线进行数据的采样与发送;两根发送数据线,所述发送数据线的方向为从所述协议转换模块的主机向所述协议转换模块的从机;两根接收数据线,所述接收数据线的方向为从所述协议转换模块的从机向所述协议转换模块的主机。The inter-chip transmission bus includes: a clock line, the direction of the clock line is from the host of the protocol conversion module to the slave of the protocol conversion module, and the slave of the protocol conversion module is used to sample and send data according to the clock line; two sending data lines, the direction of the sending data lines is from the host of the protocol conversion module to the slave of the protocol conversion module; two receiving data lines, the direction of the receiving data lines is from the slave of the protocol conversion module to the host of the protocol conversion module.
并且片间传输总线的所述两根发送数据线和所述两根接收数据线均采用双边沿传输方式,即在时钟线的上升沿和下降沿都能进行采样或发送数据,从而具有4倍于时钟频率的数据传输速率。Furthermore, the two transmit data lines and the two receive data lines of the inter-chip transmission bus both adopt a double-edge transmission mode, that is, data can be sampled or sent at both the rising edge and the falling edge of the clock line, thereby having a data transmission rate that is four times the clock frequency.
参照图2,示出了本申请实施例提供的片间传输总线的示意图,片间传输总线包括一根时间线即clk,方向是从设置在片上系统中的协议转换模块的主机向设置在片外功能拓展组件中的协议转换模块的从机;两根发送数据线tx[0]和tx[1],方向为从协议转换模块的主机向协议转换模块的从机;两根接收数据线rx[0]和rx[1],方向为从协议转换模块的从机向协议转换模块的主机。2, a schematic diagram of an inter-chip transmission bus provided in an embodiment of the present application is shown. The inter-chip transmission bus includes a timeline, namely, clk, which is directed from a host of a protocol conversion module arranged in an on-chip system to a slave of a protocol conversion module arranged in an off-chip function expansion component; two transmit data lines, tx[0] and tx[1], which are directed from the host of the protocol conversion module to the slave of the protocol conversion module; and two receive data lines, rx[0] and rx[1], which are directed from the slave of the protocol conversion module to the host of the protocol conversion module.
所述协议转换模块主要是对片间传输总线协议进行控制、编码、解码以及校验等过程。The protocol conversion module is mainly responsible for controlling, encoding, decoding and verifying the inter-chip transmission bus protocol.
参照图3,示出了本申请实施例提供的协议转换模块的主机的结构示意图,所述协议转换模块的主机可以包括:片上总线协议解析单元、发送数据缓存单元、协议状态机单元、串行器单元、解串器单元、解码分析单元以及接收数据缓存单元。3 , a schematic diagram of the structure of the host of the protocol conversion module provided in an embodiment of the present application is shown. The host of the protocol conversion module may include: an on-chip bus protocol parsing unit, a sending data cache unit, a protocol state machine unit, a serializer unit, a deserializer unit, a decoding analysis unit, and a receiving data cache unit.
具体地,当所述目标操作指令为写操作指令时,片上总线协议解析单元通过所述片内总线所述写操作指令,根据片上总线信号的时序与数据,解析得到所述写操作指令对应的写地址与写数据,并发送至发送数据缓存单元。Specifically, when the target operation instruction is a write operation instruction, the on-chip bus protocol parsing unit parses the write operation instruction through the on-chip bus, according to the timing and data of the on-chip bus signal, to obtain the write address and write data corresponding to the write operation instruction, and sends them to the sending data cache unit.
所述发送数据缓存单元用于缓存所述片上总线协议解析单元解析得到的写操作指令对应的写地址与写数据,按照先入先出的规则等待向片外发送。The transmission data buffer unit is used to buffer the write address and write data corresponding to the write operation instruction parsed by the on-chip bus protocol parsing unit, and wait to be sent out of the chip according to the first-in first-out rule.
协议状态机单元用于将所述写操作指令对应的写地址与写数据,封装成所述写操作指令对应的发送帧数据。The protocol state machine unit is used to encapsulate the write address and write data corresponding to the write operation instruction into the sending frame data corresponding to the write operation instruction.
串行器单元用于将所述协议状态机单元封装后的所述写操作指令对应的发送帧数据,通过所述片间传输总线发送至所述协议转换模块的从机。The serializer unit is used to send the sending frame data corresponding to the write operation instruction encapsulated by the protocol state machine unit to the slave of the protocol conversion module through the inter-chip transmission bus.
协议转换模块的从机在接收到写操作指令对应的发送帧数据后,对发送帧数据进行解码,生成写操作指令对应的写地址和写数据,然后将写操作指令的写地址和写数据发送给拓展功能模块;拓展功能模块根据写操作指令的写地址和写数据,在写地址对应的位置写入写数据对应的目标数据;在实际实施的过程中,拓展功能模块执行写操作指令完毕后,还可以通过协议转换模块的从机向协议转换模块的主机返回操作完成响应。After receiving the sending frame data corresponding to the write operation instruction, the slave of the protocol conversion module decodes the sending frame data, generates the write address and write data corresponding to the write operation instruction, and then sends the write address and write data of the write operation instruction to the extended function module; the extended function module writes the target data corresponding to the write data at the position corresponding to the write address according to the write address and write data of the write operation instruction; in the actual implementation process, after the extended function module completes the execution of the write operation instruction, it can also return the operation completion response to the host of the protocol conversion module through the slave of the protocol conversion module.
具体地,当所述目标操作指令为读操作指令时,所述片上总线协议解析单元用于通过所述片内总线获取所述读操作指令,解析得到所述读操作指令对应的读地址;在实际实施的过程中,解析得到的读操作指令对应的读地址还可以存储在fifo(First InputFirst Output,先入先出队列)中,等待依次向片外发送。Specifically, when the target operation instruction is a read operation instruction, the on-chip bus protocol parsing unit is used to obtain the read operation instruction through the on-chip bus, and parse to obtain the read address corresponding to the read operation instruction; in the actual implementation process, the read address corresponding to the read operation instruction obtained by parsing can also be stored in a fifo (First Input First Output) queue, waiting to be sent to the outside of the chip in sequence.
所述协议状态机单元用于将所述读操作指令对应的读地址,封装成所述读操作指令对应的发送帧数据。The protocol state machine unit is used to encapsulate the read address corresponding to the read operation instruction into the sending frame data corresponding to the read operation instruction.
所述串行器单元,用于将所述协议状态机单元封装的所述读操作指令对应的发送帧数据,通过所述片间传输总线发送至所述协议转换模块的从机。The serializer unit is used to send the sending frame data corresponding to the read operation instruction encapsulated by the protocol state machine unit to the slave of the protocol conversion module through the inter-chip transmission bus.
协议转换模块的从机在接收到读操作指令对应的发送帧数据后,对发送帧数据进行解码,生成读操作指令对应的读地址,然后将读操作指令的读地址发送给拓展功能模块,拓展功能模块根据读操作指令获取对应的读取数据,并将读操作指令对应的读取数据返回给协议转换模块的从机,通过协议转换模块的从机将所述读取数据通过片间传输总线串行发送至协议转换模块的主机。After receiving the sending frame data corresponding to the read operation instruction, the slave of the protocol conversion module decodes the sending frame data, generates a read address corresponding to the read operation instruction, and then sends the read address of the read operation instruction to the extended function module. The extended function module obtains the corresponding read data according to the read operation instruction, and returns the read data corresponding to the read operation instruction to the slave of the protocol conversion module. The slave of the protocol conversion module sends the read data serially to the host of the protocol conversion module through the inter-chip transmission bus.
所述协议转换模块的主机中的所述解串器单元用于在所述片间传输总线的数据线上,获取所述读操作指令对应的串行读取数据,并生成所述读操作指令对应的接收帧数据。The deserializer unit in the host of the protocol conversion module is used to obtain serial read data corresponding to the read operation instruction on the data line of the inter-chip transmission bus, and generate receiving frame data corresponding to the read operation instruction.
所述解码分析单元,用于对所述读操作指令对应的接收帧数据进行解码,得到所述读操作指令对应的读取数据后发送至接收数据缓存单元。The decoding and analysis unit is used to decode the received frame data corresponding to the read operation instruction, obtain the read data corresponding to the read operation instruction, and then send it to the received data cache unit.
所述接收数据缓存单元用于缓存所述读操作指令对应的读取数据。The received data cache unit is used to cache the read data corresponding to the read operation instruction.
所述片上总线协议解析单元从所述接收数据缓存单元中获取所述读操作指令对应的读取数据,并发送至所述片内总线,所述控制单元用于通过所述片内总线获取所述读操作指令对应的读取数据。The on-chip bus protocol parsing unit obtains the read data corresponding to the read operation instruction from the received data cache unit and sends it to the on-chip bus. The control unit is used to obtain the read data corresponding to the read operation instruction through the on-chip bus.
所述协议转换模块的主机还包括:第一校验单元和第二校验单元,第一校验单元连接在发送数据缓存单元和所述协议状态机单元之间,所述第一校验单元用于对从发送数据缓存单元中获取写操作指令或读操作指令的地址和数据生成对应校验值,相应地,协议转换模块的从机上设置有校验单元,用于对第一校验单元生成的校验值进行校验。The host of the protocol conversion module also includes: a first verification unit and a second verification unit, the first verification unit is connected between the sending data cache unit and the protocol state machine unit, the first verification unit is used to generate a corresponding verification value for the address and data of the write operation instruction or the read operation instruction obtained from the sending data cache unit, and accordingly, the slave of the protocol conversion module is provided with a verification unit for verifying the verification value generated by the first verification unit.
第二校验单元连接解码分析单元,用于解码分析单元生成的数据进行校验,以判断接收到的数据是否正确,相应地,协议转换模块的从机上设置有校验生成单元,用于对需要发送的数据生成的校验值。The second verification unit is connected to the decoding and analysis unit and is used to verify the data generated by the decoding and analysis unit to determine whether the received data is correct. Accordingly, a verification generation unit is provided on the slave of the protocol conversion module to generate a verification value for the data to be sent.
在实际实施的过程中,第一校验单元和第二校验单元可以基于CRC校验规则,也可以根据实际应用的需求选择采用其他校验方式,如基于校验和的方式,本实施例不做限制,通过对向片外发送的数据和对从片外接收到的数据进行校验,可以保证片内和片外传输的数据的正确性和准确性。In the actual implementation process, the first check unit and the second check unit can be based on the CRC check rules, or other check methods can be selected according to the needs of the actual application, such as a checksum-based method. This embodiment is not limited to this. By checking the data sent to the outside of the chip and the data received from the outside of the chip, the correctness and accuracy of the data transmitted within and outside the chip can be guaranteed.
在一种可行的实施方式中,所述协议状态机单元在封装的任一操作指令对应的发送帧数据的帧格式如下表1所示。In a feasible implementation manner, the frame format of the frame data sent by the protocol state machine unit corresponding to any encapsulated operation instruction is shown in Table 1 below.
表1 发送帧数据的帧格式Table 1 Frame format for sending frame data
具体地,当片间传输总线的发送数据线或接收数据线上没有帧传输时,会保持为0,因此在帧头的第一个周期以及帧尾的第二个周期将信号线置为1,另外两个比特以01带表帧头,10代表帧尾。Specifically, when there is no frame transmission on the transmit data line or receive data line of the inter-chip transmission bus, it will remain at 0, so the signal line is set to 1 in the first cycle of the frame header and the second cycle of the frame end. The other two bits are 01 to represent the frame header and 10 to represent the frame end.
帧类型字段包括4 bits,4 bits中高位代表读写类型,0代表写类型,1代表读类型;低位的3个bit则代表数据位的大小,如000代表1 byte,001代表2 byte,100代表4byte;且4’b0111和4’b1111分别代表读写CRC检验错误帧,当产生CRC校验错误后才会发出;其余的帧类型值可以保留,可以根据实际应用的需求进行配置;各种帧类型及其对应的含义如下表2所示:The frame type field includes 4 bits. The high bit of the 4 bits represents the read and write type, 0 represents the write type, and 1 represents the read type. The low 3 bits represent the size of the data bit, such as 000 represents 1 byte, 001 represents 2 bytes, and 100 represents 4 bytes. 4'b0111 and 4'b1111 represent read and write CRC check error frames, which will be sent only when a CRC check error occurs. The remaining frame type values can be reserved and can be configured according to the actual application requirements. The various frame types and their corresponding meanings are shown in Table 2 below:
表2 各种帧类型及其对应的含义如下表所示:Table 2 Various frame types and their corresponding meanings are shown in the following table:
帧的地址字段:固定为32bit,代表读写地址;且在协议转换模块的主机的从机返回的读取数据的数据帧中不包含地址字段。The address field of the frame is fixed to 32 bits, representing the read and write address; and the data frame of the read data returned by the slave of the host of the protocol conversion module does not contain the address field.
帧的数据字段:只在主机写操作帧或者从机返回读数据的帧中才有,其长度由帧类型的配置决定。Data field of the frame: It is only present in the host write operation frame or the slave return read data frame, and its length is determined by the configuration of the frame type.
CRC计算位:长度为8bit,表示帧类型、地址以及数据的计算结果。CRC calculation bit: 8 bits in length, indicating the calculation result of the frame type, address, and data.
当协议状态机单元在封装的任一操作指令对应的发送帧数据后,串行器单元将发送帧数据从高位到低位依次放到片间传输总线的两根发送数据线上,示例地,可以tx[1]放置高位,tx[0]放置低位;相应地,解串器将片间传输总线的两根接收数据线rx[1]和rx[0]接收的串行数据恢复成完整的数据帧,并传递给解码分析单元。After the protocol state machine unit sends frame data corresponding to any encapsulated operation instruction, the serializer unit places the send frame data on the two send data lines of the inter-chip transmission bus from high to low. For example, tx[1] can be placed at a high position and tx[0] can be placed at a low position. Correspondingly, the deserializer restores the serial data received by the two receive data lines rx[1] and rx[0] of the inter-chip transmission bus into a complete data frame and passes it to the decoding and analysis unit.
在一种可行的实施方式中,所述协议转换模块的主机还包括相位调节单元,用于调节所述片间传输总线的两个接收数据线上传输的信号的相位差,以使所述两个接收数据线上的信号为同一周期内的信号。In a feasible implementation manner, the host of the protocol conversion module further includes a phase adjustment unit for adjusting the phase difference of signals transmitted on the two receiving data lines of the inter-chip transmission bus so that the signals on the two receiving data lines are within the same cycle.
由于片上系统和片外功能拓展组件之间基于片间传输总线,而且片内和片外的信号在传输的过程中会经过系统级组件,如信号缓冲器、铁氧体磁珠以及隔离器等或由于电路板延迟,如不均匀的走线长度、长电缆长度等,会导致信号在传输过程中的延迟,导致对于同一传输方向上的两条数据线采样不一致,如rx[0]信号延迟较小,而rx[1]延迟较大,造成采样的rx[0]为上一周期的数据,而rx[1]为下一周期的数据,造成采样数据错乱,因此本实施例中在协议转换模块的主机中加入相位调节单元。Since the on-chip system and the off-chip functional expansion components are based on the inter-chip transmission bus, and the on-chip and off-chip signals will pass through system-level components such as signal buffers, ferrite beads, and isolators during the transmission process, or due to circuit board delays, such as uneven routing lengths, long cable lengths, etc., the signal will be delayed during transmission, resulting in inconsistent sampling of the two data lines in the same transmission direction. For example, the rx[0] signal delay is smaller, while the rx[1] delay is larger, resulting in the sampled rx[0] being the data of the previous cycle, while rx[1] is the data of the next cycle, resulting in sampled data confusion. Therefore, in this embodiment, a phase adjustment unit is added to the host of the protocol conversion module.
参照图4,示出了本申请实施例提供的相位调节单元的示意图,相位调节单元的输入端连接片间传输总线的两条接收数据线,输出连接至解串器,相位调节单元中设置有多个延迟单元,如延迟单元1……延迟单元32,根据两条接收数据线上的传输的数据的相位差,仲裁两条接收数据线上的数据各自经过的延迟单元的数量,以使得两条接收数据线上传输的数据同步。Referring to Figure 4, a schematic diagram of a phase adjustment unit provided in an embodiment of the present application is shown, wherein the input end of the phase adjustment unit is connected to two receiving data lines of the inter-chip transmission bus, and the output is connected to the deserializer. A plurality of delay units are arranged in the phase adjustment unit, such as delay unit 1 ... delay unit 32. According to the phase difference of the data transmitted on the two receiving data lines, the number of delay units that the data on the two receiving data lines pass through is arbitrated so that the data transmitted on the two receiving data lines are synchronized.
在一种可行的实施方式中,所述协议转换模块的主机还包括总线接口控制单元;所述片上总线协议解析单元,用于获取所述片内总线上的任一操作指令,解析该操作指令的目标地址范围,当所述目标地址范围为所述总线接口控制单元的地址范围时,将该操作指令作为总线操作指令发送至所述总线接口控制单元;所述总线接口控制单元,用于响应于所述总线操作指令,对所述协议转换模块的主机中的任一单元的参数进行调节或对任一单元进行异常监控。In a feasible implementation, the host of the protocol conversion module also includes a bus interface control unit; the on-chip bus protocol parsing unit is used to obtain any operation instruction on the on-chip bus, parse the target address range of the operation instruction, and when the target address range is the address range of the bus interface control unit, send the operation instruction as a bus operation instruction to the bus interface control unit; the bus interface control unit is used to adjust the parameters of any unit in the host of the protocol conversion module or perform abnormal monitoring on any unit in response to the bus operation instruction.
当片上总线协议解析单元接收片上总线的任一操作指令后,可以对该操作指令的地址范围进行判断,若是该操作指令的地址范围对应的是片外的拓展功能模块,则将该操作指令进行解析,将解析得到的操作地址和/或数据写入发送数据缓存单元;若是该操作指令的地址范围对应的是总线接口控制单元的,则表征该操作指令的对象是总线接口控制单元,将总线操作指令发送至总线接口单元。When the on-chip bus protocol parsing unit receives any operation instruction of the on-chip bus, it can judge the address range of the operation instruction. If the address range of the operation instruction corresponds to an external expansion function module, the operation instruction is parsed and the operation address and/or data obtained by the analysis are written into the sending data cache unit; if the address range of the operation instruction corresponds to that of the bus interface control unit, the object of the operation instruction is the bus interface control unit, and the bus operation instruction is sent to the bus interface unit.
总线接口控制单元中设置有管理控制器,可以响应于总线操作指令后,可以对任一单元的参数进行调节,示例地,对相位调节单元中的延迟级数进行调节,例如,设置100寄存器为相位调节的寄存器,当总线操作指令配置0x80000100为0-32不同的参数值,可以控制相位调节单元中串进的延迟单元的数量;或者对第一校验单元和第二校验单元的校验模式进行调节等,或者响应于表征进行监控的操作指令后,对协议转换模块的主机中的任一单元进行异常监控,并向片上系统的控制单元如CPU上报异常数据。A management controller is provided in the bus interface control unit, which can adjust the parameters of any unit in response to a bus operation instruction. For example, the number of delay levels in the phase adjustment unit is adjusted. For example, register 100 is set as a phase adjustment register. When the bus operation instruction configures 0x80000100 to different parameter values of 0-32, the number of delay units serially connected in the phase adjustment unit can be controlled; or the verification mode of the first verification unit and the second verification unit can be adjusted, etc., or after responding to an operation instruction for characterization monitoring, any unit in the host of the protocol conversion module is monitored for abnormalities, and abnormal data is reported to the control unit of the on-chip system such as the CPU.
协议转换模块的从机的模块设置和主机类似,示例地,协议转换模块的主机包括片上总线协议解析单元、发送数据缓存单元、协议状态机单元、串行器单元、相位调节单元、解串器单元、解码分析单元、接收数据缓存单元以及校验单元等。The module setting of the slave of the protocol conversion module is similar to that of the host. For example, the host of the protocol conversion module includes an on-chip bus protocol parsing unit, a sending data cache unit, a protocol state machine unit, a serializer unit, a phase adjustment unit, a deserializer unit, a decoding analysis unit, a receiving data cache unit, and a verification unit, etc.
以下举例说明本实施例提供的功能扩展装置的应用,具体地,应用场景为:在SOC系统中采用APB总线作为SOC系统中CPU和多个功能模块即多个IP模块的之间的片内总线,并且在APB总线上挂载的多个IP模块可以包括如:GPIO模块、PWM模块、Timer模块、I2C模块以及UART模块,同时APB总线上也挂载了本实施例的提供的功能扩展装置中的协议转换模块的主机。The following examples illustrate the application of the function expansion device provided in this embodiment. Specifically, the application scenario is: in the SOC system, the APB bus is used as the on-chip bus between the CPU and multiple functional modules, namely, multiple IP modules in the SOC system, and the multiple IP modules mounted on the APB bus may include: GPIO module, PWM module, Timer module, I2C module and UART module. At the same time, the host of the protocol conversion module in the function expansion device provided in this embodiment is also mounted on the APB bus.
在SOC系统的使用过程中,出现了与SOC系统通信的I2C模块发布了下一代产品,为了可以支持更高的性能,目标IP模块将I2C接口替换成为了I3C接口,I3C接口可以完全兼容I2C接口,但是I3C接口相比如I2C接口可以支持更多的功能以及更快的传输速度。During the use of the SOC system, an I2C module that communicates with the SOC system has released the next generation of products. In order to support higher performance, the target IP module replaces the I2C interface with the I3C interface. The I3C interface is fully compatible with the I2C interface, but the I3C interface can support more functions and faster transmission speeds than the I2C interface.
参照图5,示出了本申请实施例提供的功能扩展装置的应用示意图,图5中上半部分为目前的拓展示意,由于原本的SOC系统中没有集成新型串行通信协议接口即I3C接口,因此SOC系统与基于I3C接口的外部芯片的通信,只能在I2C接口模式下进行,导致新款的基于I3C接口的外部芯片的性能无法得到完全发挥。Referring to Figure 5, an application schematic diagram of the function expansion device provided in an embodiment of the present application is shown. The upper half of Figure 5 is a schematic diagram of the current expansion. Since the original SOC system does not integrate the new serial communication protocol interface, namely the I3C interface, the communication between the SOC system and the external chip based on the I3C interface can only be carried out in the I2C interface mode, resulting in the performance of the new external chip based on the I3C interface cannot be fully utilized.
如图5所示,通过本实施例的功能扩展装置,可以实现SOC系统通过新型串行通信协议接口即I3C接口与外部芯片的通信,具体地,增加一个可编程器件FPGA或CPLD,在可编程器件中设置协议转换模块的主机以及拓展功能模块,即具有I3C接口连接的外部芯片,可编程器件的I3C接口可以与基于I3C接口连接的外部芯片进行通信,进而可以让SOC系统新增访问I3C接口的功能,并让SOC系统对片外的目标功能模块进行读写操作。As shown in FIG5 , through the function expansion device of this embodiment, the SOC system can realize the communication with the external chip through the new serial communication protocol interface, namely, the I3C interface. Specifically, a programmable device FPGA or CPLD is added, and a host of the protocol conversion module and an expansion function module, namely, an external chip connected with an I3C interface, are set in the programmable device. The I3C interface of the programmable device can communicate with the external chip connected based on the I3C interface, thereby allowing the SOC system to add the function of accessing the I3C interface and allow the SOC system to read and write the target function module outside the chip.
具体地,SOC系统中的控制单元CPU可以实现对于目标功能模块的控制,以一次目标功能模块的寄存器读写操作为例,说明CPU所执行的配置操作以及数据在整条路径中的传输过程:Specifically, the control unit CPU in the SOC system can realize the control of the target functional module. Taking the register read and write operation of the target functional module as an example, the configuration operation performed by the CPU and the data transmission process in the entire path are explained:
假设SOC系统中协议转换模块的主机对应的地址范围是:从0x80000000到0x80010000,而在协议转换模块的主机内部,从0x80000000到0x80008000地址范围是用于配置协议转换模块的主机中的寄存器,比如一些debug信号,相位调整控制功能等,而从0x80008000到0x8001000对应于目标功能模块的地址范围。Assume that the address range corresponding to the host of the protocol conversion module in the SOC system is: from 0x80000000 to 0x80010000, and inside the host of the protocol conversion module, the address range from 0x80000000 to 0x80008000 is used to configure the registers in the host of the protocol conversion module, such as some debug signals, phase adjustment control functions, etc., and from 0x80008000 to 0x8001000 corresponds to the address range of the target functional module.
当CPU驱动片内总线即APB总线的写操作指令的写地址为0x80008000,写数据为0x01,则协议转换模块的主机首先识别到操作的为外部芯片,并解析出写地址0x80008000以及写数据0x01,并存入到发送数据缓存单元中,后级的协议状态机单元检测到发送数据缓存单元为非空后,开始读取发送数据缓存单元中的缓存数据并生成发送数据帧,对于该写操作指令生成的发送数据帧为:When the write address of the write operation instruction of the CPU driving the on-chip bus, i.e., the APB bus, is 0x80008000, and the write data is 0x01, the host of the protocol conversion module first recognizes that the operation is an external chip, and parses the write address 0x80008000 and the write data 0x01, and stores them in the send data buffer unit. After the protocol state machine unit of the subsequent stage detects that the send data buffer unit is not empty, it starts to read the cached data in the send data buffer unit and generate a send data frame. The send data frame generated for the write operation instruction is:
{4’b1101,4’b 0010,32’h80008000,32’h1,crc,4’b1011}。{4’b1101, 4’b 0010, 32’h80008000, 32’h1, crc, 4’b1011}.
串行器单元从高位到低位将发送数据帧进行传输,对于上述数据,tx[1]每周期发送的数据为:The serializer unit transmits data frames from high to low. For the above data, the data sent by tx[1] per cycle is:
1,0,0,1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,crc[7],crc[5],crc[3],crc[1],1,1;1,0,0,1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,crc[7],crc[5],crc[3],crc[1],1,1;
tx[0]每周期发送的数据为:1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,crc[6],crc[4],crc[2],crc[0],0,1;The data sent by tx[0] per cycle is: 1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,crc[6],crc[4],crc[2],crc[0],0,1;
片外功能拓展组件中的协议转换模块的从机从片间传输总线上,接收到发送数据帧后,首先由协议转换模块的从机的解串器单元将完整的数据帧恢复,再由协议转换模块的从机的解码分析单元将该数据帧进行解析,将写地址及数据进行缓存,再由协议转换模块的从机的中的片上总线协议解析单元生成apb master时序,配置到外部芯片中,至此便完成了一次完整的写操作。After the slave of the protocol conversion module in the off-chip function expansion component receives the send data frame from the inter-chip transmission bus, the deserializer unit of the slave of the protocol conversion module first restores the complete data frame, and then the decoding and analysis unit of the slave of the protocol conversion module parses the data frame, caches the write address and data, and then the on-chip bus protocol parsing unit in the slave of the protocol conversion module generates the APB master timing and configures it to the external chip, thus completing a complete write operation.
若执行CPU下发的读操作指令,再以读0x80008000寄存器为例,则协议转换模块的主机中协议状态机单元生成的发送数据帧为:If the read operation instruction issued by the CPU is executed, taking the reading of the 0x80008000 register as an example, the transmission data frame generated by the protocol state machine unit in the host of the protocol conversion module is:
{4’b1101,4’b0010,32’h80008000,crc,4’b1011}{4’b1101, 4’b0010, 32’h80008000, crc, 4’b1011}
协议转换模块的从机接收数据帧并解析出读地址后,由协议转换模块的从机的中的片上总线协议解析单元生成的apb master时序,从基于I3C接口的外部芯片的寄存器中读取到数据0x1,从机的协议状态机单元生成的为读操作指令返回的发送数据帧:After the slave of the protocol conversion module receives the data frame and parses the read address, the apb master timing generated by the on-chip bus protocol parsing unit in the slave of the protocol conversion module reads the data 0x1 from the register of the external chip based on the I3C interface, and the protocol state machine unit of the slave generates the send data frame returned by the read operation instruction:
{1101,1010,32’h1,crc,1011}。{1101, 1010, 32’h1, crc, 1011}.
当实现本实施例的片外功能拓展组件中电路板或者可编程器件位流刚生成时,首先可以测试数据读写的正确性,此时可以尝试读写外部芯片的某个寄存器;若读回的数据不对或者长时间没有返回数据帧,则可能是由于信号延迟问题导致采样数据错误导致,可以通过不断修改相位调节单元中的延迟单元数量来改变信号的延迟以及相位;当调试成功后,若没有硬件上的改变,则以后每次都可以以当前的延迟级数运行。When the circuit board or programmable device bit stream in the off-chip function expansion component of this embodiment is just generated, the correctness of data reading and writing can be tested first. At this time, you can try to read and write a register of the external chip; if the data read back is incorrect or no data frame is returned for a long time, it may be due to signal delay problems that cause sampling data errors. The signal delay and phase can be changed by continuously modifying the number of delay units in the phase adjustment unit; when the debugging is successful, if there is no hardware change, it can run with the current delay level every time thereafter.
当外部芯片的某个寄存器的读写功能测试和调试成功后,实际的运行过程中,可能由于干扰等信号问题仍然会造成数据传输错误,当协议转换模块的主机或者从机确定出接收到的数据帧存在CRC校验错误时,可以设置令主机/从机发送专门的CRC错误帧给从机/主机。When the read and write function test and debugging of a register of the external chip are successful, data transmission errors may still occur during the actual operation due to signal problems such as interference. When the host or slave of the protocol conversion module determines that the received data frame has a CRC check error, the host/slave can be set to send a special CRC error frame to the slave/host.
假设在上述对外部芯片的写操作的过程中,当协议转换模块的从机检测到主机发送的写数据帧存在CRC错误,立即向主机发送{1101,0111 1011}的帧给主机,用于表示传写数据帧传输存在错误;若是在外部芯片的读操作过程中,从机检测到主机发送的读地址的数据帧存在错误,则会立即发送{1101,1111 1011}给主机,若主机接收到从机读回的数据帧存在错误,也会发送{1101,1111 1011}的数据帧给从机。Assume that during the above-mentioned write operation to the external chip, when the slave of the protocol conversion module detects that there is a CRC error in the write data frame sent by the host, it immediately sends a frame of {1101,0111 1011} to the host to indicate that there is an error in the transmission of the write data frame; if during the read operation of the external chip, the slave detects that there is an error in the data frame of the read address sent by the host, it will immediately send {1101,1111 1011} to the host. If the host receives an error in the data frame read back from the slave, it will also send a data frame of {1101,1111 1011} to the slave.
本实施例提供的功能扩展装置,可以将片上系统的片内总线上针对拓展功能模块的目标操作指令,通过片间传输总线发送至片外功能拓展组件,外部功能拓展组件中的拓展功能模块可以是片上系统中原有的任一故障功能模块,当片上系统的功能模块故障后,可以通过对片外的该功能模块进行目标操作,而不用重新流片或者让CPU运算来实现故障的功能模块的功能;拓展功能模块也可以SOC系统应用过程任一新功能扩展的外部芯片,进而不用重新流片就可以扩展SOC系统所需的功能,可以提高SOC系统的功能故障恢复和新功能扩展过程效率,同时本实施例中的功能扩展装置还具有接口信号占用较小,软件实现简单等优点,不仅降低了系统芯片的流片风险性,提高了SOC芯片的可拓展性。The function expansion device provided in this embodiment can send the target operation instructions for the expanded function module on the on-chip bus of the system on chip to the off-chip function expansion component through the inter-chip transmission bus. The expanded function module in the external function expansion component can be any faulty function module originally in the system on chip. When the function module of the system on chip fails, the function of the faulty function module can be implemented by performing target operations on the off-chip function module without re-taping or letting the CPU calculate. The expanded function module can also be an external chip for any new function expansion in the SOC system application process, so that the functions required by the SOC system can be expanded without re-taping, which can improve the efficiency of the SOC system's functional fault recovery and new function expansion process. At the same time, the function expansion device in this embodiment also has the advantages of small interface signal occupancy and simple software implementation, which not only reduces the risk of system chip tape-out, but also improves the scalability of the SOC chip.
参照图6,示出了本申请实施例提供的一种数据传输方法的步骤流程图,所述方法应用于本实施例所述的片上系统,所述方法包括以下步骤:6, a flowchart of a data transmission method provided in an embodiment of the present application is shown. The method is applied to the system on chip described in this embodiment, and the method includes the following steps:
S101:协议转换模块的主机在所述片上系统的片内总线上,获取控制单元下发的针对拓展功能模块的目标操作指令,通过片间传输总线发送至片外功能拓展组件;S101: The host of the protocol conversion module obtains the target operation instruction for the extended function module issued by the control unit on the on-chip bus of the system on chip, and sends it to the off-chip function extension component through the inter-chip transmission bus;
S102:片外功能拓展组件中的所述协议转换模块的从机接收所述目标操作指令,并发送至所述片外功能拓展组件的拓展功能模块;S102: The slave of the protocol conversion module in the off-chip function expansion component receives the target operation instruction and sends it to the expansion function module of the off-chip function expansion component;
S103:所述拓展功能模块响应于所述目标操作指令后,执行目标操作。S103: The extended function module executes the target operation in response to the target operation instruction.
参照图7,示出了本申请实施例提供的一种计算机设备的示意图,所述计算机设备包括:至少一个处理器701,以及存储器702,所述存储器702存储有可在所述处理器701上运行的计算机程序,其中,所述处理器701执行所述计算机程序时执行实施例所述的数据传输方法。Referring to Figure 7, a schematic diagram of a computer device provided in an embodiment of the present application is shown, and the computer device includes: at least one processor 701, and a memory 702, wherein the memory 702 stores a computer program that can be executed on the processor 701, wherein the processor 701 executes the data transmission method described in the embodiment when executing the computer program.
参照图8,示出了本申请实施例提供的一种非易失性可读存储介质的示意图,所述非易失性可读存储介质800存储有计算机程序801,其中,所述计算机程序801被处理器执行时执行实施例所述的数据传输方法。8 , a schematic diagram of a non-volatile readable storage medium provided in an embodiment of the present application is shown, wherein the non-volatile readable storage medium 800 stores a computer program 801 , wherein the computer program 801 performs the data transmission method described in the embodiment when executed by a processor.
参照图9,示出了本申请实施例提供的一种计算机程序产品的示意图,所述计算机程序产品900包括计算机程序/指令901,该计算机程序/指令901被处理器执行时实现实施例所述的数据传输方法。9 , a schematic diagram of a computer program product provided in an embodiment of the present application is shown, wherein the computer program product 900 includes a computer program/instruction 901 , which implements the data transmission method described in the embodiment when executed by a processor.
Claims (16)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411244336.2A CN118760647B (en) | 2024-09-06 | 2024-09-06 | Function expanding device, system on chip, method and product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411244336.2A CN118760647B (en) | 2024-09-06 | 2024-09-06 | Function expanding device, system on chip, method and product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118760647A true CN118760647A (en) | 2024-10-11 |
CN118760647B CN118760647B (en) | 2025-01-03 |
Family
ID=92945877
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202411244336.2A Active CN118760647B (en) | 2024-09-06 | 2024-09-06 | Function expanding device, system on chip, method and product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118760647B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040122988A1 (en) * | 2002-12-20 | 2004-06-24 | Han Jong Seok | System for controlling data transfer protocol with a host bus interface |
CN102508808A (en) * | 2011-11-14 | 2012-06-20 | 北京北大众志微系统科技有限责任公司 | System and method for realizing communication of master chip and extended chip |
CN103246623A (en) * | 2013-05-20 | 2013-08-14 | 杭州士兰控股有限公司 | Computing device extension system for system on chip (SOC) |
CN104598406A (en) * | 2015-02-03 | 2015-05-06 | 杭州士兰控股有限公司 | Expansion function unit and computing equipment expansion system and expansion method |
CN107111535A (en) * | 2014-12-12 | 2017-08-29 | 英特尔公司 | Acceleration data recovery in storage system |
WO2020177283A1 (en) * | 2019-03-06 | 2020-09-10 | 苏州浪潮智能科技有限公司 | Axi2wb bus bridge implementation method and device, equipment and storage medium |
CN114981782A (en) * | 2020-01-19 | 2022-08-30 | 华为技术有限公司 | System on chip and data verification method |
CN116303228A (en) * | 2023-02-27 | 2023-06-23 | 井芯微电子技术(天津)有限公司 | Chip function expansion method and system |
CN117472848A (en) * | 2023-11-09 | 2024-01-30 | 深圳海星智驾科技有限公司 | Vehicle-mounted main control chip, control system and calculation force expansion method |
CN117978571A (en) * | 2023-10-11 | 2024-05-03 | 深圳市法拉第电驱动有限公司 | Upper computer system capable of applying expandable function to all lower computers on bus |
-
2024
- 2024-09-06 CN CN202411244336.2A patent/CN118760647B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040122988A1 (en) * | 2002-12-20 | 2004-06-24 | Han Jong Seok | System for controlling data transfer protocol with a host bus interface |
CN102508808A (en) * | 2011-11-14 | 2012-06-20 | 北京北大众志微系统科技有限责任公司 | System and method for realizing communication of master chip and extended chip |
CN103246623A (en) * | 2013-05-20 | 2013-08-14 | 杭州士兰控股有限公司 | Computing device extension system for system on chip (SOC) |
CN107111535A (en) * | 2014-12-12 | 2017-08-29 | 英特尔公司 | Acceleration data recovery in storage system |
CN104598406A (en) * | 2015-02-03 | 2015-05-06 | 杭州士兰控股有限公司 | Expansion function unit and computing equipment expansion system and expansion method |
WO2020177283A1 (en) * | 2019-03-06 | 2020-09-10 | 苏州浪潮智能科技有限公司 | Axi2wb bus bridge implementation method and device, equipment and storage medium |
CN114981782A (en) * | 2020-01-19 | 2022-08-30 | 华为技术有限公司 | System on chip and data verification method |
CN116303228A (en) * | 2023-02-27 | 2023-06-23 | 井芯微电子技术(天津)有限公司 | Chip function expansion method and system |
CN117978571A (en) * | 2023-10-11 | 2024-05-03 | 深圳市法拉第电驱动有限公司 | Upper computer system capable of applying expandable function to all lower computers on bus |
CN117472848A (en) * | 2023-11-09 | 2024-01-30 | 深圳海星智驾科技有限公司 | Vehicle-mounted main control chip, control system and calculation force expansion method |
Non-Patent Citations (2)
Title |
---|
赵岩;张果;张春;王志华;: "一种扩展的片上实时调试系统设计", 计算机工程, no. 08, 20 April 2006 (2006-04-20) * |
赵阳洋;陈明宇;金旭;阮元;张雪琳;: "基于标准DDR总线的内存扩展芯片的设计与实现", 高技术通讯, no. 03, 15 March 2020 (2020-03-15) * |
Also Published As
Publication number | Publication date |
---|---|
CN118760647B (en) | 2025-01-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7247213B2 (en) | debug controller circuit | |
CN110471872B (en) | System and method for realizing M-LVDS bus data interaction based on ZYNQ chip | |
CN110213143B (en) | 1553B bus IP core and monitoring system | |
US9639447B2 (en) | Trace data export to remote memory using remotely generated reads | |
US9684583B2 (en) | Trace data export to remote memory using memory mapped write transactions | |
US7710969B2 (en) | Rapid I/O traffic system | |
US20100161309A1 (en) | Apparatus and Methods Thereof for Configuration and Control of a System-On-Chip Emulation Platform | |
CN114443170B (en) | FPGA dynamic parallel loading and unloading system | |
CN105808396A (en) | Chip debugging device, debugging method and SOC (System of Chip) chip system | |
US11442844B1 (en) | High speed debug hub for debugging designs in an integrated circuit | |
US10896119B1 (en) | Common input/output interface for application and debug circuitry | |
CN104657306A (en) | Integrated circuit with a high-speed debug access port | |
CN105357147A (en) | High-speed and high-reliability network-on-chip adapter unit | |
CN108628784A (en) | Serial communicator and serial communication system | |
CN115454881B (en) | Debugging system and debugging method of RISC-V architecture | |
JP2009502072A (en) | FlexRay communication module, FlexRay communication control device, and method for transmitting a message between a FlexRay communication connection and a FlexRay subscriber device | |
CN116090378A (en) | PCIe-to-RapidIO bridge chip verification platform based on UVM | |
US11210252B1 (en) | Directing control data between semiconductor packages | |
WO2019173018A1 (en) | Non-intrusive on-chip debugger with remote protocol support | |
CN102253875B (en) | FPGA logic module debugging and data acquisition method based on PicoBlaze embedded soft-core processor | |
CN114615353A (en) | RMAP target side IP core based on AXI bus and command response method thereof | |
CN115622896A (en) | AXI4 high-speed bus and multi-queue simulation verification method and simulation verification device | |
CN118760647B (en) | Function expanding device, system on chip, method and product | |
US11748289B2 (en) | Protocol aware bridge circuit for low latency communication among integrated circuits | |
US20060256877A1 (en) | Rapid I/O Compliant Message Mapper |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |