UofT ASIC Workbench
All-in-one open-source analog and digital ASIC design IDE for Visual Studio Code, built by the UofT ASIC Team.
Run the IIC-OSIC-TOOLS toolchain directly inside a single VS Code window — no juggling browser tabs, external VNC clients, or manual noVNC clipboard panels.
Start here: the workspace's Dev Container
A clone of uoftasic/workspace has a Dev Container configuration, .devcontainer/devcontainer.json. With VS Code's Dev Containers extension, VS Code runs inside the IIC-OSIC-TOOLS container: its terminals, Python and Jupyter run there, and the EDA desktop (XSchem, KLayout, Magic) starts with the container. This extension then shows that desktop in a VS Code tab and adds the ASIC Shell, the tool actions on files, course modules and the smoke test.
- Install Docker (Docker Desktop, or Docker Engine on Linux) or Podman, VS Code, and the Dev Containers extension (
ms-vscode-remote.remote-containers). Install this extension in VS Code on your computer too (see Installation).
- Open your
workspace clone in VS Code and click Reopen in Container when Dev Containers offers it. This extension's UofT ASIC Workbench sidebar shows the same action, Reopen in Container; if Dev Containers isn't installed, the sidebar offers to install it first.
- VS Code reopens the folder in a window that runs in the container. Until this extension is on the VS Code Marketplace, the container doesn't install it by itself: in that window, run Remote: Install Local Extensions in 'Dev Container: UofT ASIC Workbench'... from the Command Palette, tick UofT ASIC Workbench and click OK.
- Run UofT ASIC: Open EDA Desktop, or click ASIC (Container) in the status bar.
The extension can also start the container itself with docker run, without Dev Containers: run UofT ASIC: Start Workbench Container without Dev Containers (also in the sidebar's Workbench view, ... menu), or turn off the uoftasic.useDevContainer setting so that the sidebar's start action does that. In VSCodium and other editors that can't install Dev Containers, and in folders without a Dev Container configuration, the start action always works that way. If a container started with the workspace's scripts/start_vnc.sh is already running for the folder, the extension uses it.
Features
- Embedded EDA Desktop (noVNC in VS Code):
- Renders the container's Linux EDA desktop (XSchem, KLayout, Magic, XFCE) directly inside a VS Code editor tab. Drag the tab out into a floating VS Code window whenever you want multi-monitor layout.
- Automatic bidirectional clipboard sync: Copy and paste seamlessly between your laptop and the EDA desktop, with TigerVNC
SendPrimary=0 configured automatically so highlighting text in Linux does not overwrite your laptop clipboard. Includes a manual Sync Clipboard fallback button in the toolbar.
- Paste waits for your laptop clipboard: While clipboard sync is on,
Ctrl+V and Ctrl+Shift+V (and Cmd+V and Cmd+Shift+V with the macOS Cmd→Ctrl toggle) reach the desktop after the text you copied on your laptop does, so a paste right after a copy pastes that text. If the text hasn't arrived after 0.3 s, the keys go through anyway.
- Live viewport resizing: Defaults to RFB dynamic desktop resize (
resizeMode: "remote") so the Linux desktop resizes smoothly to match your VS Code split pane, with toggles for Scale to Fit and 1:1 Native.
- macOS
Cmd→Ctrl ergonomics: Optional toolbar toggle (on by default on macOS) maps Cmd+C/V/X/Z/A/S to Control inside EDA tools and suppresses stray Super/Meta presses when switching apps with Cmd+Tab.
- Dev Containers first, and its own container when there is none:
- In a Dev Container (the workspace's, or a GitHub Codespace) the extension starts nothing: it connects the EDA Desktop tab to the container's noVNC through a port VS Code forwards, and its ASIC Shell runs bash in the container directly. If the desktop is still starting, the tab waits for it.
- Without one, it starts the container itself with Docker (Docker Desktop / Docker Engine on macOS, Windows, Linux) or Podman (rootless-friendly on Linux/macOS/Windows). It can also use Apple
container (macOS 26+ on Apple silicon, with automatic VM RAM/CPU sizing), which isn't supported (see Requirements).
- Attach to existing containers: Automatically detects an already-running
asic-edu-osic container (including ones launched via start_vnc.sh / start_vnc_apple.sh) and warns clearly on workspace mount mismatches with options to attach, recreate, or launch an isolated per-folder container.
- All Open PDKs in IIC-OSIC-TOOLS (
2026.08 and beyond):
- Supports SKY130A (UofT ASIC default), IHP SG13G2, IHP SG13CMOS5L, and GF180MCU D (plus dynamic discovery of any additional PDKs under
/foss/pdks).
- Switch Active PDK sets the PDK of new ASIC Shell terminals (the UofT ASIC Container Shell profile) and of XSchem, KLayout and Magic when you start them from VS Code. It doesn't reach the EDA desktop's own terminal or its icons; in a
uoftasic/workspace clone those stay on sky130A, the PDK the courses use.
- In a
uoftasic/workspace clone, the workspace's common/.designinit does the switch: the extension passes the PDK in the ASIC_EDU_PDK variable, and .designinit sets PDK, PDKPATH, STD_CELL_LIBRARY, SPICE_USERINIT_DIR, KLAYOUT_PATH (keeping klayout-magic-pcells on it), KMP_PDKS and XSCHEMRC. In other folders, and in clones whose .designinit doesn't read ASIC_EDU_PDK (git pull in the workspace updates it), the extension sets the same variables itself. In any folder, KLayout started from VS Code also gets the PDK's technology as its initial technology.
- Integrated Container Shell & Clickable Paths:
- Registers the UofT ASIC Container Shell terminal profile with
.designinit and the active PDK pre-loaded.
- Clicking
/foss/designs/... paths in terminal output opens the exact local file (and line/column) in VS Code.
- File-to-Tool Actions & Host-Side Surfer:
- Right-click or click the editor title button on
.sch/.sym (XSchem), .gds/.oas (KLayout), .mag (Magic), .spice/.sp/.cir/.ckt (ngspice), and .py/.sh (Run in Container).
- Opens
.vcd/.fst/.ghw waveforms directly on the host using the Surfer VS Code extension (surfer-project.surfer) for fast native WASM rendering, falling back to container Surfer when not installed.
- First-class
uoftasic/workspace support + Generic ASIC Design Folders:
- Works in any ASIC design folder (mounted at
/foss/designs).
- In a
uoftasic/workspace clone, automatically reads the pinned image tag from pdk/volare.lock, provides the Course Modules (mod / mod add) sidebar, structured Smoke Test checklist, UofT desktop launchers, and Windows CRLF -> LF line-ending detection & fixing.
- Add Course Module starts the container if it isn't running, runs the workspace's
scripts/add_module.sh in it (the script that mod add runs) and shows the output in the UofT ASIC Workbench Output channel. The script clones the course repo with git in the container, so your laptop doesn't need git.
- The Smoke Test runs the workspace's
scripts/smoke_test.sh on sky130A, the PDK it checks, even when another PDK is active.
- Bundled Extension Pack & SPICE Highlighting:
- Ships built-in SPICE/ngspice netlist syntax highlighting (
.spice, .sp, .cir, .ckt, .net) and bundles companion extensions for waveform viewing (surfer-project.surfer), Verilog/SystemVerilog (mshr-h.VerilogHDL), Python (ms-python.python) and Jupyter notebooks (ms-toolsai.jupyter).
When the extension starts
The extension starts by itself when you open a folder that has pdk/volare.lock or common/.designinit at its top, as a uoftasic/workspace clone does. In any other folder it starts when you open the UofT ASIC Workbench sidebar, run one of its commands, open a UofT ASIC Container Shell terminal, or open a SPICE netlist. Until it starts, it doesn't look for Docker, Podman or Apple container.
When VS Code runs in the uoftasic/workspace Dev Container, the opened folder is the clone at /foss/designs, which has common/.designinit, so the extension starts there as well, once it is installed in the container.
Local noVNC Server URL
In the workspace's Dev Container, noVNC listens on port 6080 in the container, and VS Code forwards it to http://localhost:6080/ on your computer (or another port if 6080 is taken; the Ports panel shows it).
When the extension starts the container itself, its noVNC server is bound to localhost on the host port allocated by the extension (defaulting to 8080, or the next free loopback port if 8080 is busy; configurable via uoftasic.hostPort):
http://127.0.0.1:<port>/
You can inspect the active port at any time from the UofT ASIC Workbench sidebar (noVNC Endpoint), the bottom status bar hover tooltip, or the UofT ASIC Workbench Output channel.
Requirements
- Docker Desktop, Docker Engine (Linux) or Podman, on macOS, Windows or Linux. This is the supported setup.
- VS Code's Dev Containers extension (
ms-vscode-remote.remote-containers) for the workspace's Dev Container.
- Apple
container (macOS 26+ on Apple silicon) doesn't work with Dev Containers, and isn't supported. The extension can still start the container with it when you run Start Workbench Container without Dev Containers.
Installation (.vsix)
Download the latest uoft-asic-workbench-*.vsix from GitHub Releases, then run:
code --install-extension uoft-asic-workbench-0.2.0.vsix
Or in VS Code: Extensions (Cmd+Shift+X / Ctrl+Shift+X) → ... → Install from VSIX....
To use it in a Dev Container, install it on your computer first, then put it in the container with Remote: Install Local Extensions in 'Dev Container: ...' from the Command Palette, as in Start here.
Links
| |