主权项 |
1. A computer implemented method implemented with a processor, the method comprising:
identifying, by a computer comprising at least one processor, a first source code in a first programming language for a parameterized cell; determining a language construct in the first programming language for the parameterized cell; identifying, with a parameterized cell translation module that is configured to include or function in conjunction with the at least one processor, a mapping for the language construct in the first programming language to translate the language construct into an equivalent construct in a second programming language; and translating, with the mapping, the language construct in the first programming language to the equivalent construct in the second programming language to generate the second source code, which comprises a translated version of the first source code, for the parameterized cell in the second programming language by tokenizing the first source code that breaks the first source code into multiple, smaller elements for the parameterized cell; and verifying correctness of the mapping by determining whether a first layout and a second layout of the parameterized cell are geometrically identical by performing an exclusive OR operation between the first layout corresponding to the language construct and the second layout corresponding to the equivalent construct, wherein
the correctness of the mapping is verified to determine whether the language construct in the first source code written in the first programming language and the equivalent construct in a second source code written in the second programming language are semantically correct. |