Hi Jim,
you can use master or any other branch, but without warranty.
The usual approach (and the one favoured by GitHub) is: features are developed in branches. When they are considered stable enough they are integrated into the master (pull request). Hence the master is kind of "latest greatest", but with a certain risk of being spoiled. There are also forks from other user with their own masters and branches. Don't confuse them with the ones from the KLayout project.
But eventually, when the master is considered to have a sufficient quality, a release is made by creating a release tag (https://github.com/KLayout/klayout/releases). A release is a snapshot which is then turned into Windows binaries, Linux packages, PyPI wheels etc. This this is a lengthy process and I don't want to do this too often.
Matthias
Hi Andy,
I see ... unfortunate coincidence. The name "drc" clashes with a variable name used internally inside the DRC framework. This could even be useful, but in your case, assigning the drc variable with something breaks the internals.…
Hi Thomas,
here is a little script which you can apply to any PCell to get it's details:
lib = RBA::Library::library_by_name("Basic")pcell_decl = lib.layout.pcell_declaration("ROUND_PATH")type2strings = {}[ :TypeBoolean, :TypeD…
Hi chhung,
I was able to build successfully on Ubuntu-18. For my final patches see https://github.com/KLayout/klayout/pull/373/files
Kind regards,
Matthias
Very good ... that's better to read :-)
I think something is wrong at the beginning (make sure the initial line is only three backticks). But that's just a small flaw.
Hi,
the solution depends on what you want to achieve.
In any case I'd recommend to use the LayerIterator concept. "LayoutView#each_layer" isn't entirely stable for iterating while deleting (see https://github.com/KLayout/klayout/issues/3…
Hi Yoyo,
thanks for this well illustrated post :-)
Basically the idea of a library is that you instantiate something from an external source. As part of this concept, the external source is immutable.
In short: only what is inside the current lay…
Hi Thomas,
if you want to achieve readability, you can put a triple backtick line in front of and after your code. Then the code will be formatted as such (markdown). See http://en.wikipedia.org/wiki/Markdown for details.
Kind regards,
Matthias
Hi chhung,
I'm sorry, my mistake. I think the correct patch is:
return test_type_func<int> () (rval, loose);
(note the additonal "()").
I'll try to set up a build with 64bit too, but I'm already reaching a limit of manageable bui…
Hi chhung,
thanks for mentioning this. To be honest, this combination is lacking in my build suite.
I think the problem is solved by patching line 145 of pyaConvert.h from
return test_type<int> (rval, loose);
to
return test_type_func<i…
This is a unit test ... not a file you can run!
Frankly, I don't have the impression you have tried to understand the concepts.
For netlist generation, you can use the LVS feature sans "compare". But you'll need some understanding how to…
Hi Jim,
DRC has a snapping feature, but that will flatten your layer and turn all paths and boxes into polygons and remove texts.
A dirty trick is to save your layout with 1 µm database unit and later with a finer DBU again. This will force snappi…
Hi Thomas,
that's not intended, but I assume the reason is that PCell internals are not accessible through editing functions. This actually is intended - PCells are not supposed to be edited. As the net tracer uses editing functions to detect the s…
Hi Grt,
I'm fairly sure the problem is with certain screen configurations. There was a similar issue with Retina displays on MacOS, but the problem is deeply buried inside Qt's rendering engine and maybe even inside the graphics driver.
I experien…
Hi Jim,
it took me some time to figure out how to reproduce your problem ...
I can reproduce it by: click at vertex 1 to start - go to vertex 2 and click - go to vertex 3 and click - go back to vertex 1 and single-click - then double click again a…
DRC script?
source("your_input.gds")target("your_output.gds")# A = 1/0, B = 2/0 (example)a = input(1, 0)b = input(2, 0)# run XOR and output to 2/0x = a ^ bx.output(2, 0)# copy A to outputa.output(1, 0)
You mean batch mode?
Use:
klayout -b -r yourscript.py
or any other .rb, .drc, .lvs, .lym ... file.
Please note that in this case, the script needs to load all layouts itself - as in batch mode there is no view, no layouts can be loaded by listin…
Thanks to all for these answers!
I'd like to add there is a similar discussion here: https://www.klayout.de/forum/discussion/comment/5071#Comment_5071
It explains a trick to prepare a .lyp file so it will always show the additional layers too.
Re…
Hi Jim,
you actually don't need to go back - just click at vertex 1 to start drawing, click at vertex 2 and then double-click at the third vertex. This will finish the triangle. The closing line will be indicated as a dotted line while you move the…
Hi Jim,
Thanks a lot for sharing this!
I think to add docx you would need to zip it. The forum software blocks every format it considers harmful or does not know about.
Best regards,
Matthias
Ok ... simple question but long answer :-)
I think the old version was something like 0.24.x. Version 0.25 got a more consistent coordinate space system and some methods were deprecated (specifically "transformed_cplx"). That is the reaso…
Hi,
KLayout comes with "buddy tools". Those are simple binaries that perform a single task. Yours is "strm2gds" which turns any known format into GDS. Use it like "strm2gds input.gdstxt output.gds".
Unfortunately in t…
You're running the script in batch mode, are you?
I assume you don't want to overwrite the original file (this is bad style IMHO), but you want to add a layer to the original file rather than producing new layers only.
There is a trick to do this:…
If you want to try: I have uploaded the output of the above run here: https://www.klayout.org/downloads/etc/klayout-0.26-fedora30.tar.gz
It's not a RPM, but the binaries produced for version 0.26. You might be able to run them when you set LD_LIBRA…