A device and method for testing digital filter circuit based on Manchester decoding

By introducing a decoding unit and a filtering algorithm prediction module into the digital filter circuit, the correctness of Manchester decoded data and CIC filter algorithm is detected in real time, and the problem of lack of effective testing solutions in the prior art is solved, and the digital based on Manchester decoding is realized Fast and accurate verification of filter circuits.

CN117872101BActive Publication Date: 2024-12-06北京中科昊芯科技有限公司
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410046666.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-11
Publication Date
2024-12-06
Estimated Expiration
2044-01-11

AI Technical Summary

Technical Problem

The prior art lacks an effective test scheme for digital sigma data filter digital circuits based on Manchester decoder, resulting in the inability to effectively verify the normal operation and protocol compliance of these circuits.

Method used

Provide a digital filter circuit testing device and method based on Manchester decoding. Through the decoding unit algorithm prediction module and filter algorithm prediction module, the correctness of Manchester decoded data and CIC filter algorithm algorithm of the digital circuit to be tested is detected in real time, including fast rough estimation and capture , tracking, integral accumulation, downward extraction and differential decreasing phase comparison and verification.

Benefits of technology

It realizes rapid detection and verification of digital filtering circuits based on Manchester decoding, and can promptly discover and report error points, ensure the accuracy of the circuit in the process of accumulation and decreasing in each order, and improves the testing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117872101B_ABST
    Figure CN117872101B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a device and method for testing a digital filter circuit based on Manchester decoding, the device comprising: a decoding unit algorithm prediction module, which is set corresponding to the decoding unit in the digital circuit to be tested, and is used to detect Manchester decoded data, wherein the digital circuit to be tested is a digital circuit sigma data filter based on Manchester decoder; a filtering algorithm prediction module, which is set corresponding to the filtering unit in the digital circuit to be tested, and is used to detect when the decoded data passes through the CIC (cascaded integrator comb filter) algorithm, and extract and compare each result when each order is accumulated and decreased. The embodiment of the present application is adopted to solve the verification of the sigma data filter of the digital circuit to be tested by means of external algorithm prediction, and to detect in real time whether the sinc multi-order filter algorithm based on Manchester decoding is operating normally, and whether the module under test meets the requirements of the protocol itself.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of chip front-end verification. Specifically, embodiments of the present application relate to a device and method for testing a digital filter circuit based on Manchester decoding. Background Art

[0002] The digital circuit sigma data filter includes a decoding unit and a digital filtering unit. The decoding unit needs to decode the input single-bit original code, and then perform low-pass filtering on the decoded data through the digital filtering unit to convert it into multi-bit data containing data attributes.

[0003] The digital circuit sigma data filter based on Manchester decoder uses Manchester original code as input signal, generates decoding clock through the preamble of the original code, and decodes the symbol data. Therefore, the filter can be driven without the input of external clock signal.

[0004] The related art lacks a test solution for a digital Manchester decoder-based sigma data filter digital circuit, resulting in the inability to effectively test the related Manchester decoder-based sigma data filter digital circuit. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a device and method for testing a digital filter circuit based on Manchester decoding. The embodiments of the present application are used to solve the verification of the sigma datafilter of the digital circuit to be tested by external algorithm prediction, and to detect in real time whether the sinc multi-order filter algorithm based on Manchester decoding is running normally, and whether the module under test meets the requirements of the protocol itself.

[0006] In a first aspect, an embodiment of the present application provides a device for testing a digital filter circuit based on Manchester decoding, the device comprising: a decoding unit algorithm prediction module, which is arranged corresponding to the decoding unit in the digital circuit to be tested, and is used to detect Manchester decoded data, wherein the digital circuit to be tested is a digital circuit sigma data filter based on a Manchester decoder; a filtering algorithm prediction module, which is arranged corresponding to the filtering unit in the digital circuit to be tested, and is used to detect when the decoded data passes through a CIC (cascaded integrator comb filter) algorithm, and extract and compare each result when accumulating and decreasing at each order.

[0007] In some embodiments, the decoding unit includes a fast rough estimation module, which is configured to identify the start bit in the preamble code and calculate the rough estimated division ratio value to be compared when confirming that the start bit transmission is completed; the decoding unit algorithm prediction module includes a start bit recognition module, which is configured to monitor the code elements input by the decoding unit, and calculate a reference rough estimated division ratio based on the code element level corresponding to the start bit, and then extract the rough estimated division ratio to be compared and compare the extracted division ratio with the reference rough estimated division ratio.

[0008] In some embodiments of the present application, the start bit identification module is configured to obtain the reference rough estimate division ratio through the following strategy: identify the leading code by sampling the original code at the rising edge of the system clock, count the 11 code and 00 code of the start bit located in the leading code at the rising edge of the system clock respectively, and store the high level count value in the high level register and the low level count value in the low level register, determine the division ratio of the fast rough estimate stage according to the size of the first value in the high level register and the second value in the low level register, and obtain the reference rough estimate division ratio.

[0009] In some embodiments, the decoding unit includes a capture module, which is configured to capture the division ratio of the codeword signal for one data cycle after confirming that the rough estimated division ratio value to be compared is correct, so as to obtain the captured division ratio to be compared; the decoding unit algorithm prediction module includes a captured division value counting module, which is configured to count the captured codeword level in the one data cycle until the capture of the codeword is completed, add the high and low level count values ​​of the captured codeword to the start bit division ratio, and then divide it to obtain a reference captured division ratio value, and then compare the captured division ratio to be compared with the reference captured division ratio value. If they are not equal, it means that the digital circuit to be tested has an error in the capture cycle, and if they are equal, it means that the digital circuit to be tested functions accurately in the capture cycle.

[0010] In some embodiments, the decoding unit includes a tracking module, which is configured to perform frequency division ratio tracking and correction on the codeword signal for 8 data cycles in the tracking stage after confirming that the captured frequency division ratio to be compared is correct, so as to obtain the tracking frequency division ratio to be compared; the decoding unit algorithm prediction module includes a tracking frequency division counting module, which is configured to: monitor each level state of the decoding unit in the tracking stage, count each data cycle time in the eight data cycles through the rising edge of the system clock, and put the count value corresponding to each data cycle into an array matrix of eight depths during the tracking counting process until the eight data cycles are counted, and then all the values ​​in the array matrix of eight depths are accumulated, and then the reference tracking frequency division ratio is obtained by division after adding the captured frequency division ratio to be compared; compare the tracking frequency division ratio to be compared with the reference tracking frequency division ratio, if they are not equal, it means that the decoding unit has an error in calculating the frequency division ratio in the codeword tracking stage, and provide the data in the array matrix of eight depths and the tracking frequency division ratio to be compared.

[0011] In some embodiments, the decoding unit includes a Manchester decoding module, which is configured to perform decoding according to the tracking division ratio to be compared after confirming that the tracking division ratio to be compared is correct, so as to obtain a decoding to be compared; the decoding unit algorithm prediction module includes a decoding prediction module, which is configured to perform a first sampling of the codeword signal according to the tracking division ratio to be compared divided by 2, and then perform a second sampling after a division ratio time to obtain a reference codeword decoding, and extract the decoding to be compared and compare the extracted decoding with the reference codeword decoding. If they are not equal, it is confirmed that an error has occurred in the Manchester decoding stage of the decoding unit.

[0012] In some embodiments, the decoding unit includes an integral accumulation module, which is configured to perform integral accumulation on the confirmed correct decoding to be compared, and obtain a third-order cumulative output value to be verified; the decoding unit algorithm prediction module includes a cascaded integral prediction unit, which is configured to use a first thread to obtain a third-order cumulative prediction value, and compare the third-order cumulative output value with the third-order cumulative prediction value. If they are different, it is confirmed that the function of the integral accumulation module is defective.

[0013] In some embodiments, the decoding unit includes a downward extraction module, and the downward extraction module is configured to extract the third-order accumulated output value downward after confirming that the third-order accumulated output value is correct, so as to obtain a downward extracted value to be verified; the decoding unit algorithm prediction module includes a first cascade differential prediction unit, and the first cascade differential prediction unit is configured to use a second thread to detect that the downward extraction module completes a downward extraction process and latches each acquired third-order accumulated prediction value into a corresponding array matrix to obtain a reference downward extraction value, and compares the reference downward extraction value with the downward extraction value to be verified. If they are different, it is confirmed that the downward extraction module has a defect.

[0014] In some embodiments, the decoding unit includes a differential decrement module, and the differential decrement module is configured to perform differential decrement on the verified down-sampled value to be compared to obtain the differential decrement value to be compared; the decoding unit algorithm prediction module includes a second cascade differential prediction unit, and the second cascade differential prediction unit is configured to wait for the division ratio time of n down-sampled values ​​to be verified, store the sampled value of the first cascade differential prediction unit in the first storage unit dack_data[0], and then obtain the first-order differential value dack_data[1]=d by differential decrement. ack_data[0]-dack_data[1], and then differentiate to obtain the second-order differential value dack_data[2]=dack_data[1]-dack_data[2], and finally obtain the third-order differential value dack_data[3]=dack_data[2]-dack_data[3], wherein the third-order differential value dack_data[3] is the reference differential decreasing value, and the differential decreasing value to be compared is compared with the reference differential decreasing value. If they are different, it indicates that the differential decreasing module has defects.

[0015] In a second aspect, some embodiments of the present application provide a method for testing a digital filter circuit based on Manchester decoding, the method comprising: inputting Manchester original code into a digital circuit to be tested and a device as described in any embodiment of the first aspect, wherein the digital circuit to be tested is a digital circuit sigmadata filter based on a Manchester decoder; obtaining a value to be compared from the digital circuit to be tested, and obtaining a reference value from the device; comparing the value to be compared with the reference value to confirm whether there is a defect in the digital circuit to be tested. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 One of the block diagrams of the device for testing a digital filter circuit based on Manchester decoding provided in an embodiment of the present application;

[0018] Figure 2 This is the second component block diagram of the system for testing digital circuits provided in an embodiment of the present application. DETAILED DESCRIPTION

[0019] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0020] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0021] The digital circuit to be tested and the digital filter circuit sigma data filter based on Manchester code need to first decode the single-bit code element signal through the decoder, and restore the clock according to the start bit. The decoder will decode the code element frame by frame according to the restored clock. The restored clock and decoded signal are input into the digital filter unit. The sinc filter in the digital filter unit will first integrate and accumulate the decoded signal, and give the result value to the integral accumulated value integ_data for downward extraction OSR. Finally, the extracted value is differentially reduced to obtain the differential reduction value diff_data(). Diff_data is also the final sigma data filter. The host device such as CPU will read diff_data for processing.

