Tim Edwards
05/06/2022, 12:59 PMgzip
and gunzip
). Since klayout already supports reading and writing of gzip-compressed files, we should now be able to get rid of the make compress
and make uncompress
steps in the caravel project, which has always been a bit of a pain. To read or write a compressed GDS file, just add the .gz
extension to the filename in the gds read
or gds write
command.Harald Pretl
05/06/2022, 1:13 PMHarald Pretl
05/06/2022, 1:15 PM.mag.gz
as well?Tim Edwards
05/06/2022, 1:20 PM.mag
files because it calls slightly different routines for opening the file so I couldn't use the same code. It's easy enough to do, though. But one think I like about .mag
files is that they are ASCII and human-readable and human-editable (can be very helpful in a pinch), and that gets removed by one step as soon as you compress the file. GDS is already binary and inscrutable without a GDS-to-ASCII translator, so compressing it doesn't change that.Tim Edwards
05/06/2022, 1:21 PM.mag
files, but it's a bit lower priority.Harald Pretl
05/06/2022, 1:26 PM.gds.gz
quite often, the files are too large otherwise on chip level. (2) Agree that gzipping .mag
is not super urgent as here most often block-level work is done, but since chips will get larger over time, you know… (3) text editing .mag
is super handy, this is my favourite way of adding ports :-)Philipp Gühring
05/06/2022, 1:29 PMMitch Bailey
05/06/2022, 2:03 PMVIM - Vi IMproved 8.1 (2018 May 18, compiled Dec 25 2021 15:48:51)
can edit .gz
files without explicit decompression beforehand. However, in the current docker version of vim (as vi) VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Oct 13 2020 16:12:33)
, it is not enabled. May be possible with http://vimdoc.sourceforge.net/htmldoc/autocmd.html#gzip-exampleAnton Blanchard
05/07/2022, 9:54 AM620M user_project_wrapper.gds
123M user_project_wrapper.gds.gz
51M user_project_wrapper.gds.xz
60M user_project_wrapper.oas
24M user_project_wrapper.oas.gz
18M user_project_wrapper.oas.xz
Anton Blanchard
05/07/2022, 10:05 AM.def
and .mag
files are over 100MB too, so perhaps I am stuck with using make compress/uncompress
Philipp Gühring
05/07/2022, 10:46 AMPhilipp Gühring
05/07/2022, 10:47 AMTim Edwards
05/07/2022, 1:51 PMgzip/gunzip
, it can be extended easily to apply oasis compression/decompression, or bzip2, or 7zip, or whatever compression type has a standalone application.Tim Edwards
05/07/2022, 1:54 PMcat a b c | gunzip
instead of gunzip a
.Matthew Guthaus
06/01/2022, 8:44 PMLinen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.
Powered by