Perl and Tcl are the two most commonly used scripting languages in IC design, and I don't know exactly what they do until I learn Perl. Here is a summary of the role of Perl:
1. Used to generate Verilog code when writing Verilog, often encountered some regularity, writing and more troublesome code, and these are very reusable more powerful. For example, the bus module, Fir filter, IIR filter, as long as the filter order and parameters of the code are roughly similar to the module, it is more appropriate to automatically generate Verilog code to implement their functions. Perl's strength is in text processing, and Perl's code is relatively concise and easy to write for Verilog code generation. 2. Syntax for expanding Verilog there are some Verilog syntax features that can be expanded using Perl. For example, the number of bits of a variable in the project has changed, resulting in a gate-level description of the number of changes in the door, you can use Perl to generate the corresponding Verilog code. 3. There are some data formats that need to be processed in the validation process and some data needs to be analyzed. For example, the data generated by MATLAB can be rewritten into the ROM format recognized by Verilog, or the verilog of generating ROM directly. There is also the Verilog verification of the resulting data format into the next level of data analysis software can recognize the format. Perl is also able to perform data comparison and analysis directly with the data obtained from Verilog validation. 4. Back-end tools and pre-and post-level connection format processing if TCL is more commonly used in back-end software, then Perl is mostly used to bond between software and software. There are some pre-level tools that cannot be used directly for the input of subordinate tools, and the conversion between them is perfectly appropriate for Perl. As mentioned above, it is basically used in the conversion of text format. In fact, Perl is the same function, and C/C + + is the same, just run in a different way, and so is compiled after the compilation of EXE files, and Perl is required to run the Perl environment support, a bit like running a statement to compile a sentence feeling, which is a bit similar to the principle of MATLAB. Perl is more flexible than C, and the code for text manipulation is quite simple.
The application of Perl in IC design