Input signal selection apparatus, method and verification method for configurable logic blocks on-chip

By placing the GPREG MUX before the filter in the CLB and configuring the filter window to process general-purpose register signals, reliable edge event pulses are generated, solving the problem that general-purpose register signals cannot generate edge events, reducing system complexity and testing costs, and achieving flexible interference suppression and closed-loop verification.

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

Patent Information

Application Number
CN202611663624.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-27
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing on-chip configurable logic blocks (CLBs), general-purpose register signals cannot generate edge event pulses, leading to increased system complexity and cost. Furthermore, edge detection lacks width limitation and flexibility, cannot effectively suppress interference, and results in high testing complexity.

Method used

In the input signal chain of the CLB, the general-purpose register select multiplexer (GPREG MUX) is placed before the filter. The general-purpose register signal is processed by the filter with a configured filter window. An edge event pulse is generated only when the level transition meets the width of the filter window, and the test stimulus is generated by writing to the GPREG register through software.

Benefits of technology

It achieves reliability and flexibility in edge events, reduces system complexity and testing costs, provides a closed-loop verification mechanism, and ensures signal quality consistency and simplifies testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123163607A_ABST
    Figure CN123163607A_ABST
Patent Text Reader

Abstract

This invention discloses an input signal selection device, method, and verification method for on-chip configurable logic blocks, belonging to the field of on-chip configurable logic technology. In the device, a general-purpose register selection multiplexer is configured before a filter. The input signal source is selected by configuring the general-purpose register selection multiplexer. When the input signal source is a general-purpose register, the general-purpose register signal is synchronized by a synchronizer and then sent to a filter with a configurable width filter window. When the level transition generated by the general-purpose register meets the width of the filter window, an edge event pulse is generated and output to subsequent logic modules. This invention enables software to generate edge events verified by the hardware filter window to drive subsequent logic modules, suppresses false triggering caused by narrow pulse glitches, and provides a means to perform closed-loop verification of subsequent logic modules and reverse verification of the filter window configuration using software injection stimuli, simplifying the testing and debugging process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of on-chip configurable logic technology for microcontrollers, and more particularly to an input signal selection device, method, and verification method for on-chip configurable logic blocks. Background Technology

[0002] A Configurable Logic Block (CLB) is a programmable logic unit integrated within a microcontroller (MCU) chip. It allows users to implement customized digital logic functions through software configuration without modifying the chip's hardware mask. A typical CLB includes submodules such as lookup tables (LUTs), finite state machines (FSMs), and counters. The input signals for these submodules come from on-chip peripherals or general-purpose registers (GPREGs).

[0003] In the CLB's input signal chain, external input signals are processed through multiple-stage multiplexers (MUX) for selection, synchronizers for synchronization, and filters for filtering before being sent to subsequent logic modules (as input excitation or control). If the subsequent logic module needs to receive an edge event pulse, the filter can be configured in edge detection mode: when the external input signal undergoes a level transition that meets the filter window's limitations, the filter outputs a pulse. This pulse can be used as an input excitation or control signal for the subsequent logic module, causing it to perform corresponding operations, such as FSM state transitions or Counter event loading.

[0004] However, establishing external input signal paths increases system complexity and cost. Replacing external input signals with software-readable and writable general-purpose registers (GPREGs) could significantly reduce system complexity and cost. However, in existing CLB architectures, such as... Figure 5 As shown, the General Purpose Register Select Multiplexer (GPREG MUX) is located after the filter. The GPREG signal bypasses the filter and directly replaces the filter's output. Software writing to GPREG can only change its static level and cannot generate edge event pulses. Therefore, it cannot replace external input signals to drive subsequent logic modules.

