mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
feat(tt_tool): support for specifying custom GDS file for PNG render
tinytapeout/tt-gds-action#12
This commit is contained in:
+11
-6
@@ -548,12 +548,17 @@ class Project:
|
|||||||
|
|
||||||
# Read and return top-level GDS data from the final GDS file, using gdstk:
|
# Read and return top-level GDS data from the final GDS file, using gdstk:
|
||||||
def get_final_gds_top_cells(self):
|
def get_final_gds_top_cells(self):
|
||||||
gds = glob.glob(
|
if "GDS_PATH" in os.environ:
|
||||||
os.path.join(self.local_dir, "runs/wokwi/results/final/gds/*gds")
|
gds_path = os.environ["GDS_PATH"]
|
||||||
)
|
elif self.args.openlane2:
|
||||||
if self.args.openlane2:
|
gds_path = glob.glob(
|
||||||
gds = glob.glob(os.path.join(self.local_dir, "runs/wokwi/final/gds/*gds"))
|
os.path.join(self.local_dir, "runs/wokwi/results/final/gds/*.gds")
|
||||||
library = gdstk.read_gds(gds[0])
|
)[0]
|
||||||
|
else:
|
||||||
|
gds_path = glob.glob(
|
||||||
|
os.path.join(self.local_dir, "runs/wokwi/final/gds/*.gds")
|
||||||
|
)[0]
|
||||||
|
library = gdstk.read_gds(gds_path)
|
||||||
top_cells = library.top_level()
|
top_cells = library.top_level()
|
||||||
return top_cells[0]
|
return top_cells[0]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user