[0022] Algorithms are required for processing during the decoding, integration or differentiation process, in which coding or filtering errors are prone to occur. The device for testing the digital filter circuit based on Manchester decoding of the embodiment of the present application can test and monitor all algorithms of the digital circuit to be tested in the entire processing process during the test, so as to more quickly discover and judge problems in any link.

[0023] It should be noted that in the embodiment of the present application, in order to ensure that the sinc filter can be started normally and maintain the continuous and accurate encoding of the data, it is necessary to add a fast rough estimate start bit to the Manchester encoder, and thus obtain the first frequency division ratio value (i.e., corresponding to the fast rough estimate stage, implemented by the fast rough estimate module). The first frequency division ratio value (when testing the digital circuit, this value is used as the rough estimate frequency division ratio to be compared) is still relatively rough, and it is necessary to capture the frequency division ratio of 2 valid original code symbols of the original code (i.e., corresponding to the capture stage, implemented by the capture module) to obtain the captured frequency division ratio (when testing the digital circuit, this value is used as the captured frequency division ratio to be compared). At this time, the data rate may be unlocked, and the original code needs to be dynamically adjusted by at least 8 valid original code symbols (i.e., corresponding to the tracking stage, implemented by the tracking module). At this time, a new frequency division ratio value is obtained (when testing the digital circuit, this value is used as the tracking frequency division ratio to be compared). After that, Manchester decoding can be performed according to the frequency division ratio obtained by tracking, and the frequency division ratio will be dynamically adjusted by default during decoding. Since Manchester decoding converts the rising or falling delay of data to get the decoding, if an error occurs in the decoding, it will directly affect the digital filtering datafilter result. The inventor of this application found in the research that the data filter will perform corresponding order integral accumulation according to the sd_valid generated by the decoding frequency division ratio, and perform differential reduction by the valid generated after downward extraction. Therefore, when testing the digital circuit to be tested, it is necessary to detect the integral and differential filtering algorithms, and pay attention to algorithmic errors such as cross-order calculations or integral and differential calculation errors.

[0024] Please see Figure 1 , Figure 1 An embodiment of the present application provides a device 100 for testing a digital filter circuit based on Manchester decoding. The device 100 for testing a digital filter circuit based on Manchester decoding includes: a decoding unit algorithm prediction module 110 and a filtering algorithm prediction module 120 .

[0025] The decoding unit algorithm prediction module is arranged corresponding to the decoding unit in the digital circuit to be tested, and is used for detecting Manchester decoding data, wherein the digital circuit to be tested is a digital circuit sigmadata filter based on Manchester decoder.

[0026] The filter algorithm prediction module is arranged corresponding to the filter unit in the digital circuit to be tested, and is used to detect when the decoded data passes through the CIC (cascaded integrator comb filter) algorithm, and extract and compare each result when accumulating and decreasing at each order.

[0027] That is to say, in order to achieve the above-mentioned full testing of the cascaded integral accumulation and downward counting extraction and the cascaded differential decrement algorithm in the sigma data filter. The embodiment of the present application provides a testing method based on algorithm prediction, which includes: a decoding unit algorithm prediction module, which is used to detect Manchester decoding data; a filtering algorithm prediction module, which is used to detect when the decoded data passes through the CIC (cascaded integrator comb filter) algorithm, and extract and compare each result at each order of accumulation and decrement. By building these two prediction modules, the error point can be quickly detected.

[0028] Combine the following Figure 2 The system (including a digital circuit to be tested and a digital circuit testing device) and the architecture of the digital circuit to be tested are combined to exemplarily illustrate a digital filter circuit testing device 100 based on Manchester decoding in some embodiments of the present application.

[0029] like Figure 2 As shown, in some embodiments of the present application, the decoding unit includes a fast rough estimation module, which is configured to identify the start bit in the preamble code and calculate the rough estimated division ratio value to be compared when confirming that the start bit transmission is completed. The corresponding decoding unit algorithm prediction module includes a start bit recognition module, and the start bit recognition module is configured to monitor the code elements input by the decoding unit, and calculate a reference rough estimated division ratio based on the code element level corresponding to the start bit, and then extract the rough estimated division ratio to be compared and compare the extracted division ratio with the reference rough estimated division ratio.

[0030] That is to say, in some embodiments of the present application, the identification and fast rough estimation detection process of the codeword start bit exemplarily includes: the first step of Manchester decoding is to identify the start bit in the preamble code, and the codeword signal of the input decoding unit needs to be monitored during the test. When the start bit identification module identifies the start bit level, it is assumed that the fast rough estimation module of the decoding unit has identified the start bit. Until the start bit transmission is completed, the fast rough estimation module of the decoding unit will obtain the first division ratio value (that is, the rough estimated division ratio to be compared), and the corresponding start bit identification module will obtain a reference rough estimated division ratio by calculating the codeword level, and then extract the rough estimated division ratio to be compared currently obtained by the decoding unit and compare the sampled value with the reference rough estimated division ratio.

