On-chip configurable logic block system of two-level interconnection architecture and routing configuration method thereof

By automatically establishing connections through a two-level interconnect architecture and a default mapping table, combined with hardware conflict detection and readback verification, the problems of large configuration data volume and high error risk in microcontroller CLB are solved, achieving efficient and reliable interconnect configuration.

CN122964018BActive Publication Date: 2026-11-27青岛本原微电子有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611459440.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-09-20
Publication Date
2026-11-27
Estimated Expiration
2046-09-20

AI Technical Summary

Technical Problem

Existing microcontroller on-chip configurable logic block (CLB) interconnect networks suffer from problems such as large configuration data volume, high risk of configuration errors, sensitivity of the configuration process to the writing order and lack of hardware conflict detection, and inability to read back and verify connection relationships, making them difficult to adapt to heterogeneous sub-modules and limited number of scenarios.

Method used

A two-level interconnect architecture is adopted, including a global interconnect unit and a local interconnect unit. Typical connections are automatically established using a default mapping table. An interconnect conflict detection unit is set to detect errors before configuration, and the connection relationship is verified through the interconnect status readback register group.

Benefits of technology

It significantly reduces the amount of interconnect configuration data, ensures configuration correctness through hardware, avoids driver conflict risks, supports hierarchical independent activation and rapid configuration error location, and is suitable for heterogeneous submodule scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122964018B_ABST
    Figure CN122964018B_ABST
Patent Text Reader

Abstract

The application discloses a configurable logic block system of two-stage interconnection architecture and a routing configuration method thereof, and belongs to the technical field of programmable logic design.The interconnection network of the configurable logic block on the chip is divided into two stages: a global interconnection unit routes the chip-level signal source to a boundary input line by means of a crossbar switch; and a local interconnection unit establishes a connection between the boundary input line and each sub-module, and internally comprises a default mapping memory pre-stored with a default direct connection path according to the sub-module type combination and an override selector, so that the most commonly used signal channel is automatically established after reset and zero configuration, and atypical connection is established by writing an override register, and any signal source is fully reachable to any input port. An interconnection conflict detection unit detects the conflict and blocks the conflict from taking effect before the configuration takes effect; the two-stage configuration registers are independently effective, and the interconnection can be adjusted in stages without overall reconfiguration during operation. The application significantly reduces the interconnection configuration data volume and the configuration error risk.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of on-chip programmable logic design technology for microcontrollers, and more particularly to an on-chip configurable logic block system with a two-level interconnect architecture and its routing configuration method. Background Technology

[0002] A Configurable Logic Block (CLB) is a programmable logic unit integrated within a microcontroller (MCU) chip. It typically contains multiple heterogeneous sub-modules, such as lookup tables (LUTs), finite state machines (FSMs), counters, and output logic (OUTLUTs). These sub-modules are connected via a configurable interconnect network, allowing users to implement customized digital logic functions through software configuration. The interconnect network determines the reachability and configuration efficiency of sub-module output signals to the input ports of other sub-modules, and is one of the core aspects of CLB architecture design.

[0003] In existing solutions, the interconnection of microcontroller CLBs generally adopts a single-level flat structure: each input port of each submodule corresponds to an input selection register, which selects from a unified candidate set consisting of all candidate signal sources (external input signals and output signals from other submodules). This flat structure has three drawbacks: First, the candidate set is huge, the bit width of the input selection register is proportional to the number of candidate signals, all connections need to be explicitly configured, the amount of configuration data increases quadratically with the number of submodules, and the software overhead of processor initializing CLB is large and error-prone; Second, the configuration process is sensitive to the write order, the dependencies between submodules require writing to the selection register in a specific order, otherwise intermediate states such as floating inputs or signal contention will occur, and existing solutions lack hardware conflict detection methods during writing, configuration errors can only rely on external software review; Third, the interconnection relationship cannot be read back for verification, configuration omissions or errors can only be indirectly discovered through logical function failures, making localization difficult.

