OpenVLSI GUI and Layout Editor

This document defines the user-interface direction for the openvlsi executable. It focuses on the desktop shell and the schematic/layout editing experience. Domain objects and mutations belong to openvlsilib; the GUI presents and invokes them.

Goals

The GUI should:

  • provide one integrated desktop application for schematic, layout, simulation, analysis, and project workflows;

  • make the current design state visible without becoming the source of truth;

  • support both manual editing and generated-layout refinement;

  • expose the same validated operations available to the CLI and Python API;

  • keep long-running simulations, verification, and external-tool jobs responsive and observable;

  • make selection, hierarchy, connectivity, and provenance understandable.

Non-goals

The GUI should not:

  • store domain state only in Qt graphics objects;

  • implement geometry, connectivity, simulation, or verification logic itself;

  • require a GUI process for core or CLI tests;

  • silently mutate the project outside the transaction and undo system;

  • hide external-tool failures behind generic success messages.

Application shell

The main window should provide:

┌──────────────────────────────────────────────────────────────┐
│ Menu / toolbar / command palette                             │
├───────────────┬──────────────────────────────┬───────────────┤
│ Project /      │ Active document views        │ Properties /  │
│ hierarchy      │ schematic, layout, plots     │ diagnostics   │
├───────────────┴──────────────────────────────┴───────────────┤
│ Selection, job progress, messages, and agent/chat panel       │
└──────────────────────────────────────────────────────────────┘

The shell should manage documents and views, but not own their domain data. Panels should be dockable and replaceable without changing the core model. The openvlsi executable links against openvlsilib and must not duplicate the model used by openvlsi-cli, openvlsi-pkg, or openvlsi-mcp.

When no project is open, the central area shows a startup view with create and open project actions, recent projects, community links, and news. Each recent project row has a button to remove it from the list. Document tabs and the activity dock appear once a project is loaded, and closing the project returns to the startup view.

Document and project lifecycle

The GUI should support:

  • creating a project;

  • opening and closing projects;

  • opening schematic, layout, simulation, and result documents;

  • tracking unsaved changes;

  • explicit save and save-as operations;

  • reporting missing packages, PDKs, or incompatible schema versions;

  • recovering from failed external jobs without losing in-memory state.

Creating a project asks for a project name, a project folder, and whether to create a folder named after the project. The project root is initialized with project.ovpro, sch/, lay/, impl/, sim/, scripts/, build/, .gitignore, and AGENTS.md. Schematics, layouts, implementation runs, and simulations are stored as individual JSON files with .ovsch, .ovlay, .ovimpl, and .ovsim extensions.

Project state, view state, and transient job state should be separate:

State

Examples

Persistence

Project state

cells, nets, geometry, parameters

project files

View state

zoom, panes, selections, visibility

optional UI settings

Job state

running simulation, progress, cancellation

runtime and result records

Schematic and layout file tabs are closable. Their labels include the file extension (.sp for text SPICE schematics, .sv for SystemVerilog source cells, .ovsch for drawn schematics, .ovlay for static layouts, or .py for procedural layouts) and a leading ● while that file has unsaved edits. Hierarchy file entries use the same extensions; nested instance entries keep their instance names. If every schematic or layout file tab is closed, the central editor area shows a form to open an existing file or create a new one. Opening a project starts with no schematic or layout file tabs open; open files from the hierarchy or the empty workspace form.

The GUI watches project.ovpro and the sch/, lay/, impl/, and sim/ directories. External changes to an open file are reflected immediately when that file has no unsaved GUI edits. If the same file has unsaved edits, its tab shows a warning and saving asks whether to preserve the local or external version for each conflicting file. Clean files are merged from disk even while another file has local edits. File → Reload Project from Disk reloads explicitly after confirmation.

RTL-to-GDS phase tabs

RTL-to-GDS is part of the main document tab strip, not a separate workspace:

A/MS Schematic | HDL Schematic | Synthesis | Physical Design | Layout | A/MS Simulation | Digital Testbenches

Each top-level document tab has a custom SVG icon. Analog/mixed-signal workspaces (A/MS Schematic, Layout, A/MS Simulation) use red icons; digital workspaces (HDL Schematic, Synthesis, Physical Design, Digital Testbenches) use blue icons.

The implementation tabs are global views over one selected implementation run. Selecting a run in the left Runs tree changes the active run; selecting one of its physical stage rows switches the Physical Design pane. Multiple runs therefore do not multiply the top-level tab count. Execution remains available through openvlsi-cli implementation-run, MCP, and openvlsipy, and its output is reported in the bottom Messages dock.

Physical Design is one workspace controlled by the left Runs tree. The stage rows for the active run select which stage is shown; there is no separate stage tab bar. Each stage pane uses the same three-column shell as Schematic and Layout:

  • Left: a compact run row with the run selector and icon actions, followed by the Runs tree and a Display tree. In the physical workspace the tree shows the physical stages (Floorplan, Placement, CTS, Routing, Final) for each run. Selecting a stage row switches the stage pane. The selected stage row shows a play action next to its status: it runs the flow from the first unfinished stage up to that row (for example CTS runs Floorplan, Placement, and CTS) and updates each stage’s status as it goes. The icon actions are Run all (Floorplan through Final) and Cancel; a small contextual hint below the row shows the next prerequisite, the ready action, or the last failure. Below the tree, Open in OpenROAD GUI launches the standalone viewer on the active ODB, and Final places Import final as device next to it. Import final as device flattens the final GDS/OASIS into one read-only device cell shown under Layout > Devices > Digital, copying top-level DEF pins and pin nets when a DEF checkpoint exists. Create a layout and place the device as many times as needed. Missing final streams are reported as an error. The Display tree toggles layers, net types, instance categories, special nets, ports, route guides, rows, and blockages. Fill, endcap, tap, antenna, and cover cells are hidden by default; changing visibility preserves zoom and pan.

  • Middle: an interactive canvas. The physical stages load their stage ODB through the openvlsi-openroad reader asynchronously, with the legacy DEF import as a fallback. A vertical icon toolbar left of the canvas provides fit, zoom, find, rulers, labels, clear, and image export. Middle-button drag pans the canvas, and a bottom-left scale bar shows the current view in nm, µm, or mm. Clicking an instance, port, routed shape, or DRC marker selects it and fills the Inspector. Right-clicking can focus a net, zoom to the selection, or clear it. The status line shows cursor coordinates in microns. The Heat map selector shows embedded placement-density or routing-density maps; Load CSV displays any exported OpenROAD heat map, and Export CSV writes placement, routing, power, pin, RUDY, or IR-drop maps. Heat-map settings provide log/reverse scale, automatic or explicit range, alpha, and a legend. When the ODB reader truncates the preview, the canvas shows a warning. Double-clicking an artifact opens it in a closable tab; large files and ODB databases open externally.

  • Right: a Properties tab first, followed by Metrics. With nothing selected in the canvas the Properties tab shows the active stage settings; selecting an object switches it to that object’s name, master, category, module, net, layer, and sources. Preview DRC markers, timing metrics, and generated OpenROAD STA path reports appear in the bottom Reports tab; its selector switches between the DRC, LVS, and Timing reports. Activating a DRC row selects and zooms to the marker in the physical canvas. Activating an LVS row opens the compared schematic or layout and focuses the reported object; blocked or ambiguous objects are reported in the status bar.

