Time sequence optimization method for conversion from VCD vector to STIL vector
By combining the timing optimization method in the conversion of VCD vectors to STIL vectors and controlling the number of generated timing transition edges, the problems of post-conversion waveform distortion and low test efficiency in the existing technology are solved, and the efficiency of integrated circuit testing is improved.
Patent Information
- Application Number
- CN202310205784.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-06
- Publication Date
- 2024-09-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology cannot effectively control the number of generated timing transition edges in the conversion of VCD vectors to STIL vectors, resulting in waveform distortion or excessive test vectors during testing, affecting integrated circuit testing efficiency.
By combining the timing optimization method in the conversion of VCD vectors to STIL, we read and parse VCD files, configure information, establish event timelines, use sliding windows to determine the optimal division period, complete the tail waveform, and divide and generate timing to ensure that the conversion is The number of timing transition edges in the STIL vector is within the upper limit provided by the test machine, thereby optimizing the segmentation cycle.
It is possible to use as many transition edges of the test machine as possible without exceeding the number of transition edges provided by the test machine, thereby improving the efficiency of integrated circuit testing.
Smart Images

Figure CN118604590A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of integrated circuit testing, and in particular relates to a timing optimization method for converting a VCD vector to a STIL vector. Background Art
[0002] As the scale and complexity of integrated circuits continue to increase, it is becoming increasingly difficult for chip testers to manually write test vectors, which will greatly extend the design cycle of integrated circuits. Therefore, integrated circuit test technicians generally use EDA tools to simulate test vectors to verify the logical functions of integrated circuits. However, the test vectors generated by EDA simulation tools are generally in VCD format. This vector format is event-based, and the test machine can only recognize timing-based test vectors, so the test vectors need to be converted. STIL vectors are a commonly used timing-based test vector, so by converting VCD vectors into STIL vectors, the simulated vectors can be used for test machine testing.
[0003] The conversion of VCD vector to STIL vector is mainly achieved by periodization, that is, using a fixed period to divide the VCD vector into timing to achieve the purpose of periodization. At present, the conversion from VCD to STIL is divided into timings with a fixed period. This method cannot control the number of transition edges in the generated timing. If the number of transition edges is greater than the upper limit that the tester can provide, it will cause waveform distortion during testing and lead to test failure. If the number of transition edges is too small, the size of the converted test vector will be too large, affecting the efficiency of integrated circuit testing. Therefore, in the vector conversion, the timing optimization technology is combined to control the number of transition edges in the converted STIL timing, so that the transition edges of the tester can be fully used during the test, thereby improving the efficiency of integrated circuit testing. Summary of the invention
[0004] In view of the above analysis, the present invention aims to disclose a timing optimization method for the conversion of VCD vector to STIL vector. By combining the timing optimization in the conversion of VCD vector to STIL, the segmentation makes the number of jump edges in all vector segments less than or equal to the upper limit of the jump edges that the tester can provide. The pre-segmentation detection eliminates the situation where the segmentation period is too small due to the jump edges being too dense. In this way, the number of timing jump edges in the converted test vector is not greater than the jump edges provided by the tester, and the jump edges of the tester are used as much as possible, thereby achieving the purpose of improving the test efficiency.
[0005] The invention discloses a timing optimization method for converting a VCD vector to a STIL vector, comprising a conversion method from a VCD vector to a STIL vector and a timing optimization method.
[0006] The method for converting a VCD vector to a STIL vector includes four steps: reading and parsing a VCD file, writing configuration information, optimizing timing and periodizing, and outputting STIL.
[0007] The VCD file is read and parsed, and the information of all signals in the test vector is extracted through keyword parsing and stored through a suitable data structure.
[0008] The configuration information is written to obtain all signals according to the structure, and configure all signals to clarify the direction of each signal. For bidirectional signals, it is also necessary to clarify the control signal.
[0009] The timing optimization includes four steps: establishing a vector event timeline, determining an optimal segmentation period by sliding a window, completing the tail waveform, and segmenting and generating a timing.
[0010] The establishment of the vector event timeline mainly includes the establishment of the event timeline by parsing the VCD test vector. The event timeline is characterized by storing the jump information of the vector in an ordered array data structure. The jump information is characterized by using a map data structure to store the time point and event when the test vector jumps. The key value of the map is time, and the value of the map is event.
[0011] The sliding window determines the best segmentation period, and is characterized in that the segmentation period is controlled so that the timing in the STIL vector obtained by VCD conversion uses the transition edges of the test machine as much as possible.
[0012] The completed tail waveform is characterized by extending the vector according to the optimal segmentation period determined by the sliding window so that the vector can be completely segmented by the optimal segmentation period.
[0013] The segmentation generates a timing sequence, which is characterized in that the vector is segmented according to the best segmentation period determined by the sliding window, and the vectors of all signals are sequentially intercepted to obtain an ordered vector end set, and the timing sequence can be obtained by removing the repeated vectors therein.
[0014] The STIL is periodized and output, and a STIL vector is output according to the extracted vector information.
[0015] The present invention can achieve the following beneficial effects:
[0016] The present invention utilizes timing optimization to control the timing in the STIL vector obtained by converting the VCD vector, so that the timing in the converted vector can fully utilize the jump edge provided by the tester, better cooperate with the tester to perform integrated circuit testing, thereby improving the efficiency of integrated circuit testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings are for purposes of illustration only and are not to be considered limiting of the present invention. Like reference characters denote like parts throughout the drawings.
[0018] Figure 1 4 is a schematic diagram of the conversion principle from a VCD vector to a STIL vector in an embodiment of the present invention.
[0019] Figure 2 4 is a flow chart of a timing optimization method in an embodiment of the present invention. DETAILED DESCRIPTION
[0020] The preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used to illustrate the principles of the present invention together with the embodiments of the present invention.
[0021] An embodiment of the present invention discloses a timing optimization method for converting a VCD vector to a STIL vector, including a conversion method from a VCD vector to a STIL vector and a timing optimization method.
[0022] The conversion method from VCD vector to STIL vector can refer to the example Figure 1 , specifically:
[0023] Figure 1 Step 1, read and parse the VCD file. The purpose of this step is to extract the information of all signals in the test vector and store it through a suitable data structure. In view of the event-based characteristics of the VCD test vector, this paper adopts a map-style structure to store the VCD information. The key of the map is the time when the event occurs, and the value is the event. The specific parsing method is to parse according to the keywords of VCD, obtain the signal name, signal bit number and signal representation of the test vector by the "$var" keyword and store it, and determine the time when the time occurs according to the "#" keyword. The signals in VCD can be divided into one-bit signals and multi-bit signals, and the event representation of the two is also different. The representation of a one-bit signal is "event + signal indicator", while the multi-bit signal is "b + event + space + signal indicator". Different methods are used to parse different events according to the representation of the event. For a one-bit signal, the information can be directly divided. The first bit is the event, and the next bit is the signal indicator. Then, the corresponding signal is found through the signal indicator, and the information is stored in the structure of the signal in the form of "current time-event". For multi-bit signals, the information needs to be split according to spaces. The first part is the event, and the second part is the signal indicator. After processing the information in the first part and removing the first bit 'b', the event of the signal at this time can be obtained. Then the information is stored in the corresponding structure in a similar way to a single-bit signal.
[0024] Figure 1Step 2, configuration information writing. Get all signals according to the structure, configure all signals, clarify the direction of each signal, and clarify the control signal for bidirectional signals. Since the protocol of STIL test vectors and VCD test vectors have different focuses, in order to facilitate vector conversion, the structure storing VCD test vector information needs to be preprocessed. Preprocessing mainly includes two aspects, namely, bus signal separation and level separation. Each bit address of the bus signal and the event of the bus signal are ordered, and each bit signal can correspond to the event one by one. Therefore, the separation of bus signals first requires renaming each signal in the bus. This article renames the signal in the form of "bus signal name + address bit" to ensure that the name of each bit signal is not repeated. Then, according to the positional relationship between the signals, the multi-bit event information is separated into multiple single-bit event information. VCD vectors are based on events and do not distinguish the direction of the signal. All events can be represented by 0 and 1, but STIL vectors need to distinguish the signal direction in the test vector. Therefore, this article distinguishes the special effects of each signal through level separation. For input signals, 0 represents a low level and 1 represents a high level. For output signals, L represents a low level and H represents a high level. According to the provided signal direction configuration information, the events in the signal structure are updated. The specific implementation method is as follows: first update the unidirectional signal, and then update the bidirectional signal event according to the level and control method of the bidirectional signal control signal. After the two steps of bus signal separation and level separation, the configuration information of the VCD test vector is completed.
[0025] Figure 1 Step 3, the key to timing optimization is to determine the period of segmented VCD vectors. For VCD vector conversion, the timing period can be determined based on the cutting period, and the timing of each vector can be obtained by segmenting the VCD vector. Segmenting the VCD can obtain a set of ordered waveform segments with the same period. According to the uniqueness of each timing of a signal in the STIL timing, we need to screen the obtained waveform segments, remove duplicate waveform segments, and ensure that each waveform is unique.
[0026] Figure 1Step 4, outputting the STIL test vector is divided into three steps, outputting the signal and signal group information, establishing the timing, and outputting the vector. The Signal part in STIL contains all the signal information in the test vector, expressed in the form of "signal name direction". This part of information can be obtained based on the information in the VCD information structure. The Timing part in the STIL test vector stores the timing information of the test vector, which includes the period of the timing and the timing of each vector. Then, according to the naming rules of the STIL timing, all waveform segments are named in the format of "character {waveform}", where the waveform is expressed in the form of "time: level", and the timing part in STIL is obtained. The pattern part in STIL can be obtained from the ordered waveform segments obtained before. According to the one-to-one correspondence between the waveform and the character in the timing and the original set of ordered waveform segments, the ordered string representing the original waveform can be obtained. Finally, the pattern information of each cycle is output in order according to the position relationship of the signal.
[0027] Timing optimization methods can refer to examples Figure 2 , specifically:
[0028] The timing optimization method mainly consists of the following four steps: establishing the event timeline, sliding the window to determine the optimal segmentation period, completing the tail waveform, and segmenting the generated timing.
[0029] Figure 2 Step 1: By parsing the VCD test vector, the time points at which all transitions occur can be obtained, thereby obtaining a time axis that records all transition nodes.
[0030] Figure 2 Step 2, determine the left and right boundaries of the window according to the position of the eighth jump point, the left boundary is 0, and the right boundary is the position of the eighth jump edge.
[0031] Figure 2 Step 3. If the right boundary does not reach the end of the time axis, start searching for the optimal timing period. First, set the parameter for the number of transition edges from the left boundary to the right boundary to n, with an initial value of 8. Then move the left and right boundaries to the right at the same time. When the right boundary encounters a transition edge, the parameter n is increased by one. When the left boundary encounters a transition edge, the parameter n is decreased by one. When the parameter n is greater than 8, perform window detection.
[0032] Figure 2Step 4, window detection, obtain the window size l by subtracting the left boundary from the right boundary, and perform segmentation simulation with the window size l to obtain the timing period waveform where the left boundary is located. If the number of waveform transition edges in the period is less than or equal to 8, this means that using the window size l as the periodic segmentation period can ensure that the number of transition edges in the timing where the left boundary is located and the previous timing are less than or equal to 8. If the number of waveform transition edges in the period is greater than 8, it means that the window size does not meet the segmentation requirements, and the window size needs to be reduced, and the right boundary is moved to the left until the number of transition edges between the left and right boundaries is less than or equal to 8. Repeat the above movement process until the right boundary reaches the end of the time axis, and use the window size at this time as the periodic segmentation period. Since it is impossible to ensure that the length of the test vector is exactly an integer multiple of the segmentation period, it is necessary to extend the test vector so that the length of the test vector is exactly an integer multiple of the segmentation period.
Claims
1. A timing optimization method for converting a VCD vector to a STIL vector, characterized in that: Including the conversion method from VCD vector to STIL vector and timing optimization method. The VCD vector to STIL vector conversion method converts the VCD vector to the STIL vector; the timing optimization method determines the period used for periodization when converting from VCD to STIL.
2. The method for converting a VCD vector to a STIL vector according to claim 1, characterized in that: It includes four steps: reading and parsing VCD files, writing configuration information, optimizing timing and periodizing, and outputting STIL.
3. Read and parse the VCD file according to claim 2, characterized in that The information of all signals in the test vector is extracted through keyword parsing and stored in a suitable data structure.
4. The configuration information is written according to claim 2, characterized in that Get all the signals according to the structure, configure all the signals, clarify the direction of each signal, and for bidirectional signals, clarify the control signal.
5. The timing optimization according to claim 2, characterized in that: The method includes four steps: establishing a vector event timeline, using a sliding window to determine the best segmentation period, completing the tail waveform, and segmenting and generating timing.
6. Establishing a vector event timeline according to claim 5 mainly includes parsing a VCD test vector to establish an event timeline, wherein the event timeline is characterized in that The jump information of the vector is stored in an ordered array data structure. The jump information is characterized by using a map data structure to store the time point and event when the test vector jumps. The key value of the map is time, and the value of the map is the event. VCD test vector parsing is characterized by using keyword parsing to store the jump information of all signals in the VCD vector in the form of an event timeline.
7. Determine the optimal segmentation period according to the sliding window of claim 5, characterized in that Control the segmentation period so that the timing in the STIL vector obtained by VCD conversion uses the tester's jump edge as much as possible. Use the tester's jump edge characteristics as much as possible, specifically traverse the event timeline. First, according to the preset jump edge number n, determine the time point of the nth event on the event timeline as the right boundary, 0 as the left boundary, and set the initial value of the jump edge number parameter m within the left and right boundaries to n. The left and right boundaries move toward the end of the event timeline at the same time. If the right boundary reaches the event node, the jump edge number parameter m is increased by 1. If the left boundary reaches the event node, the jump edge number parameter m is reduced by 1. When the jump edge number parameter m is greater than the jump edge number n, perform a pre-segmentation test. If it fails, move the right boundary to the previous event node. After the traversal is completed, the distance between the left and right boundaries can be obtained, which is the segmentation period.
8. The pre-segmentation detection according to claim 5, characterized in that Take the distance len between the left and right boundaries as the segmentation period to intercept the test vector, take the left boundary time modulo len to get the parameter k, take the k nodes before the left boundary as the interception starting point, and the interception length is len. Determine whether the number of jump edges of the intercepted vector is greater than n. If so, it will not pass the pre-segmentation detection, otherwise it will pass the pre-segmentation detection.
9. The method of claim 5, wherein the tail waveform is completed The vector is extended according to the optimal segmentation period determined by the sliding window so that the vector can be completely segmented by the optimal segmentation period.
10. The method of generating a split sequence according to claim 5, characterized in that The vector is segmented according to the optimal segmentation period determined by the sliding window, and the vectors of all signals are sequentially intercepted to obtain an ordered set of vector ends. The time series can be obtained by removing the repeated vectors.
