CN-121996701-A - Multi-force assignment statement processing method for network signals, electronic equipment and medium
Abstract
The invention relates to the technical field of digital simulation, in particular to a multi-forced assignment statement processing method, electronic equipment and medium of a wire network signal, wherein the method comprises the steps of recording the mapping relation between the action bit and the top signal bit of each wire network signal in the forced assignment statement in a relational database, setting a corresponding forced assignment module for each target object for the wire network signal forced assignment statement, selecting a target wire network signal, and then dynamically recording the mapping relation between the top-level signal and the forced assignment module in a dynamic database, and managing and maintaining the dynamic database, so that whether the current forced assignment module is an effective module to be updated is distinguished before the forced assignment updating action is executed, and the effective data information of each target object of each original forced assignment statement can be saved only by using the dynamic database, thereby greatly saving the space of a simulation memory, reducing the analysis time consumption in the compiling period and improving the system performance.
Inventors
- LIN HANG
- LIN ZHIJIE
- Zheng huashan
Assignees
- 成都融见软件科技有限公司
- 上海合见工业软件集团股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260127
Claims (7)
- 1. A multi-force assignment statement processing method of a wire network signal is characterized by comprising the following steps: Step S1, determining target net signals based on { A 1 ,A 2 ,...,A n ,...,A N }, wherein A n is a net signal forced assignment statement of an nth target object in a chip design code, the value range of N is 1 to N, N is the total number of net signal forced assignment statements of the target object in the chip design code, the target net signals are net signals which have more than one corresponding A n and have signal variables in assignment contents of at least one corresponding A n and are mutually connected with the target net signals; S2, acquiring top-level signal bit information T i n corresponding to an ith signal bit W i n of a target object corresponding to A n , and recording a mapping relation between W i n and T i n in a relational database, wherein the value range of i is 1 to f (n), and f (n) is the total number of target object action bits corresponding to A n ; step S3, a forced assignment module B n for executing the A n is arranged for the A n ; Step S4, in the simulation stage, when the A n of the target line network signal occurs, acquiring a target B n corresponding to the A n of the current target line network signal and a target T i n corresponding to the A n of the current target line network signal in a relational database; Step S5, judging whether the mapping relation between the target T i n and the forced assignment module currently acting on the target T i n exists in the dynamic database currently, if so, executing the step S6, otherwise, executing the step S7; Step S6, if the forced assignment module corresponding to the target T i n in the dynamic database is not the target B n , deleting the mapping relation from the dynamic database, and executing a step S7; S7, adding the mapping relation between T i n corresponding to the A n of the current target line network signal and the target B n into a dynamic database; Step S8, when the assignment content of A n of the target net signal changes, a change B n corresponding to A n of the current change target net signal and a change T i n and a change W i n corresponding to the relation database are obtained, if the change T i n has a forced assignment module currently acting on the change T i n in the dynamic database and is the change B n , a forced assignment update operation is executed on the change W i n corresponding to the change B n based on the change B n , otherwise, the change B n does not execute the forced assignment update operation.
- 2. The method of claim 1, wherein the step of determining the position of the substrate comprises, In the step S1, determining the target net signal based on { A 1 ,A 2 ,...,A n ,...,A N }, comprising: Step S11, searching top-level signals acting on the A n from the top-level module through ports layer by layer, if signal variables exist in the assignment content of the A n , executing the step S12, and if the assignment content of the A n is constant, executing the step S13; Step S12, setting an update demand mark for the top signal acted by the searched A n ; Step S13, adding 1 to the found forced assignment times of the top-layer signals acted by the A n , wherein the forced assignment times of each top-layer signal are initially 0; step S14, if all the A n are processed, executing step S15, otherwise, returning to step S11; Step S15, determining a top-level signal with the forced assignment number of times being more than 1 and provided with an update demand mark as a target top-level signal; And S16, determining the net signal corresponding to the propagated A n as a target net signal based on downward propagation of each target top signal.
- 3. The method of claim 1, wherein the step of determining the position of the substrate comprises, The step S3 includes: Step S31, setting a corresponding forced assignment module B n for the A n ; Step S32, setting B n as a load with signal variable in the assignment content of A n , and setting B n as a drive of A n ; Step S33, recording the target object action bit and assignment content of A n in B n ; In step S34, the state machine is set in B n , the state of the state machine in B n defaults to an inactive state, and B n does not perform the forced assignment update operation in the inactive state.
- 4. The method of claim 3, wherein the step of, The step S4 includes: Step S41, in the simulation stage, when the A n of the target line network signal occurs, acquiring a target B n corresponding to the A n of the current target line network signal; step S42, updating the state of the state machine in the target B n to an active state; Step S43, the mapping relationship between W i n and T i n corresponding to A n of the current occurrence target net signal is obtained from the relational database, and the target T i n corresponding to A n of the target net signal is determined.
- 5. The method of claim 4, wherein the step of determining the position of the first electrode is performed, The step S8 includes: Step S81, when the assignment content of A n of the target line network signal changes, obtaining a change B n corresponding to A n of the current change target line network signal and a change T i n and a change W i n corresponding to the change B n in the relational database; Step S82, if the state of the state machine in the change B n is inactive, the change B n does not execute the forced assignment updating operation, and if the state of the state machine is active, step S83 is executed; Step S83, if the change T i n has a forced assignment module which is currently acted on the change T i n in the dynamic database and is the change B n , executing step S84, otherwise, not executing the forced assignment update operation by the change B n ; Step S84, the change B n obtains a corresponding driving value based on the corresponding assignment content, and forcibly assigns the corresponding driving value to the change W i n corresponding to the change B n , so as to end the flow or return to step S81.
- 6. An electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; Wherein the memory stores instructions for execution by the at least one processor, the instructions being arranged to perform the method of any of the preceding claims 1-5.
- 7. A computer readable storage medium, characterized in that computer executable instructions are stored for performing the method of any of the preceding claims 1-5.
Description
Multi-force assignment statement processing method for network signals, electronic equipment and medium Technical Field The present invention relates to the field of digital simulation technologies, and in particular, to a method, an electronic device, and a medium for processing a multi-force assignment statement of a wire network signal. Background The force assignment statement is used to force modification of the signal values during the simulation, no matter what value is driven, it cannot affect the force-assigned signal values. The network signals are connected through ports of the modules, and corresponding bits may exist in different network signals, but the same bit should be regarded as the same to keep the variation consistent. In the prior art, when the forced assignment statement of the line network signal occurs, if the connected line network signal exists, the forced assignment update statement analysis is required to be carried out on all the connected line network signals in the whole design at the same time, the effective range of the forced assignment update statement is maintained for each of different line network signals, and when the ports of the connection are numerous and the different line network signals of the connection are numerous, a great amount of time and memory space are required to be consumed, so that the system performance is reduced. Disclosure of Invention The invention aims to provide a multi-force assignment statement processing method, electronic equipment and medium for a network signal, which reduce the time and memory space required to be consumed and improve the system performance. According to a first aspect of the present invention, there is provided a method for processing multiple forced assignment statements of a net signal, comprising: Step S1, determining target net signals based on { A 1,A2,...,An,...,AN }, wherein A n is a net signal forced assignment statement of an nth target object in a chip design code, the value range of N is 1 to N, N is the total number of net signal forced assignment statements of the target object in the chip design code, the target net signals are net signals which have more than one corresponding A n and have signal variables in assignment contents of at least one corresponding A n and are mutually connected with the target net signals; S2, acquiring top-level signal bit information T in corresponding to an ith signal bit W in of a target object corresponding to A n, and recording a mapping relation between W in and T in in a relational database, wherein the value range of i is 1 to f (n), and f (n) is the total number of target object action bits corresponding to A n; step S3, a forced assignment module B n for executing the A n is arranged for the A n; Step S4, in the simulation stage, when the A n of the target line network signal occurs, acquiring a target B n corresponding to the A n of the current target line network signal and a target T in corresponding to the A n of the current target line network signal in a relational database; Step S5, judging whether the mapping relation between the target T in and the forced assignment module currently acting on the target T in exists in the dynamic database currently, if so, executing the step S6, otherwise, executing the step S7; Step S6, if the forced assignment module corresponding to the target T in in the dynamic database is not the target B n, deleting the mapping relation from the dynamic database, and executing a step S7; S7, adding the mapping relation between T in corresponding to the A n of the current target line network signal and the target B n into a dynamic database; Step S8, when the assignment content of A n of the target net signal changes, a change B n corresponding to A n of the current change target net signal and a change T in and a change W in corresponding to the relation database are obtained, if the change T in has a forced assignment module currently acting on the change T in in the dynamic database and is the change B n, a forced assignment update operation is executed on the change W in corresponding to the change B n based on the change B n, otherwise, the change B n does not execute the forced assignment update operation. According to a second aspect of the present invention there is provided an electronic device comprising at least one processor and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions for execution by the at least one processor, the instructions being arranged to perform the method of the first aspect of the present invention. According to a third aspect of the present invention there is provided a computer readable storage medium storing computer executable instructions for performing the method of the first aspect of the present invention. Compared with the prior art, the invention has obvious advantages and beneficial effects. By means of the technical scheme, the multi-forc