The HDL Schematic page shows the project’s .sv files in the left Explorer, with a search field and icon buttons to create (+) or delete the selected file. Selecting a file opens or activates it in a closable middle tab with its own SystemVerilog editor. The right column has Outline and IP/Libraries tabs. Outline lists modules, ports, parameters, always blocks, assignments, and functions/tasks with click-to-line navigation. IP/Libraries lists project packages, installed PDK packages, and reusable HDL modules. New HDL Block creates a new .sv entry with a starter module template. SystemVerilog block creation lives there, not in the A/MS Schematic tab.

The Synthesis page uses an HDL file Explorer with an Elaborate design action next to its search bar. Below that Explorer, a Runs tab contains a search bar, a Run/Stage table with a per-row remove button, and Synthesize, Show graph, and Export .v actions. Elaborate design prompts for a PDK, creates a run, and runs Yosys elaboration; the table shows elaborating and then elaborated, and the run gets an elaboration.svg artifact. Synthesize prompts for a PDK and produces synthesis.svg plus the generic synthesized netlist 1_synth.v. When the run’s synthesis is already up to date it is disabled until the SystemVerilog source changes, so the same RTL cannot be synthesized twice. Export .v runs the Yosys technology-mapping step against the platform Liberty files on the existing 1_synth.v netlist — it does not elaborate or synthesize the RTL again — writes synth/2_tech_map.v directly into the run directory, and adds it to the synthesis artifact list. Show graph opens the elaboration and/or synthesis graph as document tabs. The remove button in a run row deletes that run from the project and removes its build/impl directory. Graph tabs render SVG and recolor Graphviz output to match the active dark or light theme.

The Synthesis page uses the same padded Explorer and artifact containers. Its left column lists HDL source files. The middle panel has no permanent graph tabs: double-clicking an artifact opens one closable tab per file, just like a document. Graph artifacts open a zoomable SVG canvas and the technology-mapped netlist opens a read-only Verilog editor. The right column lists the elaboration and synthesis graph artifacts and the technology-mapped 2_tech_map.v netlist. Logs, scripts, and the generic 1_synth.v stay in the run directory but are not shown in this list.

Graph generation is split from the synthesis itself so a large design cannot block the stage. Yosys writes DOT files, then OpenVLSI renders them to SVG with a bounded Graphviz run. When the detailed post-synthesis graph is too large to lay out, OpenVLSI uses a compact graph captured before memory and technology mapping, so the result stays viewable. If no graph can be rendered, the DOT is kept as a text artifact and a warning is written to the Jobs/Messages views.

Floorplan reads the run’s 2_tech_map.v. If the mapped netlist is missing when the floorplan stage starts, OpenVLSI runs the technology-mapping step automatically after a successful synthesis; the Export .v action remains available for an explicit export. Its settings expose utilization (a fraction of the core area, so 0.5 means 50%), aspect ratio, optional explicit die origin/width/height, optional explicit core origin/width/height, placement site, IO horizontal/vertical layers, threads, and timeout. Applying settings updates the run configuration and invalidates the floorplan, placement, CTS, routing, and final checkpoints so stale results are never presented as current.

The Placement, CTS, Routing, and Final stage panes use the same pattern:

  • prerequisites are enforced from stage status:

    • placement requires a successful floorplan;

    • CTS requires placement;

    • routing requires CTS, or placement when CTS is disabled;

    • final requires routing;

  • editable settings:

    • placement: density, timing-driven, routability-driven;

    • CTS: enable/disable CTS, root buffer, clock buffer list;

    • routing: minimum/maximum routing layers, antenna repair;

    • final: RC extraction follows the platform rules;

    • every stage also exposes threads and timeout;

  • applying settings invalidates that stage and every later checkpoint;

  • the middle canvas refreshes from 3_place.odb, 4_cts.odb, 5_route.odb, or 6_final.odb after the stage completes, and shows pending/failed/skipped messages instead of stale geometry;

  • the Heat map selector can color the preview by placement density or routed wire density, and Export CSV writes placement, routing, power, pin, RUDY, or IR-drop heat maps under the run’s reports/ directory.

The Properties and Metrics tabs continue to show the active run, selected stage, and selected preview object. Physical preview DRC markers, LVS results, timing metrics, and STA reports appear together in the bottom Reports tab. LVS rows can be activated to cross-probe the reported schematic or layout object. Opening a GDS/OASIS stream asks to save, discard, or cancel when the current project has unsaved changes.

Graph generation requires Graphviz (dot) on PATH; without it, synthesis still runs and the canvases show an explanatory message. The final stage also attempts a KLayout merge of the routed DEF with the platform standard-cell GDS decks and records final/6_final.gds; missing decks or KLayout are reported as warnings. Importing a finished DEF into a layout cell is exposed through openvlsi-cli implementation-import, MCP, and openvlsipy; openvlsi-cli implementation-export-gds and implementation_export_gds rerun or redirect the stream export.

Command and transaction model

User actions should be expressed as core commands or application services. The GUI should:

  1. collect interaction-specific input;

  2. validate or preview the requested operation;

  3. submit a core mutation;

  4. display diagnostics and affected objects;

  5. update views from model notifications.

Every mutation that changes project state should be undoable where practical. Multi-step operations such as routing, import, generation, and agent actions should be grouped into one transaction or operation batch.

Selection and cross-probing

Selection should use stable domain IDs rather than pointers to graphics items. Selecting an object should be able to reveal related objects across views:

Schematic instance
    ↕
Layout instance / extracted device
    ↕
Net and simulation data

The GUI should distinguish:

  • primary selection;

  • related/highlighted objects;

  • hover/preselection;

  • locked or read-only objects;

  • objects affected by a diagnostic.

Cross-probing should remain available even when one representation is absent or out of date, with the relationship status shown explicitly.

Schematic editor

The schematic editor should initially provide:

  • an infinite panning canvas with origin axes;

  • pan, zoom, grid, snapping, and fit-to-view;

  • symbol placement and movement;

  • wire and net-label creation, with double-click rename for net labels;

  • pin and net inspection;

  • instance/property editing;

  • hierarchy navigation;

  • selection and cross-probing;

  • validation diagnostics;

  • undo/redo.

The view renders schematic database objects. Symbols remain semantic objects with artwork and pin metadata; Qt graphics items are projections of that data. Scroll the mouse wheel to zoom around the cursor. The Ports symbol category provides Input, Output, and Pin. Pin is a single-terminal bidirectional port marker: place it in a child schematic to expose an inout port in the generated .subckt and hierarchical block symbol. Connectors attach to its PIN pin. It is skipped by device netlisting just like Input and Output, and LVS treats it as an inout schematic pin. The Wrap into Symbol toolbar action takes the selected schematic instances, creates a new child schematic cell containing them, and replaces the selection with one hierarchical block instance. Nets that stay inside the selection move with it; nets that also connect to unselected devices become child port instances and matching pins on the generated block symbol. The new block is selected in the parent and the child cell opens as a normal schematic tab. Use undo to restore the original flat schematic. Connecting two pins merges their nets, and schematic wire routes are cached per net and branch. Editing a connection re-routes only the affected net, while moving or rotating a symbol re-routes nets attached to it or whose wires intersect its new geometry. Unrelated nets keep their existing routing. Dragging a net label stores a route-relative anchor: the branch endpoints, the normalized distance along that branch, and the label side (A or B). Labels therefore follow translated or re-routed wires, survive save/load, and do not depend on volatile segment numbering. Source reference labels sit to the left of their symbols. Passive values are shown below resistors, capacitors, and inductors. Source values are shown to the right, with sine sources displaying amplitude and period. Selecting a symbol highlights its artwork, reference label, and value text without drawing a selection rectangle. Hovering over a symbol highlights its artwork, and hovering over a net highlights its wires. Opening a project opens its first schematic and its first layout; the create-schematic and create-layout pages are only shown for projects that have none at all. The Hierarchy and Devices panel, like the side panel of every workspace tab, sits in a splitter that can be dragged shut to give the editor the full width.

The + button in Schematic Hierarchy offers Schematic, Text SPICE Schematic, and SystemVerilog Block. Text SPICE schematics use a notebook-text icon, appear in the schematic tab bar with a .sp extension, and open a plain-text SPICE editor in place of the canvas and canvas toolbar. SystemVerilog cells use a notebook-text icon, appear with a .sv extension, and open the same source editor with SystemVerilog templates and syntax highlighting. Their source is stored directly in the project and saved with it. Source cells are not projected into generated hierarchy symbols, but they can be selected as the source for a simulation. For a text schematic, simulation uses the stored SPICE source minus analysis-control directives such as .tran, .dc, .ac, .op, and .end. The Build Netlist button and the schematic signal picker are hidden for source cells; only Run Simulation is shown, and it runs directly without a separate build step.

The A/MS Simulation panel + menu offers Add Simulation… and Add Simulation Script…. Testbenches are created from the Add Testbench button in the Digital Testbenches tab. It creates the testbench source cell and a simulation that targets it with the Icarus Verilog (SystemVerilog) simulator and Digital / VCD analysis, then opens the new top-level Digital Testbenches tab. That tab lists the project’s SystemVerilog testbench files in a left panel with search and add controls, opens the selected files in a central tabbed source editor with syntax highlighting, and shows an Outline plus Testbench details in the right panel. When no testbench or result tab is open, the center shows an Open a testbench creation prompt with a direct SystemVerilog Testbench action. It has its own Run Simulation button next to Add Testbench in the Explorer panel. Running a testbench opens its simulation graph as a tab in the same central tab area as the source files. Digital testbench simulations are not listed in the A/MS Simulation hierarchy, which is reserved for analog and mixed-signal simulations. Adding a testbench asks only for its name; the source cell is PDK-independent. The A/MS Simulation schematic chooser excludes SystemVerilog testbench cells. The source is compiled with iverilog, run with vvp, and the generated VCD is loaded as the result traces. If the source has no $dumpfile/$dumpvars, OpenVLSI adds a small wrapper module that dumps the design. The first successful run fills the Signals to capture list and any empty graph Y selections from the VCD traces.

A drawn schematic with SystemVerilog instances is detected as mixed-signal. The simulator selector then defaults to Mixed-signal (ngspice + Icarus) and the analysis to Transient. The resulting graph contains both the analog node traces and the digital <instance>.<port> traces. HDL instances are placed by MCP/CLI with a generated symbol whose pins match the module ports; the same symbols render and wire normally in the schematic canvas. HDL blocks may also be nested inside drawn subcells; mixed-signal planning flattens those nodes and uses scoped names such as U1_U2.

The graph toolbar has a Load VCD action that imports an external VCD file into the current simulation. Its traces replace the capture list, populate empty graphs, and are shown immediately without running a simulator.

Waveform analysis

The plot is interactive. Drag to pan, use the mouse wheel to zoom the time or frequency axis, Ctrl+wheel to zoom both axes, and Shift+drag to box-zoom. Double-click inside the plot to reset the zoom. Click once to place cursor A and Shift+click to place cursor B. Drag either cursor line to move it. The readout inside the plot shows each trace value at the cursor and the A/B delta. Right-click offers reset zoom, cursor placement/clearing, marker mode, marker placement/clearing, and copying the cursor readout.

The chart button next to the graph controls opens Waveform Analysis:

  • View switches the Y axis between linear, magnitude in dB, and phase. Phase view reads the companion <signal>.phase traces emitted by AC analyses. The FFT group transforms the selected traces to amplitude and phase spectra; non-uniform transient samples are resampled to a uniform grid, and the FFT window/size are configurable. Measurement annotations can be hidden.

  • Derived traces add math channels such as out - in, db(v(out)), derivative(i(v1)), and phase(out).

  • Overlays draw stored runs on the same graph. Corner, sweep, and Monte Carlo runs appear with their variant labels and use dashed lines; runs from other simulations can be overlaid when they expose compatible signals.

  • Markers lists the persistent point annotations that can also be placed from the plot context menu.

All of these settings are saved on the SimulationGraph in the project and are also available through the CLI and MCP. Derived traces, view transforms, FFT, overlays, and markers never modify the stored simulation samples.

A drawn schematic cell can declare parameters in its Properties panel when no instance is selected. Component values may reference those parameters with SPICE brace expressions such as {R}, {C}, or {W}. When the cell is placed as a hierarchical block, OpenVLSI emits the declarations as .subckt ... params: defaults and passes matching instance parameters from the parent as per-instance overrides. Selecting the block instance in the parent and editing R therefore produces X1 ... block R=2k while other parameters keep their defaults. A cell used as the top-level simulation also emits its parameters as .param cards, so {R} resolves without an enclosing subcircuit. Names are matched case-insensitively and must be valid SPICE identifiers; empty defaults are not declared. Changing a cell default updates already placed block instances that still hold the previous default, while explicit overrides are preserved. Parameters that a block instance does not declare on the child cell are reported in the netlist notes and are not emitted.

Future schematic features include buses, reusable libraries, ERC, netlisting, and richer hierarchy editing.

