- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Please forgive if I mix up some of the names here, they are so confusing to me. But please do correct me.
I want to delete all technologies / attribute sets of all devices/components in a library using an ulp or scr script.
I know I can achieve this for a selected device/variant/package (?) by the following scr commands:
package variant_name
technology -*
But for that to work on all devices/variants/packages, I'd have to know all the variant names.
I know how to get them using an ulp script:
string Version = "0.0.0";
string fname;
fname = argv[0];
fname = filesetext(fname, ".scr");
output(fname, "wtD") {
library(L) {
L.devicesets(S) {
S.devices(D) {
string technologies[];
int n = strsplit(technologies, D.technologies, ' ');
for (int i = 0; i < n; i++) {
printf("device %s technology %s\n", D.name, technologies[i]);
}
}
}
}
}
However, I don't know how to then delete the technologies inside the ulp script.
Is there a way to achieve both (find out device/variant/package names and delete the technologies) using only one script?
Solved! Go to Solution.