[0031] For example, in some embodiments of the present application, first, the start bit recognition module in the decoding algorithm prediction unit will detect the start bit of the preamble code identified by the original code sampling through the rising delay of the system clock (the preamble code in the embodiment of the present application is to determine the frequency division ratio to generate a restored clock, and the code elements containing the encoded data after the preamble code are parsed to obtain the restored clock. The preamble code implemented in the present application is composed of a start bit, a capture bit, and a tracking bit). When the start bit 110 or 001 included in the preamble code is detected (when it is a low level in the idle state, when it is a high level in the idle state, when 001\0011 is detected, 110\1100 will also be recognized as the start bit), it is defined as the start of decoding. In addition, the duration of the start bits 11 and 00 will be counted separately by the rising delay of the system clock, and the high-level count value is stored in W_H1 and the low-level count value is stored in W_L1, and then a preliminary size comparison is performed.

[0032] If W_H1 is 1\2W_L1, formula 1_1 will be executed:

[0033] N1=(W_H1+2*W_L1) / 4 (Formula 1_1)

[0034] If the estimated values ​​of W_H1 and W_L1 are equal, formula 1_2 will be executed:

[0035] N1=(W_H1+W_L1) / 2 (Formula 1_2)

[0036] N1 represents the reference rough estimation division ratio in the fast rough estimation stage.

[0037] If the start bit 110 is followed by a flip signal of 1, that is, 0, the reference rough estimated division ratio N1 is compared with the rough estimated division ratio w_fast to be compared generated by the decoding unit (this value is the value calculated by the decoding unit in the tested circuit, when counting the high and low levels of the code element in the fast rough estimation stage, and dividing it. The calculation process is the same as (Formula 1_1 and Formula 1_2). The test module uses the same calculation method to calculate the predicted fast division ratio value, and then compares it with the result calculated by the decoder (rough estimated division ratio w_fast)). If N1 is not equal to w_fast, an error code containing the current error information is printed to facilitate error finding.

[0038] That is to say, in the embodiment of the present application, the algorithm for obtaining the reference rough estimation frequency division ratio includes: the first step, sampling the original code by the rising edge of the system clock to identify the leading code; the second step, using the rising edge of the system clock to count the 11 code and the 00 code located at the start position in the leading code, respectively, and storing the high-level count value in the high-level register and storing the low-level count value in the low-level register; the third step, determining the frequency division ratio of the fast rough estimation stage according to the first value in the high-level register and the second value in the low-level register, and obtaining the reference rough estimation frequency division value count. It should be noted that the algorithm for calculating the rough estimation frequency division ratio to be compared for the fast rough estimation module included in the decoding unit is the same as the algorithm for obtaining the reference rough estimation frequency division value, and no further elaboration is made here to avoid repetition.

[0039] like Figure 2 As shown, in some embodiments of the present application, the decoding unit includes a capture module, and the capture module is configured to capture the frequency division ratio of the code element signal for one data cycle after confirming that the rough estimated frequency division ratio value to be compared is correct, so as to obtain the captured frequency division ratio to be compared; the decoding unit algorithm prediction module includes a capture frequency division value counting module, and the capture frequency division value counting module is configured to count the captured code element level in the one data cycle until the capture of the code element is completed, and then add the high and low level count values ​​of the captured code element to the start bit frequency division ratio, and then divide it to obtain a reference capture frequency division ratio value, and then compare the captured frequency division ratio to be compared with the captured frequency division ratio value. If they are not equal, it means that the digital circuit to be tested has an error in the capture cycle, and if they are equal, it means that the digital circuit to be tested functions accurately in the capture cycle.

[0040] That is to say, in some embodiments of the present application, after the reference rough-estimated frequency division ratio obtained by the test module is compared with the fast rough-estimated frequency division ratio to be compared of the start position of the decoding unit, the decoding unit needs to capture the frequency division ratio of the code element signal for one data cycle (one high level and one low level time). The tracking frequency division counting module in the corresponding test module will count the captured code element level in this data cycle until the capture of the code element is completed. The captured frequency division value counting module adds the high and low level count values ​​of the captured code element to the start position frequency division ratio (that is, the rough-estimated frequency division ratio to be compared that has passed the verification), and then divides (reference captured frequency division ratio = (high level count value + low level count value + (rough-estimated frequency division ratio to be compared\2))\3) to obtain the reference captured frequency division ratio value. At this time, the decoding unit also obtains the capture division ratio value to be compared (the method of obtaining this value is the same as the method of obtaining the reference capture division ratio), and can compare the capture division ratio to be compared with the reference capture division ratio. If they are not equal, it means that the decoding unit has an error during the capture cycle, and the error code during capture, the wrong division ratio of the decoder, and the reference capture division ratio will be printed to facilitate error finding.

[0041] like Figure 2 As shown, in some embodiments of the present application, the decoding unit includes a tracking module, and the tracking module is configured to perform frequency division ratio tracking and correction on the codeword signal for 8 data cycles in the tracking stage after confirming that the captured frequency division ratio to be compared is correct, so as to obtain the tracking frequency division ratio to be compared; the decoding unit algorithm prediction module includes a tracking frequency division counting module, and the tracking frequency division counting module is configured to: monitor each level state of the decoding unit in the tracking stage, count each data cycle time in the eight data cycles through the rising edge of the system clock, and put the count value corresponding to each data cycle into an array matrix of eight depths during the tracking counting process until the eight data cycles are counted, and then all the values ​​in the array matrix of eight depths are accumulated, and then the reference tracking frequency division ratio is obtained by division after adding the captured frequency division ratio to be compared; compare the tracking frequency division ratio to be compared with the reference tracking frequency division ratio, if they are not equal, it means that the decoding unit has an error in calculating the frequency division ratio in the codeword tracking stage, and provide the data in the array matrix of eight depths and the tracking frequency division ratio to be compared.