[0005] In some existing solutions, the input signal (including software-readable and writable GPREG signals) is fed into a programmable edge detector after input selection. However, this edge detector only supports edge polarity selection (rising edge, falling edge, or both edges) or complete bypass, which has the following drawbacks: First, the edge detection lacks width limitation. Any extremely short-duration level transition (including short pulses generated by software miswriting and glitches caused by signal crosstalk) will be detected as a valid edge and generate an event, making the reliability of the event unreliable. Second, the unconfigurable width means that the suppression threshold cannot be adjusted according to the interference characteristics of different application scenarios, and the narrow pulse suppression capability is fixed and limited. In addition, it is known that configurable input filters can be set for external pin input signals in microcontroller timer peripherals to suppress glitches, but the filtering object is only the external input channel. There is no software-writable register signal source in the input signal chain, and the level transitions generated by software write operations cannot enter the filtering and edge detection path. Therefore, it is also impossible to verify the filter and subsequent logic modules through software injection stimulation.

[0006] In addition, in existing solutions, testing the state transition of the FSM or the event triggering function of the Counter usually requires external input signals or complex event chain configuration, which increases the complexity and cost of testing. Summary of the Invention

[0007] The purpose of this invention is to propose an input signal selection device, method, and verification method for on-chip configurable logic blocks. This method allows general-purpose register signals to undergo filtering with a configurable filtering window. The level transitions generated by software writing to the GPREG register meet the limiting conditions of the filtering window to generate edge events. This ensures the reliability of edge events and provides software-injected test stimuli, enabling closed-loop verification of subsequent logic modules.

[0008] The present invention is implemented using the following technical solutions: An input signal selection device with an on-chip configurable logic block is proposed, comprising: A global multiplexer configured to select one output from multiple external input signals; A general-purpose register selector multiplexer, located on the output side of the global multiplexer, is configured to select one output from the output of the global multiplexer and the general-purpose register signal; A synchronizer, located at the output of the general-purpose register select multiplexer, is configured to: perform synchronization processing on the output signal of the general-purpose register select multiplexer; A filter, located at the output of the synchronizer, is configured with a filtering window, the width of which is set by configuration information. The filter is configured such that, when configured in edge detection mode, the transition is confirmed and the target signal is output to the subsequent logic module only when the level holding time after the output signal of the synchronizer changes meets the width of the filtering window.

[0009] In some embodiments of the present invention, the apparatus further includes: A local multiplexer, located at the output of the global multiplexer, is configured to: select or route the output of the global multiplexer; the output of the local multiplexer is connected to the input of the general-purpose register multiplexer.

[0010] In some embodiments of the present invention, the synchronizer performs synchronization processing on the signal output by the general-purpose register selection multiplexer based on its two-stage flip-flop structure.

[0011] In some embodiments of the present invention, the filter, in edge detection mode, detects the rising or falling edge of the input signal within the limit of the filtering window, and outputs a pulse signal corresponding to the edge only when the new level after the transition is continuously maintained to the width of the filtering window, wherein the width of the pulse signal is one clock cycle.

[0012] A method for selecting input signals of an on-chip configurable logic block is proposed and applied to the on-chip configurable logic block input signal selection device described above, comprising: Configure the input selection of the multiplexer using the general-purpose register; and configure the mode and filter window width of the filter. The general-purpose register selection multiplexer selects and configures the output target input signal according to the input selection; the target input signal is either an external input signal or a general-purpose register signal. The target input signal is synchronized by the synchronizer and then sent to the filter; wherein, when the target input signal is a general-purpose register signal, the level transition of the general-purpose register signal is confirmed by the filter and an edge event pulse is generated and output to the subsequent logic module when the level transition of the general-purpose register signal meets the width of the filter window.

[0013] In some embodiments of the present invention, the width of the filtering window is N clock cycles, where N is a configurable positive integer; the new level of the general-purpose register signal after the transition is continuously maintained for N clock cycles, and the filter confirms the transition and generates an edge event pulse.

[0014] In some embodiments of the present invention, the filter modes include edge detection mode, debouncing mode, and pass-through mode; wherein, when the filter is configured as edge detection mode, the rising edge, falling edge, or double edge of the signal is detected within the width limit of the filtering window; when the filter is configured as debouncing mode, pulses with a duration less than the width of the filtering window are filtered out.