[0004] In the field of programmable logic devices, a layered routing architecture is known to alleviate interconnection scale issues: logic cells form clusters, which are interconnected within each cluster via local interconnect matrices, and interconnected between clusters via multi-level global routing networks. However, this architecture is designed for large-scale arrays of homogeneous logic cells: its local interconnect matrices connect configurable logic cells with identical functions, and configuration relies on external routing tools to complete placement and routing and generate bitstream files before downloading and applying the overall configuration. The correctness of the bitstream is entirely guaranteed by external tools. Furthermore, the interconnection of these devices often involves tri-state or bidirectional transmission gate structures, posing a risk of multiple driver sources driving the same signal line, causing driver conflicts and potentially damaging the device. An external configuration controller is required to review the configuration data. These characteristics make it difficult to port to microcontroller CLB scenarios where processor register configuration is the core usage pattern, and where submodules are functionally heterogeneous and limited in number.

[0005] Another existing solution improves interconnect resource utilization by dynamically switching the interconnection between submodules in time slices within a clock cycle using the controller. However, time-division multiplexing interconnects introduce time-division uncertainty into signal propagation and require the controller to continuously execute switching commands, making them unsuitable for real-time control applications such as motor control and protection triggering, which rely primarily on static deterministic connections. Summary of the Invention

[0006] This invention addresses the challenge of reducing the number of interconnect network configurations and the risk of configuration errors when there are numerous sub-modules and a large set of candidate signal sources within a microcontroller's on-chip configurable logic block (PCB). It proposes a two-level interconnect architecture for the PCB and its routing configuration method, characterized by small configuration data volume, support for zero-configuration establishment of common connections, hierarchical independent activation, and hardware interconnect conflict detection capabilities. This allows for the automatic establishment of common signal paths between sub-modules without any configuration, while ensuring complete reachability for any atypical connection. Furthermore, it supports hierarchical and independent adjustment of global input interconnects and local interconnects between sub-modules during operation, and hardware performs interconnect conflict detection before configuration takes effect, structurally eliminating configuration risks such as drive conflicts and combination loops.

[0007] The present invention is implemented using the following technical solutions: A two-level interconnect architecture on-chip configurable logic block system is proposed, comprising: Several sub-modules are configured within the on-chip configurable logic block; each sub-module has an input port and an output port. A global interconnect unit, whose input is coupled to a chip-level signal source and whose output is coupled to the boundary input line of the on-chip configurable logic block, is used to route the selected signal in the chip-level signal source to the target boundary input line according to the selection code stored in the global interconnect configuration register group; A local interconnect unit has its input terminals coupled to the boundary input lines and the output ports of each submodule, and its output ports coupled to the input ports of each submodule. The local interconnect unit includes a default mapping memory, an overlay selector, and a local interconnect overlay register group. The default mapping memory pre-stores a default direct connection mapping table, which defines default direct connection paths according to set submodule types. When the local interconnect overlay register corresponding to the target input port is in its default state, the target input port receives a default signal source according to the default direct connection mapping table. When a non-default value is written to the local interconnect overlay register corresponding to the target input port, the overlay selector selects the signal source indicated by the non-default value, overlaying the default direct connection path. An interconnect conflict detection unit, coupled to the write path of the global interconnect configuration register group and the local interconnect overlay register group, is configured to detect interconnect conflicts and set the conflict flag register during configuration write.

[0008] In some embodiments of the present invention, in the local interconnect unit, each signal line connected to the input port of the submodule is driven individually by the output of a multiplexer, and the selection code of the multiplexer is synthesized by the corresponding local interconnect overlay register and the default direct connection mapping table; there is no multi-drive structure or tri-state structure in the local interconnect unit.

[0009] In some embodiments of the present invention, the system further includes: The interconnect status readback register set is configured to allow the processor to read the actual interconnect connection relationship after combining the contents of the default direct map and the local interconnect overlay register.

[0010] In some embodiments of the present invention, the global interconnect configuration register group and the local interconnect overlay register group are each configured with independent activation control bits.

[0011] In some embodiments of the present invention, the interconnection conflict detected by the interconnection conflict detection unit includes: the same signal line being selected simultaneously by multiple drive sources, the submodule input port being left floating, and a combinational logic loop consisting of interconnection connections and submodule through paths.