[0042] That is to say, in some embodiments of the present application, after the capture frequency division value counting module performs Manchester original code capture frequency division ratio calibration on the decoding unit, the decoding unit also needs to track and correct the frequency division ratio of the code element signal for 8 data cycles. In order to ensure that the restored clock of the decoding unit is stable when entering decoding after the end of the preamble, it is necessary Figure 2 The tracking frequency division counting module monitors each level state of the decoding unit during the tracking phase. The tracking frequency division counting module counts each data cycle time (one high level time and one low level time) through the rising delay of the system clock, a total of eight data cycles. During the tracking counting process, the count value of each data cycle is placed in an eight-depth array matrix until the test module completes the counting of eight data cycles. The tracking frequency division counting module accumulates the eight-depth array values, adds the verified capture division ratio to be compared, and then divides (reference tracking division ratio = (tracking accumulated value + capture division ratio to be compared) \ (8*2+1)), and finally obtains the reference tracking division ratio. At the same time, the decoding unit completes the compilation of the preamble code and decodes the input code element signal. Therefore, the device for testing the digital filter circuit based on Manchester decoding only needs to extract the decoding division ratio of the decoding unit when completing the compilation of the preamble code, and compare it with the division ratio clock calculated by the device for testing the digital filter circuit based on Manchester decoding. If they are not equal, it means that the decoding unit has made an error in calculating the division ratio in the code element tracking stage. The device for testing the digital filter circuit based on Manchester decoding will print the tracking error code and the count values ​​of the eight groups of division ratios, and the tracking division ratio values ​​to facilitate error finding.

[0043] like Figure 2As shown, in some embodiments of the present application, the decoding unit includes a Manchester decoding module, and the Manchester decoding module is configured to perform decoding according to the tracking division ratio to be compared after confirming that the tracking division ratio to be compared is correct, so as to obtain a decoding to be compared; the decoding unit algorithm prediction module includes a decoding prediction module, and the decoding prediction module is configured to perform a first sampling of the codeword signal according to the tracking division ratio to be compared divided by 2, and then perform a second sampling after a division ratio time to obtain a reference codeword decoding, and extract the decoding to be compared and compare the extracted decoding with the reference codeword decoding. If they are not equal, it is confirmed that an error occurs in the Manchester decoding stage of the decoding unit.

[0044] That is to say, in some embodiments of the present application, during the codeword decoding process, after the decoding unit completes the division ratio detection of the leading code through the start bit recognition module, the capture division value counting module and the tracking division counting module, the decoding unit will use the internal restored clock to decode the codeword signal. After the tracking is completed, the tracking division technology module will perform the first sampling of the codeword signal as data0 according to the reference tracking division ratio / 2, and then perform the second sampling as data1 after a reference tracking division ratio time. At this time, the decoding unit has completed the first codeword decoding, and the decoding prediction module extracts and compares the decoded value. If the decoding prediction module samples data0=0 for the first time and data1=1 for the second time, the extracted value of the decoding unit should be 1 ([data0=0:data1=1]=1); if the decoding prediction module samples data0=1 for the first time and data1=0 for the second time, the extracted value of the decoding unit should be 0 ([data0=1:data1=0]=0). If they are not equal, the first decoding error is printed and the decoding signal of the decoding unit needs to be checked. After the decoding prediction module finishes the first decoding without any problem, it waits for a reference tracking frequency division ratio time to extract the input codeword and write it into data0. After another reference tracking frequency division ratio time, it extracts the input codeword and writes it into data1. At the same time, the decoding prediction module extracts the current decoding value of the decoder and compares the result of [data0=1:data1=0] or [data0=0:data1=1] to see if they are equal. If they are not equal, an error code is printed. The decoding prediction module uses this to perform cyclic detection on the decoder decoding value. Until the decoding prediction module continuously collects two identical code elements, such as [data0=0:data1=0] or [data0=1:data1=1], it indicates that the code element input is finished, and the decoding unit will also end the encoding of the first original code data and output 0. At this time, the decoding prediction module will continue to check whether the decoding value of the decoding unit is 0. If not, it means that the state of the decoding unit is wrong when it is idle, and print the error code of the error when the decoder is idle. After the decoding prediction module performs the preamble test on the decoding unit, the frequency division ratio calculated by the decoding prediction module is the same as the frequency division when the decoding unit performs decoding. At this time, the decoder of the sigma data filter will start to decode the code element signal and enable the sinc filter to filter the decoded signal output by the decoder, so the decoding and filtering work of the decoding unit are carried out simultaneously. Therefore, in the verification process of the digital filter circuit test device based on Manchester decoding, the verification of the decoding unit and the verification of the sinc filter need to be configured with separate threads for parallel verification. This is to prevent the digital filter circuit test device based on Manchester decoding from leaking the decoder data during the sinc filter verification process.

