Access device, integrated circuit, controller and carrier
By introducing an access device into the integrated circuit to isolate the communication between the host and the slave, the access efficiency and security are improved, the problem of low communication efficiency in the integrated circuit is solved, and the overall performance is improved.
Patent Information
- Application Number
- CN202411288103.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-09-14
AI Technical Summary
The communication access efficiency between multiple functional modules in an integrated circuit is low, which affects the performance of the integrated circuit.
Provide an access device that connects to the host and the slave through the bus, stores and transmits access information, isolates the direct communication between the host and the slave, allows the host to perform other tasks, improves resource utilization and access efficiency, and improves access through verification information Functional safety.
The access efficiency of the internal communication of the integrated circuit is improved, the waiting time of the host is shortened, the resource utilization rate and functional safety are improved, and the performance of the integrated circuit is enhanced.
Smart Images

Figure CN118796729A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of semiconductor technology, and more particularly to an access device, an integrated circuit, a controller, and a carrier. Background Art
[0002] With the development of semiconductor technology, the integration of integrated circuits is increasing day by day. An integrated circuit may include multiple functional modules (or circuits), and multiple functional modules communicate with each other through a bus. However, during the use of the integrated circuit, the communication between multiple functional modules (or circuits) may face the problem of low access efficiency, which affects the performance of the integrated circuit. Summary of the invention
[0003] Embodiments of the present application provide an access device, an integrated circuit, a controller, and a carrier to improve the access efficiency of internal communications of the integrated circuit.
[0004] In a first aspect, an access device is provided for an integrated circuit. The access device is connected between a bus and at least one slave, and the bus is also connected to a host; the at least one slave includes a first slave. The access device includes: A first interface module is coupled to the bus and configured to receive an access information set sent by the host through the bus; A storage module, coupled to the first interface module, configured to store an access information set; the access information set includes first access information; the first access information includes first device information, first address information, first attribute information, a first data packet and first indication information; the first device information is used to indicate the first slave; A second interface module coupled to at least one slave; A transmission module, connected between the storage module and the second interface module and coupled to the first interface module, configured to access the first slave according to the first access information; The transmission module is further configured to receive first feedback information sent by the first slave through the second interface module; and determine the transmission state corresponding to the first access information according to the first feedback information; The transmission module is further configured to send an interrupt signal to the host through the first interface module when determining the transmission state corresponding to the access information set.
[0005] The above access device can isolate the communication between the host and the first slave, and access the first slave on behalf of the host, so that the host can perform other tasks, such as accessing other slaves other than the first slave. In this way, the waiting time of the host is shortened, the resource utilization rate is improved, and the access efficiency of the host is improved, which is conducive to improving the access efficiency inside the integrated circuit and improving the performance of the integrated circuit.
[0006] In one implementation, the above transmission module is configured to determine the first address frame according to the first address information when the first address information is valid; and transmit the first address frame to the first slave through the second interface module; the first address frame is used to set the first access address. The transmission module is configured to determine the first data frame according to the first data packet and the first attribute information when the first address frame transmission is completed and the first data packet is valid; and transmit the first data frame to the first slave through the second interface module; the first data frame is used to read data or write data to the first access address.
[0007] In one implementation, the first address frame includes first verification information, and / or the first data frame includes second verification information. The first verification information is used to perform a first verification. The first verification includes verifying the transmission of the first address frame. The second verification information is used for a second verification. The second verification includes verifying the transmission of the first data frame.
[0008] In this way, the transmission process of the address frame and / or data frame can be checked based on the above verification information to verify whether there is any abnormality in the transmission, so as to take timely countermeasures to the transmission abnormality and improve the functional safety of the integrated circuit.
[0009] In one implementation, the first feedback information includes one or more of the first confirmation information, the second confirmation information, and the third confirmation information. The above transmission module is configured to perform one or more of the following operations: When the first check passes, or when the second check passes and the first data frame is used to write data to the first access address, first confirmation information is received; the first confirmation information is used to indicate that the transmission state corresponding to the first access information is normal transmission; When the first check fails, or when the second check fails, receiving second confirmation information; the second confirmation information is used to indicate that the transmission state corresponding to the first access information is a transmission abnormality; When the second check passes and the first data frame is used to read data from the first access address, third confirmation information is received; the third confirmation information includes the second data packet.
[0010] In one implementation, the first feedback information includes third verification information. The transmission module is configured to perform a third verification on the first feedback information according to the third verification information. Thus, through the third verification information, the access device can verify the data (feedback information) sent by the slave, further improving functional safety.
[0011] In one implementation, the transmission module is configured to initiate a first request signal to the host through the bus when the transmission state corresponding to the first access information is a transmission abnormality. In this way, the access device can request the host to initiate data retransmission when a transmission abnormality occurs, further improving the functional safety of the integrated circuit.
[0012] In one implementation, the transmission module is configured to send a second request signal to the host through the bus when the first feedback information is not received in the preset time window. In this way, the access device can promptly request the host to initiate a slave reset in response to a transmission timeout, further improving the functional safety of the integrated circuit.
[0013] In one implementation, the at least one slave further includes a second slave, and the access information set further includes second access information. The second access information includes second device information, second address information, second attribute information, a third data packet, and second indication information; the second device information is used to indicate the second slave. The transmission module is configured to access the second slave according to the second access information; the transmission module is further configured to receive second feedback information sent by the second slave through the second interface module; and determine the transmission state corresponding to the second access information according to the second feedback information.
[0014] The above access information set may include multiple access information, such as first access information and second access information. In this case, the transmission module can transmit multiple data packets by obtaining one access information set. Multiple data packets can be sent to the same or different slaves, which can achieve higher efficiency when transmitting large quantities of data. In addition, the number of host interventions can be reduced, freeing up more time for the host to execute other transactions, which is conducive to improving the work efficiency of the host.
[0015] In one implementation, the first device information and the second device information are different. The transmission module is further configured to determine the second address frame according to the second address information when the first data frame is transmitted; and transmit the second address frame to the second slave; the second address frame is used to set the second access address; the transmission module is further configured to determine the second data frame according to the third data packet and the second attribute information when the second address frame is transmitted and the third data packet is valid; and transmit the second data frame to the second slave; the second data frame is used to read or write data to the second access address. In this way, the access device can continuously access different slaves, which is conducive to improving the access efficiency of the host.
[0016] In one implementation, the first device information and the second device information are the same. The transmission module is further configured to determine the second data frame according to the third data packet and the second attribute information when the first data frame transmission is completed and the third data packet is valid; and transmit the second data frame to the second slave; the second data frame is used to read data or write data to the second access address; the second access address is determined based on the first access address. In this way, the transmission of the address frame can be omitted, thereby improving the transmission efficiency.
[0017] In a second aspect, an integrated circuit is provided, comprising a host, a bus, at least one slave, and an access device implemented in the first aspect or any one of the first aspects. The at least one slave comprises a first slave; the access device is connected between the host and the first slave.
[0018] In one implementation, the first slave is configured to perform a first check according to the first check information; and / or to perform a second check according to the second check information. The first check includes checking the transmission of the first address frame; and the second check includes checking the transmission of the first data frame.
[0019] In one implementation, the second interface module of the access device includes a first interface, a second interface, and a third interface. The first slave includes a third interface module, and the third interface module includes a fourth interface, a fifth interface, and a sixth interface. The transmission module sends data to the fourth interface through the first interface; receives data from the fifth interface through the second interface; and receives an interrupt signal or a request signal from the sixth interface through the third interface.
[0020] According to a third aspect, a controller is provided, comprising the second aspect or any integrated circuit implemented according to the second aspect.
[0021] In a fourth aspect, a vehicle is provided, comprising the controller according to the third aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following is a brief introduction to the drawings used in the description of the embodiments. The drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 This is a structural example diagram of an integrated circuit provided in some embodiments of the present application; Figure 2 This is a structural example diagram of another integrated circuit provided in an embodiment of the present application; Figure 3 An example diagram of a process of accessing a slave provided in an embodiment of the present application; Figure 4 This is an example diagram of a process of a transmission module accessing a slave provided in an embodiment of the present application; Figure 5 This is another example diagram of a process of a transmission module accessing a slave provided in an embodiment of the present application; Figure 6 This is an example diagram of a frame format of an address frame and a data frame provided in an embodiment of the present application; Figure 7An example diagram of a process of accessing a slave provided in an embodiment of the present application; Figure 8 An example diagram of a signal line for bus communication between a host and a slave provided in an embodiment of the present application; Fig. 9 This is a structural example diagram of another integrated circuit provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the specific implementation methods of the present application will be described below with reference to the accompanying drawings. The accompanying drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other accompanying drawings and other embodiments can be obtained based on these accompanying drawings without creative work. Adjustments and improvements made without departing from the concept of the present application are all within the scope of protection of the present application.
[0025] In order to simplify the drawings, each of the drawings schematically shows only the parts related to the corresponding embodiments, and they do not represent the actual structure of the product, and there may be more or fewer structures or components in reality. In addition, in order to simplify the drawings and facilitate understanding, for the structures or components shown in the drawings, there may be more or fewer similar structures or components in reality.
[0026] In this application, unless otherwise clearly specified and limited, ordinal numbers, such as "first", "second", etc., are only used to distinguish and describe associated objects, and cannot be understood as indicating or implying the relative importance or order between associated objects. In addition, ordinal numbers do not represent the number of associated objects. For example, "first slave" can include one slave, or multiple slaves. "Multiple" includes two or more, and other quantifiers are similar. " / " is used to describe the relationship between associated objects, which represents the "or" relationship between associated objects. "And / or" is used to describe the relationship between associated objects, which includes any combination relationship between associated objects, such as "a and / or b" includes: "alone a", "alone b", or "a and b". "One or more" or "at least one" in multiple objects refers to any object or any combination of multiple objects, such as "one or more of a1, a2, a3" or "at least one of a1, a2, a3" includes: "alone a1", "alone a2", "alone a3", "a1 and a2", "a1 and a3", "a2 and a3", or "a1, a2 and a3".
[0027] In the embodiments of the present application, "connection" includes direct or indirect connection between objects, which may be directly connected through a medium (e.g., a wire, a trace, etc.), or indirectly connected through other elements, or may be internally connected. Similarly, "coupling" includes signal connection between objects, which may be directly connected through a medium (e.g., a wire, a trace, etc.), or may be connected through other elements, etc.
[0028] Integrated circuits are an important part of intelligent devices. Intelligent devices may include vehicles such as smart cars, drones or robots; or they may also include electronic devices such as mobile phones, wearable devices, tablets, etc. Integrated circuits carry functions such as data processing, storage and transmission, and play an important role in the development of intelligence. With the development of semiconductor technology, the integration of integrated circuits continues to improve, which makes intelligent devices more efficient and complex. An integrated circuit may contain multiple functional modules (or circuits) such as processors, memories, sensor interfaces, communication interfaces, etc. These functional modules (or circuits) can exchange data and communicate through the bus to realize the various functions of intelligent devices. Among them, the functional module that initiates communication can be called the host, and the functional module that responds to communication can be called the slave. The host initiates communication to the slave to access the slave and transmits data with the slave, such as writing data to the slave or reading data from the slave.
[0029] The data transmission speed (hereinafter referred to as transmission speed) between different functional modules and the bus may vary. This may affect the access efficiency of the internal communication of the integrated circuit, thereby affecting the performance of the integrated circuit. Please refer to Figure 1 , which is a structural example diagram of an integrated circuit provided in an embodiment of the present application. Figure 1 As shown, the integrated circuit 100 includes a plurality of slaves, such as slaves 1-N (N is an integer greater than or equal to 1). The integrated circuit 100 also includes a host 110 and a bus 120. The host 110 can communicate with slaves 1-N through the bus 120. Taking N=2 as an example, the host 110 can access slaves 1 and 2. In one implementation, the transmission speed between the host 110 and the bus 120 is higher than the transmission speed between slave 1 and the bus 120. In this case, the transmission speeds of the host 110 and slave 1 do not match. In order to match the transmission speed of slave 1, the host 110 will spend a lot of time accessing slave 1, increasing the waiting time of the host 110. The host 110 cannot perform other tasks (such as accessing slave 2) during the waiting process, resulting in the waste of resources (such as processing power) of the host 110, reducing the access efficiency of the host 110, thereby affecting the performance of the integrated circuit 100.
[0030] Based on this, an embodiment of the present application provides an access device that can be used in an integrated circuit. The host can communicate with the slave directly via a bus, but can indirectly access the slave through the access device. The host can use the time when the access device accesses the slave to perform other tasks (such as accessing other slaves). In this way, the waiting time of the host is reduced and the access efficiency of the host is improved. The following is an explanation with reference to the accompanying drawings.
[0031] Please refer to Figure 2 , which is a structural example diagram of another integrated circuit provided in an embodiment of the present application. Figure 2 As shown, the integrated circuit 200 includes a host 210, a bus 220, and an access device 230. The host 210 is connected to the access device 230 via the bus 220. The integrated circuit 200 also includes at least one slave, such as slaves 1-N. The access device 230 is connected between the bus 220 and the slaves 1-N. The host 210 can directly access the slaves via the bus 220, such as directly accessing the slave 240 via the bus 220; or, the host 210 can access the access device 230 via the bus 220, and access the slaves 1-N via the access device 230.
[0032] The bus 220 may be a set of lines, such as a set of one or more lines in a data bus, an address bus, and a control bus. Bus-based communication may be unidirectional or bidirectional. The present application does not limit the protocol followed by the bus transmission, which may be a general protocol, such as an advanced microcontroller bus architecture (AMBA) bus, CoreConnect bus, Wishbone bus, Avalon bus, or TileLink bus, etc.; or it may be a custom protocol. The embodiment of the present application does not limit the bus type between the host and the slave. Corresponding to different bus types, the implementation of data transmission is different, and the present application does not limit this. In addition, the present application does not limit the host and the slave, and the host or the slave may be any functional module (or circuit) of the same integrated circuit, as long as the host initiates communication and the slave responds to communication. In one implementation, the host may be a processor. A processor is a circuit with signal processing capabilities. In one example, the processor may be a circuit with the ability to read and execute instructions; for example, a central processing unit (CPU), a microcontroller (MCU), a microprocessor unit (MPU), a graphics processing unit (GPU), or a digital signal processor (DSP). In another example, the processor may realize its processing capability through the logical relationship of a hardware circuit, and the logical relationship of the hardware circuit is fixed or reconfigurable; for example, the processor may be a dedicated processor, such as a processor realized by an application specific integrated circuit (ASIC), which realizes processing capability by designing the logical relationship of components in the circuit; for another example, a processor realized by a programmable logic device (PLD), which realizes processing capability by configuring the logical relationship between logic devices through a configuration file; for example, a processor realized by a field programmable gate array (FPGA). In another example, the processor may be a hardware circuit designed for artificial intelligence, which may be understood as an ASIC, such as a neural network processing unit (NPU), a tensor processing unit (TPU), a deep learning processing unit (DPU), etc.The present application is not limited to the type of processor. The embodiments of the present application do not limit the transmission speed of the host or the slave. For example, the transmission speeds of the host and the slave can be the same or different; the transmission speeds of different slaves can be the same or different. For example, the transmission speed of the host 210 is greater than the transmission speed of the slave 1, and the transmission speed of the slave 240 is greater than the transmission speed of the slave 1.
[0033] Please continue to refer to Figure 2 The access device 230 includes a first interface module 231, a storage module 232, a transmission module 233 and a second interface module 234. The first interface module 231 is coupled to the bus 220 and is configured to receive an access information set sent by the host 210 through the bus 220. The storage module 232 is coupled to the first interface module 231 and is configured to store the access information set. The second interface module 234 is coupled to the slaves 1-N. The transmission module 233 is connected between the storage module 232 and the second interface module 234 and is coupled to the first interface module 231. The transmission module 233 is configured to access the corresponding slave according to the access information set.
[0034] The above access information set may include at least one access information, such as first access information. The transmission module 233 is configured to access slave 1 (for the sake of distinction, it may be referred to as the first slave) according to the first access information. The first access information includes first device information. The first device information is used to indicate the first slave, and the transmission module 233 may determine that the slave to be accessed is slave 1 according to the first device information. The first device information may be, for example, the index number (ID) of the first slave. The above access to the slave refers to data transmission with the slave, such as sending data to the slave or receiving data sent by the slave. The first access information may also include first attribute information, first address information, a first data packet and first indication information. The first attribute information is used to indicate the type of access, such as writing data or reading data. The first address information is used to indicate the first access address, and the first access address includes the address of the first storage space inside the first slave, and data may be written to the first storage space or read from the first storage space based on the address. The first data packet is the data packet to be transmitted. In the case of writing data, the access device 230 may transmit the first data packet to the first slave; in the case of reading data, the above first data packet may be empty. The first indication information is used to indicate whether the above first address information and / or first data packet is valid.
[0035] The above transmission module 233 is also configured to receive the first feedback information sent by the first slave through the second interface module 234. The first feedback information includes the response information of the first slave to the access device 230. The transmission module 233 can determine the transmission status corresponding to the first access information according to the first feedback information. The transmission status includes normal transmission or abnormal transmission. The transmission module 233 is also configured to send an interrupt signal to the host 210 through the first interface module 231 when the transmission status corresponding to the above access information set is determined. The interrupt signal is used to inform the host 210 that the above access information set has been processed; and to control the host 210 to process the subsequent tasks of the current access, such as controlling the host 210 to receive data read from the first slave through the bus 220.
[0036] The above access device 230 can isolate the communication between the host 210 and the slaves 1-N, and access the slaves 1-N instead of the host 210. When the access device 230 accesses one or more slaves in the slaves 1-N, the host 210 can perform other tasks instead, for example, the host 210 can access other slaves other than the slaves 1-N (such as the slave 240), or the host 210 can perform various processing behaviors of its own. In this way, the waiting time of the host 210 is shortened, the resource utilization is improved, and the access efficiency of the host 210 is improved. In one implementation, the various parts of the above integrated circuit can be integrated together to form a chip, for example, in the form of a system on chip (SOC).
[0037] The following is an explanation of the process of the transmission module 233 accessing the slave. Figure 3 , which is an example diagram of a process of accessing a slave provided in an embodiment of the present application. Taking the transmission module 233 accessing the first slave as an example, Figure 3 As shown, the transmission module 233 can parse the first access information, and can determine whether the first address information and / or the first data packet is valid based on the first indication information in the first access information. The transmission module 233 is configured to determine the first address frame according to the first address information when the first address information is valid; and transmit the first address frame to the first slave through the second interface module 234. The first address frame can be used to set the above first access address, for example, to set the address pointer of the first slave. The transmission module 233 is also configured to determine the first data frame according to the first data packet and the first attribute information when the first access address is set and the first data packet is valid; and transmit the first data frame to the first slave through the second interface module 234. The above first data frame can be used to read data or write data to the first access address. The data frame used to read data can be called a read data frame, and the data frame used to write data can be called a write data frame. The type of the first data frame can be determined according to the first attribute information.
[0038] Furthermore, the above access information set may include multiple access information. In this case, the transmission module 233 can transmit multiple data packets by acquiring one access information set. Multiple data packets can be sent to the same or different slaves, which can achieve higher efficiency when transmitting large amounts of data. In addition, the number of host interventions can be reduced, freeing up more time for the host to execute other transactions, which is conducive to improving the work efficiency of the host.
[0039] In one implementation, the access information set includes the above first access information and also includes second access information. The second access information includes second device information, second address information, second attribute information, a third data packet and second indication information. Among them, the second device information is used to indicate the second slave. The second attribute information is used to indicate the type of access, such as writing data or reading data. The second address information is used to indicate the second access address, and the second access address includes the address of the second storage space inside the second slave, based on which data can be written to the second storage space or read from the second storage space. The third data packet is used to indicate the data packet to be transmitted. Similarly, for the case of reading data, the third data packet may also be empty. The second indication information is used to indicate whether the above second address information and / or third data packet is valid. Please continue to refer to Figure 2 , the at least one slave further includes slave 2 (referred to as the second slave for the sake of distinction). The transmission module 233 is configured to access the second slave according to the second access information. The transmission module 233 is further configured to receive the second feedback information sent by the second slave through the second interface module 234 when the access to the second slave is completed; and determine the transmission state corresponding to the second access information according to the second feedback information.
[0040] When the access information set includes a single access information, the above determining the transmission state corresponding to the access information set includes: determining the transmission state corresponding to the single access information. When the access information set includes multiple access information, the above determining the transmission state corresponding to the access information set includes: determining the transmission state corresponding to each of the multiple access information.
[0041] In one implementation, the transmission states corresponding to the multiple access information may be determined in sequence according to the access order of the multiple access information. Figure 3As shown, after determining the transmission status corresponding to the first access information, it can be further determined whether the first access information is the last access information in the access information set. If it is determined to be yes, an interrupt signal is sent to the host 210 through the first interface module 231; if it is determined to be no, the next access information of the first access information is parsed. The subsequent process is similar to the process of accessing the first slave according to the first access information, and the content of the above embodiment can be referred to. In one implementation, the above storage module 232 can be a two-dimensional array built based on a register. The storage module 232 can receive the access information set sent by the host 210 through the first interface module 231; and configure the two-dimensional array according to the access information set to generate a two-dimensional data table, and a row of content in the table can be used to represent an access information. The access information includes the device information of the corresponding slave, and the transmission module 233 can access the slave corresponding to the information set based on the content of the two-dimensional data table. The above access order can be set according to the receiving order of each access information in the access information set, or the slave can be accessed according to the configuration order of each row of the above two-dimensional data table.
[0042] Further, based on any of the above embodiments, multiple access information may correspond to the same or different slaves. Take the first access information and the second access information as an example: In one implementation, the first access information and the second access information correspond to different slaves, that is, the first device information and the second device information are different. The transmission module can communicate with different slaves according to different access information. Assuming that the access is first performed according to the first access information, and then the access is performed according to the second access information: The transmission module is further configured to determine a second address frame according to the second address information when the transmission of the first data frame is completed; and transmit the second address frame to the second slave; the second address frame is used to set the second access address. The transmission module is further configured to determine a second data frame according to the third data packet and the second attribute information when the transmission of the second address frame is completed and the third data packet is valid; and transmit the second data frame to the second slave through the second interface module. The second data frame is used to read data or write data to the second access address.
[0043] Please refer to Figure 4 , which is an example diagram of a process of a transmission module accessing a slave provided in an embodiment of the present application. Figure 4As shown, ADDR1 is the first address frame, ADDR2 is the second address frame, and R1-3 are feedback information. D1 is the first data frame and is a write data frame, and D2 is the second data frame and is a read data frame. The transmission module sends ADDR1 to slave 1; after receiving ADDR1, slave 1 sends R1 to the transmission module. After receiving R1, the transmission module confirms that the transmission of ADDR1 is complete, and sends D1 to slave 1. D1 contains the first data packet data1. Slave 1 receives D1, and after receiving it, sends R2 to the transmission module. After receiving R2, the transmission module confirms that the transmission of D1 is complete, and completes access to slave 1. Then, the transmission module determines ADDR2 according to the second address information and transmits ADDR2 to slave 2. After receiving ADDR2, slave 2 sends R3 to the transmission module. After receiving R3, the transmission module confirms that the transmission of ADDR2 is complete, and sends D2 to slave 2. D2 contains a read data request. Slave 1 receives D2, and after receiving it, sends the third data packet data3 to the transmission module. After receiving data3, the transmission module confirms that the transmission of D2 is complete, and completes access to slave 2. In this way, the access device can continuously access different slaves, which is beneficial to improving the access efficiency of the host.
[0044] Figure 4 Taking D1 as a write data frame and D2 as a read data frame as an example, in some embodiments, D1 and D2 may both be write data frames or both be read data frames, or D1 may be a read data frame and D2 may be a write data frame. Figure 4 Similar to Figure 4 The relevant description content is not repeated here. Furthermore, ADDR1 and ADDR2 may be the same or different. The first feedback information may include one or all of the above R1 and R2; the second feedback information may include the above R3. R1-3 may be the same or different or partially the same. The above communication process of continuously accessing different slaves is also called a scan mode. In one implementation, the scan mode may also be used to continuously access the same slave.
[0045] In one implementation, the first access information and the second access information correspond to the same slave, that is, the first device information and the second device information are the same. In this case, the transmission module 233 can communicate with the same slave according to different access information. Assume that the first slave is accessed according to the first access information and the second access information respectively: The transmission module is further configured to determine a second data frame according to the third data packet and the second attribute information when the transmission of the first data frame is completed and the second data packet information is valid; and transmit the second data frame to the second slave; the second data frame is used to read data or write data to the second access address; the second access address is determined based on the first access address. The first slave is the same as the second slave.
[0046] Please refer to Figure 5, which is another example diagram of the process of a transmission module accessing a slave provided in an embodiment of the present application. Figure 5 As shown, ADDR1 is the first address frame, and R4-6 are feedback information. D1 is the first data frame, D2 is the second data frame, and both D1 and D2 are write data frames. The transmission module sends ADDR1 to slave 1; after receiving ADDR1, slave 1 sends R4 to the transmission module. The transmission module receives R4 to confirm that the transmission of ADDR1 is complete, and sends D1 to slave 1. D1 contains the first data packet data1. Slave 1 receives D1, and after receiving it, sends R5 to the transmission module. After receiving R5, the transmission module confirms that the transmission of D1 is complete, and completes the access to slave 1. Then, when the transmission of D1 is complete and the third data packet data3 is valid, the transmission module determines D2 according to the third data packet data3 and the second attribute information; and transmits D2 to slave 1. Slave 1 receives D2, and after receiving it, sends R6 to the transmission module. After receiving R6, the transmission module confirms that the transmission of D2 is complete, and completes the access to slave 1 again. D2 can be used to write data to the second access address. The second access address is determined based on the first access address. For example, after receiving ADDR1, slave 1 increases the address pointer by 1 each time it obtains a data frame, thereby obtaining the next access address. Figure 5 In this way, the transmission of the address frame can be omitted, thereby improving the transmission efficiency.
[0047] Figure 5 Taking D1 and D2 as write data frames as an example, in some embodiments, D1 and D2 may also be read data frames, or D1 and D2 may be different types of data frames. Further, ADDR1 and ADDR2 may be the same or different. The first feedback information may include one or all of the above R4 and R5. The second feedback information may include the above R5. R4-6 may be the same or different or partially the same. The above communication process omitting the address frame is also referred to as a data flow mode. In one implementation, the above data flow mode may also be applicable to accessing different slaves.
[0048] Furthermore, the above access device can also detect transmission anomalies to improve the functional safety of the integrated circuit. In one implementation, the address frame may include verification information for verifying the transmission of the address frame. For example, the first address frame includes first verification information. The first verification information is used to perform a first verification; the first verification includes verifying the transmission of the first address frame. In one implementation, the data frame may include verification information for verifying the transmission of the data frame. For example, the first data frame includes second verification information. The second verification information is used for a second verification; the second verification includes verifying the transmission of the first data frame. Further, the first slave is configured to perform a first verification based on the first verification information, and / or, to perform a second verification based on the second verification information.
[0049] The above check information includes, for example, one or more of a check code or an inverse code. For example, the first check information / the second check information may include one or more of the following: an inverse code of at least one bit field; a check code of at least one bit field. Please refer to Figure 6 , which is an example diagram of the frame format of an address frame and a data frame provided in an embodiment of the present application. Figure 6 In the data frame, MSB represents the high bit of the frame, and LSB represents the low bit of the frame. S is the start bit of the frame, which can be used to distinguish the idle state (not accessing the slave), for example, it can be set to "1". F is the type of frame (Frame), such as address frame, write data frame, read data frame, etc. S~ and F~ are the inversion of the above S bit field and F bit field. After receiving the address frame / data frame, the slave verifies that S~ is the inversion of S, and / or, verifies whether F~ is the inversion of F, and checks the S bit field and / or F bit field. CRC is the check code of the cyclic redundancy check (CRC), and the slave can check the address bit field / data bit field based on the check code. For example Figure 6 As shown, both the address frame and the write data frame include the above S, F, S~, F~, and CRC. The address frame also includes Address (address bit field), and the CRC code is used to verify the transmission of the address bit field. The write data frame also includes Data (data bit field), and the CRC code is used to verify the transmission of the data bit field. For the read data frame, the solid line portion is a read data request; the dotted line portion is a data packet sent by the slave to the access device. In one implementation, the dotted line portion also includes a CRC check code sent by the slave, which is used to verify the data packet sent by the slave. The above CRC check code is only an example. The embodiment of the present application does not limit the type of the check code. For example, it can also be a parity check code, a longitudinal redundancy check code, and so on.
[0050] Currently, on-chip bus protocols lack support for functional safety. For example Figure 1 In the present invention, the host 110 can access the slave 1 through the bus 120. If a transmission abnormality occurs, for example, during the data transmission process, the bus signal jumps abnormally, and the data (such as the address frame or the data frame, etc.) may be sent to the slave that is not expected to be accessed, such as the slave 2, and the host side, the bus side and the slave side will not have any perception and cannot detect the transmission abnormality. In the present application, the transmission process of the address frame and / or the data frame can be verified based on the above verification information to verify whether the transmission is abnormal, so as to take timely countermeasures to the transmission abnormality to improve the functional safety of the integrated circuit.
[0051] Furthermore, the slave machine may send feedback information to the access device, and the transmission module may determine the transmission status according to the feedback information. For example, the above transmission module may receive the first feedback information sent by the first slave machine through the second interface module; and determine the transmission status corresponding to the first access information according to the first feedback information. In one implementation, the first feedback information includes one or more of the first confirmation information, the second confirmation information, and the third confirmation information. Among them, the first confirmation information is used to indicate that the transmission status corresponding to the first access information is normal transmission; the second confirmation information is used to indicate that the transmission status corresponding to the first access information is abnormal transmission; and the third confirmation information includes the second data packet.
[0052] Please refer to Figure 7 , which is an example diagram of a process of accessing a slave provided in an embodiment of the present application. Figure 7 As shown, the transmission module can be configured to perform one or more of the following operations: (1) When the above first check passes, or when the above second check passes and the first data frame is used to write data to the first access address, the above first confirmation information is received. The transmission module can determine, based on the first confirmation information, that the transmission state corresponding to the first access information is normal transmission. In one implementation, the first confirmation information may include a reply frame (ACK) for indicating that the address frame (e.g., the first address frame) or the write data frame (e.g., the first data frame) is successfully transmitted.
[0053] (2) When the above first check fails, or when the above second check fails, the above second confirmation information is received. The transmission module can determine that the transmission state corresponding to the first access information is a transmission abnormality based on the second confirmation information. In one implementation, the second confirmation information may include an error frame (NAK) to indicate that the address frame or write data frame transmission fails. Similarly, the reply frame or error frame may also include S (start bit) and F (frame type).
[0054] (3) When the second check passes and the first data frame is used to read data from the first access address, the third confirmation information (second data packet) is received. In one implementation, when the transmission module receives the third confirmation information, it considers that the transmission status corresponding to the first access information is normal transmission.
[0055] In one implementation, the feedback information may also include verification information. For example, the first feedback information includes third verification information. The transmission module is configured to perform a third verification on the first feedback information according to the third verification information. By way of example, one or more of the above first confirmation information, the second confirmation information, and the third confirmation information may include third verification information. The third verification information, for example, includes a verification code and / or an inverse code. For example, the above reply frame or error frame may also include the inverse codes S~ and F~ of the S bit field and the F bit field. For another example, the above third confirmation information may also include a CRC verification code or other types of verification codes. Further, the transmission module is also configured to, when the third verification passes, confirm that the transmission state corresponding to the first access information is normal transmission; and / or, when the third verification fails, determine that the transmission state corresponding to the first access information is abnormal transmission. In this way, through the third verification information, the access device can verify the data (feedback information) sent by the slave, further improving functional safety.
[0056] In addition, the above access device can also perform exception processing for transmission anomalies to further improve the functional safety of the integrated circuit. In one implementation, the access device can request the host to initiate data retransmission when a transmission anomaly occurs. For example, the above transmission module is configured to send a first request signal to the host through the bus when the transmission state corresponding to the first access information is a transmission anomaly. The first request information is used to request the host to resend the first access information. In the case of a transmission anomaly, the access address (such as the first access address) or the data packet (such as the first data packet) will not be actually written to the slave.
[0057] Further, the present application also provides a reset scheme for transmission timeout. Transmission timeout, for example, the slave does not send feedback information for a long time; or the access device does not receive feedback information for a long time or receives wrong feedback information. The above access device can initiate a reset to the host in the case of transmission timeout. For example, the transmission module is configured to send a second request signal to the host through the bus when the first feedback information is not received within a preset time. The second request signal is used to request the host to intervene to restart the access device and / or the slave corresponding to the feedback information (for example, the first slave). The preset time includes any one or more of the first time from sending an address frame to the slave, the second time from sending a read data frame to the slave, and the third time from sending a write data frame to the slave. For example, the transmission module is configured to send a second request signal to the host through the bus when the first confirmation information or the second confirmation information is not received at the first time. For another example, the transmission module is configured to send a second request signal to the host through the bus when the third confirmation information is not received at the second time. For another example, the transmission module is configured to send a second request signal to the host through the bus when the first confirmation information or the second confirmation information is not received at the third time. Transmission timeout may be caused, for example, by the slave or access device falling into an abnormal state that cannot be self-recovered. Through the above reset scheme, the slave or access device can be reset in time, thereby improving the functional safety of the integrated circuit.
[0058] The above data retransmission or timeout reset scheme can provide on-chip functional safety support for integrated circuits to meet the functional safety requirements of integrated circuits.
[0059] Please refer to Figure 8 , which is an example diagram of a signal line for bus communication between a host and a slave provided in an embodiment of the present application. Taking the advanced peripheral bus (APB) in the AMBA bus architecture as an example, data can be transmitted in parallel based on the APB bus, such as Figure 8 As shown, [x:0] is the bit width of the corresponding signal. For example, x=31 indicates that the bit width of the signal is 32, and each bit corresponds to a signal line. Figure 8 In the present application, the host needs 108 signal lines to access a single slave. Furthermore, when the number of slaves increases, for example, if the number of slaves is 100, 10,800 signal lines are required. This will bring great difficulties to the layout and wiring of the integrated circuit. In the present application, the communication between the bus and the slave is converted into the communication between the access device and the slave, and serial communication is adopted between the access device and the slave, which is conducive to reducing the number of signal lines and facilitating the layout and wiring of the integrated circuit.
[0060] In one implementation, refer to Fig. 9 , which is a structural example diagram of another integrated circuit provided in an embodiment of the present application. Fig. 9 As shown, the second interface module 234 of the access device 230 includes a first interface IO1, a second interface IO2 and a third interface IO3. The first slave 10 includes a third interface module 11. The third interface module 11 includes a fourth interface IO4, a fifth interface IO5 and a sixth interface IO6. Fig. 9 The signal line TX is used to connect the first interface IO1 and the fourth interface IO4, and the access device 230 sends data to the fourth interface IO4 through the first interface IO1, such as sending an address frame or a data frame. The signal line RX is used to connect the second interface IO2 and the fifth interface IO5, and the access device 230 receives data from the fifth interface IO5 through the second interface IO2, such as receiving feedback information (a reply frame, an error frame, a data packet or one or more). The signal line IT is used to connect the third interface IO3 and the sixth interface IO6, and the access device 230 receives an interrupt signal or a request signal (such as a first request signal or a second request signal) from the sixth interface IO6 through the third interface IO3.
[0061] The integrated circuit 200 communicates serially with the slave (e.g., the first slave 10) based on the access device 230, which greatly reduces the number of signal lines, for example, reducing the 8 signal lines of the traditional APB bus 10 to 3 (TX, RX, and IT), which facilitates the layout and wiring of the integrated circuit. The first interface module 231, the second interface module 234, and the third interface module 11 can all be implemented by an interface circuit.
[0062] In addition, an embodiment of the present application further provides a controller, which includes any of the above integrated circuits; the integrated circuit includes any of the above access devices. Taking the field of smart cars as an example, the above controllers can be vehicle-mounted processors or control circuits, such as: domain controllers (domain control unit, DCU), electronic control units (electronic control unit, ECU), vehicle central computers (vehicle central computer, VCC), zone controllers (zonal / zone ECU, or, zone control unit, ZCU), micro control units (micro control units, MCU), or vehicle control units (vehicle control unit, VCU), etc. Domain controllers include, for example, vehicle domain controllers (vehicle domain controllers, VDC), cockpit domain controllers (cockpit domain controllers, CDC), or intelligent driving domain controllers (advanced driving assistance system / autonomous driving, ADAS / AD, domain controllers, ADC), etc. In one implementation, an embodiment of the present application further provides a vehicle, including any of the above integrated circuits or any of the above access devices.
[0063] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments. In addition, the above embodiments can be freely combined as needed.
Claims
1. An access device, characterized in that: For an integrated circuit, the access device is connected between a bus and at least one slave, and the bus is also connected to a host; The at least one slave includes a first slave, and the access device includes: A first interface module, coupled to the bus, and configured to receive an access information set sent by the host through the bus; a storage module, coupled to the first interface module, configured to store the access information set; the access information set includes first access information; the first access information includes first device information, first address information, first attribute information, a first data packet and first indication information; the first device information is used to indicate the first slave; A second interface module, coupled to the at least one slave; a transmission module, connected between the storage module and the second interface module and coupled to the first interface module, and configured to access the first slave according to the first access information; The transmission module is further configured to receive first feedback information sent by the first slave through the second interface module; and determine a transmission state corresponding to the first access information according to the first feedback information; The transmission module is further configured to send an interrupt signal to the host through the first interface module when determining a transmission state corresponding to the access information set.
2. The access device according to claim 1, characterized in that: The transmission module is configured to determine a first address frame according to the first address information when the first address information is valid; and transmit the first address frame to the first slave through the second interface module; The first address frame is used to set a first access address; The transmission module is configured to determine a first data frame according to the first data packet and the first attribute information when the transmission of the first address frame is completed and the first data packet is valid; and transmit the first data frame to the first slave through the second interface module; The first data frame is used to read data or write data to the first access address.
3. The access device according to claim 2, characterized in that: The first address frame includes first verification information, and the first verification information is used to perform a first verification; the first verification includes verifying the transmission of the first address frame; And / or, the first data frame includes second verification information, and the second verification information is used for a second verification; the second verification includes verifying the transmission of the first data frame.
4. The access device according to claim 3, characterized in that: The first feedback information includes one or more of the first confirmation information, the second confirmation information, and the third confirmation information; and the transmission module is configured to perform one or more of the following operations: When the first check passes, or when the second check passes and the first data frame is used to write data to the first access address, receiving the first confirmation information; The first confirmation information is used to indicate that the transmission status corresponding to the first access information is normal transmission; When the first check fails, or when the second check fails, receiving the second confirmation information; The second confirmation information is used to indicate that the transmission status corresponding to the first access information is a transmission exception; When the second check passes and the first data frame is used to read data from the first access address, the third confirmation information is received; the third confirmation information includes a second data packet.
5. The access device according to claim 1, characterized in that: The first feedback information includes third verification information; The transmission module is configured to perform a third check on the first feedback information according to the third check information.
6. The access device according to any one of claims 2 to 5, characterized in that: The transmission module is configured to initiate a first request signal to the host through the bus when the transmission status corresponding to the first access information is transmission abnormality.
7. The access device according to any one of claims 2 to 5, characterized in that: The transmission module is configured to send a second request signal to the host through the bus when the first feedback information is not received within a preset time.
8. The access device according to claim 2, characterized in that: The at least one slave further includes a second slave, the access information set further includes second access information, the second access information includes second device information, second address information, second attribute information, a third data packet, and second indication information; the second device information is used to indicate the second slave; The transmission module is configured to access the second slave device according to the second access information; The transmission module is further configured to receive second feedback information sent by the second slave through the second interface module; and determine a transmission state corresponding to the second access information according to the second feedback information.
9. The access device according to claim 8, characterized in that: The first device information is different from the second device information; The transmission module is further configured to determine a second address frame according to the second address information when the transmission of the first data frame is completed; and transmit the second address frame to the second slave; the second address frame is used to set a second access address; The transmission module is also configured to determine a second data frame based on the third data packet and the second attribute information when the transmission of the second address frame is completed and the third data packet is valid; and transmit the second data frame to the second slave; the second data frame is used to read data or write data to the second access address.
10. The access device according to claim 8, characterized in that: The first device information is the same as the second device information; The transmission module is further configured to determine a second data frame according to the third data packet and the second attribute information when the transmission of the first data frame is completed and the third data packet is valid; and transmit the second data frame to the second slave; the second data frame is used to read data or write data to the second access address; The second access address is determined based on the first access address.
11. An integrated circuit, characterized in that: The system comprises a host, a bus, at least one slave, and also comprises an access device as described in any one of claims 1 to 10, wherein the at least one slave comprises a first slave; the access device is connected between the host and the first slave.
12. The integrated circuit according to claim 11, characterized in that The first slave is configured to perform a first check according to first check information; the first check includes checking the transmission of the first address frame; and / or, perform a second check according to second check information; the second check includes checking the transmission of the first data frame.
13. The integrated circuit according to claim 11 or 12, characterized in that: The second interface module of the access device includes a first interface, a second interface and a third interface; the first slave includes a third interface module, and the third interface module includes a fourth interface, a fifth interface and a sixth interface, The transmission module of the access device sends data to the fourth interface through the first interface; Data is received from the fifth interface through the second interface; an interrupt signal or a request signal is received from the sixth interface through the third interface.
14. A controller, characterized in that: Comprising an integrated circuit as claimed in any one of claims 11 to 13.
15. A carrier, characterized in that: Comprising a controller as claimed in claim 14.
Citation Information
Patent Citations
Control system
CN107820312A
Communication apparatus
CN112740191A
AXI bus protocol access authority control method and device based on SoC chip
CN115357926A
Data transmission control method, controller and electronic equipment
CN115858431A
Multi-functional communication interface supporting memory sharing between data processing systems
CN116034344A