[0012] In some embodiments of the present invention, the global interconnection unit is a cross switch structure.

[0013] Compared with the prior art, the advantages and positive effects of the present invention are: (1) Significantly reduce the amount of interconnect configuration data.

[0014] Existing flat interconnect schemes require explicit writing of input selection registers for each submodule input port, with the configuration data volume increasing quadratically with the number of submodules. This invention, through a type-aware default direct-connection mapping table, automatically establishes common signal paths such as counter output → lookup table input → lookup table output → state machine event input with zero configuration after reset. Only atypical connections require writing to local interconnect overwrite registers, reducing the number of registers requiring explicit configuration in typical applications by more than half. This simultaneously reduces the software overhead and error probability of processor CLB initialization.

[0015] (2) Ensure the correctness of the configuration through hardware and intercept incorrect configurations before the configuration takes effect.

[0016] In this invention, since the interconnect conflict detection unit is directly coupled to the write path of the global interconnect configuration register group and the local interconnect overlay register group, the hardware can complete the conflict detection and set the conflict flag register during configuration writing, so that the configuration error is intercepted before it takes effect. Signal competition can be avoided without relying on external software review or wiring tools, thus ensuring the correctness of the configuration.

[0017] (3) In the design of this invention, each signal line in the local interconnection network is driven by a unique multiplexer output, and the selection code of the multiplexer is synthesized by the corresponding local interconnection overlay register and the default direct connection mapping table, so that each signal line in the local interconnection network has only a unique driving source in physical structure, which fundamentally eliminates the possibility of multiple driving sources driving the same signal line at the same time, thereby eliminating the risk of driving conflict caused by the three-state structure or bidirectional transmission gate, and avoiding the hidden danger of damage to the device due to multiple driving sources competing due to configuration errors.

[0018] (4) By setting up an interconnect status readback register group, the processor can read the actual interconnect connection relationship after the default direct connection mapping and the local interconnect overlay register content are combined. After the configuration is completed, the actual connection relationship can be compared and verified with the target connection list, so that configuration omissions or errors can be actively discovered and located before the logical function fails. This overcomes the defects of the existing scheme where the interconnect connection relationship cannot be read back and the configuration error can only be indirectly discovered through functional abnormality.

[0019] (5) It avoids the shortcomings of existing solutions where any interconnection modification requires overall reconfiguration and logical functions must be suspended during reconfiguration.

[0020] In the two-level architecture designed in this invention, each level has an independent configuration register: the global interconnection unit configures the global interconnection configuration register group, and the local interconnection unit configures the local interconnection overlay register group; the two-level configuration register groups each have independent effective control bits, and can be modified locally as needed during operation: changing the external signal source (global level) does not affect the established connections between submodules; adjusting the internal signal flow (local level) does not affect the boundary input.

[0021] (6) Adapt to existing processor configuration modes.

[0022] The interconnect architecture of this invention uses register read / write as the only configuration interface. The default mapping mechanism and hierarchical activation mechanism are designed specifically for configuration during processor operation, without the need for bit stream download and routing tools.

[0023] This invention also proposes an on-chip configurable logic block routing configuration method for a two-level interconnect architecture, applied to the on-chip configurable logic block system with the two-level interconnect architecture described above, comprising: Obtain the set of sub-modules required for the target logic function and the signal connection relationships between the sub-modules; Write the connection relationship from the chip-level signal source to the boundary input line into the global interconnect configuration register group; For each input port of each submodule, determine whether the required signal source is the default signal source of the input port in the pre-stored default direct connection mapping table; if yes, keep the local interconnect overlay register corresponding to the input port in the default state and do not perform a write operation; if no, write the code of the required signal source into the local interconnect overlay register corresponding to the input port. After all writes are complete, conflict detection is performed on all configurations using the interconnect conflict detection unit.

[0024] In some embodiments of the present invention, after collision detection, the method further includes: The actual interconnect connection relationship is read by combining the contents of the default direct connection mapping and the local interconnect overwrite register by the interconnect status readback register group; The actual interconnection relationship is compared and verified with the signal connection relationship.