Layout editor

OpenVLSI uses port for the interface of a layout cell and pin for a schematic symbol or instance terminal. LEF, DEF, and GDS still use their own PIN/pin-label vocabulary at the file-format boundary.

The layout editor should initially provide:

  • layer-aware rendering;

  • an infinite panning canvas with origin axes;

  • grid, snapping, and fit-to-view;

  • rectangle and polygon creation;

  • shape selection and movement;

  • ports, labels, and net visibility;

  • hierarchy navigation;

  • instance transforms;

  • basic Boolean operations;

  • spatial queries for selection and editing;

  • diagnostic markers;

  • undo/redo.

The Layout left column contains Hierarchy and Devices tabs; the right column contains Properties and Layers. The layout creation dialog asks for the layout PDK and, when that package declares stack variants, the stack (for example GF180MCU 3LM_1TM through 6LM_1TM). The package’s default stack is preselected. The selected PDK and stack are stored on the layout cell and shown in its properties; a layout instance must use the same PDK and stack as its parent. Creating a layout with a packaged PDK adds that package’s complete device-library layer set for the selected stack up front; placing devices reuses those layers instead of adding new ones. The Layers panel groups GDS purpose variants under their base layer number: for example Metal1.pin and Metal1.nofill appear under Metal1. Pin-purpose, mask, fill-blocking, and marker layers that use non-zero datatypes or marker base names start hidden; enable them with the child checkbox or the parent group checkbox. PDK packages may supply default layer colors, patterns, and visibility in technology/layer-styles.json; these styles are applied when the package’s layers are added, and layers without an entry keep the built-in number-based palette. Creating a custom layer opens a form with the layer name, assigned GDS number, color picker, fill pattern, and a live style preview. The toolbar next to the search field can show only drawing layers. Its single eye button shows all layers when any layer is hidden and switches to hide all when every layer is visible. Ports are intrinsic OpenVLSI annotations with a required layer association for routing; they are not controlled by a PDK layer filter. Layout entries use a notebook-pen icon. Each layout node lists its child layout/device instances, planned devices, rectangles, polygons, paths, and texts directly, with a distinct icon for each entry type. Right-click an entry and choose Rename… to rename a layout, script, instance, planned device, or shape. Right-click a layout entry and toggle Flatten Layout for DRC to control whether Run DRC exports the flattened instance geometry instead of only the layout cell’s own shapes. Right-clicking a schematic in the Schematic Hierarchy tab offers Make Layout from Schematic. This creates a layout with the schematic’s technology and projects every schematic instance into a movable Planned Device box under the new layout. The boxes keep the relative positions the symbols had in the schematic instead of being arranged in a grid. Nets are drawn as straight connections between the boxes; planned devices use a box icon in the hierarchy and can be selected and moved directly on the canvas. Use Hierarchy Go Up and Hierarchy Go Down in the left layout tool column to open the parent layout or the selected child instance.

With nothing selected in the layout, Properties shows a fitted preview of the layout geometry and a Grid section with the Layout-only snap spacing in nanometers. New layouts default to the PDK manufacturing_grid (5 nm for the bundled GF180MCU, SKY130, and IHP SG13G2 packages). The layout toolbar keeps the grid visibility and snap toggles. The layout cell parameter table is hidden while nothing is selected. Selecting a rectangle shows its name, type, layer, and editable width and height in database units; selected polygons, paths, and texts show read-only name, type, and layer information. Selecting a single path point shows its exact X and Y coordinates plus the outgoing segment width and layer (the incoming segment for the last point) as editable fields in Properties. Multiple selected points show a read-only summary.

The + button in the Layout Hierarchy offers Static Layout and Procedural Layout. Procedural layouts use a notebook-text icon, open a Python script editor with syntax highlighting in the middle view, and contain a read-only generated static layout as their child. The canvas tool columns are hidden while a procedural layout tab is active. The script runs with a layout builder that exposes layers with number/datatype, rectangles, polygons, paths, text, vias, rectangular arrays, ports, and instances. Coordinates can be written in database units or through layout.nm(), layout.um(), and layout.snap(). Generated shapes can carry a name and a net, and scripts can declare user-editable parameters with layout.parameter(name, default). Parameters appear in a form above the script editor; edit a value and press Regenerate layout to apply it. layout.device("nmos", ...) places a device from the active package’s device library, including generated PCells and fixed .ovlay devices, with flattened geometry, prefixed ports, and device metadata for LVS. The call returns a placement object with absolute port rectangles (placement.G, placement.ports["G"]). Pass nets={"G": "GATE", ...} to bind device terminals to layout nets and keep them through extraction.

Placed ports can be routed with layout.connect(device_a, "G", device_b, "G", layer="met1.drawing", width=layout.um(0.4), net="GATE"), or with layout.route(start, end, layer, width, ...) for point and rectangle endpoints. Both build a deterministic Manhattan route that avoids device bounds and other-net shapes, emits rectangles carrying the requested net, and reports the route length and bend count. For ports on different layers, pass layers=["met1.drawing", "met2.drawing", ...] in vertical stack order, or omit layers to use the PDK package’s declared routing stack; the router may insert via stacks between adjacent layers. Via cut layers and their default size and enclosure come from the package’s technology/connectivity.json, with common names (via/via2, Via1/Via2, Metal1/Metal2) as a fallback. The mapping can be overridden with via_layers={("met1.drawing", "met2.drawing"): "via.drawing"}. via_size, via_enclosure, and via_cost tune the transition geometry and cost. clearance, escape, obstacles, start_side, end_side, and bend_penalty tune the route. If no legal path exists, the router raises a clear error instead of creating a short. The returned Route exposes segments, point_layers, vias, and via_count in addition to points, shapes, length, and bends.

m1 = layout.device("nfet", name="M1", x=0, y=0, w="2", l="1", nf="1",
                   nets={"G": "GATE", "D": "GATE", "S": "VSS", "B": "VSS"})
m2 = layout.device("nfet", name="M2", x=layout.um(12), y=0, w="4", l="1", nf="1",
                   nets={"G": "GATE", "D": "OUT", "S": "VSS", "B": "VSS"})
layout.connect(m1, "G", m2, "G", layer="met1.drawing",
               width=layout.um(0.4), net="GATE")
layout.connect(m1, "S", m2, "S", layer="met1.drawing", net="VSS")

# Multi-layer route: met1 port to a met2 pad, with an inferred SKY130 via.
out = layout.route(
    m2.D,
    (layout.um(20), layout.um(2), layout.um(1), layout.um(0.6)),
    layers=["met1.drawing", "met2.drawing"],
    width=layout.um(0.4),
    net="OUT",
)

