Skip to content

v0.5.0

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 13:55
· 5 commits to main since this release

Python wheel 直接下载 · Direct downloads

平台 · Platform 下载 · Download
Linux x86_64 (glibc 2.28+) manylinux wheel
macOS 11+ arm64 Apple Silicon wheel
Windows x64 Windows wheel

下载与系统匹配的 wheel,用 CPython 3.11 或更高版本离线安装。核心 GDSII/OASIS 读写和几何操作无需其他 Python 包。NumPy、PyTorch 和 Pillow 按用途选装。

Download the wheel for your platform and install it offline with CPython 3.11 or newer. Core GDSII/OASIS I/O and geometry have no third-party Python requirements. NumPy, PyTorch, and Pillow are optional.

python -m pip install --no-index --no-deps PATH_TO_WHEEL.whl

独立 CLI 与源码 · Standalone CLI and sources

平台或用途 · Platform or purpose 下载 · Download
Linux x86_64 baseline (static musl) CLI tar.gz
macOS 11+ arm64 CLI tar.gz
Windows x64 CLI ZIP
Python 源码 · Python source sdist
Rust 源码 · Rust source Cargo archive
SHA-256 校验 · Checksums SHA256SUMS

解压后直接运行包内的 layouttk --help。Windows 的文件名为 layouttk.exe。独立 CLI 无需 Python 或 Rust 工具链,包内有简体中文、英文命令行指南和 Agent Skill。

Unpack the archive and run layouttk --help using the bundled executable. On Windows the executable is named layouttk.exe. The standalone CLI needs no Python or Rust toolchain. Archives include Simplified Chinese and English command guides and an Agent Skill.

Linux x86_64 baseline 静态链接 musl,无需系统 glibc、musl 或 AVX/AVX2。发布文件已在 QEMU 中用 Debian Wheezy 的 Linux 3.2.0-4-amd64 内核及禁用较新指令的 x86-64 CPU 实测。

The static Linux baseline archive was tested on Linux 3.2.0-4-amd64 in QEMU with newer CPU instructions disabled. It requires no system glibc, musl, AVX, or AVX2.

Homebrew 支持 Apple Silicon macOS 和 Linux x86_64。The project tap installs the same prebuilt CLI archives.

brew tap zwh42/layouttk https://github.com/zwh42/layouttk
brew install zwh42/layouttk/layouttk

简体中文

  • 超大文件裁片与保留层级:layouttk clip 新增 --keep-hierarchy,Python Layout.clip_file 新增 keep_hierarchy=True。裁片前基于自底向上保守包围盒递归剪枝大型规则阵列、重复元素和不相交子单元;完全落入窗口的子单元和规则子阵列可按原层级紧凑保留,仅对跨边界图形精确裁剪。
  • 窗口查询、栅格化与层级性能修复:query window 与 raster 掩膜采样复用窗口剪枝并在光栅化前预筛包围盒,避免对窗外超大阵列或图形展开与超预算;query window 使用精确开箱相交判定;placed_shapes 跳过不含目标层的空子树;跨文件 DBU 比对统一使用相对容差;轴对齐矩形走 O(1) 裁剪与归一化快路径。
  • 掩模图形与版图模板模块:新增 layouttk.shapes(圆盘、椭圆、环、多边形轮廓等返回 Region 的构造器)与 layouttk.templates(add_block、add_range_block、add_wafer_grid、alignment_mark、vernier),便于用紧凑引用阵列快速搭建带对准标记的层级掩模。
  • 示例集与文档升级:中英文手册新增 SKY130、ASAP7、IHP SG13G2、Caravel 与 SiEPIC openEBL 版图示例集及配套图解 Python 工作流;重排中英文 README 首页结构,阅读和上手路径更清晰。

中文命令行指南 · 中文 Python API · 版图示例集

English

  • Large-file window clipping and hierarchy preservation: Added --keep-hierarchy to layouttk clip and keep_hierarchy=True to Layout.clip_file. Recursive conservative-bounds pruning skips disjoint subcells and partitions massive regular arrays or OASIS repetitions before decoding or expanding them; subcells and regular sub-arrays wholly inside a window stay intact while only boundary-straddling shapes are clipped.
  • Window query, rasterization, and hierarchy fixes: query window and raster mask sampling now prune huge arrays and off-window geometry before scanning, avoiding false expansion/crossing budget failures. Added exact open-box hit testing for query window, material-reachability pruning for placed_shapes on filtered layers, relative-tolerance DBU compatibility checks across CLI and file verification, and O(1) axis-aligned rectangle clipping and normalization fast paths.
  • Mask shape and template modules: Added layouttk.shapes (disk, ellipse, outline helpers returning Region) and layouttk.templates (add_block, add_range_block, add_wafer_grid, alignment_mark, vernier) for building hierarchical masks with compact reference arrays and alignment structures.
  • Gallery, visual workflows, and refreshed READMEs: Added bilingual SKY130, ASAP7, IHP SG13G2, Caravel, and SiEPIC openEBL galleries with KLayout-verified illustrated Python workflows, and redesigned both English and Simplified Chinese READMEs for faster onboarding.

Command-line guide · Python API · PyPI · crates.io