You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
################################################################################################# Copyright 2022 GlobalFoundries PDK Authors## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License at## https://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.#################################################################################################===========================================================================================================================#------------------------------------------- GF 0.18um MCU DRC RULE DECK --------------------------------------------------#===========================================================================================================================require'time'require"logger"exec_start_time=Time.nowlogger=Logger.new(STDOUT)logger.formatter=procdo |severity,datetime,progname,msg|
"#{datetime}: Memory Usage (" + `pmap #{Process.pid} | tail -1`[10,40].strip + ") : #{msg}"end#================================================#----------------- FILE SETUP -------------------#================================================# optional for a batch launch : klayout -b -r gf_018mcu.drc -rd input=design.gds -rd report=gp180_drc.lyrdblogger.info("Starting running GF180MCU Klayout DRC runset on %s" % [$input])logger.info("Ruby Version for klayout: %s" % [RUBY_VERSION])if $input
if $topcell
source($input, $topcell)elsesource($input)endendif $table_name
table_name= $table_name
elsetable_name="main"endlogger.info("Loading database to memory is complete.")if $report
logger.info("GF180MCU Klayout DRC runset output at: %s" % [$report])report("DRC Run Report at", $report)elselogger.info("GF180MCU Klayout DRC runset output at default location." % [File.join(File.dirname(RBA::CellView::active.filename),"gf180_drc.lyrdb")])report("DRC Run Report at",File.join(File.dirname(RBA::CellView::active.filename),"gf180_drc.lyrdb"))end#================================================#------------- LAYERS DEFINITIONS ---------------#================================================polygons_count=0logger.info("Read in polygons from layers.")defget_polygons(l,d)if $run_mode == "deep"polygons(l,d)elsepolygons(l,d).mergedendendcomp=get_polygons(22,0)count=comp.count()logger.info("comp has %d polygons" % [count])polygons_count += countdnwell=get_polygons(12,0)count=dnwell.count()logger.info("dnwell has %d polygons" % [count])polygons_count += countnwell=get_polygons(21,0)count=nwell.count()logger.info("nwell has %d polygons" % [count])polygons_count += countlvpwell=get_polygons(204,0)count=lvpwell.count()logger.info("lvpwell has %d polygons" % [count])polygons_count += countdualgate=get_polygons(55,0)count=dualgate.count()logger.info("dualgate has %d polygons" % [count])polygons_count += countpoly2=get_polygons(30,0)count=poly2.count()logger.info("poly2 has %d polygons" % [count])polygons_count += countnplus=get_polygons(32,0)count=nplus.count()logger.info("nplus has %d polygons" % [count])polygons_count += countpplus=get_polygons(31,0)count=pplus.count()logger.info("pplus has %d polygons" % [count])polygons_count += countpoly2.output("poly","Poly")exec_end_time=Time.nowrun_time=exec_end_time - exec_start_timelogger.info("%s DRC Total Run time %f seconds" % [table_name,run_time])
Hi @proppy ,
Klayout built here doesn't seem to work properly.
I have checked the code in the following file:
https://github.com/hdl/conda-eda/blob/c8cc9a7e6975475da23e4a85b91cfc896ad2c480/misc/klayout/build.sh
To reproduce the issue:
Run command:
failure output:
The text was updated successfully, but these errors were encountered: