CPC G06F 30/323 (2020.01) | 17 Claims |
1. A method, comprising:
parsing hardware description language (HDL) code for an integrated circuit (IC) design to obtain an IC design parse tree;
parsing a transformation pattern to obtain a transformation pattern parse tree, the transformation pattern comprising a first pattern and a second pattern wherein the first pattern and the second pattern are specified using a language extension of the HDL;
using the IC design parse tree and the transformation pattern parse tree to identify a portion of the HDL code that matches the first pattern;
transforming, by a processor, the portion of the HDL code based on the second pattern to obtain a transformed portion of the HDL code; and
replacing the portion of the HDL code by the transformed portion of the HDL code.
|