Using my script, I can correctly reverse the field on layer 6, but into the new gds file I cannot view both datatype present into the original layer.
Just to be clear on what's the problem, you have layer 6, 6.0 and 6.58. but after executing your script. Your layer 6.0 and 6.58 are dissappeared?
I looked into your code, and the only place that could possibly create this dropping layer issue are from those Boolean operation and delete layer operation.
I tested it on my small testcase and those Boolean operation and delete layer seems to work just fine. Can you please give us more information on which stage did you start seeing this dropping layer issue? ( Since you actually write out quite a few temperary GDS files, maybe you can look into those files to give us better idea on which part of the code you start seeing this issue ) Even better, you can try and let us know which command do you see those unexpected behavior?
The problem is exactly what you have described..
The temporary files temp1.gds and temp2.gds are correct.
The problem has been detected starting from the file temporary6.gds.
I have tried to change the following part in red, into the script
$LO gdsout temp1.gds
set LOx [layout create temp1.gds -dt_expand -preservePaths -preserveTextAttributes]
puts "creation of the flatten topcell"
$LOx flatten cell MB14A_TOP_1
puts "creation of the file temp2.gds"
$LOx units microns $precision
$LOx gdsout temp2.gds MB14A_TOP_1
puts [$LOx topcell]
set topcellx [$LOx topcell]
puts [$LOx bbox $topcellx]
exec rm temp1.gds
set L6 [layout create temp2.gds -dt_expand -preservePaths -preserveTextAttributes]
set topcell6 [$L6 topcell]
$L6 create layer 200
Removing the “-dt_expand -preservePaths –preserveTextAttributes” options, in these way:
set LOx [layout create temp1.gds]
set L6 [layout create temp2.gds]
I checked the files temp2.gds and temporary6.gds created using the new script, and into the new files all polygon present into the layer 6, 6.0 and 6.58 on the original file, are now mixed into a unique layer 6.
Is correct the program works in this way?
Modified by luciano.artuso
here in attach you find the report of datas extracted from all gds files mentioned in my previous message.
Let me know if help to clarify the problem.
Thanks for providing more detailed information.
if you take out "-dt_expand" option. All layer with datatype value will be mapped into the original layer.( layer with no datatype)
I believe your issue is caused by "-map 6" argument in gdsout command, beucase for each layer to be exported you need a separete -map argument.
For example, if you wish to export layer 6 and layer 6.58 from your original layout.
you will use
$L gdsout temp.gds $topcell -map 6 -map 6.58.
hope this helps
thanks for your clarification, but I think the problem is in the previous step.
I founded some error into the temp2.gds 's layout.
if I take out "-dt_expand" option, into the layer 6 on temp2.gds 's layout, some plolygon are removed from the original one, designed on layer 6.0 and layer 6.58.
There are other ways to remap the layer.datatype into a unique layer?
I need to reverse the global layout field, all prolygon present into the original layout on layer 6.0 and 6.58.
Thanks and regards
The easiest way to 'remap' layers could be -map option in oasisout and gdsout command.
In oasisout, you can use -map option as well.
for example if you wish to map 6.58 to a new layer 11.9
$L oasisout temp2.gds -map 6.58 11 9
or use -map option in layout create. however it does not allow you to change the datatype of the layer yet. It is planned to be supported in the near feature.
thanks for your feedback.
I think there was a bug into the calibre version (2010.4 ) I used, durign flatten cell operation.
I modified my procedure and script to force the calibre version at 2011.3_29.20, and all works correctly.
Can you verify it?
I am not sure which bug is causing this problem. I do blieve there is a possibily that it is fixed in newer release.