Patent information
IP India · live recordAbstract
TITLE OF INVENTION: DEBUG CONTROLLER CIRCUIT A system (100) for debugging a peripheral is disclosed. The system (100) includes an ethernet port (140), an external debug port (150), and a routing unit (120). The ethernet port (140) communicates with a plurality of peripherals (P1-Pn) mounted on a PCB (110). The external debug port (150) is configured to communicate with a faulty peripheral. The routing unit (120) is communicatively coupled with the plurality of peripherals (P1-Pn) and a SoC (130). The routing unit (120) includes a decoder unit (121) and a plurality of selection and communication units. The decoder unit (121) includes an enable input pin, select pins, and output pins. Each selection unit (123) comprises at least one MUX and one DEMUX, coupled to respective decoder outputs. Communication units (122) include a transmitter and a receiver for data exchange with the SoC (130). During normal operation, communication paths are maintained, while faulty peripherals are rerouted via the external debug port (150) without disruption. Fig. 1
Applicants
1Inventors
2Specification
Show full textCollapse
Description:FORM 2 THE PATENTS ACT, 1970 (39 of 1970) & THE PATENTS RULES, 2003 COMPLETE SPECIFICATION (Section 10 and Rule 13)
1. TITLE OF THE INVENTION: DEBUG CONTROLLER CIRCUIT 2. APPLICANT: Name : Optimized Electrotech Private Limited Nationality : Indian Address : 310, ATMA House, B Block, Ashram Road, Ahmedabad- 380009, Gujarat, India
3. PREAMBLE TO THE DESCRIPTION The following specification particularly describes the invention and the manner in which it is to be performed:
FIELD OF INVENTION
[001] The present disclosure relates to a debugging system. More specifically, the present disclosure relates to a selectable peripheral bypass for debugging a faulty peripheral without disrupting the normal operation of a system. BACKGROUND OF INVENTION
[002] Conventional, intelligent embedded systems rely on sophisticated on-board processing units that interface with a diverse array of sensors and peripherals, like day and night cameras, Digital Magnetic Compasses (DMC), Global Positioning Systems (GPS), and Laser Range Finders (LRF). A peripheral in an Electro-Optical (EO) system exposes its own dedicated debug or service interface, such as individual Universal Asynchronous Receiver-Transmitter (UART) headers, separate USB connectors, or vendor-specific debug ports. This decentralized approach leads to increased board space requirements, complex PCB routing, and higher Bill of Materials (BOM) costs.
[003] Conventional point-to-point communication interfaces are designed for exclusive, one-to-one connectivity, which prevents a peripheral from simultaneously communicating with a host system and an external diagnostic tool on the same channel. Without hardware isolation or sophisticated arbitration, attempting to bridge causes signal contention and data corruption. This creates a fundamental technical barrier to debug the system, the primary communication path must be physically or logically broken to attach external tools. Consequently, conventional architectures lack a real-time monitoring system without concurrently disrupting the functional state undergoing analysis.
[004] In conventional systems, debugging often relies on the host processor, which restricts access to essential Original Equipment Manufacturer (OEM) software tools by blocking direct hardware communication. Alternatively, external setups may be used that require physical disconnection of peripherals, leading to higher costs, increased downtime, and a risk of hardware damage.
[005] Thus, there arises a need for a communication architecture that enables debugging of peripherals seamlessly without requiring physical disconnection of the peripherals. OBJECTS OF INVENTION
[006] The principal object of this invention is to enable testing and diagnosis of a faulty peripheral without requiring its physical disconnection from the system, thereby eliminating operational downtime and the risk of hardware damage.
[007] Another object of this invention is to selectively isolate a specific faulty peripheral and redirect it to an external debug port, while allowing all other peripherals to continue communicating normally with the System-on-Chip (SoC) without any interruption.
[008] A further object of this invention is dynamically switching a peripheral's communication path between the host system and an external debugging device based on a simple logic signal. SUMMARY OF INVENTION
[009] The present invention relates to a peripheral debugging system. The peripheral debugging system includes an ethernet port, an external debug port, and a routing unit. The ethernet port is communicating with a plurality of peripherals (P1-Pn) and is mounted on a PCB. The external debug port is configured to communicate with a faulty peripheral. The routing unit is communicatively coupled with the plurality of peripherals (P1-Pn) and a SOC. The routing unit includes a decoder unit, a plurality of selection units and a plurality of communication units. The decoder unit includes an enable input pin, a plurality of select pins, and a plurality of output pins. The plurality of selection units, each selection unit comprising at least one MUX and one DEMUX, the selection unit coupled to a respective output pin of the decoder unit. The plurality of communication units coupled with the plurality of peripherals (P1-Pn), wherein each communication unit is coupled to a respective peripheral, each communication unit includes a transmitter and a receiver for data communication between the SOC and the respective peripheral. If the plurality of peripherals (P1-Pn) are in a working condition, the selection unit maintains communication paths between the SoC and the working peripherals, and for a faulty peripheral, the selection unit maintains an alternate communication path between the external debug port and the faulty peripheral, thereby ensuring the communication paths of working peripherals are undisturbed.
[0010] The foregoing features and other features as well as the advantages of the invention will become more apparent from the following detailed description, which proceeds with reference to the accompanying figures. BRIEF DESCRIPTION OF DRAWINGS
[0011] The summary above, as well as the following detailed description of illustrative embodiments, is better understood when read in conjunction with the apportioned drawings. For the purpose of illustrating the present disclosure, exemplary constructions of the disclosure are shown in the drawings. However, the disclosure is not limited to specific methods and instrumentalities disclosed herein. Moreover, those in the art will understand that the drawings are not to scale.
[0012] Fig. 1 depicts a system 100 for debugging a peripheral, in accordance with an embodiment of the present invention.
[0013] Fig. 2 depicts a block diagram of the routing unit 120, in accordance with an embodiment of the present invention.
[0014] Fig. 2a depicts an exemplary block diagram of the routing unit 120 when the plurality of peripherals (P1-Pn) doesn’t need debugging, in accordance with an embodiment of the present invention.
[0015] Fig. 2b depicts an exemplary block diagram of the routing unit 120 when the peripheral (P1) is the faulty and need debugging while remaining peripherals are properly functional, in accordance with an embodiment of the present invention.
[0016] Fig. 3a depicts a circuit block diagram of the routing unit 120 when all the peripherals are working, in accordance with an embodiment of the present invention.
[0017] Fig. 3b depicts a circuit block diagram of the routing unit 120 when the other peripherals are working except for peripheral (P1), in accordance with an embodiment of the present invention.
[0018] Fig. 3c depicts a circuit block diagram of the routing unit 120 when the other peripherals are working except for peripheral (P2), in accordance with an embodiment of the present invention. DETAILED DESCRIPTION OF THE ACCOMPANYING DRAWINGS
[0019] Prior to describing the invention in detail, definitions of certain words or phrases used throughout this patent document will be defined: the terms "include" and "comprise", as well as derivatives thereof, mean inclusion without limitation; the term "or" is inclusive, meaning and/or; the phrases "coupled with" and "associated therewith", as well as derivatives thereof, may mean to include, be included within, interconnect with, contain, be contained within, connect to or with, couple to or with, be communicable with, cooperate with, interleave, juxtapose, be proximate to, be bound to or with, have a property of, or the like; Definitions of certain words and phrases are provided throughout this patent document, and those of ordinary skill in the art will understand that such definitions apply in many, if not most, instances to prior as well as future uses of such defined words and phrases.
[0020] Reference throughout this specification to “one embodiment,” “an embodiment,” or similar language means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment. Thus, appearances of the phrases “in one embodiment,” “in an embodiment,” and similar language throughout this specification may, but do not necessarily, all refer to the same embodiment, but mean “one or more but not all embodiments” unless expressly specified otherwise. The terms “including,” “comprising,” “having,” and variations thereof mean “including but not limited to” unless expressly specified otherwise. An enumerated listing of items does not imply that any or all of the items are mutually exclusive and/or mutually inclusive, unless expressly specified otherwise. The terms “a,” “an,” and “the” also refer to “one or more” unless expressly specified otherwise.
[0021] Although the operations of exemplary embodiments of the disclosed method may be described in a particular, sequential order for convenient presentation, it should be understood that the disclosed embodiments can encompass an order of operations other than the particular, sequential order disclosed. For example, operations described sequentially may in some cases be rearranged or performed concurrently. Further, descriptions and disclosures provided in association with one particular embodiment are not limited to that embodiment, and may be applied to any embodiment disclosed herein. Moreover, for the sake of simplicity, the attached figures may not show the various ways in which the disclosed system, method, and apparatus can be used in combination with other systems, methods, and apparatuses.
[0022] Furthermore, the described features, advantages, and characteristics of the embodiments may be combined in any suitable manner. One skilled in the relevant art will recognize that the embodiments may be practiced without one or more of the specific features or advantages of a particular embodiment. In other instances, additional features and advantages may be recognized in certain embodiments that may not be present in all embodiments. These features and advantages of the embodiments will become more fully apparent from the following description and apportioned claims, or may be learned by the practice of embodiments as set forth hereinafter.
[0023] Various modules/units/methods described herein may be practiced by combining one or more machine-readable storage media containing the code according to the present invention with appropriate standard computer hardware to execute the code contained therein. An apparatus for practicing various embodiments of the present invention may involve one or more computers (or one or more processors within a single computer) and storage systems containing or having network access to computer program(s) coded in accordance with various methods described herein, and the method steps of the invention could be accomplished by modules, routines, subroutines, or subparts of a computer program.
[0024] The system creates a direct connection between an external testing tool and the internal parts of a device, without disturbing the main operating system. It allows manufacturers to run their own diagnostic and setup tools directly on the hardware, free from interference by the host system's software layers. As a result, the parts work in their natural state, without any software delays or communication errors, making the testing process faster and more accurate.
[0025] The system disconnects one specific part from the main chip and redirects it to an external port for testing, while all other parts continue working normally. This means a single component can be troubleshooted without shutting down or resetting the entire system. The switching is controlled by external signals, so changes can be made instantly and on demand, without opening the device or modifying any internal hardware, making the system highly flexible across different products and applications.
[0026] The present invention allows users to check and set up parts connected to a computer or device without taking it apart. Since there's no need to physically unplug or remove any hardware, it lowers the chances of damage from static electricity or broken connections, and keeps the system running without any interruption. This approach makes sure the hardware stays safe and undamaged during the entire testing and diagnostic process.
[0027] The system uses a layered switching structure to quickly route signals between the internal system and external testing ports. This design supports different types of peripheral interfaces regardless of the communication standard they use. By removing the need for complex internal software drivers, it simplifies the overall debugging and setup process and significantly reduces the time and manual effort needed for maintenance in large or complex computing environments.
[0028] This invention also helps hardware last longer by eliminating the need for repeated physical plugging and unplugging of internal connectors, which reduces mechanical wear over time. It is especially suited for industries like aerospace or manufacturing, etc., where equipment must stay reliable for extended periods.
[0029] Fig. 1 depicts a system 100 for debugging a peripheral, in accordance with an embodiment of the present invention. The system 100 can be used to debug peripherals, switching peripherals, broadcasting data, etc. In an embodiment, the system 100 is configured to debug the peripherals. In an embodiment, the system 100 is capable of debugging multiple faulty peripherals in a predefined sequence, say one at a time. The system 100 can be used in robotic systems, aerospace equipment, Electro-Optical (EO) systems, medical imaging devices, embedded servers, and automation equipment, etc. In an embodiment, the system 100 includes a plurality of peripherals (P1-Pn), a Printed Circuit Board (PCB) 110, an ethernet port 140, and an external debug port 150.
[0030] The plurality of peripherals (P1-Pn) include one or more of a camera, a Laser Range Finder (LRF), a gimbal control, an Attitude and Heading Reference System (AHRS), and a Global Positioning System (GPS), etc. In an embodiment, the plurality of peripherals (P1-Pn) are electrically coupled with respective ports provided with the PCB 110.
[0031] In an embodiment, the PCB 110 includes a plurality of ports configured to couple with plurality of peripherals (P1-Pn). The ports may include, but not limited to, serial and parallel communication protocols for example a Universal Asynchronous Receiver-Transmitter (UART) port, a Serial Peripheral Interface (SPI), an Inter-Integrated Circuit (I2C) port, RS-422, RS-485, etc. In an embodiment, the plurality of peripherals (P1-Pn) is coupled with the PCB 110 through respective Universal Asynchronous Receiver-Transmitter (UART) ports.
[0032] In an embodiment, the PCB 110 includes a routing unit 120 and a System on Chip (SoC) 130. The routing unit 120 is operably interposed between a plurality of peripherals (P1-Pn) and the SoC 130, such that communication signals from said plurality of peripherals (P1-Pn) are routed through the routing unit 120 before reaching the SoC 130.
[0033] In an embodiment, the routing unit 120 is mounted on the PCB 110. The mounting can be via a Surface-Mount Technology (SMT), a Through-Hole Technology (THT), etc. In an embodiment, the routing unit 120 is mounted using SMT on the PCB 110.
[0034] In an embodiment, the routing unit 120 is communicatively coupled with the plurality of peripherals (P1-Pn) and the SoC 130. The routing unit 120 can be a Field Programming Gate Array (FPGA), an Application-Specific Integrated Circuit (ASIC), a Complex Programmable Logic Device (CPLD), etc. In an embodiment, the routing unit 120 is an FPGA chip.
[0035] In an embodiment, the routing unit 120 is arranged as an inline routing architecture, providing a managed signal path between the plurality of peripherals (P1-Pn) and the SoC 130. This configuration allows the routing unit 120 to act as a transparent bridge, facilitating communication between the plurality of peripherals (P1-Pn) and the SoC 130 while simultaneously providing an access point for an external debug port 150.
[0036] In an embodiment, the SoC 130 is mounted on the PCB 110. The mounting can be Surface-Mount Technology (SMT), Through-Hole Technology (THT), etc. In an embodiment, the SoC 130 is mounted using SMT on the PCB 110.
[0037] In an embodiment, the SoC 130 includes a Central Processing Unit (CPU) (not shown). The SoC 130 serves as the primary processing intelligence of the PCB 110. In an embodiment, the SoC 130 is configured as the centralized host controller of the system 100. In an embodiment, the SoC 130 is communicatively interfaced with the routing unit 120 to monitor the operational states of the plurality of peripherals (P1-Pn).
[0038] In an embodiment, the SoC 130 includes a monitoring architecture capable of executing a plurality of detection techniques. In an embodiment, the plurality of detection techniques includes Interrupt Requests (IRQ), Peripheral Status Registers (SFRs), and/or Built-In Self-Tests (BIST). In an embodiment, the plurality of detection techniques determines whether each peripheral is in a working condition or a faulty condition requiring diagnostic intervention (like debugging). In an embodiment, the working condition of a peripheral device is defined as a state in which the peripheral device maintains consistent bidirectional data communication with the SoC 130, establishing a stable communication link. In an embodiment, the faulty condition of a peripheral device is defined as a state in which the peripheral device does not maintain consistent bidirectional data communication with the SoC 130. Alternately, the information related to the working condition or faulty condition of a peripheral device may be manually provided by a user.
[0039] The ethernet port 140 can be electrically coupled with the PCB 110 or mounted on the PCB 110. In an embodiment, the ethernet port 140 is mounted on the PCB 110. The mounting can be Surface-Mount Technology (SMT), Through-Hole Technology (THT), etc. In an embodiment, the ethernet port 140 is mounted using SMT on the PCB 110. In an embodiment the ethernet port 140 is configured to communicate with the plurality of peripherals (P1-Pn).
[0040] The ethernet port 140 can be a RJ45 port, a Small Form-factor Pluggable (SFP) slot, a Quad Small Form-factor Pluggable (QSFP)/QSFP28, a M12 port, etc. In an embodiment, the ethernet port 140 is RJ45 port. In an embodiment, the ethernet port 140 is configured for dual purposes, providing both regulated power and high-speed data signals to the system 100. In an embodiment, this consolidated port architecture reduces board space and/or simplifies the Bill of Materials (BOM), for example, in compact electro-optical platforms like UAVs or naval vessels, etc.
[0041] In an embodiment, the external debug port 150 is configured to be operably coupled with an external debugging device (not shown), such as a protocol analyzer, a terminal emulator etc. In an embodiment, the external debug port 150 is physically and electrically coupled to the PCB 110. In an embodiment the external debug port 150 is communicating with a faulty peripheral.
[0042] The external debug port 150 may be integrated using any suitable electronic assembly method, including but not limited to Surface-Mount Technology (SMT), Through-Hole Technology (THT), or a combination thereof, etc. In an embodiment, the external debug port 150 is mounted using SMT on the PCB 110. In an embodiment, the external debug port 150 includes an external debug receiving port 150a and a debug transmitting port 150b.
[0043] The external debug port 150 can be a UART, a Universal Serial Bus (USB), etc. In an embodiment, the external debug port 150 is a UART port. In an embodiment, the external debug port 150 is physically and electrically coupled to the PCB 110. In an embodiment, the external debug port 150 is configured to electrically couple an external debugging device to the PCB 110, thereby establishing a conductive path for signal exchange. In an embodiment, the external debugging device is configured to debug any of the plurality of peripherals (P1-Pn) that require debugging, electrically coupled with the PCB 110.
[0044] Fig. 2 depicts a block diagram of the routing unit 120, in accordance with an embodiment of the present invention. In an embodiment, the routing unit 120 includes a communication unit 122, a selection unit 123, and a decoder unit 121.
[0045] In an embodiment, the routing unit 120 is configured to operate in a first functional mode and a second functional mode. The routing unit 120 operates in the first functional mode when an enable input pin 121a of the decoder unit 121 is at a logic low and operates in the second functional mode, where the enable input pin 121a of the decoder unit 121 is at a logic high. In the first functional mode, the routing unit 120 is configured to electrically couple the SoC 130 with the plurality of peripherals (P1-Pn). The first functional mode corresponds to an operational state of the system 100, wherein the plurality of peripherals (P1-Pn) is in an active working condition. In this state, the routing unit 120 facilitates direct, bidirectional communication between the SoC 130 and the plurality of peripherals (P1-Pn), serving as a transparent signal path that allows the SoC 130 to exchange data and commands with each peripheral in real-time.
[0046] In another embodiment, the routing unit 120 is configured to operate in a second functional mode, or diagnostic mode, wherein it electrically couples the external debug port 150 with a selected faulty peripheral from the plurality of peripherals (P1-Pn). In this mode, the routing unit 120 identifies a specific peripheral being in a faulty condition thus, requiring diagnostic analysis and establishes a dedicated communication link between said peripheral and the external debug port 150. This targeted coupling facilitates the exchange of diagnostic data and command sequences between the external debugging device and the selected peripheral, while the routing unit 120 ensures that the signal integrity of the remaining peripherals and the SoC 130 is maintained without interference.
[0047] In an embodiment, the plurality of communication unit 122 is coupled with the plurality of peripherals (P1-Pn). In another embodiment, each communication unit 122 is coupled to the respective peripheral. In an embodiment, the communication unit 122 includes plurality of communication unit (122a-122n). In an embodiment, the communication unit 122a handles a transmission signal pin 124a1 and a reception signal pin 126b1. In an embodiment, the communication unit 122 is bidirectionally coupled with the selection unit 123. In an embodiment, the communication unit 122 is configured to receive and transmit data from/to the SoC 130. In another embodiment, the communication unit 122 is configured to receive and transmit data from/to the peripheral (not shown) through the selection unit 123. In an embodiment, each of the communication unit 122 includes a transmitter and a receiver for data communication between the SoC 130 and the respective peripheral.
[0048] In an embodiment, the number of communication units (122b-122n) corresponds to the number of peripherals (P2-Pn) (as shown in Fig. 3a). In an embodiment, each plurality of peripheral (P1-Pn) is coupled to a respective communication unit (122a-122n).
[0049] In an embodiment, the selection unit 123 is configured to switch between a first state and a second state to facilitate the operational modes of the system 100. The first state of the selection unit 123 corresponds to the first functional mode of the routing unit 120. In this first state, the selection unit 123 establishes an exclusive bidirectional coupling between the plurality of peripherals (P1-Pn) and their corresponding communication units 122. In an embodiment, the selection unit 123 enables uninterrupted, real-time data exchange between the SoC 130 and the peripherals. By transitioning to this first state, the selection unit 123 ensures that the external debug port 150 is electrically isolated from the peripheral signal paths, thereby preserving the native timing and logic protocols of the system 100.
[0050] In an embodiment, the second state of the selection unit 123 corresponds to the second functional mode of the routing unit 120. In this second state, the selection unit 123 establishes a bidirectional coupling between a target peripheral selected from the plurality of peripherals (P1-Pn) and the external debug port 150. In an embodiment, the target peripheral is a faulty peripheral. This selective switching mechanism effectively redirects the target peripheral towards the external debug port 150, enabling an external debugging device to intercept, monitor, or inject data into the peripheral's data stream. Simultaneously, the selection unit 123 executes real-time signal arbitration to maintain bus stability within the system 100, ensuring that the diagnostic connection to the target peripheral does not induce electrical noise or logic errors on the remaining active signal paths.
[0051] In an embodiment, when the selection unit 123 is in the second state, it maintains bidirectional coupling between the remaining peripherals (those not selected for debugging) and their respective communication units 122. Consequently, while a target peripheral is interfaced with the external debug port 150, the other peripherals within the plurality of peripherals (P1-Pn) continue to communicate normally with the SoC 130. This concurrent operational capability ensures that the system 100 remains partially or fully functional during diagnostic procedures, allowing for real-time debugging of the target peripheral without interrupting the primary processing tasks of the SoC 130. In an embodiment, the plurality of selection units 123 includes a 2:1 multiplexer and a 1:2 demultiplexer, the select pin of the 2:1 multiplexer and the select pin of the 1:2 demultiplexer being commonly coupled to a respective output pin of the decoder unit 121 and simultaneously controlled by a single shared logic signal.
[0052] In an embodiment, the selection unit 123 includes plurality of selection unit (123a-123n). The selection unit 123 includes at least one of a MUX, a DEMUX, a decoder, a MCP23S17 IC, a PCF8574 IC, a shift register, a crossbar switch architecture, a bidirectional routing and a Software- controlled General Purpose Input/Output (GPIO) Routing, etc. In an embodiment, the plurality of selection unit 123 includes at least one MUX and one DEMUX. In an embodiment, the selection unit 123a includes a MUX 125a1 and a DEMUX 127b1 (shown in Fig. 3). In an embodiment, the MUX 125a1 is a 2:1 MUX. In an embodiment, the DEMUX 127b1 is a 1:2 DEMUX.
[0053] In an embodiment, the MUX 125a1 includes a first input terminal, a second input terminal, a common output terminal and a selection input (select pin). It is understood that the MUX 125a1 operates as a conventional 2:1 multiplexer, configured to select one of two input signals for transmission to a common output path based on a selection signal. In an embodiment, the selection unit 123 is coupled to a respective output pin of the decoder unit 121 (explain below). The 2:1 multiplexer comprises a first input terminal electrically coupled to an external debug transmitting port 150b, a second input terminal electrically coupled to a transmission signal of the respective communication unit 122, and a common output terminal electrically coupled to a receiver port of a respective peripheral.
[0054] In an embodiment, the first input terminal of the MUX 125a1 is electrically coupled with the external debug transmitting port 150b and the second input terminal of the MUX 125a1 is electrically coupled with the transmission signal pin 124a1. In an embodiment, the output terminal of the MUX 125a1 is electrically coupled to the peripheral receiver (P1Rx). In an embodiment, the select pin of the MUX 125a1 is electrically coupled with one of the output lines (O1) of the decoder unit 121.
[0055] In an embodiment, the DEMUX 127b1 includes an input terminal, a first output terminal, a second output terminal and a selection input (select pin). It is understood that the DEMUX 127b1 operates as a conventional 1:2 demultiplexer, configured to route a signal from the single input terminal to one of the two alternative output terminals based on a selection signal received at the selection input. The 1:2 demultiplexer includes an input terminal electrically coupled to a transmitter port of a respective peripheral, a first output terminal electrically coupled to the external debug receiving port 150a, and a second output terminal electrically coupled to a reception signal of the respective communication unit 122. In an embodiment, the input terminal of the DEMUX 127b1 is electrically coupled to the transmitter peripheral (P1TTx). In another embodiment, the first output terminal of the DEMUX 127b1 is electrically coupled with the external debug receiving port 150a, and the second input terminal of the DEMUX 127b1 is electrically coupled with the reception signal pin 126b1. In an embodiment, the select pin of the DEMUX 127b1 is electrically coupled with the same output line (O1) of the decoder unit 121.
[0056] In another embodiment, the plurality of peripherals (P1-Pn) is equal to the number of selection units (123a…123n).
[0057] In an embodiment, the decoder unit 121 is configured to provide input to the select pin of the selection unit 123. The decoder unit 121 can be a Demultiplexer (DEMUX), a decoder, a shift register etc. The decoder unit 121 includes an enable input pin 121a, a plurality of select pins and a plurality of output pins.
[0058] In an exemplary embodiment, the decoder unit 121 is a 3:8 decoder. For example, the 3:8 decoder signifies that there are 3 (three) select lines (S1, S2, S3), 8 (eight) output lines (O1-O8), and 1 (one) enable input pin 121a. In an embodiment, the decoder ratio depends upon the number of peripherals electrically coupled with the system 100. In an embodiment, the enable input pin 121a is configured to generate the plurality of signals. The plurality of signals can be an enable signal or a disable signal. In an embodiment, the decoder unit 121 is scalable in proportion to the number of peripherals coupled to the PCB 110.
[0059] In an embodiment, the decoder unit 121 is configured to operate in a plurality of modes. The plurality of modes can be the first functional mode and the second functional mode. In an embodiment, the first functional mode and the second functional mode are coordinated with the operational modes of the selection unit 123 of the routing unit 120. In the first functional mode, the decoder unit 121 sends a control signal to maintain a direct communication path between the SoC 130 and the plurality of peripherals (P1-Pn). In the first functional mode, the enable input pin 121a of the decoder unit 121 remains disabled, and the communication unit 122 remains bidirectionally coupled with the respective peripheral through the selection unit 123.
[0060] In an exemplary embodiment, the output pin (O1) of the decoder unit 121 serves as the primary control interface between the decoder unit 121 and the selection unit 123. During the first functional mode, the MUX 125a1 and the DEMUX 127b1 are configured to be controlled by a single, shared logic signal provided by the output pin (O1). In an embodiment, the shared logic signal is a bit (i.e. ‘1’ for enabling and ‘0’ for disabling)
[0061] In an embodiment, when the enable input pin 121a of the decoder unit 121 remains disabled, the output pin (O1) provides a logic bit ‘0’ to the selection inputs of both the MUX 125a1 and the DEMUX 127b1 simultaneously. In response to this signal, the MUX 125a1 enables the path for the transmission signal pin 124a1 while the DEMUX 127b1 concurrently enables the path for the reception signal pin 126b1. This synchronized operation establishes a full-duplex communication link between the SoC 130 and the peripheral (P1), ensuring the transmit and receive channels remain aligned during the operational state.
[0062] In an embodiment, the selection unit 123 is configured to selectively enable the transmission signal pin 124a1 of the MUX 125a1. Upon enablement of the transmission signal pin 124a1, the MUX 125a1 facilitates transmission of data from the SoC 130 to the peripheral receiver (P1Rx) of the peripheral (P1).
[0063] In an embodiment, the selection unit 123 is configured to enable a reception signal pin 126b1 of a DEMUX 127b1. Responsive to the enablement of the reception signal pin 126b1, the SoC 130 is configured to receive data from the peripheral transmitter (P1Tx) of the peripheral (P1) via the DEMUX 127b1.
[0064] In an embodiment, the MUX 125a1 and the DEMUX 127b1 can enable the transmission signal pin 124a1 and the reception signal pin 126b1 simultaneously with a single logic bit. For example, it could be a ‘0’ or ‘1’ bit. In an exemplary embodiment, in the first functional mode, the MUX 125a1 and the DEMUX 127b1 enable the transmission signal pin 124a1 and the reception signal pin 126b1 simultaneously with a single logic bit ‘0’ of the output pin (O1) from the decoder unit 121.
[0065] In an exemplary embodiment, the output pin (O1) of the decoder unit 121 serves as the primary control interface between the decoder unit 121 and the selection unit 123. During the first functional mode, the MUX 125a1 and the DEMUX 127b1 are configured to be controlled by a single, shared logic signal provided by the output pin (O1). In an embodiment, a first logic state (e.g., logic bit ‘0’) is applied to the selection inputs (select pin) of both the MUX 125a1 and the DEMUX 127b1 simultaneously. In response to this signal, the MUX 125a1 enables the path for the transmission signal pin 124a1 while the DEMUX 127b1 concurrently enables the path for the reception signal pin 126b1. This synchronized operation establishes a full-duplex communication link between the SoC 130 and the peripheral (P1), ensuring the transmit and receive channels remain aligned during the operational state.
[0066] In an embodiment, during the second functional mode, the enable input pin 121a of the decoder unit 121 is asserted (set to an enabled state), causing the communication unit 122 to be isolated from the respective peripheral, which is faulty (or needs debugging). Consequently, the external debug port 150 is bidirectionally coupled with said peripheral via the selection unit 123.
[0067] When the decoder unit 121 operates in the second functional mode, it receives an input bit at its select pins (S1-Sn) to activate a corresponding output pin (O1, O2…On). In an exemplary embodiment, the decoder unit 121 performs the functional logic of a 3:8 decoder. For example, to enable the first output pin (O1), a combination of logic states is applied to the select pins (S1, S2, S3). In a standard 3:8 decoder configuration, applying a binary '0,0,0' to the select pins S3, S2 and S1, respectively, results in the assertion of the first output terminal O1, thereby triggering the selection unit 123 to route the diagnostic signals for the first peripheral.
[0068] In an exemplary embodiment, during the second functional mode, the selection unit 123 receives a logic ‘1’ bit (representing an asserted or enabled state) as an input from the first output terminal O1 of the decoder unit 121. This logic state at O1 designates that the first peripheral P1 requires debugging.
[0069] In response to receiving logic '1' from O1, the selection unit 123 reconfigures its internal routing to enable the external debug receiving port 150a and the debug transmitting port 150b. This establishes a dedicated diagnostic link specifically for first peripheral P1, allowing bidirectional data flow between the external debug port 150 and first peripheral P1 while the communication path to the SoC 130 remains isolated.
[0070] In another embodiment, the selection unit 123 is configured to selectively enable the debug transmitting port 150b. Upon selection of the debug transmitting port 150b, the MUX 125a1 facilitates the transmission of data from the external debug port 150 to at least the first peripheral P1. This configuration allows an external debugging tool to inject control signals or diagnostic data directly into the target peripheral via the MUX 125a1 while the peripheral is in the diagnostic state.
[0071] In another embodiment, the selection unit 123 is configured to enable external debug receiving port 150a of the DEMUX 127b1. Responsive to the enablement of the external debug receiving port 150a, the external debug port 150 is configured to receive data from at least one first peripheral P1 via the DEMUX 127b1. This completes the bidirectional diagnostic loop, allowing the external debug port 150 to monitor real-time output or status signals from the peripheral P1 during the diagnostic session.
[0072] While the description above is provided considering peripheral P1 as being faulty, the teachings apply to communication paths to be established in case other peripheral becomes faulty.
[0073] In an embodiment, the SoC 130 is configured to determine the operational status of the plurality of peripherals (P1-Pn) using a plurality of detection techniques. These detection techniques may include, but are not limited to, Interrupt Request (IRQ), Peripheral Status Registers (SFRs), Built-In Self-Test (BIST), and a Status Register Read, etc.
[0074] In an embodiment, the result of the detection technique used by the SoC 130 dictates the operational state of the routing unit 120. In an embodiment, if the detection techniques indicate normal peripheral operation, the system 100 remains in a first functional mode to maintain data communication. However, upon detecting a fault or a requirement for diagnostic analysis via one of said techniques, the system 100 transitions to a second functional mode. In this second functional mode, the decoder unit 121 is triggered to reconfigure the selection unit 123, thereby isolating the affected peripheral from the SoC 130 and establishing a bidirectional link with the external debug port 150.
[0075] In an embodiment, when the SoC 130 determines that the plurality of peripherals (P1-Pn) are in working condition, as illustrated in Fig. 2a and Fig. 3a, the SoC 130 provides data signals to the communication unit 122. In this state, the communication unit 122 facilitates the transmission of said data signals to the plurality of peripherals (P1-Pn) via the selection unit 123. As the plurality peripherals (P1-Pn) are working properly, the SoC 130 concurrently provides the data signals to the plurality of communication units (122a-122n) for delivery of the data signals to the plurality of peripherals (P1-Pn) respectively. In other words, the selection unit 123 maintains communication paths between the SoC 130 and the working peripherals.
[0076] In an exemplary embodiment, the enable input pin 121a, the decoder unit 121, and the external debug port 150 are represented by dotted lines (shown in Fig. 2a), signifying that these components are inactive or not in use during the first functional mode. In this mode, the enable input pin 121a of the decoder unit 121 is set to a disabled state (e.g., logic bit ‘0’). Because the decoder unit 121 is disabled, it maintains a logic ‘0’ output across all output lines (O1…On). This uniform logic ‘0’ output ensures that the selection unit 123 (and any additional selection units 125, 127) remains configured to route signals only between the SoC 130 and the plurality of peripherals (P1-Pn).
[0077] In an exemplary embodiment, the system 100 architecture is scalable to support the plurality of peripherals (P1-Pn); for instance, in a configuration supporting eight peripherals (P1 through P8), a 3:8 line decoder is utilized as the decoder unit 121. During the first functional mode, the enable input pin 121a is biased to a first logic state (e.g., a logic low or ‘0’ bit), which functions as a disable command for the decoder unit 121 output logic.
[0078] In an exemplary embodiment, the decoder unit 121 is forced to maintain a null or inactive state (logic ‘0’) across all corresponding output terminals (O1 to O8). These inactive outputs are coupled to the selection ports of the selection units (123a-123n), thereby forcing the MUX arrays (125a1-125a’) to exclusively route the transmission signal pins (124a1-124a’) and concurrently forcing the DEMUX arrays (127b1-127b’) to route the reception signal pins (126b1-126b’). In an embodiment, the plurality of selection units (123a-123n) is equal to the plurality of peripherals (P1-Pn), each selection unit being coupled to a respective peripheral and a respective output pin of the decoder unit 121.
[0079] This synchronized inactivation ensures that the external debug port 150 is electrically bypassed (as indicated by the dotted lines in Fig. 2a), allowing the debugging infrastructure to remain transparent and non-interfering relative to the primary communication bus when all the plurality of peripherals (P1-Pn) are working properly.
[0080] In an embodiment, when the SoC 130 determines that a specific peripheral (e.g., P1) is not in a working condition or requires diagnostic intervention, the system 100 transitions into the second functional mode exclusively for said peripheral (P1), as illustrated in Fig. 2b and Fig. 3b. This transition is localized, meaning that while the selection unit (123) reconfigures the signal path for the faulty peripheral (P1), the remaining functional peripherals (P2- Pn) in the array maintain their existing connections. In an embodiment, a faulty peripheral, the selection unit (123) maintains an alternate communication path between the external debug port (150) and the faulty peripheral, thereby ensuring the communication paths of working peripherals are undisturbed.
[0081] Only the identified or default peripheral is transitioned into the second functional mode for debugging. The remaining plurality of peripherals, which are determined to be operating properly, remain in the first functional mode. This allows the SoC 130 to continue data communication with the functional peripherals (P2-Pn) via their respective communication units (122b-122n) and selection units (123b-123n) without interruption, even while a simultaneous diagnostic process is being performed on the isolated peripheral (P1) via the external debug port 150.
[0082] In an embodiment, the SoC 130 is configured to perform a dynamic path reconfiguration upon detecting that a peripheral (P1) has entered a non-operational state or requires diagnostic analysis. To initiate this transition, the SoC 130 generates a high-priority enable signal (e.g., a logic high or ‘1’ bit) directed to the enable input pin 121a of the decoder unit 121, thereby transitioning the decoder from a quiescent state (inactive state) to an active state. The enable signal can be generated through an external hardware switch or a software-based control interface. In an embodiment, the enable input pin 121a of the decoder unit 121 is electrically coupled to at least one of the SoC 130, an external hardware switch, and a software-based control interface.
[0083] In an embodiment, the SoC 130 and the communication unit 122 are represented by dotted lines (shown in Fig. 2b), signifying that the communication path is temporarily deactivated or bypassed for the peripheral under test. Conversely, the enable input pin 121a, decoder unit 121, and external debug port 150 are shown in solid lines, indicating that these components are now actively engaged in the functional circuit path.
[0084] The select signal for select lines (S1-Sn) can be provided through the SoC 130, an external hardware switch, or a software-based control. In an embodiment, the enable input pin 121a is configured to generate a plurality of signals. The signals can be enabled or disabled.
[0085] In an embodiment, the SoC 130 provides addressing logic (bits) to the plurality of select lines (S1-Sn) of the decoder unit 121 (not shown). In an embodiment, the addressing logic (bits) can be a ‘0’ bit for each select line (for example, S1=0, S2=0, Sn=0). This addressing logic enables an output line (e.g., O1) corresponding to the target peripheral. The output line O1 triggers the selection unit 123, which effectively reconfigures the internal MUX/DEMUX arrays to decouple the peripheral (P1) from the SoC 130 and electrically couple it to the external debug port 150. In an embodiment, once the SoC 130 detects the faulty peripheral, the user can select that peripheral for debug, which is done manually.
[0086] In an exemplary embodiment, as illustrated in Fig. 2b and Fig. 3b, the decoder unit 121 is configured to provide an active output (e.g., logic ‘1’) across the specific output terminal (O1). This active output is coupled to the selection port (select pin) of the selection unit 123, thereby forcing the MUX 125a1 to disable the transmission signal pin 124a1 and exclusively route the debug transmitting port 150b signals.
[0087] Concurrently, the active output forces the DEMUX 127b1 to reroute the signal flow from the peripheral (P1) to the external debug receiving port 150a, bypassing the reception signal pin 126b1. This synchronized activation ensures that the SoC 130 and communication unit 122 are electrically isolated (as indicated by the dotted lines in Fig. 2b), establishing a dedicated bidirectional link between the external debug port 150 and the peripheral (P1) for diagnostic operations.
[0088] Fig. 3a depicts a block diagram of the routing unit 120 when all the peripherals are working, in accordance with an embodiment of the present invention. In an embodiment, the routing unit 120 is in the first functional mode. In an embodiment, when all the peripherals are working, the SoC 130 provides a disabled signal to the enable input pin 121a of the decoder unit 121, and the plurality of output pins (O1-On) provide a logic bit ‘0’ to the plurality of selection units (123, 125, 127).
[0089] In an embodiment, upon receiving the logic bit ‘0’, the plurality of selection units (123a-123n) enables the plurality of communication unit (122a-122n) of the plurality of the MUX (125a1-125a’) to transmit the data to the plurality of peripheral receivers (P1Rx, P2Rx, PnRx) from the SoC 130.
[0090] In an embodiment, the plurality of peripheral transmitters (P1Tx, P2Tx, PnTx) transmits the data to the plurality of reception signal pins (126b1-126b’) of the plurality of DEMUX (127b1-127b’) to the SoC 130, making a perfect working feedback loop.
[0091] For example, when the peripheral (P1) is in working condition, the SoC 130 provides a data signal to the plurality of select lines (S1-Sn) of the decoder 121. The decoder unit 121 produces a data signal in its output line O1. The data signal enables the transmission signal pin 124a1 for the MUX 125a1 to transmit the data to the receiver peripheral receiver P1Rx from the SoC 130. The peripheral transmitter (P1Tx) transmits the data to the reception signal pin 126b1 via the DEMUX 127b1 to the SoC 130, making a perfect feedback loop.
[0092] For example, when the peripheral (P2) is in working condition, the SoC 130 provides a data signal to the plurality of select lines (S1-Sn) of the decoder 121. The decoder unit 121 produces a data signal in its output line (O2). The data signal enables the transmission signals 124a2 for the MUX 125a2 to transmit the data to the receiver peripherals (P2Rx) from the SoC 130. The peripheral transmitter (P2Tx) transmits the data to the reception signal pin 126b2 via the DEMUX 127b2 to the SoC 130, making a perfect feedback loop.
[0093] Similarly, when the peripheral (Pn) is in working condition, the SoC 130 provide a data signal to the plurality of select lines(S1-Sn) of the decoder 121. The decoder unit 121 produces a data signal in its output line (On). The data signal enables the transmission signals 124a’ for the MUX 127a to transmit the data to the receiver peripherals (PnRx) from the SoC 130. The peripheral transmitter (PnTx) transmits the data to the reception signal pin 126b’ via the DEMUX 127b’ to the SoC 130, making a perfect feedback loop.
[0094] Fig. 3b depicts an exemplary block diagram of the routing unit 120 when some of the peripherals are working, in according to an embodiment of the present invention. The enable input pin 121a of the decoder unit 121 can be switched to an enabled state through the SoC 130 or through separate software and hardware controls. In an embodiment, the enable input pin 121a of the decoder unit 121 is set to an enabled state through the SoC 130. In an embodiment, the routing unit 120 works in the second functional mode for the peripherals that are not working and need debugging while the routing unit 120 works in the first functional mode for the peripherals that are in working condition and don't need debugging. In an embodiment, the routing unit 120 works in both the first functional mode and the second functional mode simultaneously.
[0095] The SoC 130 provides plurality of logic bits to the plurality of select lines (S1-Sn) of the decoder unit 121 (as described earlier). In an embodiment, the decoder unit 121 provides a data signal to its output lines (O1-On). The data signal disables transmission of data signals to the peripherals that are not working, and bypasses them by enabling the connection between the external debug port 150 and the peripheral through the selection unit 123.
[0096] In an embodiment, the external debug transmitting port 150b works as an input by getting electrically coupled with the receiver peripheral receiver (P1Rx), which needs to be debugged, through the MUX 125a1, and the peripherals transmitter (P1Tx) works as an output by getting electrically coupled with the external debug receiver port 150a. Performing a stable controlled feedback loop.
[0097] For example, if the peripheral (P1) is not working (as shown in Fig. 3b), the SoC 130 provides plurality of logic bits to the plurality of select lines (S1-Sn) of the decoder 121. It should understand that the logic bits vary with increasing and decreasing of the peripherals. The decoder unit 121 produces a data signal to enable its output line (O1) (O1 = ‘1’ bit) and disable other output lines (O2-On). This action disables the transmission signal pin 124a1 (as shown in dotted line) for the MUX 125a1 and the reception signal pin 126b1 (as shown in dotted line) for the DEMUX 127b1, effectively bypassing them in favor of the external debug transmitting port 150b (as shown in solid bolt line) and the external debug receiving port 150a (as shown in solid bolt line). Consequently, the system 100 connects the external debug transmitting port 150b as an input to the peripheral receiver (P1Rx) through the MUX 125a1 and routes the peripheral transmitter (P1Tx) as an output to the external debug receiving port 150a through the DEMUX 127b1, making a perfect feedback loop. In an embodiment, the routing unit 120 operates in the second functional mode for peripheral P1, while for all the other functional peripherals (P2-Pn), which are working properly, it operates in the first functional mode.
[0098] For example, if the peripheral (P2) is not working (as shown in Fig. 3c), the SoC 130 provides plurality of logic bits to the plurality of select lines (S1-Sn) of the decoder 121. It should understand that the logic bits vary with increasing and decreasing of the peripherals. The decoder produces a data signal to enable its output line (O2) (O2 = ‘1’ bit) and disable other output lines (O1, On). This action disables the transmission signals 124a2 (as shown in dotted line) for the first MUX 125a2 and the reception signal pin 126b2 (as shown in dotted line) for the second MUX 127b2, effectively bypassing them in favor of the external debug transmitting port 150b (as shown in solid bolt lines) and the external debug receiving port 150a (as shown in solid bolt lines). Consequently, the system 100 connects the external debug transmitting port 150b as an input to the peripheral receiver (P2Rx) through the first MUX 125a2 and routes the peripheral transmitter (P2Tx) as an output to the external debug receiving port 150a through the second MUX 127b2, making a perfect feedback loop. The routing unit 120 operates in the second functional mode for peripheral P2, while for all the other peripherals (P1, Pn), which are working properly, it operates in the first functional mode.
[0099] The scope of the invention is only limited by the appended patent claims. More generally, those skilled in the art will readily appreciate that all parameters, dimensions, materials, and configurations described herein are meant to be exemplary and that the actual parameters, dimensions, materials, and/or configurations will depend upon the specific application or applications for which the teachings of the present invention is/are used. , Claims:WE CLAIM 1. A system (100) for debugging a peripheral, the system (100) comprising: a. an ethernet port (140) for communicating with a plurality of peripherals (P1-Pn) and mounted on a PCB (110); b. an external debug port (150) for communicating with a faulty peripheral; c. a routing unit (120) communicatively coupled with the plurality of peripherals (P1-Pn) and a SoC (130), the routing unit (120) comprising: i. a decoder unit (121) having an enable input pin (121a), a plurality of select pins, and a plurality of output pins; ii. a plurality of selection units (123), each selection unit (123) comprising at least one MUX and one DEMUX, the selection unit (123) coupled to a respective output pin of the decoder unit (121); and iii. a plurality of communication units (122) coupled with the plurality of peripherals (P1-Pn), wherein each communication unit (122) is coupled to a respective peripheral, each communication unit (122) includes a transmitter and a receiver for data communication between the SoC (130) and the respective peripheral; wherein, while the plurality peripherals (P1-Pn) are in a working condition, the selection unit (123) maintains communication paths between the SoC (130) and the working peripherals; wherein, for a faulty peripheral, the selection unit (123) maintains an alternate communication path between the external debug port (150) and the faulty peripheral, thereby ensuring the communication paths of working peripherals are undisturbed. 2. The system (100) as claimed in claim 1, wherein the routing unit (120) is configured to operate in a first functional mode wherein an enable input pin (121a) of the decoder unit (121) is at a logic low and a second functional mode, wherein the enable input pin (121a) of the decoder unit (121) is at a logic high. 3. The system (100) as claimed in claim 2, wherein the routing unit (120) is configured to concurrently operate in the first functional mode for working peripherals and the second functional mode for the faulty peripheral. 4. The system (100) as claimed in claim 1, wherein the decoder unit (121) is a 3:8 line decoder having three select lines, eight output lines, and one enable pin (121a). 5. The system (100) as claimed in claim 1, wherein the decoder unit (121) is scalable in proportion to the number of peripherals coupled to the PCB (110). 6. The system (100) as claimed in claim 4, wherein the enable input pin (121a) of the decoder unit (121) is electrically coupled to at least one of the SoC (130), an external hardware switch, and a software-based control interface. 7. The system (100) as claimed in claim 1, wherein each of the plurality of selection units (123) comprises a 2:1 multiplexer and a 1:2 demultiplexer, the select pin of the 2:1 multiplexer and the select pin of the 1:2 demultiplexer being commonly coupled to a respective output pin of the decoder unit (121) and simultaneously controlled by a single shared logic signal. 8. The system (100) as claimed in claim 7, wherein the 2:1 multiplexer comprises a first input terminal electrically coupled to an external debug transmitting port (150b), a second input terminal electrically coupled to a transmission signal of the respective communication unit (122), and a common output terminal electrically coupled to a receiver port of a respective peripheral. 9. The system (100) as claimed in claim 7, wherein the 1:2 demultiplexer comprises an input terminal electrically coupled to a transmitter port of a respective peripheral, a first output terminal electrically coupled to the external debug receiving port (150a), and a second output terminal electrically coupled to a reception signal of the respective communication unit (122). 10. The system (100) as claimed in claim 1, wherein the plurality of selection units (123a-123n) is equal to the plurality of peripherals (P1-Pn), each selection unit being coupled to a respective peripheral and a respective output pin of the decoder unit (121). 11. The system (100) as claimed in claim 1, wherein the routing unit (120) is at least one of a Field Programmable Gate Array, an Application-Specific Integrated Circuit, and a Complex Programmable Logic Device, mounted on the PCB (110). 12. The system (100) as claimed in claim 1, wherein the external debug port (150) comprises the external debug receiving port (150a) and the debug transmitting port (150b), the external debug port (150) being at least one of a Universal Asynchronous Receiver-Transmitter ports and a Universal Serial Bus port, physically and electrically coupled to the PCB (110). 13. The system (100) as claimed in claim 1, wherein the ethernet port (140) is at least one of an RJ45 port, a Small Form-factor Pluggable slot, a Quad Small Form-factor Pluggable port, and an M12 port.