[0015] In some embodiments of the present invention, the width of the edge event pulse is one clock cycle.

[0016] A verification method for on-chip configurable logic blocks is proposed, implemented based on the aforementioned input signal selection device for on-chip configurable logic blocks, comprising: Configure the general-purpose register selection multiplexer to select the general-purpose register signal as the input signal; and configure the filter to edge detection mode and set the filter window width; Write the general-purpose register according to a predetermined timing sequence to generate a level transition that satisfies the width of the filtering window; The level transition is filtered to generate an edge event pulse; The edge event pulse is injected as a test stimulus into the subsequent logic module to be verified; The output response of the subsequent logic module is collected, and the output response is compared with the expected response. The functional correctness of the subsequent logic module is verified based on the comparison result.

[0017] In some embodiments of the present invention, the verification method further includes: The method writes level transitions of different durations to the general-purpose register and verifies the correctness of the filter window configuration based on the following conditions: transitions with a duration less than the width of the filter window are filtered out and no edge event pulses are generated; and transitions with a duration greater than or equal to the width of the filter window generate edge event pulses; and the subsequent logic module includes a finite state machine, a counter, or a lookup table. The verification method iterates through and verifies each state transition path of the finite state machine, the event triggering function of the counter, or the input response of the lookup table by successively generating edge event pulses and collecting and comparing the output responses.

[0018] Compared with the prior art, the advantages and positive effects of the present invention are: (1) In the input signal selection device designed in this invention, the general-purpose register selection multiplexer is located at the front end of the filter, so that the general-purpose register signal is processed by the filter. When the filter is configured in edge detection mode, a signal transition (e.g., 0 to 1 or 1 to 0) is generated by writing to the general-purpose register. The transition must meet the configurable filter window width to be confirmed as a valid edge and output a pulse signal. The pulse signal can be used as an event to trigger subsequent logic modules (e.g., FSM state transition, Counter event loading, etc.). This allows the software to directly generate hardware events without relying on external signal sources or complex event chains.

[0019] (2) Compared with edge detection schemes that only support edge polarity selection and have no width limitation, the filtering window of the present invention imposes a width limitation on the confirmation of transitions: narrow pulses with a duration less than the window width (including short pulses generated by software miswriting and crosstalk glitches) are effectively suppressed and will not generate edge events; and the window width is configurable, which can flexibly adjust the suppression threshold according to the interference characteristics of different application scenarios, taking into account both sensitivity and anti-interference ability.

[0020] (3) In chip testing and online debugging scenarios, users can generate edge events that meet the filtering window by writing general-purpose registers through software. These events can be directly injected into subsequent logic modules such as FSM and Counter as test stimuli, and their output responses can be collected and compared with expectations to form a closed-loop verification of injection, collection, and comparison. There is no need to build an external signal source or configure a complete event chain, which significantly reduces the complexity of testing.

[0021] (4) By writing level transitions of different durations in the software, the correctness of the filter window configuration can be verified: transitions shorter than the window duration should be filtered out, and transitions longer than or equal to the window duration should generate an event. This allows the filter and subsequent logic modules to complete self-testing under the same software injection mechanism.

[0022] (5) The general-purpose register signal and the external input signal go through the same filter processing path, ensuring consistent signal quality and avoiding glitches that may be introduced by the general-purpose register signal bypass filter.

[0023] (6) The edge event pulse width is one clock cycle. The software can precisely control the generation time of the edge event by controlling the write value, write timing and write pulse width of the general-purpose register, which is beneficial for timing-sensitive logic verification.

[0024] 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

[0025] Figure 1 This is a device architecture diagram of the input signal selection device for on-chip configurable logic blocks proposed in this invention; Figure 2 This is a schematic diagram of the edge event generation signal flow in the input signal selection device for on-chip configurable logic blocks proposed in this invention; Figure 3 This is a schematic diagram of the timing waveform for edge event generation in the input signal selection device for on-chip configurable logic blocks proposed in this invention. Figure 4 This is a flowchart of the input signal selection method for on-chip configurable logic blocks proposed in this invention; Figure 5 For existing on-chip configurable logic block architectures. Detailed Implementation

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