[0025] In some embodiments of the present invention, the method further includes a step of hierarchical independent adjustment, comprising: During the operation of the on-chip configurable logic block, when only the source of the boundary input signal needs to be changed, only the global interconnect configuration register group is updated and the global level is independently activated, without interruption of the local interconnect connection between sub-modules and the user logic function being executed; When only the signal flow between submodules needs to be adjusted, only the corresponding local interconnect overlay register group is updated and the local level is triggered to take effect independently, while the global interconnect configuration register group remains unchanged.

[0026] In some embodiments of the present invention, the method for interconnection collision detection further includes: The interconnection conflict detection unit classifies and detects conflicts; among them, conflicts include the same signal line being selected simultaneously by multiple drive sources, the submodule input port being left floating, and combinational logic loops formed by interconnection connections and direct paths of submodules; The conflict flag register is configured according to the conflict type; wherein, the conflict flag register includes a drive conflict bit, an input floating bit, and a combined loop bit.

[0027] Compared with the prior art, the advantages and positive effects of the present invention are as follows: The present invention divides the interconnection network of on-chip configurable logic blocks into two levels: global interconnection units and local interconnection units. In the local interconnection units, a default mapped memory is set up in conjunction with an overlay selector, so that the signal path between common submodules can be automatically established after reset without any register write operation. Only atypical connections need to be written to the local interconnection overlay register, thereby reducing the amount of interconnection configuration data from increasing quadratically with the number of submodules to being only related to the number of atypical connections. At the same time, since the interconnection conflict detection unit is directly coupled to the write path of the global interconnection configuration register group and the local interconnection overlay register group, the hardware can complete the conflict detection and set the conflict flag register during configuration writing, so that configuration errors are intercepted before they take effect, without relying on external software review or wiring tools to ensure configuration correctness.

[0028] Furthermore, after conflict detection, a step is added to read the actual interconnect connection relationship through the interconnect status readback register group and compare it with the target signal connection relationship. This allows the configuration result to be actively verified, and configuration errors can be discovered and located according to the conflict type before the logical function fails. This overcomes the shortcomings of the existing solution, where the correctness of the configuration can only be guaranteed by external tools, and configuration omissions or errors can only be indirectly discovered through functional failure.

[0029] Furthermore, the routing configuration can be adjusted independently in a hierarchical manner, so that local modifications to the interconnection do not affect other established connections and user logic functions that are being executed. This avoids the problem in the existing flat interconnection scheme that any interconnection modification requires overall reconfiguration and that logic functions must be paused during the reconfiguration. It is especially suitable for application scenarios with high requirements for real-time performance and determinism.

[0030] Furthermore, the interconnection conflict detection unit classifies and detects conflicts, and sets the flag bits in the conflict flag register according to the conflict type, so that the conflict type can be directly located by software reading, which shortens the diagnosis and correction time of configuration errors and improves configuration debugging efficiency.

[0031] Other features and advantages of the present invention will become clearer after reading the detailed description of the embodiments of the present invention in conjunction with the accompanying drawings. Attached Figure Description

[0032] Figure 1 This is a schematic diagram of the two-level interconnection architecture of the on-chip configurable logic block system proposed in this invention. Figure 2 This is a flowchart of the routing configuration method for the on-chip configurable logic block system with a two-level interconnection architecture proposed in this invention. Figure 3 This is a schematic diagram comparing the default direct connection path and the overlay path in the local interconnection unit of this invention. Detailed Implementation

[0033] The specific embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.

[0034] Example 1: A two-level interconnect architecture for on-chip configurable logic blocks.

[0035] like Figure 1 As shown, the on-chip configurable logic block 100 of this embodiment is disposed within the microcontroller chip, including a global interconnect unit 110, a local interconnect unit 120, multiple sub-modules, an interconnect conflict detection unit 130, and an interconnect status readback register group 140.

