From f2172d8e2af4e1a372514103467450cfc4c51d18 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sat, 31 May 2025 17:33:44 +0200 Subject: [PATCH] Extension of the L2N/LVSDB format to support deleted terminals and parameters Previously, when deleting parameters or terminals from device definitions, these parameters or terminals re-appeared in the netlist browser, because they were generated from the template class (e.g. "A" and "B" from "RES"). An additional token is added that indicates whether to remove all entries before adding new ones. This feature is backward-compatible and LVSDB/L2N files have to be generated from new KLayout versions to make use of that feature. --- src/db/db/dbLayoutToNetlistFormatDefs.h | 9 ++++++--- src/db/db/dbLayoutToNetlistReader.cc | 10 ++++++++++ src/db/db/dbLayoutToNetlistWriter.cc | 26 +++++++++++++++++++++---- 3 files changed, 38 insertions(+), 7 deletions(-) diff --git a/src/db/db/dbLayoutToNetlistFormatDefs.h b/src/db/db/dbLayoutToNetlistFormatDefs.h index 6c7f4f3fe..bea7dbd60 100644 --- a/src/db/db/dbLayoutToNetlistFormatDefs.h +++ b/src/db/db/dbLayoutToNetlistFormatDefs.h @@ -79,7 +79,10 @@ namespace db * circuit( [circuit-def]) - circuit (cell) [short key: X] * * [class]: - * class(