[0045] like Figure 2 As shown, in some embodiments of the present application, the decoding unit includes an integral accumulation module, which is configured to perform integral accumulation on the confirmed correct decoding to be compared, and obtain a third-order cumulative output value to be verified; the decoding unit algorithm prediction module includes a cascaded integral prediction unit, which is configured to use a first thread to obtain a third-order cumulative prediction value, and compare the third-order cumulative output value with the third-order cumulative prediction value. If they are different, it is confirmed that the function of the integral accumulation module is defective.

[0046] That is to say, in some embodiments of the present application, cascade integral accumulation detection: when the sigma data filter decodes the codeword signal, it will output the decoded value to the sinc filter, and the sinc filter will first accumulate each data one by one. The cascade integral prediction unit needs to wait for the first restoration clock of the sinc filter to be pulled high, and according to the decoded value extracted by the decoding unit according to the reference tracking division ratio (or the verified tracking division ratio to be compared) during codeword detection, it is given to the sinc filter detection thread add_data[0] at the same time, and then the cascade integral prediction unit performs accumulation filling processing on add_data[0] (add_data[1]=add_data[1]+add_data[0]), uses add_data[1] as the first-order accumulated value prediction value, and then performs accumulation calculation (add_data[2]=add_data[2]+add_data[1]), and adds add_data[0]. a[2] is used as the second-order cumulative prediction value, and finally (add_data[3]=add_data[3]+add_data[2]) cumulative calculation is performed, and add_data[3] is used as the third-order cumulative prediction value. The cascaded integral prediction unit immediately extracts the third-order cumulative output value of the sinc filter (the calculation method of this value is the same as the third-order cumulative prediction value) to obtain the third-order cumulative output value to be verified, and compares it with the third-order cumulative prediction value to see whether it satisfies (sinc filter third-order cumulative output value=add_data[3]). If they are not the same, print the sinc cumulative error code, the predicted sinc cumulative value add_data[3], and the third-order cumulative value extracted from the sinc filter. If correct, continue to wait for a division ratio time, then extract the output value of the decoding unit and give the extracted value to add_data[0]. The cascaded integral prediction unit continues to perform cumulative filling processing, and then extracts and compares the sinc filter to see if it is the same as the calculated filling cumulative value. If it is different, an error code is printed. The cumulative detection of the cascaded integral prediction unit is cyclically detected in turn.

[0047] like Figure 2As shown, in some embodiments of the present application, the decoding unit includes a downward extraction module, and the downward extraction module is configured to extract the third-order accumulated output value downward after confirming that the third-order accumulated output value is correct, so as to obtain a downward extracted value to be verified; the decoding unit algorithm prediction module includes a first cascade differential prediction unit, and the first cascade differential prediction unit is configured to use a second thread to detect that the downward extraction module completes a downward extraction process and latches each acquired third-order accumulated prediction value into a corresponding array matrix to obtain a reference downward extraction value, and compares the reference downward extraction value with the downward extraction value to be verified. If they are different, it is confirmed that the downward extraction module has a defect.

[0048] It should be noted that in some embodiments of the present application, the downward extraction detection is: according to the CIC filter algorithm, after the sinc filter is accumulated, the third-order accumulated output value needs to be extracted downward and then differentially reduced. Since the downward extraction and accumulation in the sinc filter are performed simultaneously, the downward extraction detection in the decoding unit algorithm prediction module needs to be independently detected by another thread. For example, in some embodiments of the present application, the first cascade differential prediction unit for downward decimation detection first waits for the first restoration clock of the sinc filter to be pulled high, latches the third-order cumulative prediction value add_data[3] obtained by the cumulative prediction into the array matrix lock_data[0], waits for the reference tracking division ratio time again, and continues to latch the new predicted cumulative value obtained by the cascade integral prediction unit into lock_data[1], and then waits for the reference tracking division ratio time again, and continues to latch the predicted cumulative value obtained by the cascade integral prediction unit into lock_data[0] until the preset decimation value n is reached, and latches the predicted cumulative value into lock_data[n] for the nth time. At this time, the sinc filter has completed the first downward decimation, and the first cascade differential prediction unit extracts the decimated output value of the sinc filter and compares it with lock_data[n] to see if they are the same. If they are not the same, print the extraction error code, as well as the extracted n latched values ​​and the decimated value output by the sinc filter, to facilitate error finding. Then the first cascade differential prediction unit waits for the reference tracking division ratio time again, and re-latches the new prediction accumulated value into lock_data[0], and then performs detection in a cycle.

[0049] like Figure 2As shown, in some embodiments of the present application, the decoding unit includes a differential decreasing module, and the differential decreasing module is configured to perform differential decreasing on the verified downward extracted value to be compared to obtain the differential decreasing value to be compared; the decoding unit algorithm prediction module includes a second cascade differential prediction unit, and the second cascade differential prediction unit is configured to wait for n division ratio times of the downward extracted value to be verified, store the extracted value of the first cascade differential prediction unit in the first storage unit dack_data[0], and then obtain the first-order differential value dack_data[ 1]=dack_data[0]-dack_data[1], and then differentiate to obtain the second-order differential value dack_data[2]=dack_data[1]-dack_data[2], and finally obtain the third-order differential value dack_data[3]=dack_data[2]-dack_data[3], wherein the third-order differential value dack_data[3] is the reference differential decreasing value, and the differential decreasing value to be compared is compared with the reference differential decreasing value. If they are different, it indicates that the differential decreasing module has defects.