[0036] The input of the global interconnect unit 110 is coupled to a chip-level signal source. In this embodiment, the chip-level signal source includes: internal signals of on-chip peripherals (such as pulse width modulation modules, capture modules, and analog-to-digital conversion modules), chip pin input signals, and software-readable and writable general-purpose register signals, with a total of N candidate signals. The global interconnect unit 110 has an internal crossbar switch structure and is controlled by the global interconnect configuration register group 111 to route the selected signal from the N candidate signals to K boundary input lines. The boundary input lines are the hierarchical interface between global interconnect and local interconnect: the global interconnect unit 110 is only responsible for routing external signals into the CLB and does not involve the connection between sub-modules.

[0037] The inputs of the local interconnect unit 120 include K boundary input lines and the output port signals of each submodule. Each submodule includes several lookup tables (LUT1~LUT3 in the diagram), several finite state machines (FSM1~FSM3 in the diagram), several counters (CNT1~CNT3 in the diagram), and an output logic unit (OUTLUT). The local interconnect unit 120 internally includes a default mapping memory 121 and multiple overlay selectors 122 (configured by the local interconnect overlay register group 123). The default mapping memory 121 is a read-only memory used to pre-store default direct connection mapping tables. These pre-stored default direct connection mapping tables define default direct connection paths according to submodule type combinations, as shown in Table 1 below as an example of a default direct connection mapping table: Table 1. Example of default direct connection mapping Serial Number Default path Submodule type combination Typical uses D1 CNT1 output → LUT1 input port Counter → Lookup Table Counting matching signals participate in combined decision D2 LUT1 output → FSM1 event input port Lookup table → State machine Combined conditions trigger state transitions D3 FSM1 output → CNT1 mode control input port State machine → Counter State control counting mode D4 Boundary input line 0 → LUT2 input port Boundary → Lookup Table External signals directly participate in logic D5 CNT2 output → FSM2 event input port Counter → State Machine Counting event-driven state transition D6 LUT3 output → OUTLUT input port Lookup table → Output The combination result is output directly. After reset, all local interconnect overlay registers are in their default state (all zeros in this embodiment), and the six default direct connection paths mentioned above are automatically established without any configuration write operations. When the signal source required by a submodule input port is different from its default signal source, the software writes the code of the target signal source to the local interconnect overlay register corresponding to that port, and the overlay selector 122 switches the default signal source to the signal source indicated by the overlay code accordingly.

[0038] Each overlay selector 122 is a multiplexer whose output directly drives the corresponding submodule input port. The selection code is synthesized by the local interconnect overlay register and the default mapped memory 121. In the entire local interconnect network, each signal line is driven by one and only one multiplexer output; there are no tri-state gates or bidirectional transmission gates.

[0039] Interconnect conflict detection unit 130 is coupled to the write path of the configuration register set (global interconnect configuration register set 111 and local interconnect overlay register set 123). When software writes to global interconnect configuration register set 111 or any local interconnect overlay register and requests its effect, interconnect conflict detection unit 130 performs three checks on the synthesized interconnect connection relationship: (1) Driver conflict check: whether there is a situation where the same signal line is selected by multiple driver sources, which in this architecture is reflected as an illegal combination of overlay coding that violates the uniqueness constraint.

[0040] (2) Floating check: whether there are submodule input ports that are not driven by any valid signal source.

[0041] (3) Combination loop check: Starting from the interconnection relationship and the pass-through characteristics of the sub-module, check whether there is a combination feedback loop that does not pass through the timing components.

[0042] If any check fails, the corresponding bit in the conflict flag register 131 is set, the current configuration is blocked before it takes effect, and the original interconnection remains unchanged.

[0043] Interconnect status readback register group 140 records the actual connection relationship after combining the default direct-connect mapping and the contents of the local interconnect overwrite registers. The processor can read this at any time for configuration verification and fault location.

[0044] Example 2: Routing configuration method for on-chip configurable logic blocks in a two-level interconnect architecture.

[0045] like Figure 2 As shown, the routing configuration method in this embodiment includes the following steps: S201: Obtain the set of sub-modules required for the target logic function and the signal connection relationships between the sub-modules.

