Near-end serial deserializer, far-end serial deserializer, address conflict resolution system and method
By using mapping tables in near-end and far-end serial deserializers to map virtual addresses to physical or real addresses, the problem of integrated circuit bus address conflict is solved, the production process is simplified and costs is reduced, and communication efficiency is improved. System reliability.
Patent Information
- Application Number
- CN202411066209.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-11-26
AI Technical Summary
In the integrated circuit bus, multiple devices are prone to address conflicts when sending data at the same time, resulting in data loss, communication failure or delay, and reducing communication efficiency and system stability. Existing solutions increase hardware resource costs, complex configuration and poor flexibility.
The near-end and far-end serial deserializers are used to preset the mapping tables of virtual addresses and physical layer ports and the mapping tables of virtual addresses and real addresses respectively. The access requests are sent accurately through the table lookup mechanism to avoid the inefficiency caused by the broadcast mechanism. and conflict issues.
Through the table lookup mechanism, the problem of address conflict in integrated circuit buses is solved, the production process is simplified, the cost is reduced, and communication efficiency and system reliability are improved.
Smart Images

Figure CN119030953A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a near-end serial deserializer, a far-end serial deserializer, an address conflict resolution system and a method. Background Art
[0002] Integrated Circuit Bus (Inter-Integrated Circuit, referred to as IIC or I 2 IIC is a two-wire serial communication bus that enables communication between a microcontroller and its peripheral devices. The IIC bus supports multiple devices communicating on the same bus. When multiple devices try to send data through the bus at the same time, due to the limited and shared nature of the bus resources, these data streams are very likely to interfere with each other, resulting in IIC address conflicts, leading to data loss, communication failures or communication delays, thereby reducing overall communication efficiency and affecting system stability and reliability.
[0003] At present, the mainstream solutions for IIC address conflicts are as follows:
[0004] In the module 100, the serializer / deserializer 101 (SER DES) communicates with multiple IIC devices, such as IIC device 1031 and IIC device 1032, through the IIC bus. Figure 1 The schematic diagram of the conventional IIC address conflict resolution method based on non-volatile memory chip is shown. The non-volatile memory chip 102 (NVM) is integrated in the serializer / deserializer 101 device module 100, and the key configuration information such as the IIC address is pre-written into the NVM before the module leaves the factory to solve the IIC address conflict problem. This solution requires more hardware resources and increases the manufacturing cost of the product due to the addition of non-volatile memory chips; moreover, once the configuration information is written into the NVM, it is difficult to modify, and later adjustments require the use of special tools and equipment, which is complicated to operate and has poor flexibility.
[0005] like Figure 2 The schematic diagram shows a conventional IIC address conflict resolution method based on power on configuration (Power On Strapping), in which a fixed voltage configuration 104 is selected when the device is powered on to resolve the IIC address conflict. This solution is only applicable to fixed and simple networks.
[0006] In addition, you can also use a custom protocol to add a new path identification field to solve the IIC address conflict problem. However, this solution requires adding additional fields, which will reduce transmission efficiency. Summary of the invention
[0007] In order to solve the above technical problems, the present invention provides a near-end serial deserializer, a far-end serial deserializer, an address conflict resolution system and method.
[0008] The technical problem solved by the present invention can be achieved by adopting the following technical solutions:
[0009] A first aspect of the present invention is to provide a near-end serial deserializer, wherein a first mapping table is pre-set in the near-end serial deserializer, and the first mapping table stores a mapping relationship between a virtual address of an integrated circuit bus and a physical layer port;
[0010] The near-end serial deserializer is used to respond to an access request, search for a corresponding physical layer port based on the first mapping table, and send the access request to the corresponding far-end serial deserializer through the physical layer port obtained by the table lookup.
[0011] Preferably, the near-end serial deserializer comprises:
[0012] A first receiving unit, configured to receive an access request;
[0013] A first table lookup unit, connected to the first receiving unit, configured to look up a corresponding physical layer port based on the first mapping table according to the virtual address in the access request;
[0014] A first sending unit is connected to the first table lookup unit and is used to send the access request to the corresponding remote serial deserializer through the physical layer port obtained by table lookup.
[0015] Preferably, the first receiving unit comprises: a first integrated circuit bus adapter, and the first integrated circuit bus adapter comprises at least one.
[0016] Preferably, the first table lookup unit comprises: a first router, and the first router is connected to the first mapping table.
[0017] Preferably, the first sending unit comprises a physical layer port: the physical layer port comprises at least one physical layer port, and the physical layer port corresponds one-to-one with the remote serializer / deserializer.
[0018] A second aspect of the present invention is to provide a remote serial deserializer, wherein a second mapping table is pre-set in the remote serial deserializer, and a mapping relationship between a virtual address and a real address of the integrated circuit bus is stored in the second mapping table;
[0019] The remote serial deserializer is used to respond to an access request sent from the near-end serial deserializer, look up the corresponding real address based on the second mapping table, and access the integrated circuit bus device through the real address obtained by looking up the table.
[0020] Preferably, the remote serial deserializer comprises:
[0021] A second receiving unit, configured to receive an access request sent from a near-end serial deserializer;
[0022] A second table lookup unit, connected to the second receiving unit, configured to look up a corresponding real address based on the second mapping table according to the virtual address in the access request;
[0023] The second sending unit is connected to the second table lookup unit and is used to access the integrated circuit bus device according to the access request and the real address obtained by table lookup.
[0024] Preferably, the second table lookup unit comprises: a second integrated circuit bus adapter, and the second integrated circuit bus adapter is connected to the second mapping table.
[0025] A third aspect of the present invention is to provide an address conflict resolution system, comprising:
[0026] A proximal node, the proximal node comprising the proximal serial deserializer as described above, configured to search for a corresponding physical layer port based on the first mapping table upon receiving an access request, and send the access request to the corresponding remote serial deserializer through the physical layer port obtained by the table lookup;
[0027] A remote node, the remote node comprising at least one remote serial deserializer as described above, configured to search for a corresponding real address based on the second mapping table upon receiving an access request sent by the proximal serial deserializer, and access the integrated circuit bus device through the real address.
[0028] A fourth aspect of the present invention is to provide a method for resolving address conflicts, comprising:
[0029] When receiving an access request, the near-end serial deserializer searches for a corresponding physical layer port based on a first mapping table, and sends the access request to the corresponding far-end serial deserializer through the physical layer port obtained by the table lookup; wherein the first mapping table stores a mapping relationship between a virtual address of an integrated circuit bus and a physical layer port;
[0030] When the remote serial deserializer receives an access request sent by the proximal serial deserializer, it searches for the corresponding real address based on the second mapping table and accesses the integrated circuit bus device through the real address; wherein the second mapping table stores the mapping relationship between the virtual address and the real address of the integrated circuit bus.
[0031] The advantages or beneficial effects of the technical solution of the present invention are:
[0032] The present invention solves the problem of integrated circuit bus address conflict in a vehicle-mounted serial deserializer network by using a virtual address and adopting a table lookup method, while simplifying the production process and reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A schematic diagram of a conventional IIC address conflict resolution method based on a non-volatile memory chip in the prior art;
[0034] Figure 2 A schematic diagram of a conventional IIC address conflict resolution method based on power-on configuration in the prior art;
[0035] Figure 3 A structural block diagram of a near-end serial deserializer in a preferred embodiment of the present invention;
[0036] Figure 4 A structural block diagram of a remote serial deserializer in a preferred embodiment of the present invention;
[0037] Figure 5 A structural block diagram of an address conflict resolution system in a preferred embodiment of the present invention;
[0038] Figure 6 This is a flow chart of a method for resolving address conflicts in a preferred embodiment of the present invention;. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.
[0041] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but they are not intended to limit the present invention.
[0042] In vehicle systems, a serializer / deserializer (SERDES), also known as a serializer / deserializer, is an important component for achieving high-speed data transmission. It converts multiple low-speed parallel signals into high-speed serial signals at the transmitting end and restores high-speed serial signals to multiple low-speed parallel signals at the receiving end.
[0043] The present invention aims to solve the IIC communication problem in the vehicle-mounted SERDES network. By using a virtual IIC address method, a mapping table is used at the near end to correspond the IIC bus virtual address with the physical layer (PHY) port; a mapping table is used at the far end to correspond the IIC bus virtual address with the real address, thereby solving the problem of IIC bus address conflict in the vehicle-mounted SERDES network.
[0044] See also Figure 3 In a preferred embodiment of the present invention, based on the above problems existing in the prior art, a near-end serial deserializer 200 is provided, in which a first mapping table 201 is pre-set, and the first mapping table 201 stores a mapping relationship between a virtual address of an integrated circuit bus and a physical layer port;
[0045] The near-end serial deserializer 200 is used to respond to the access request, look up the corresponding physical layer port based on the first mapping table 201, and send the access request to the corresponding far-end serial deserializer through the physical layer port obtained by the table lookup.
[0046] Specifically, in this embodiment, a first mapping table 201 is preset inside the near-end serial deserializer 200, and the mapping table stores the mapping relationship between the virtual address (virtual address) of the IIC bus and the physical layer port (PHY Port). Based on the first mapping table 201, the near-end serial deserializer 200 of the present invention can intelligently identify which specific physical layer port each IIC data packet should be sent through, rather than broadcasting to all PHY ports like a traditional IIC bus.
[0047] Specifically, when the near-end serial deserializer 200 receives an IIC access request, it first parses the virtual address information in the request, and then quickly searches based on the preset first mapping table 201 to determine the physical layer port corresponding to the virtual address. Once the corresponding physical layer port is found, the near-end serial deserializer 200 will accurately send the access request to the target remote serial deserializer through the port, thereby achieving efficient and accurate point-to-point communication.
[0048] By adopting the above solution, the low communication efficiency and bus conflict problems caused by the traditional IIC bus broadcast mechanism can be effectively avoided, and the overall performance and reliability of the vehicle network system can be improved. At the same time, the first mapping table 201 can be flexibly configured and updated according to actual needs, has good scalability and adaptability, and can meet the communication needs of different vehicle network systems.
[0049] As a preferred embodiment, the near-end serial deserializer 200 includes:
[0050] A first receiving unit 202, configured to receive an access request;
[0051] A first table lookup unit 203, connected to the first receiving unit 202, configured to look up a corresponding physical layer port based on the first mapping table 201 according to the virtual address in the access request;
[0052] The first sending unit 204 is connected to the first table lookup unit 203 and is used to send an access request to a corresponding remote serial deserializer through the physical layer port obtained by table lookup.
[0053] As a preferred implementation, the first receiving unit 202 includes: a first integrated circuit bus adapter (IIC adapter), and the first integrated circuit bus adapter includes at least one.
[0054] As a preferred implementation, the first table lookup unit 203 includes: a first router, and the first router is connected to the first mapping table 201 .
[0055] As a preferred implementation, the first sending unit 204 includes a physical layer port: the physical layer port includes at least one physical layer port, and the physical layer port corresponds to the remote serial deserializer one by one.
[0056] Specifically, in this embodiment, the first receiving unit 202 mainly includes a first integrated circuit bus adapter, which is responsible for receiving an IIC access request from a controller, wherein the request includes a virtual address of a target IIC device.
[0057] The controller may be a microcontroller unit (MCU) or a system on chip (SOC) controller.
[0058] The first integrated circuit bus adapter can be configured to include at least one, for example, one, two or more, so as to support access of multiple devices and adapt to different system requirements.
[0059] The first table lookup unit 203 mainly includes a first router. When receiving an access request from the first receiving unit 202 , the first router is used to extract a virtual address from the request and look up a physical layer port corresponding to the address in the first mapping table 201 .
[0060] The first sending unit 204 mainly includes a physical layer port. The physical layer port may include at least one, and each physical layer port corresponds to a specific remote serial deserializer. The physical layer port is the actual communication interface between the near-end serial deserializer 200 and the remote serial deserializer, and is responsible for converting digital signals into physical signals (such as optical signals or electrical signals) for transmission. Once the first table lookup unit 203 finds a match, the first sending unit 204 sends the access request to the corresponding remote serial deserializer through the physical layer port.
[0061] See also Figure 4 The second aspect of the present invention is to provide a remote serial deserializer 300, in which a second mapping table 301 is pre-set, and the second mapping table 301 stores a mapping relationship between a virtual address and a real address of an integrated circuit bus;
[0062] The remote serial deserializer 300 is used to respond to the access request sent from the near-end serial deserializer 200, look up the corresponding real address based on the second mapping table 301, and access the integrated circuit bus device through the real address obtained by the table lookup.
[0063] Specifically, in this embodiment, a second mapping table 301 is preset inside the remote serial deserializer 300, and the mapping table stores the mapping relationship between the virtual address (virtual address) and the real address (Real Address) of the IIC bus. Based on the second mapping table 301, the remote serial deserializer 300 of the present invention can intelligently identify which IIC real address each IIC data packet should be sent through.
[0064] Specifically, when the remote serial deserializer 300 receives an IIC access request sent from the near-end serial deserializer 200, it first parses the virtual address information in the request, and then quickly searches based on the preset second mapping table 301 to determine the real address corresponding to the virtual address. Once the corresponding real address is found, the remote serial deserializer 300 will accurately send the access request to the target IIC device through the real address, communicate with the actual IIC device, and thus achieve remote device access.
[0065] The second mapping table 301 can be flexibly configured and updated according to actual needs, has good scalability and adaptability, and can meet the communication needs of different vehicle network systems.
[0066] As a preferred embodiment, the remote serial deserializer 300 includes:
[0067] The second receiving unit 302 is used to receive an access request sent from the near-end serial deserializer 200;
[0068] A second table lookup unit, connected to the second receiving unit 302, configured to look up a corresponding real address based on the second mapping table 301 according to the virtual address in the access request;
[0069] The second sending unit is connected to the second table lookup unit and is used to access the integrated circuit bus device according to the access request by using the real address obtained by table lookup.
[0070] As a preferred implementation, the second table lookup unit includes: a second integrated circuit bus adapter 304 (IIC adapter), and the second integrated circuit bus adapter 304 is connected to the second mapping table 301 .
[0071] Furthermore, the second receiving unit 302 mainly includes a PHY port. The PHY port is connected to the second IIC adapter via the second router 303. The second sending unit uses the second IIC adapter to communicate with the actual IIC device.
[0072] See also Figure 5 The third aspect of the present invention is to provide an address conflict resolution system, comprising:
[0073] A proximal node, the proximal node comprising the proximal serial deserializer 200 as described above, configured to search for a corresponding physical layer port based on the first mapping table 201 upon receiving an access request, and send the access request to the corresponding remote serial deserializer 300 through the physical layer port obtained by the table lookup;
[0074] The remote node includes at least one remote serial deserializer 300 as described above, which is used to search for the corresponding real address based on the second mapping table 301 when receiving an access request sent by the proximal serial deserializer 200, and access the integrated circuit bus device through the real address.
[0075] Specifically, in this embodiment, when the SOC accesses a remote device, the router in the near-end SERDES first performs a table lookup to obtain the PHY port corresponding to the data according to the access address (virtual address of the IIC device), and then sends the data to the remote node through the corresponding PHY port. When the remote node receives the data, it performs another table lookup to obtain the corresponding real address, and then uses the real address to communicate with the IIC device.
[0076] Compared with the traditional non-volatile memory chip solution, the solution of the present invention adopts a mapping table to solve the IIC address conflict problem, saves the off-chip Flash chip, simplifies the peripheral circuit of the application specific integrated circuit (ASIC) chip, and reduces the bill of materials (BOM) cost of the printed circuit board (PCB).
[0077] Compared with the traditional power on strapping solution, the solution of the present invention adopts a mapping table to solve the IIC address conflict problem. The IIC address can be configured through instructions, which saves the process of burning the configuration information into the off-chip Flash, thereby simplifying the production process and reducing production costs; and it can be flexibly configured and has a wider adaptability.
[0078] Compared with the traditional custom protocol solution, the solution of the present invention adopts a mapping table to solve the IIC address conflict problem without adding additional protocol fields.
[0079] See also Figure 6 The fourth aspect of the present invention is to provide a method for resolving address conflicts, including:
[0080] S100, when receiving an access request, the near-end serial deserializer 200 searches for a corresponding physical layer port based on the first mapping table 201, and sends the access request to the corresponding far-end serial deserializer 300 through the physical layer port obtained by the table search; wherein the first mapping table 201 stores a mapping relationship between a virtual address of an integrated circuit bus and a physical layer port;
[0081] S200, when the remote serial deserializer 300 receives the access request sent by the proximal serial deserializer 200, it searches for the corresponding real address based on the second mapping table 301, and accesses the integrated circuit bus device through the real address; wherein the second mapping table 301 stores the mapping relationship between the virtual address and the real address of the integrated circuit bus.
[0082] Specifically, in the chip design phase, the remote node and the proximal node will be assigned default access addresses. When the system is initialized, the entries in the second mapping table 301 in the remote SerDes are first configured with the default address, and then the entries in the first mapping table 201 in the proximal SerDes are configured with the default address.
[0083] When the SOC accesses the register of the remote device, the router in the near-end SerDes searches the corresponding PHY port address in the first mapping table 201 according to the access address (virtual address of the target IIC device) to obtain the corresponding PHY port. The near-end node sends the IIC data message to the remote node through the corresponding PHY port.
[0084] After receiving the IIC data message, the remote node will parse the data packet and extract the virtual address of the target IIC device from the message; then, the second IIC adapter searches the second mapping table 301 to obtain the corresponding real address; then, the real address is sent to the target IIC device instead of the virtual address.
[0085] The advantages or beneficial effects of adopting the above technical solution are: the present invention solves the problem of integrated circuit bus address conflicts in the vehicle-mounted serial deserializer network by using virtual addresses and a table lookup method, while simplifying the production process and reducing costs.
[0086] The above are only preferred embodiments of the present invention, and are not intended to limit the implementation methods and protection scope of the present invention. Those skilled in the art should be aware that all solutions obtained by equivalent substitutions and obvious changes made using the contents of this specification and illustrations should be included in the protection scope of the present invention.
Claims
1. A near-end serial deserializer, characterized in that: The near-end serial deserializer is pre-installed with a first mapping table, wherein the first mapping table stores a mapping relationship between a virtual address of an integrated circuit bus and a physical layer port; The near-end serial deserializer is used to respond to an access request, search for a corresponding physical layer port based on the first mapping table, and send the access request to the corresponding far-end serial deserializer through the physical layer port obtained by the table lookup.
2. The near-end serial deserializer according to claim 1, characterized in that: The near-end serial deserializer comprises: A first receiving unit, configured to receive an access request; A first table lookup unit, connected to the first receiving unit, configured to look up a corresponding physical layer port based on the first mapping table according to the virtual address in the access request; A first sending unit is connected to the first table lookup unit and is used to send the access request to the corresponding remote serial deserializer through the physical layer port obtained by table lookup.
3. The proximal serial deserializer according to claim 2, characterized in that: The first receiving unit includes: a first integrated circuit bus adapter, and the first integrated circuit bus adapter includes at least one.
4. The proximal serial deserializer according to claim 2, characterized in that: The first table lookup unit includes: a first router, and the first router is connected to the first mapping table.
5. The proximal serial deserializer according to claim 2, characterized in that: The first sending unit includes a physical layer port: the physical layer port includes at least one physical layer port, and the physical layer port corresponds to the remote serial deserializer in a one-to-one manner.
6. A remote serial deserializer, characterized in that: A second mapping table is preset in the remote serial deserializer, and the second mapping table stores a mapping relationship between a virtual address and a real address of the integrated circuit bus; The remote serial deserializer is used to respond to an access request sent from the near-end serial deserializer, look up the corresponding real address based on the second mapping table, and access the integrated circuit bus device through the real address obtained by looking up the table.
7. The remote serial deserializer according to claim 6, characterized in that: The remote serial deserializer comprises: A second receiving unit, configured to receive an access request sent from a near-end serial deserializer; A second table lookup unit, connected to the second receiving unit, configured to look up a corresponding real address based on the second mapping table according to the virtual address in the access request; The second sending unit is connected to the second table lookup unit and is used to access the integrated circuit bus device according to the access request and the real address obtained by table lookup.
8. The remote serial deserializer according to claim 7, characterized in that: The second table lookup unit includes: a second integrated circuit bus adapter, and the second integrated circuit bus adapter is connected to the second mapping table.
9. An address conflict resolution system, characterized in that: include: A proximal node, the proximal node comprising a proximal serial deserializer according to any one of claims 1 to 5, configured to, upon receiving an access request, search for a corresponding physical layer port based on the first mapping table, and send the access request to a corresponding remote serial deserializer through the physical layer port obtained by the table lookup; A remote node, the remote node comprising at least one remote serial deserializer as described in any one of claims 6 to 8, configured to search for a corresponding real address based on the second mapping table upon receiving an access request sent by the proximal serial deserializer, and access the integrated circuit bus device through the real address.
10. A method for resolving an address conflict, characterized in that: include: When receiving an access request, the near-end serial deserializer searches for a corresponding physical layer port based on a first mapping table, and sends the access request to the corresponding far-end serial deserializer through the physical layer port obtained by the table lookup; wherein the first mapping table stores a mapping relationship between a virtual address of an integrated circuit bus and a physical layer port; When the remote serial deserializer receives an access request sent by the proximal serial deserializer, it searches for the corresponding real address based on the second mapping table and accesses the integrated circuit bus device through the real address; wherein the second mapping table stores the mapping relationship between the virtual address and the real address of the integrated circuit bus.
Citation Information
Cited By
Data transmission device and method and electronic equipment
CN121000695A