[0027] like Figure 5 As shown, the input signal chain of the existing scheme is: external input signal → global multiplexer (global MUX) → local multiplexer (local MUX) → synchronizer → filter → general purpose register select multiplexer (GPREG MUX) → output. In the existing scheme, the GPREG MUX is located after the filter, and the GPREG signal directly bypasses the filter, thus failing to utilize the filter's edge detection function.

[0028] In the input signal selection device proposed in this invention, the input signal chain is as follows: external input signal → global MUX → local MUX → GPREG MUX → synchronizer → filter → output. The GPREG MUX is located before the filter, and the general-purpose register (GPREG) signal is output to the subsequent logic module after being processed by the synchronizer and filter.

[0029] Specifically, such as Figure 1 As shown, the input signal selection device provided in this embodiment includes the following components: A global multiplexer (MUX) is configured to select one output from multiple external input signals. These external input signals come from on-chip peripherals (such as EPWM, GPIO, input capture modules, etc.) or chip pins. The selection of the global MUX is controlled by a configuration register.

[0030] Local MUX is configured to select or route the output of the global MUX, providing finer-grained signal selection capabilities.

[0031] A general-purpose register selection multiplexer (GPREG MUX), located before the filter, is configured to select one output from the output of the local MUX and the GPREG signal. GPREG is a software-readable and writable register; the CPU changes its output value by writing to GPREG. In this invention, the GPREG MUX is located before, rather than after, the filter.

[0032] The synchronizer is configured to synchronize the output signal of the GPREG MUX and uses a two-stage flip-flop structure to eliminate metastability.

[0033] A filter, located at the output of the synchronizer, is configured to process the synchronized signal. It has a filtering window, the width of which is set by configuration information. The filter supports the following configuration modes: edge detection mode, debouncing mode, and pass-through mode. In edge detection mode, the filter detects the rising or falling edge of the input signal within the filtering window: only when the new level after the transition is continuously maintained for N clock cycles (the width of the filtering window), is the edge confirmed and a corresponding pulse signal is output, with a pulse width of one clock cycle; transitions lasting less than N clock cycles are filtered out. In this invention, the filtering window width is configurable, which limits the confirmation of edge events and allows the suppression threshold to be flexibly adjusted according to the interference characteristics of the application scenario.

[0034] In this invention, the GPREG MUX, synchronizer, and filter constitute a shared signal processing path. All input signals (whether GPREG signals or external input signals) go through the same processing path, ensuring consistent signal quality.

[0035] The following examples describe how to generate filtered window-verified edge events by writing GPREG using software.

[0036] like Figure 2 The signal flow path shown is: CPU software writes to the GPREG register → GPREG MUX (selects GPREG as the input source) → synchronizer → filter (configured as edge detection mode and filter window width N) → edge event pulse → subsequent logic module (such as FSM, Counter or LUT).

[0037] The work process includes: (1) The user configures GPREG MUX, selects GPREG as the input signal source, configures the filter as edge detection mode (such as rising edge detection), and sets the filter window width N (for example, N=2 clock cycles).

[0038] (2) The CPU software writes GPREG from 0 to 1, generating a rising edge transition.

[0039] (3) The transition signal passes through the GPREG MUX located before the filter and reaches the synchronizer. The synchronizer performs synchronization processing on the signal and then sends it to the filter.

[0040] (4) After the filter detects the rising edge of the synchronized signal, it performs window determination on the new level: if the new level is valid for N consecutive clock cycles, the filter outputs a pulse signal for one clock cycle; if the new level bounces back within N clock cycles (the duration of the bounce is less than the window width), the bounce is determined to be a glitch or short pulse and is filtered out, and no pulse output is generated.