[0046] First, obtain the set of sub-modules required for the target logic function and the signal connection relationships between the sub-modules. These connection relationships are usually generated by logic synthesis tools or manual design and are represented as a list of connections from signal source to signal destination.

[0047] S202: Write the connection relationship from the chip-level signal source to the boundary input line into the global interconnect configuration register group.

[0048] The connection relationship between the chip-level signal source and the boundary input line is then written into the global interconnect configuration register group 111. The global interconnect unit 110 routes the selected signal in the chip-level signal source to the boundary input line of the on-chip configurable logic block according to the selection code stored in the global interconnect configuration register group 111.

[0049] S203: For each input port of each submodule, determine whether the required signal source is the default signal source of that input port in the pre-stored default direct connection mapping table.

[0050] The default direct connection mapping table defines the default direct connection path from the output port of one submodule to the input port of another submodule, based on the submodule type combination.

[0051] For each input port of each submodule, check one by one. If the required signal source is exactly the default signal source of the port in the default direct connection mapping table, then proceed to step S204; if the required signal source is different from the default signal source of the port in the default direct connection mapping table, then proceed to step S205.

[0052] S204: Keep the local interconnect overlay register corresponding to this input port in the default state and do not perform a write operation.

[0053] In other words, the default direct connection path continues to be in effect.

[0054] S205: Write the encoding of the required signal source into the local interconnect overlay register corresponding to the input port.

[0055] That is, the corresponding local interconnect coverage selector covers the default direct path with the signal source indicated by the encoding, thus establishing a coverage path.

[0056] S206: Perform conflict detection on all configurations through the interconnection conflict detection unit.

[0057] After all writes are completed, the interconnection conflict detection unit 130 performs three checks on the configuration: drive conflict, floating loop, and combined loop.

[0058] S207: When a conflict is detected, the conflict flag register is set and the configuration is blocked, while the original interconnection remains unchanged.

[0059] When a conflict is detected, the conflict flag register 131 is set and the configuration is blocked before it takes effect, while the original interconnection remains unchanged. The conflict type and location can be located subsequently by reading the flag bit through software, correcting the conflict, and then rewriting it.

[0060] S208: If no conflicts are found during the check, release the activation control to make the configuration effective.

[0061] S209: Read the actual connection relationship after combining the default direct connection mapping and the contents of the local interconnect overlay register through the interconnect status readback register group, and compare and verify it with the connection list.

[0062] Finally, the processor reads the synthesized actual connection relationship from the interconnect status readback register group and compares and verifies it with the connection list.

[0063] Taking the overcurrent protection logic in motor control as an example: the target logic needs to send the current comparison signal (from the peripheral device) to LUT1. The LUT1 output triggers FSM1 to enter the protection state, and the FSM1 output controls the counting mode of CNT1. When configured using this method: the global interconnect only requires one write operation to route the current comparison signal to a specified boundary input line; the LUT1 input needs to be reconnected to this boundary input line, requiring one overwrite operation; while the LUT1 output → FSM1 event input (default path D2) and FSM1 output → CNT1 mode control (default path D3) are both direct connections by default, automatically established with zero configuration. Compared to the existing flat interconnect scheme that requires explicit writing to all more than ten input selection registers, this embodiment only requires two write operations to complete the interconnect configuration.

[0064] Example 3: Comparison of default direct connection path and overridden path.

[0065] like Figure 3 As shown, taking the routing of the output signal of counter CNT1 to the input port of lookup table submodule LUT1 as an example, the two path establishment methods are illustrated. In the default state, the local interconnect overlay register group 123 is all zeros, and the mapping entry in the default mapped memory 121 indicates: CNT1 output → LUT1 input. The overlay selector 122 selects the default signal source accordingly, establishing a default direct path, and the LUT1 input port receives the CNT1 output. When the application needs to send a peripheral signal instead of the CNT1 output to the LUT1 input, the software writes the code of the boundary input line x to the local interconnect overlay register group 123. The overlay selector 122 switches the selection code, establishes an overlay path, and replaces the default direct path. The LUT1 input port then receives the signal on the boundary input line x. After the local interconnect overlay register group 123 is restored to its default value (written zero or reset), the default direct path is automatically restored.

