Languages/Perl
(Difference between revisions)
m |
m |
||
Line 2: | Line 2: | ||
== TrimLib == | == TrimLib == | ||
− | Perl | + | Perl script for HDL-Designer for using the concatenated file in ISE. |
[[Media:trimLibs.zip|Trim Libs script file]] | [[Media:trimLibs.zip|Trim Libs script file]] | ||
− | + | ==== Tasks ==== | |
* replaces used libraries with the "work" library | * replaces used libraries with the "work" library | ||
− | * searches for | + | * comments work library declarations |
+ | * comments all FOR ALL statements | ||
+ | * searches for systemvariables and replaces them with the actual value | ||
+ | |||
+ | ==== History ==== | ||
+ | ===== V0.1 : gal 29.01.2005 ===== | ||
+ | Initial Release | ||
+ | ===== V0.2 : cof ??.??.???? ===== | ||
+ | Improvements | ||
+ | ===== V0.3 : zas 10.06.2011 ===== | ||
+ | Replaces | ||
+ | library xxx;use xxx.yyy.all; | ||
+ | with | ||
+ | --library xxx; | ||
+ | use work.yyy.all; | ||
+ | ===== V0.4 : zas 23.01.2012 ===== | ||
+ | Replaces $env_var_name by the value of the found environemnt variable. | ||
+ | Mostly used to replace $SIMULATION_DIR for initialise bram's from a file placed in the Simulation Directory | ||
+ | ===== V0.5 : zas 02.02.2012 ===== | ||
+ | Write the output into a new files with the name defined in the $DESIGN_NAME variable | ||
+ | ===== V0.6 : zas 27.04.2012 ===== | ||
+ | * Bugfix: on feature added in version V0.3 | ||
+ | |||
+ | ===== V0.7 : cof 09.01.2013 ===== | ||
+ | * Bugfix: no carriage return on commented "use" statements | ||
+ | * Bugfix: more precise targeting of "library" statement | ||
+ | * Bugfix: "Library" test after "use" test | ||
+ | |||
+ | ===== V1.0 : cof zas guo 13.06.2013 ===== | ||
+ | * Remove comments from testline | ||
[[Category:Tools]] | [[Category:Tools]] |
Revision as of 10:57, 13 June 2013
|
TrimLib
Perl script for HDL-Designer for using the concatenated file in ISE.
Tasks
- replaces used libraries with the "work" library
- comments work library declarations
- comments all FOR ALL statements
- searches for systemvariables and replaces them with the actual value
History
V0.1 : gal 29.01.2005
Initial Release
V0.2 : cof ??.??.????
Improvements
V0.3 : zas 10.06.2011
Replaces
library xxx;use xxx.yyy.all;
with
--library xxx; use work.yyy.all;
V0.4 : zas 23.01.2012
Replaces $env_var_name by the value of the found environemnt variable. Mostly used to replace $SIMULATION_DIR for initialise bram's from a file placed in the Simulation Directory
V0.5 : zas 02.02.2012
Write the output into a new files with the name defined in the $DESIGN_NAME variable
V0.6 : zas 27.04.2012
- Bugfix: on feature added in version V0.3
V0.7 : cof 09.01.2013
- Bugfix: no carriage return on commented "use" statements
- Bugfix: more precise targeting of "library" statement
- Bugfix: "Library" test after "use" test
V1.0 : cof zas guo 13.06.2013
- Remove comments from testline