Mitch Bailey
11/21/2020, 12:42 PMcaravel/runs/caravel/results/magic/caravel.gds.gz
file into magic to do device level extraction. However, I get the following error.
Error while reading cell "(UNNAMED)" (byte position 4): Unexpected record type in input:
Expected HEADER record but got BOUNDARY.
@User Is this a side effect of removing "(UNNAMED)" cell deletion, ro should I be doing something different?
https://github.com/RTimothyEdwards/open_pdks/commit/faac36af2ec937dcea545fa91dd06acfc51869c0Mitch Bailey
11/21/2020, 2:49 PMTim Edwards
11/21/2020, 4:05 PMTim Edwards
11/21/2020, 4:18 PMMitch Bailey
11/28/2020, 1:18 PMgzip -c
instead of gunzip -c
.
Incidentally, when CVC opens a file, it checks the suffix and if it finds gz, then it opens it with popen
. It's C++, but there may be something you might use in magic so you don't have to uncompress the whole file somewhere. Here's the code.
FILE * myCdlFile;
if ( filename.substr(filename.length()-3, 3) == ".gz"
&& (myTestFile.open(filename), myTestFile.good()) ) {
myTestFile.close();
string myZcat = "zcat " + filename;
myCdlFile = popen(myZcat.c_str(), "r");
} else {
myCdlFile = fopen(const_cast<const text_t>(filename.c_str()), "r");
}
Tim Edwards
11/28/2020, 7:39 PM