[0066] The value of this mechanism designed in this invention lies in the fact that the default direct connection mapping table covers the most frequently used submodule type combinations (counter → lookup table, lookup table → state machine, state machine → counter, boundary → lookup table, etc.) based on empirical statistics. Most applications only need to perform overwrite operations on a small number of ports. Furthermore, the overwrite mechanism ensures complete reachability from any signal source to any input port, and flexibility is not compromised by the existence of the default mapping. When the application does not require any default path, the software can explicitly write local interconnect overwrite register group 123 to all input ports, causing the architecture to degenerate into a fully explicit configuration mode, compatible with existing configuration habits.

[0067] Example 4: The two-level interconnect architecture operates independently.

[0068] This embodiment illustrates the hierarchical adjustment capability under this architecture.

[0069] Suppose that an application initially uses the level signal of pin A as the signal source for boundary input line 0; during operation, due to a change in operating conditions, it needs to switch to the internal signal of peripheral B. The software only updates the selection code corresponding to boundary input line 0 in the global interconnect configuration register group and triggers global-level independent activation: all connections based on boundary input line 0 in the local interconnect unit 120 (whether default direct connection or overridden connection) remain unchanged, the connections between submodules and the user logic being executed are not interrupted, and the input signal source perceived by the submodule is switched only after the signal establishment time.

[0070] Conversely, when only the signal flow between submodules needs to be adjusted (such as changing the FSM2 event input from CNT2 output to LUT2 output), only the local interconnect overwrite register of the FSM2 event input port is written and the local level takes effect, while the global interconnect configuration remains unaffected.

[0071] Under the two-level architecture developed in this invention, the two levels operate independently, avoiding the problem in existing flat interconnection schemes where any interconnection modification requires overall reconfiguration and logical functions must be suspended during the overall reconfiguration.

[0072] Example 5: Application of interconnection conflict detection.

[0073] This embodiment illustrates a typical scenario for conflict detection. During software configuration, if a code defect writes a combination that violates the uniqueness constraint of the selection code into the local interconnect overlay register, causing the same signal line to face multiple drive sources, the conflict detection unit identifies the drive conflict during the validity check, sets the drive conflict bit in the conflict flag register, the configuration is invalidated, the CLB maintains its original logic function, and the software reads the flag bit to correct the configuration.

[0074] For example, when configuring sequence detection logic, if the output of LUT2 is mistakenly configured as a signal source for one of its own input ports, this connection constitutes a combined loop because the lookup table is a combined pass-through element. The loop check of the collision detection unit identifies this configuration, sets the combined loop collision bit, and blocks it, thus avoiding a surge in power consumption and functional malfunction caused by oscillation. In existing solutions lacking hardware detection, such errors can only be indirectly detected through functional anomalies after power-on operation, while the architecture based on this invention can intercept them before the configuration takes effect.

[0075] It should be noted that the above description is not intended to limit the present invention, and the present invention is not limited to the examples given above. Any changes, modifications, additions or substitutions made by those skilled in the art within the scope of the present invention should also fall within the protection scope of the present invention.

Claims

1. A two-level interconnect architecture on-chip configurable logic block system, comprising: Several sub-modules are configured within an on-chip configurable logic block; Each submodule has input ports and output ports; Its characteristic is that it further includes: A global interconnect unit, whose input is coupled to a chip-level signal source and whose output is coupled to the boundary input line of the on-chip configurable logic block, is used to route the selected signal in the chip-level signal source to the target boundary input line according to the selection code stored in the global interconnect configuration register group; A local interconnect unit has its input terminals coupled to the boundary input lines and the output ports of each submodule, and its output ports coupled to the input ports of each submodule. The local interconnect unit includes a default mapping memory, an overlay selector, and a local interconnect overlay register group. The default mapping memory pre-stores a default direct connection mapping table, which defines default direct connection paths according to set submodule types. When the local interconnect overlay register corresponding to the target input port is in its default state, the target input port receives a default signal source according to the default direct connection mapping table. When a non-default value is written to the local interconnect overlay register corresponding to the target input port, the overlay selector selects the signal source indicated by the non-default value, overlaying the default direct connection path. An interconnect conflict detection unit, coupled to the write path of the global interconnect configuration register group and the local interconnect overlay register group, is configured to detect interconnect conflicts and set the conflict flag register during writing.