[0041] (5) The pulse signal is sent as an edge event to subsequent logic modules (such as FSM, Counter or LUT). For example, the pulse signal can trigger the FSM to perform a state transition, or the pulse signal can trigger the Counter to perform a load, addition or shift operation.

[0042] like Figure 3 The timing waveform shown indicates that in the Nth clock cycle of CLK, the CPU writes GPREG from 0 to 1. After a synchronization delay of 1 to 2 clock cycles, the rising edge is detected at the filter input in the (N+1)th or (N+2)th clock cycle. The filter performs a window determination of N clock cycles on the new level and outputs a pulse signal with a width of one clock cycle (if N=1, it outputs immediately). Subsequent logic modules perform corresponding operations during the valid clock cycles of the pulse signal.

[0043] Through the above mechanism, the software can precisely control the generation time of edge events and whether they pass the window determination by controlling the write value, write timing and write pulse width of GPREG, thereby realizing the software driving and verification of subsequent hardware logic modules.

[0044] Based on the above, the input signal selection method provided in this embodiment, such as Figure 4 As shown, it includes: S101: Configure the general-purpose register to select the input of the multiplexer; and configure the filter mode and filter window width.

[0045] The input selection configuration is received to determine the input signal source. Input signal sources include external input signals (such as signals from on-chip peripherals like EPWM and GPIO) or general-purpose register GPREG signals. The input selection configuration is set by the user through the configuration register.

[0046] The filter can be configured to one of the following modes: edge detection mode (detecting rising, falling, or double edges within a defined filtering window), debouncing mode (filtering out pulses shorter than the filtering window width), or pass-through mode (no filtering, allowing direct passage). The filter window width is N clock cycles, where N is a configurable positive integer. After a software-written GPREG transition, the new level signal must be maintained continuously for N clock cycles before the filter recognizes the transition as a valid edge and outputs a pulse signal one clock cycle wide.

[0047] S102: General purpose register selects the multiplexer to select the output target input signal based on the input.

[0048] The target input signal can be an external input signal or a general-purpose register signal. The GPREG MUX is located before the filter. When GPREG is selected as the target input signal, the GPREG signal is routed to the output of the GPREG MUX; when an external input signal is selected as the target input signal, the signals selected by the global MUX and local MUX are routed to the output of the GPREG MUX.

[0049] S103: The target input signal is sent to the filter after being synchronized by the synchronizer.

[0050] The signal output from the GPREG MUX is synchronized using a synchronizer. The synchronizer eliminates metastability and ensures the timing correctness of the signal in subsequent processing. The synchronizer can employ a two-stage flip-flop structure. The synchronized signal is then fed into a filter for further processing.

[0051] When the filter is configured in edge detection mode, step S104 is executed; when the filter is configured in debouncing mode or pass-through mode, step S105 is executed.

[0052] S104: When the level transition of the general-purpose register signal meets the width of the filter window, the filter confirms the signal and generates an edge event pulse, which is then output to the subsequent logic module.

[0053] When the GPREG signal is selected as the input signal source, the level transition generated by the software write to the GPREG register must meet the limitations of the filtering window before it is confirmed by the filter and an edge event pulse is generated and output to subsequent logic modules, such as LUT, FSM, Counter, etc. Specifically, the width of the filtering window is N clock cycles (N is a configurable positive integer). The new level after the software write to GPREG must be maintained continuously for N clock cycles before the filter confirms the transition as a valid edge and outputs a pulse signal with a width of one clock cycle; transitions with a duration of less than N clock cycles are considered glitches or short pulses and are filtered out. This pulse signal triggers the subsequent logic modules to perform corresponding operations.

[0054] S105: Processes signals in either debouncing or pass-through mode and outputs them to subsequent logic modules.

[0055] The following embodiment describes the application of the input signal selection device and method provided by the present invention in chip testing and debugging scenarios to perform injection, acquisition, comparison, and closed-loop verification of subsequent logic modules in the CLB.

