It looks like you're new here. If you want to get involved, click one of these buttons!
Hi,
I've written a simple cif generation library.
It gives out the following file:
(CIF generated by the cifwrite library);
DS2 1 10;
9 test_cell2;
L L1D0;
B 1000 1000 500,500;
DF;
DS3 1 10;
9 test_encore;
L L1D0;
DF;
DS1 1 10;
9 test_top_cell;
L L1D0;
C3 R100000,0 T0,0;
C2 R99500,9983 T0,0;
DF;
E
When opening the file with klayout (0.26.5), the square appears to have the upper left corner truncated.
When I try to save this file under another name, incorrect numbers are used for the rotation and the file can't be opened anymore.
Is there anything I should optimize differently, or is this a klayout bug?
Comments
I noticed as well, that the coordinates of the square get wrongly evaluated in klayout to:
center = (0.4995, 0.4995)
size = (0.999, 0.999)
when I open the file with a resolution of 0.001 um
I can confirm the writer bug, but the reader bug I can't.
Here is my result for reading:
My reader options are these:
What's your OS?
Matthias
I have created a ticket for the writer issue: https://github.com/KLayout/klayout/issues/568
Matthias
Hi,
Thank you for your quick reaction!
I'm using windows 10, the x64 build.
I can can only reproduce the rendering bug with my surface pro and windows 2004.
On a more regular PC, the display is correct, but the coordinates aren't:
Hi again,
The rendering bug doesn't happen anymore, I can't explain why, I have no idea what changed between yesterday and today.
I also generated a bigger design and the square is still appearing with the wrong coordinates. All the other polygons seem to be correct.
Ok, thanks. Looks like the problem is reproducible on Windows 64bit.
I'll take a look.
Best regards,
Matthias
Hi,
I think I have fixed both bugs.
You can try the regular master build from here: https://www.klayout.org/downloads/master/windows/klayout-0.27-win64-install.exe
This preliminary installer isn't signed and it represents the unstable development head. If the bugfix is good it will go into the next 0.26 maintenance release.
Regards,
Matthias
Yes, it seems to work
Regards,
Théophane
Very good, I'll include it in 0.26.6.
Thanks for reporting this issue. CIF isn't used quite often anymore. I think that's the reason this issue escaped so far.
Best regards,
Matthias
I've noticed a related bug with cell rotation angles when writing CIF files. In the example below the original GDSII version of this file has eight cells drawn at 45 degree rotation intervals but the CIF file has the angle vector for the 135 degree cell as -1,-1 when it should be -1,1. Two cells are drawn with the rotation angle -135 degrees rather the one at 135 degrees and the other at -135 degrees. I use klayout-0.26.5-win64-install.exe.
(CIF file written by KLayout);
DS 1 1 10;
9 arrow;
L L1D0;
P 50000,-14000 50000,-10000 0,-10000 0,0 0,10000 50000,10000 50000,14000 60000,0;
DF;
DS 2 1 10;
9 TOP;
C1 R1,0 T0,0;
C1 R1,1 T0,0;
C1 R0,1 T0,0;
C1 R-1,-1 T0,0;
C1 R-1,0 T0,0;
C1 R-1,1 T0,0;
C1 R0,-1 T0,0;
C1 R-1,-1 T0,0;
DF;
DS 3 1 10;
9 LAYOUT;
DF;
E
Hi john,
thanks for mentioning this. I did not encounter arbitrary angle rotations so far. And I start loathing CIF ...
Here is ticket for this: https://github.com/KLayout/klayout/issues/578
Matthias