2. The on-chip configurable logic block system with a two-level interconnect architecture according to claim 1, characterized in that, In the local interconnect unit, each signal line connected to the input port of the submodule is driven individually by the output of a multiplexer. The selection code of the multiplexer is obtained by combining the corresponding local interconnect overlay register and the default direct connection mapping table. There is no multi-drive structure or tri-state structure in the local interconnect unit.

3. The on-chip configurable logic block system with a two-level interconnect architecture according to claim 1, characterized in that, The system also includes: The interconnect status readback register set is configured to allow the processor to read the actual interconnect connection relationship after combining the contents of the default direct map and the local interconnect overlay register.

4. The on-chip configurable logic block system with a two-level interconnect architecture according to claim 1, characterized in that, The global interconnect configuration register group and the local interconnect overlay register group are each configured with independent activation control bits.

5. The on-chip configurable logic block system with a two-level interconnect architecture according to claim 1, characterized in that, The interconnection conflict detected by the interconnection conflict detection unit includes: the same signal line being selected by multiple drive sources at the same time, the submodule input port being left floating, and the combinational logic loop formed by interconnection connections and submodule through paths.

6. The on-chip configurable logic block system with a two-level interconnect architecture according to claim 1, characterized in that, The global interconnection unit is a cross switch structure.

7. A method for routing configuration of on-chip configurable logic blocks in a two-level interconnect architecture, applied to an on-chip configurable logic block system with a two-level interconnect architecture as described in any one of claims 1-6, characterized in that, include: Obtain the set of sub-modules required for the target logic function and the signal connection relationships between the sub-modules; Write the connection relationship from the chip-level signal source to the boundary input line into the global interconnect configuration register group; For each input port of each submodule, determine whether the required signal source is the default signal source of the input port in the pre-stored default direct connection mapping table; if yes, keep the local interconnect overlay register corresponding to the input port in the default state and do not perform a write operation; if no, write the code of the required signal source into the local interconnect overlay register corresponding to the input port. After all writes are complete, conflict detection is performed on all configurations using the interconnect conflict detection unit.

8. The on-chip configurable logic block routing configuration method for a two-level interconnect architecture according to claim 7, characterized in that, After collision detection, the method further includes: The actual interconnect connection relationship is read by combining the contents of the default direct connection mapping and the local interconnect overwrite register by the interconnect status readback register group; The actual interconnection relationship is compared and verified with the signal connection relationship.

9. The on-chip configurable logic block routing configuration method for a two-level interconnect architecture according to claim 7, characterized in that, The method further includes a step of hierarchical independent adjustment, including: During the operation of the on-chip configurable logic block, when only the source of the boundary input signal needs to be changed, only the global interconnect configuration register group is updated and the global level is independently activated, without interruption of the local interconnect connection between sub-modules and the user logic function being executed; When only the signal flow between submodules needs to be adjusted, only the corresponding local interconnect overlay register group is updated and the local level is triggered to take effect independently, while the global interconnect configuration register group remains unchanged.

10. The on-chip configurable logic block routing configuration method for a two-level interconnect architecture according to claim 7, characterized in that, In interconnection collision detection, the method further includes: The interconnection conflict detection unit classifies and detects conflicts; among them, conflicts include the same signal line being selected simultaneously by multiple drive sources, the submodule input port being left floating, and combinational logic loops formed by interconnection connections and direct paths of submodules; The conflict flag register is configured according to the conflict type; wherein, the conflict flag register includes a drive conflict bit, an input floating bit, and a combined loop bit.

Citation Information

Patent Citations

  • System-on-chip interconnection architecture conflict optimization method based on pin multiplexing constraint

    CN121743272A

  • Universal IOMUX architecture and configuration control method

    CN122412350A