[0050] It should be noted that in some embodiments of the present application, the cascade differential detection process will perform differential reduction on the extracted value after extraction according to the CIC filter algorithm sinc filter, and the differential reduction and accumulation and extraction are also independent operations, but the differential clock after extraction and division of the division ratio (restored clock) extracted by the leading code is used (differential clock = restored clock * extracted value). That is to say, in some embodiments of the present application, the second cascade differential prediction unit first waits for n (extracted value) division ratio times, gives the extracted value of the first cascade differential prediction unit to dack_data[0], and then obtains the first-order differential value dack_data[1]=dack_data[0]-dack_data[1] through differential reduction, and then differentiates to obtain the second-order differential value dack_data[2]=dack_data[1]-dack_data[2], and finally obtains the third-order differential value dack_data[1]=dack_data[1]-dack_data[2]. ck_data[3]=dack_data[2]-dack_data[3]. The dack_data[3] obtained at this time is the filter value of the differential detection. The cascade differential detection module extracts the filter value output by the sinc filter to obtain the differential decreasing value to be compared, and compares it with the third-level differential value dack_data[3]. If they are different, the error code of the cascade differential, the predicted differential value dack_data[3] and the differential value extracted by the sinc filter are printed, thus completing the first sinc filter check. The second cascade differential prediction unit waits for n (extracted value) division ratios again, and starts the differential detection of the sinc filter again, and repeats the detection in a loop until the decoding detection module extracts the value [data0=0:data1=0] or [data0=1:data1=1], and the test module stops the detection.

[0051] In some embodiments of the present application, the device for testing the digital circuit sigma data filter is to extract and compare the result samples in the filter circuit after the prediction calculation by the test module, so as to know whether the decoder and the sinc filter digital circuit algorithm are correct, wherein the decoding unit algorithm prediction module includes the following three parts for the test module of the decoding unit: the start bit fast rough estimation test (corresponding to the start bit identification module), the code element capture test (corresponding to the capture frequency division value counting module), and the code element tracking test (corresponding to the tracking frequency division counting module), and the clock extraction in the preamble code in the decoder is tested. When the detection value in the decoding unit does not match the test value (or called the reference value), an error is reported and printed in time to facilitate error finding. After obtaining the predicted decoding data, the predicted decoding data is given to the sinc filter algorithm prediction unit. The decoded data is subjected to multi-order integration, downward extraction, and differential prediction filtering. After each accumulation, subtraction, and extraction of the updated calculation result value, the new result value is compared with the result value of the corresponding step of the tested sinc filter until there is no error in the output filter data. It is not difficult to understand that in some embodiments of the present application, the preamble code needs to be parsed when the sigma data filter starts working. Therefore, in the workflow from the start of the filter to the output of the filtered data, the preamble code parsing (fast rough estimation, capture, tracking) is only performed once, and the decoding and sinc filter algorithm predictions all need to be performed in parallel. Therefore, for the device for testing the digital filter circuit based on Manchester decoding, it is necessary to first perform preamble code detection until the preamble code detection is completed, and at the same time perform decoding, accumulation, extraction, and differential detection until the decoding detection module recognizes a continuous level, thereby ending the detection.

[0052] Some embodiments of the present application provide a method for testing a digital filter circuit based on Manchester decoding, the method comprising: inputting Manchester original code into a digital circuit to be tested and a device as described in any embodiment of the first aspect, wherein the digital circuit to be tested is a digital circuit sigma datafilter based on a Manchester decoder; obtaining a value to be compared from the digital circuit to be tested, and obtaining a reference value from the device; comparing the value to be compared with the reference value to confirm whether there is a defect in the digital circuit to be tested.

[0053] It should be noted that the implementation process of this method can be specifically referred to the description in the text, and no further elaboration will be made here to avoid repetition.

[0054] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0055] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0056] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0057] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0058] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0059] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. A device for testing digital filter circuits based on Manchester decoding, It is characterized in that The device comprises: A decoding unit algorithm prediction module is arranged corresponding to the decoding unit in the digital circuit to be tested, and is used for detecting Manchester decoding data, wherein the digital circuit to be tested is a digital circuit sigmadata filter based on Manchester decoder; A filter algorithm prediction module, which is arranged corresponding to the filter unit in the digital circuit to be tested, and is used to detect when the decoded data passes through the cascaded integrator comb filter algorithm, and extract and compare each result when accumulating and decreasing at each order; The decoding unit in the digital circuit to be tested includes a capture module, which is configured to capture the frequency division ratio of a data cycle on the symbol signal after confirming that the rough estimated frequency division ratio value to be compared is correct, so as to obtain the captured frequency division ratio to be compared; The decoding unit algorithm prediction module includes a capture frequency division value counting module, which is configured to count the capture code element level in a data cycle until the capture code element is finished, add the capture code element high and low level count values ​​and the verified rough estimated frequency division ratio to be compared, and then perform division to obtain a reference capture frequency division ratio value, and then compare the capture frequency division ratio to be compared with the reference capture frequency division ratio value. If they are not equal, it means that the digital circuit to be tested has an error in the capture cycle, and if they are equal, it means that the digital circuit to be tested functions accurately in the capture cycle; The decoding unit comprises a fast rough estimation module, wherein the fast rough estimation module is configured to identify the start bit in the preamble and calculate the rough estimation frequency division ratio value to be compared when confirming that the start bit transmission is completed; The decoding unit algorithm prediction module includes a start bit recognition module, which is configured to monitor the code element input by the decoding unit, calculate a reference rough estimated frequency division ratio according to the code element level corresponding to the start bit, and then extract the rough estimated frequency division ratio to be compared and compare the extracted frequency division ratio with the reference rough estimated frequency division ratio; The start bit identification module is configured to obtain the reference rough estimated division ratio through the following strategy: identify the leading code by sampling the original code through the rising edge of the system clock, count the 11 code and the 00 code of the start bit located in the leading code respectively with the rising edge of the system clock, store the high level count value in the high level register and store the low level count value in the low level register, determine the division ratio in the fast rough estimation stage according to the size of the high level count value in the high level register and the low level count value in the low level register, and obtain the reference rough estimated division ratio.