[0056] Scenario Description: During chip development, functional verification of the FSM submodule in the CLB is required. The FSM has multiple states and state transition conditions, and each state transition condition requires an event signal to trigger.

[0057] The existing solution involves configuring an external input signal source (such as EPWM generating a signal with a specific timing) or configuring a complete event chain (such as LUT output → Counter event → FSM trigger). The testing process is complex and depends on external resources. Furthermore, the existing solution does not provide a closed-loop verification method for software injection stimuli.

[0058] Verification method of this invention embodiment: (1) Configure GPREG MUX: Select GPREG as the input source, configure the filter to edge detection mode and set the filter window width.

[0059] (2) Configure the state transition conditions of FSM to use edge events generated by GPREG as the trigger source.

[0060] (3) Test FSM state transition 1 (State A→State B): The CPU writes GPREG from 0 to 1 and holds it, generates a rising edge transition that satisfies the filter window, generates an edge event pulse, and triggers the FSM to transition from State A to State B.

[0061] (4) Collect the output response of the FSM and compare the output response with the expected State B output; if the comparison is consistent, the state transition path is verified to be correct; if the comparison is inconsistent, the fault is located.

[0062] (5) After verification, continue testing the next state transition: the CPU writes GPREG again (generating the next transition that satisfies the window), generates the next edge event pulse, triggers the FSM to transition from State B to State C, and repeats the acquisition and comparison steps.

[0063] (6) Repeat the above steps to traverse and verify all state transition paths of the FSM one by one, and complete the closed-loop function verification of the FSM submodule.

[0064] Through the embodiments of this invention, testers do not need to build external signal sources or configure complex event chains. They can generate the required edge event stimuli simply by controlling the writing of the GPREG register through software. This, combined with the acquisition and comparison of the output response, forms a complete closed loop, greatly simplifying the testing process and improving testing efficiency. Furthermore, since the edge event pulse width is one clock cycle, the timing is precisely controllable, which is beneficial for timing-sensitive logic verification.

[0065] Similarly, this mechanism can also be used for event-triggered validation in the Counter submodule and input response validation in the LUT submodule.

[0066] The following embodiments describe the reverse verification of the filter window configuration of the filter itself using a software-controllable pulse width.

[0067] Verification principle: Since the duration of the new level generated by writing GPREG in the software is completely controllable, the decision behavior of the filter window can be verified by constructing level transitions of different durations.

[0068] The verification process includes: (1) Configure GPREG MUX to select GPREG as the input source, configure the filter to edge detection mode, and set the filter window width to N clock cycles.

[0069] (2) Construct a transition with a duration of less than N clock cycles: The CPU writes GPREG from 0 to 1, maintains it for less than N clock cycles, and then writes it back to 0. If the filter window is configured correctly, this short pulse should be filtered out, no edge event pulse will be generated, and subsequent logic modules should not respond.

[0070] (3) Construct a transition with a duration greater than or equal to N clock cycles: The CPU writes GPREG from 0 to 1 and holds it. This transition should be determined by a window, generating an edge event pulse with a clock cycle width, and subsequent logic modules should produce the expected response.

[0071] (4) Collect the output of the subsequent logic module (or filter output) in the above two cases and compare it with the expected behavior: if the short pulse is filtered out and the long jump event is generated, then the filter window configuration is correct; otherwise, locate the filter configuration or implementation failure.

[0072] (5) Change the configuration of the filter window width and repeat the above steps to verify the correctness of different window settings.

[0073] In this embodiment, the filter and subsequent logic modules can complete self-testing under the same software injection mechanism without the need for additional test circuits or external instruments, further reducing chip verification costs.

[0074] 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. An input signal selection device for an on-chip configurable logic block, characterized in that, include: A global multiplexer configured to select one output from multiple external input signals; A general-purpose register selector multiplexer, located on the output side of the global multiplexer, is configured to select one output from the output of the global multiplexer and the general-purpose register signal; A synchronizer, located at the output of the general-purpose register select multiplexer, is configured to: perform synchronization processing on the output signal of the general-purpose register select multiplexer; A filter, located at the output of the synchronizer, is configured with a filtering window, the width of which is set by configuration information. The filter is configured such that, when configured in edge detection mode, the transition is confirmed and the target signal is output to the subsequent logic module only when the level holding time after the output signal of the synchronizer changes meets the width of the filtering window.