Right-click a procedural layout and choose Regenerate layout (or use the editor’s Regenerate layout button) to replace the generated child’s geometry from the current script. Scripts run with python3, or the interpreter selected by OPENVLSI_PYTHON, with a 60-second timeout; command-line and MCP regeneration accept a timeout override. A failed run reports the Python error and leaves the previous generated geometry unchanged. A ↻ marker in the file tab means the script changed since the last successful generation. The generated child is read-only; edit the script or parameter form and regenerate instead of drawing over generated geometry. Boolean union, intersection, subtract, and xor operations are available, and polygons accept hole contours. The layout API also exposes layout.add_dummy_fill(...). This is intentionally PDK-agnostic: OpenVLSI forwards the request to the active package’s layout/dummy_fill.py implementation after the user script finishes. The IHP SG13G2 package implements square dummy metal fill for Metal1-5 and TopMetal1-2 using rules adapted from the gdsfill project. A PDK without that implementation reports a clear error when the API is used. The active PDK package’s device library appears in Devices, with search, category filtering, and a geometry preview in Properties. See Procedural Layout API for the complete builder, device, and routing API. Parameterized devices are Python PCells generated on selection; fixed devices are backed by layout/devices/fixed/*.ovlay cells. IHP SG13G2, Sky130, and GF180MCU packages ship their own libraries, and switching the active layout to a cell from another PDK loads that package’s devices. Imported digital layouts appear in the same tab under Digital. The device list starts with no selection; selecting a device switches to Place Device and shows a cursor-following preview, while activating Select clears the list selection. Clicking in the canvas places a layout instance of the device cell. The first placement creates the read-only project .ovlay cell; repeated placements reuse that cell, so instances share parameters and geometry. Each instance appears separately under its parent layout in the hierarchy and can be selected, moved, and deleted directly in the canvas. Selecting a placed instance in the hierarchy highlights it in the canvas, and selecting an instance in the canvas highlights its hierarchy row. PCell parameter names, values, and descriptions are shown in Properties for the device preview and for imported library cells. Selecting a placed device instance shows that instance’s own geometry preview and parameter values. Editing a parameter regenerates that instance’s geometry through the package-local generator without changing other instances. Editing a device in the Devices tab changes the defaults used by future placements.

The generator contract is <pdk-root>/layout/devices/generator.py --pdk-root <package> --module <module> --class <class> --params-file <json> --output <json>. IHP evaluates the vendored upstream PyCell sources (and KLayout’s pya module) through openvlsipy.pcells. Sky130 and GF180MCU use OpenVLSI-native PCells implemented directly with the openvlsipy layout builder. OpenVLSI uses python3 unless OPENVLSI_PYTHON points to another interpreter. If the package generator or Python module is unavailable, OpenVLSI reports the error and leaves the existing geometry unchanged.

The Sky130 and GF180MCU MOS PCells draw isolated fingers, licon/mcon cuts, body taps, and well/implant layers. Device width is the channel width of each finger, and nf creates electrically parallel fingers instead of overlapping diffusion rectangles.

Device placement ghosts and the Properties layout preview use the same layer color resolution and flattened geometry renderer as the canvas, including paths, text, ports, and planned devices. Port colors follow their associated layer; layer colors are keyed by GDS layer number, so they remain stable when layers are added or removed.

The layout toolbar separates Select from Move. Select supports rubber-band selection and handle editing: drag path points, polygon vertices, and rectangle corner or edge handles, but it does not move whole objects. Click a path point to select it; the handle inverts its colors. Hold Ctrl while clicking to add or remove points from the selection, then drag any selected point to move the whole group. Press Delete to remove the selected path points, or right-click one for the same action. A path always keeps at least two points. Click the path body to clear the point selection, then Delete removes the whole path. Move drags rectangles, polygons, paths, texts, planned devices, and placed instances; selection handles are hidden while Move is active. Selection, selected path points, and the current zoom/pan are preserved across edits and project refreshes.

In Select, click an already-selected rectangle or polygon again to trace and highlight its net in the layout. Tracing follows touching conductive shapes and crosses layers through via shapes, using a connectivity stack inferred from the project’s Metal*, TopMetal*, Via*, TopVia*, and Contact layer names. For example, Metal1 connects to Metal2 only through Via1. Contact links Activ and GatPoly (or the older Poly2 name) to Metal1 when those layers exist. Shapes on layers that do not belong to the stack are reported in the status bar instead of being traced.

Net labels are taken from shape net assignments or text shapes placed on the traced geometry; otherwise the trace is shown as Traced net. Related planned connections and planned devices are included when they touch the traced geometry. The canvas and status bar show the net name and a summary with shape, via, and layer counts. Tools → Net Trace Layer Stack shows the inferred stack and via connections. The highlight clears on the next click, selection change, or tool change.

The Create Polygon tool draws a filled polygon on the selected layer. Click each vertex; Shift constrains the current edge to horizontal or vertical. Double-click, Escape, or Space closes the polygon and leaves the tool. Select a polygon to show square vertex handles; drag a handle to move that vertex.

The layout toolbar also provides a Draw Path tool for routing. Clicks add bend points to one preview path without placing geometry. Press Enter to commit the whole path as one shape; Backspace removes the last point, Escape cancels the preview, and Space switches to Select. Holding Shift constrains the active segment to horizontal or vertical so all turns are right angles. While the Path tool is active, Properties shows the current path layer. Each preview segment keeps the color of the layer it was drawn on, and layer transitions show their via stack in the preview. Each segment is drawn at its layer’s PDK minimum width, and the width is not user-editable. Path points follow the layout grid snap setting. After the first path click, scroll the wheel to move the next segment up or down one metal layer; OpenVLSI inserts the corresponding via at the connection point automatically. Starting or ending a path on a port snaps to the port center and selects the port’s drawing layer when that layer is in the routing stack. While the Path tool is active, every visible port shows a dot at its center; clicking a port snaps the pending endpoint there. Press Enter to commit the complete path as before. For the IHP stack, for example, scrolling from Metal2 down to Metal1 adds a Via1 at the junction. When no path is being drawn, the mouse wheel zooms the Layout canvas; Ctrl+wheel also zooms while a path is active. A routed path is stored as one path shape with an editable centerline and cached outline; it moves as a single object rather than as independent segment rectangles. The Draw Path tool and manually drawn paths use the waypoints icon, while automatically routed paths are listed as Routed Path shapes with the route icon. Select a manual path to show its point handles; drag a handle to move a point, double-click a segment to insert a point, and right-click a handle to delete it. Automatically routed paths expose handles only at their endpoints; drag an endpoint to a different border of its port to change which side the route attaches to. Routing avoids other automatically routed paths on different nets by choosing another metal layer, trying an alternate Manhattan trace, or bridging a segment through an adjacent layer with vias. If no conflict-free route exists, the direct route is kept. Changing layers while drawing keeps the same path and records the layer for each segment; each segment uses its own layer’s minimum width. Hiding a layer hides only that layer’s path segments and vias. Corners and endpoints are square, not rounded. Layer-change vias are stored with the path and move with it. Segments adjacent to a via extend by half the via size so the copper fully overlaps the via on both layers.

The Create Rectangle tool is click-move-click: the first click anchors the corner, moving the mouse previews the rectangle and shows its live width x height, and the next click finishes it. The size field at the bottom right of the canvas accepts exact dimensions while the rectangle is previewed; type width,height (for example 281,2875) and the rectangle is created with those dimensions once typing pauses, or press Enter to finish immediately. Dimensions follow the layout Spacing setting when snap-to-grid is enabled. Escape cancels the pending rectangle.

Select a rectangle to show square point handles at its four corners and at the midpoints of its left, right, top, and bottom edges. Drag a handle to resize from that corner or side while the opposite side stays fixed. The handles use the same square style as path points, and dragging the rectangle body moves it.

With two or more rectangles or polygons selected on the same layer, the Boolean buttons in the right layout tool column perform Union, Intersection, Difference, and Exclusive Or. The operands are replaced by one or more polygon shapes named after the operation. Difference subtracts the newer shapes from the oldest selected shape. Results with holes are split into independently fillable polygons, and an operation that produces no geometry leaves its operands unchanged. Use undo to restore the original shapes.

Right-click a path body and choose Flatten to Polygon to replace it with filled polygon geometry. Segment outlines and point vias are unioned per layer, so a path that changes layers produces polygons on each layer it used, including squares on its via layers. Flattening an automatically routed path detaches it from its planned connection. Use undo to restore the path.

Selected shapes can also be copied with Duplicate (Ctrl+D) or repeated with Create Array from the layout tool column or the figure context menu. Arrays accept row/column counts and pitches. Paths retain their centerline, per-segment layers/widths, and vias when copied or duplicated. Right-click a multi-shape selection and open the Arrange submenu to align two or more shapes left, right, top, bottom, or center, or distribute three or more shapes evenly.

The Ruler tool measures between two clicked points. The ruler line keeps a constant screen width as you zoom, and shows minor and major tick marks with distance labels along its length.

The Comment tool (Shift+C, layout text labels) places an annotation on the currently selected layer. Click the canvas, enter the string, and OpenVLSI creates a movable text object with a 1 um nominal height. It is stored in the project and exported as GDSII TEXT records, but it does not create conductive geometry.

The Draw Text Polygon tool is available from the dropdown attached to the Create Polygon toolbar button. It converts the glyph outlines into actual filled polygon shapes on the selected layer. Glyph contours are simplified to 45- and 90-degree edges, and each connected glyph component becomes one polygon with counters represented by a keyhole cut. Letters with disconnected parts, such as i and j, use one polygon per component. The click position becomes the lower-left corner of the glyph bounds. All components appear as one Text Polygon entry in the Hierarchy and select, move, rename, and delete as a single object, while still participating in connectivity, DRC, and GDSII BOUNDARY export like ordinary layout polygons. Text polygons are excluded from Boolean operations.

The Create Port tool places a named OpenVLSI port on the selected layer. With a single available layer that layer is used automatically; with multiple layers, select one before drawing. Drag from one corner to the other to define the port rectangle. Ports are visible as accent-colored rectangles with centered labels, are selectable/movable/resizable, and can be locked or hidden. The Properties panel edits the port name, label, direction, physical side, layer, net, size, visibility, and lock state. Use the layer field to associate the port with the routing layer that automatic routing and the Path tool should use. Port metadata is stored in .ovlay, including its required layer association. GDS/OASIS export projects ports onto their associated layers; there are no layerless ports. Layout nets are created through the port net field or openvlsi-cli layout-add-net; assign a net by name in Properties or with openvlsi-cli layout-assign-port-net. The Hierarchy panel lists each layout’s ports with visibility checkboxes and port details in the tooltip. Child-cell ports are drawn read-only inside instances; double-clicking one promotes it to a parent port that keeps the source instance and child port link.

File → Open Layout Interchange imports GDSII or OASIS. It asks which layer carries port-label TEXT records (-1 imports text as ordinary text shapes only) and optionally a top-cell name for libraries with multiple candidates. Recovered ports are intrinsic OpenVLSI ports; the label layer is only an import filter. Structures become layout cells connected by instances; unsupported non-orthogonal or scaled references are flattened with a warning. OASIS is read and written natively without KLayout or an intermediate file. Save Layout Interchange writes the active cell as GDSII or OASIS and asks whether to flatten the instance hierarchy. The default preserves hierarchy. LEF and DEF pin exchange is available through openvlsi-cli and openvlsi-mcp.

Select a planned device box to highlight it. Double-click it, or right-click it, to choose Draw Layout Manually or Place Layout Device…. Voltage/current sources, ground symbols, and Input/Output/Pin port symbols instead offer Convert to Port: the block is replaced by a single layout port on the active layer (an existing port on the connection’s net is reused when there is only one net), and all planned connections from the block are retargeted to that port. Converted Input, Output, and Pin symbols keep the corresponding input, output, or inout direction and name. The placement dialog lists the active PDK’s PCells, suggests devices by model and port compatibility, and lets you edit the PCell parameters before placement. Placing the device replaces the planned box with a layout instance and rewires the existing planned connections from the box to the new PCell ports. After placement, select the instance and edit its PCell parameters in Properties. Select a planned connection to highlight it. Double-click it, or right-click it, to choose Draw Connection Manually or Route Automatically. Automatic routing is enabled when both ends are placed device ports or layout ports; it routes on metal drawing layers, transitions from non-metal ports through the required contact/via stack, and leaves/enters rectangular ports from the middle of their narrowest sides. Automatically routed paths are recomputed when either endpoint moves, rotates, snaps, or is regenerated from changed PCell parameters, so the route stays attached to the device ports. The route leaves each port outwards, turns with Manhattan segments, and can be edited with the normal path tools; moving either endpoint recomputes it and replaces those manual edits. Undo the routing to restore the planned connection. Manual connection removes the logical planned connection and switches to the path tool.

Tools → Run DRC exports the active layout cell to a temporary GDSII file, runs the deck declared by the cell’s PDK package, and parses the generated .lyrdb report. Packages can provide technology/drc.json; SKY130 uses the SkyWater KLayout signoff deck from Volare or PDK_ROOT and enables FEOL, BEOL, and off-grid checks. Violations appear in the Reports tab of the activity dock with DRC selected, showing severity, rule, message, cell, and location columns. Clicking a violation row opens the checked layout and centers the canvas on the reported location with a temporary highlight. The DRC view also lists markers from the current Physical Design preview; activating one switches to the physical canvas and selects and zooms to that marker.

Tools → Run LVS compares the active layout against its source schematic. OpenVLSI infers the schematic from planned-device links, then from matching layout and schematic names, and asks for a schematic when the match is ambiguous. LVS checks device presence, reference names, device types, shared parameters on placed device instances, and net topology from planned connections. Device parameters are compared numerically when both sides use compatible quantity values, so 0.15u and 150n are equivalent. If the layout has no planned connectivity, LVS reports a warning and compares devices only. Primitive sources and ground symbols are treated as external references rather than layout devices, and ports converted from them are not compared as schematic ports. Top-level schematic ports created with Input/Output/Pin symbols are matched to layout ports by name, including ports produced by Convert to Port; missing ports, extra ports, direction changes, and net-binding changes are reported. Text SPICE schematics are parsed into logical devices and recursively flattened subcircuits; SystemVerilog cells are compared at module-port level. Results appear in the Reports tab with LVS selected. The LVS view shows a summary and four tabs: Mismatches, Devices, Nets, and Ports. The Devices tab lists every matched, mismatched, schematic-only, and layout-only device, the match method (linked, name, or topology), type, and parameter differences. Nets and ports show their complete correspondence, including terminal lists and layout bounds. Double-click a schematic or layout cell, or use the context menu, to open and zoom the corresponding object. A device context menu can bind a layout device to a schematic instance, promote a name/topology match into a persistent binding, or clear the binding.

The layout canvas also offers Locate Schematic Counterpart, Bind to Schematic Device…, and Clear Schematic Binding on planned devices and placed instances. Schematic symbol context menus offer Locate Layout Counterpart, Bind to Layout Device…, and Clear Layout Binding. Right-click a layout cell in Hierarchy and choose Link to Schematic… to associate two already-created cells, or Unlink Schematic to remove the cell-level link. The same actions are available from the empty-space layout canvas context menu. The Schematic hierarchy also offers Link to Existing Layout…. A stale LVS report is retained for inspection but object navigation validates that the reported object still exists; rerun LVS after editing the design.

Tools → Run PEX (or right-clicking a layout cell and choosing Extract Parasitics (PEX)) extracts first-order parasitics from the active user layout cell. It groups geometry into nets with the same connectivity used by the layout connectivity view, recognizes Metal*, GatPoly/Poly*, Activ/diffusion, and via/contact layers, and reports each net’s area, perimeter, total resistance, and capacitance in the generated SPICE text schematic. A text SPICE cell named <layout> PEX is created — or updated on a later run — and selected in the Schematic tab, so it appears in the project hierarchy. Single-terminal nets use a series resistance with the capacitance to ground; multi-terminal nets use a resistance star between ports. Planned devices from procedural layouts are extracted first using their model, parameters, and terminal-net metadata, so flattened PCell resistors, capacitors, and transistors remain in the post-layout netlist. Placed device-library instances are extracted next: their terminal port rectangles are transformed into parent coordinates, matched to the parent nets they overlap, and emitted as SPICE primitives or PDK subcircuits with model parameters. If no planned or placed devices are recognized, PEX falls back to copying the inferred source schematic’s device netlist. Devices drawn purely as polygons are recognized through the PDK package’s technology/extraction.json rules: PEX cuts active under gates, finds source/drain terminal nets, and emits MOS devices with geometric W/L. The same rules can describe simple resistors and capacitors. Use LVS to verify the result before relying on it. The generated deck records the coefficients used, and the API/MCP surfaces can override them for a process-specific first pass.

The editor must support integer database coordinates and a clear display-unit conversion. It should never use display precision as a substitute for database precision.

Generated layout should enter the same editor and database as manually created layout. The user should be able to inspect generated provenance, edit geometry, and continue with Python or agent operations without exporting to an intermediate format.

Keyboard shortcuts

Editor tool shortcuts are active while the schematic or layout canvas has focus. The same key may be used for different tools in the two editors.

Common defaults:

  • Select: Space

  • Place device: P

  • Delete selection: Del

  • Save current file / Save whole project: Ctrl+S / Ctrl+Shift+S

  • Run simulation / DRC / LVS: F6 / F7 / F8

  • Fit to view: F

  • Toggle grid: Ctrl+G

  • Snap to grid: Shift+G

  • Hierarchy up / down: Alt+Up / Alt+Down

  • Schematic rotate / flip: Shift+R / H

  • Schematic place device: R resistor, X NMOS, I input, O output, B pin, C capacitor, D diode, G ground, L inductor, S sine voltage source; Shift+wheel scrolls the device library while placing

  • Schematic comment: Shift+C

  • Layout rotate / flips: Shift+R / H / J

  • Layout duplicate: Ctrl+D

  • Layout rectangle / polygon / path / comment (text label) / text polygon / port / ruler: R / G / W / Shift+C / Shift+T / N / L

  • Layout boolean union / intersection / difference / XOR: U / I / D / X

Ctrl+S saves the file shown in the current schematic, layout, procedural layout, digital-testbench, or simulation-script tab. Other dirty tabs keep their unsaved markers. Use Ctrl+Shift+S (or File → Save Whole Project) to write every project file at once.

Use Settings → Keyboard Shortcuts… (Ctrl+Shift+K) to reassign commands, clear a binding, reset one command, or reset all commands. Global commands work anywhere in the window; schematic and layout entries are scoped to their editor canvas so the same key can be reused. Conflicts within a scope, or against a global shortcut, are rejected. Bindings are stored in the user’s Qt settings and applied immediately.

Jobs dock

The Jobs tab lists long-running implementation work: elaboration, synthesis, technology mapping, and physical stages. Each row shows the job, stage, status, elapsed time, and the latest log line. The footer has an indeterminate progress indicator while work is running, Cancel selected job for the active implementation process, and Clear finished to remove completed entries.

Elaborate and Synthesize now return immediately: the project setup is deferred to the next event-loop turn, the CLI process runs asynchronously, and the new job appears in the Jobs tab before the run starts. Selecting a job enables cancellation, and stage transitions update the job in place. Detailed output is also available in the category-filtered Messages tab.

Messages dock

The bottom Messages tab is the unified log view. Each log category has its own spdlog sink and logger:

  • Application

  • Simulation

  • Implementation

  • DRC

  • LVS

Messages are shown with time, severity, category, and text. The category and severity selectors filter the view without changing the stored messages; the severity selector shows that level and above. Severity colors distinguish warnings and errors. The copy button copies the currently displayed (filtered) rows to the clipboard as tab-separated text; the trash button clears the stored message list. Simulation status, warnings, errors, and stored-run paths are written here instead of appearing below the netlist pane. Implementation stage output, DRC summaries/violations, LVS summaries/mismatches, and generic application messages use the same category-aware sinks.

Simulation experiments

Selecting a simulation exposes Experiment Setup… next to Run Simulation. The dialog edits analysis parameters for transient, DC sweep, AC sweep, operating point, noise, and transfer-function analyses; PDK TT/FF/SS corners (and custom corners with temperature, supply, and parameter overrides); parameter sweeps; deterministic Monte Carlo sampling; and declarative measurements. Run Experiment executes every corner/sweep/sample and lists one result per variant with its measurement values and stored run path. The main Run Simulation button runs the nominal simulation only; both paths use the same project model, CLI, and MCP configuration.

Simulation scripts

The Simulation panel + menu offers Add Simulation… and Add Simulation Script…. Simulation scripts are project-level Python files under scripts/, recorded in project.ovpro, and listed as top-level entries in the simulation hierarchy alongside simulations. Adding a script does not require an active simulation and always creates a new Python file from the built-in template.

Selecting a script shows the project-level script view in the A/MS Simulation workspace, replacing the simulation editor on the right. It is not a separate top-level document tab and is not stored inside any simulation. The right pane has File and Graphs tabs, matching the Properties/Graphs layout of normal simulations. File contains the editable Python source editor with syntax highlighting; Graphs contains the plots generated by the script. Script run messages, errors, and Markdown output are appended to the Messages tab, which is opened when a script runs. Scripts have access to every stored simulation run through the context (simulations, runs, latest, latest_many, and load) and can compare multiple simulations in one script.

Scripts can generate GUI graphs with ctx.graph(...). The generated graphs are shown as child entries under the script in the simulation hierarchy and in the Graphs tab; selecting a graph child opens the corresponding plot. Selecting a script opens File first, and a run that produces graphs switches to Graphs. Graphs can reference stored runs and signals, or use explicit x and y arrays computed by the script. Running the script replaces the previously generated graph tabs and refreshes its hierarchy children. The latest graph payload is cached under build/simulation-scripts/ and reloaded when the script is selected, including runs started from openvlsi-cli.

Python source edits autosave after a short pause. The script Graphs page has the same vertical tool column as normal simulation graphs, with Run, Open File, and the graph grid toggle. Run saves any pending edits and executes the script; Open File opens the Python source externally. Deleting a script removes only its project metadata; the file remains on disk.

Simulation plots downsample traces to at most two display points per horizontal pixel column. The minimum and maximum sample in each column are kept so narrow spikes remain visible, while the painter path stays proportional to the plot width instead of the stored sample count. Rendered paths are cached per plot size, graph definition, and result, so switching graph tabs does not re-render large traces. This keeps large transient results responsive without changing the stored simulation data.

Agent tab

The Agent tab is the Agent Client Protocol (ACP) chat interface. It uses agentsdk-cpp (acp_client, acp_session, and acp_agent_manager) to launch a local ACP-capable agent as a subprocess over newline-delimited JSON-RPC on stdio.

  • The compact right panel has two pages. The first selects an ACP agent and connects it. Connect launches the agent and creates the first ACP session, but stays on the connection page; Session opens the session page.

  • The session page has a session selector plus + and x controls to create and close sessions. All sessions share one agent process and ACP connection. Each session keeps its own transcript, model, and token usage, and sessions can be switched while a turn is running.

  • If the agent supports ACP session history, earlier sessions for the current project appear below the open sessions (marked ↺). Selecting one loads it with session/load and replays its conversation into the transcript.

  • The session page also shows the Model selector and MCP server list. Agent returns to the connection page; Disconnect ends the agent and all of its sessions.

  • The Model selector is populated from the active session’s ACP config options and changes that session’s model through session/set_config_option.

  • The prompt row sends a user turn. The transcript shows assistant text, thoughts, and plans. Tool-call updates are coalesced by ACP tool-call ID: completed file reads are grouped as →Explored: N reads, shell commands are shown as $ command with truncated output, and pending/in-progress updates do not create duplicate transcript entries. Cancel sends an ACP cancellation for the active session’s prompt.

  • Agent permission requests open a modal dialog listing the options supplied by the agent.

  • Agent questions use ACP form elicitation. OpenVLSI advertises form support, renders the requested fields (single choice, multi-select, boolean, numeric, and text), and returns the answers to the agent. Declining the dialog returns a declined elicitation response.

  • Token usage comes from the ACP usage_update notification. Because agents such as OpenCode report it only once per turn (together with the prompt response), the context bar also grows while a turn runs using a local estimate from the streamed assistant text, thoughts, and tool output; the bar shows ≈ for estimated values and snaps to the reported value when the turn ends. The last value reported for a session is stored per project, so reloading a past session (session/load) restores the context indicator instead of starting again from zero.

ACP support is built from the bundled third_party/agentsdk-cpp submodule into a shared libagentsdk library. Initialize the submodule with git submodule update --init --recursive before building. The installed openvlsi/openvlsi-mcp binaries load the shared library from the installation’s lib directory.

Styling

The application uses Qt’s Fusion style. By default it follows the system appearance (light or dark) through the platform color scheme. Settings → Appearance allows overriding this with System Theme, Light Theme, or Dark Theme; the choice is persisted with QSettings. Custom-painted views such as the schematic, layout, and simulation plot derive their colors from the active QPalette so they stay consistent with the surrounding widgets.

The workspace tabs (Schematic, HDL Schematic, Synthesis, Physical Design, Layout, Simulation, and Digital Testbenches) are locked in their default order. Settings → Movable Tabs enables reordering them by dragging. Both the setting and the resulting order are remembered per project in QSettings, keyed by the project file path, so reopening a project restores that project’s layout. New projects start locked in the default order. Reordering only changes the tab order, not which project file each tab shows.

Interaction conventions

The GUI should establish consistent behavior for:

  • selection and multi-selection;

  • snapping and grid overrides;

  • copy, paste, move, rotate, mirror, and delete;

  • constraint or validation failures;

  • read-only and locked objects;

  • modal versus non-modal operations;

  • keyboard shortcuts and command palette actions.

Commands that can be invoked from the command palette should map to the same application operations used by CLI and automation surfaces.

Long-running jobs

Simulation, DRC, LVS, PEX, import/export, package operations, and layout generation should run through a job abstraction that exposes:

  • queued, running, succeeded, failed, and cancelled states;

  • progress where available;

  • logs and structured diagnostics;

  • cancellation;

  • links to generated artifacts and affected project objects;

  • reproducibility/provenance metadata.

The GUI should remain usable while jobs run. A failed job must not be rendered as a successful project mutation.

Diagnostics

Diagnostics should have:

  • severity;

  • stable code;

  • human-readable message;

  • source object or file;

  • geometry location when applicable;

  • suggested action when available;

  • originating subsystem or external tool.

Diagnostics should be inspectable in a panel and navigable from the relevant view. External tool output should be retained rather than reduced to a single status string.

Accessibility and usability

The GUI should plan for:

  • keyboard access to core operations;

  • visible focus states;

  • scalable text and UI density;

  • color-independent diagnostic indicators;

  • readable layer and net identification;

  • non-modal alternatives for long-running work;

  • predictable undo/redo behavior.