2. The device according to claim 1, It is characterized in that The decoding unit includes a tracking module, and the tracking module is configured to perform frequency division ratio tracking correction for 8 data cycles on the code element signal in the tracking stage after confirming that the captured frequency division ratio to be compared is correct, so as to obtain the frequency division ratio to be compared and tracked; The decoding unit algorithm prediction module includes a tracking frequency division counting module, and the tracking frequency division counting module is configured to: monitor each level state of the decoding unit in the tracking phase, count each data cycle time in eight data cycles through the rising edge of the system clock, and put the count value corresponding to each data cycle into an array matrix of eight depths during the tracking counting process until the eight data cycles are counted, and then accumulate all the values ​​in the array matrix of eight depths, add the captured frequency division ratio to be compared, and then divide to obtain a reference tracking frequency division ratio; The tracking division ratio to be compared is compared with the reference tracking division ratio. If they are not equal, it means that the decoding unit has made an error in calculating the division ratio during the symbol tracking stage, and provides data in an array matrix of eight depths and the tracking division ratio to be compared.

3. The device as claimed in claim 2, It is characterized in that The decoding unit comprises a Manchester decoding module, and the Manchester decoding module is configured to perform decoding according to the tracking frequency division ratio to be compared after confirming that the tracking frequency division ratio to be compared is correct, so as to obtain a decoding to be compared; The decoding unit algorithm prediction module includes a decoding prediction module, which is configured to perform a first sampling of the codeword signal according to the tracking division ratio to be compared divided by 2, and then perform a second sampling after a division ratio time to obtain a reference codeword decoding, and extract the decoding to be compared and compare the extracted decoding with the reference codeword decoding. If they are not equal, it is confirmed that an error occurs in the Manchester decoding stage of the decoding unit.

4. The device as claimed in claim 3, It is characterized in that The decoding unit includes an integral accumulation module, which is configured to perform integral accumulation on the confirmed correct decoding to be compared to obtain a third-order accumulated output value to be verified; The decoding unit algorithm prediction module includes a cascaded integral prediction unit, which is configured to use a first thread to obtain a third-order cumulative prediction value, and compare the third-order cumulative output value with the third-order cumulative prediction value. If they are different, it is confirmed that the function of the integral accumulation module is defective.

5. The device as claimed in claim 4, It is characterized in that The decoding unit includes a downward extraction module, and the downward extraction module is configured to extract downwards the third-order accumulated output value after confirming that the third-order accumulated output value is correct, so as to obtain a downward extracted value to be verified; The decoding unit algorithm prediction module includes a first cascade differential prediction unit, which is configured to use a second thread to detect that when the downward extraction module completes a downward extraction, each third-order accumulated prediction value obtained is latched into a corresponding array matrix to obtain a reference downward extraction value, and compare the reference downward extraction value with the downward extraction value to be verified. If they are different, it is confirmed that the downward extraction module has a defect.

6. The device as claimed in claim 5, It is characterized in that The decoding unit comprises a differential decreasing module, and the differential decreasing module is configured to perform differential decreasing on the verified downward extracted value to be verified to obtain a differential decreasing value to be compared; The decoding unit algorithm prediction module includes a second cascade differential prediction unit, which is configured to wait for the division ratio time of n downward extracted values ​​to be verified, store the extracted value of the first cascade differential prediction unit in the first storage unit dack_data[0], and then obtain a first-order differential value dack_data[1]=dack_data[0]-dack_data[1] by differential reduction, and then obtain a second-order differential value dack_data[2]=dack_data[1]-dack_data[2] by differentiation, and finally obtain a third-order differential value dack_data[3]=dack_data[2]-dack_data[3], wherein the third-order differential value dack_data[3] is a reference differential reduction value, and compare the differential reduction value to be compared with the reference differential reduction value. If they are different, it indicates that the differential reduction module has defects.

7. A method for testing digital filter circuits based on Manchester decoding, It is characterized in that The method comprises: Inputting the Manchester original code into the digital circuit to be tested and the device according to any one of claims 1 to 6, wherein the digital circuit to be tested is a digital circuit sigma data filter based on a Manchester decoder; Acquire a value to be compared from the digital circuit to be tested, and acquire a reference value from the device; The value to be compared is compared with the reference value to confirm whether there is a defect in the digital circuit to be tested.

Citation Information

Patent Citations

  • Digital filter verification platform and operation method

    CN116050319A