2. The input signal selection device for on-chip configurable logic blocks according to claim 1, characterized in that, The device further includes: A local multiplexer, located at the output of the global multiplexer, is configured to: select or route the output of the global multiplexer; the output of the local multiplexer is connected to the input of the general-purpose register multiplexer.

3. The input signal selection device for on-chip configurable logic blocks according to claim 1, characterized in that, The synchronizer performs synchronization processing on the signal output by the general-purpose register selection multiplexer based on its two-stage flip-flop structure.

4. The input signal selection device for on-chip configurable logic blocks according to claim 1, characterized in that, In edge detection mode, the filter detects the rising or falling edge of the input signal within the filter window. Only when the new level after the transition is continuously maintained for the width of the filter window, the filter outputs a pulse signal corresponding to the edge. The width of the pulse signal is one clock cycle.

5. A method for selecting input signals of an on-chip configurable logic block, applied in the input signal selection device for an on-chip configurable logic block as described in any one of claims 1-4, characterized in that, include: Configure the input selection of the multiplexer using the general-purpose register; and configure the mode and filter window width of the filter. The general-purpose register selection multiplexer selects and configures the output target input signal according to the input selection; the target input signal is either an external input signal or a general-purpose register signal. The target input signal is synchronized by the synchronizer and then sent to the filter; wherein, when the target input signal is a general-purpose register signal, the level transition of the general-purpose register signal is confirmed by the filter and an edge event pulse is generated and output to the subsequent logic module when the level transition of the general-purpose register signal meets the width of the filter window.

6. The input signal selection method for an on-chip configurable logic block according to claim 5, characterized in that, The width of the filtering window is N clock cycles, where N is a configurable positive integer; the new level of the general-purpose register signal after the transition is continuously maintained for N clock cycles, and the filter confirms the transition and generates an edge event pulse.

7. The input signal selection method for an on-chip configurable logic block according to claim 5, characterized in that, The filter modes include edge detection mode, debouncing mode, and pass-through mode; wherein, when the filter is configured as edge detection mode, the rising edge, falling edge, or double edge of the signal is detected within the width limit of the filtering window; when the filter is configured as debouncing mode, pulses with a duration less than the width of the filtering window are filtered out.

8. The input signal selection method for an on-chip configurable logic block according to claim 5, characterized in that, The width of the edge event pulse is one clock cycle.

9. A verification method for on-chip configurable logic blocks, implemented based on the input signal selection device for on-chip configurable logic blocks according to any one of claims 1-4, characterized in that, include: Configure the general-purpose register selection multiplexer to select the general-purpose register signal as an input signal; In addition, the filter is configured to edge detection mode, and the filter window width is set; Write the general-purpose register according to a predetermined timing sequence to generate a level transition that satisfies the width of the filtering window; The level transition is filtered to generate an edge event pulse; The edge event pulse is injected as a test stimulus into the subsequent logic module to be verified; The output response of the subsequent logic module is collected, and the output response is compared with the expected response. The functional correctness of the subsequent logic module is verified based on the comparison result.

10. The verification method for on-chip configurable logic blocks according to claim 9, characterized in that, The verification method further includes: The method writes level transitions of different durations to the general-purpose register and verifies the correctness of the filter window configuration based on the following conditions: transitions with a duration less than the width of the filter window are filtered out and no edge event pulses are generated; and transitions with a duration greater than or equal to the width of the filter window generate edge event pulses; and the subsequent logic module includes a finite state machine, a counter, or a lookup table. The verification method iterates through and verifies each state transition path of the finite state machine, the event triggering function of the counter, or the input response of the lookup table by successively generating edge event pulses and collecting and comparing the output responses.