lizhangmai's picture
Refresh public dataset from latest verified Designs sources
e33cb0d verified
|
Raw History Blame Contribute Delete
13 kB

Complementary SRAM Write Driver Layout Task

Objective

Implement the supplied complementary tri-state write driver: with WEN=1, BL=DIN and BR=NOT DIN; with WEN=0, both outputs are disabled. Preserve authoritative netlist models, W/L, interface and connections; top cell is write_driver.

Optimization objective

Maximize the declared quality score within the solve budget while satisfying all physical and necessary functional requirements. The first passing DRC, LVS and required electrical checks establish a feasible baseline. Continue improving the scored metrics from that baseline; a passing check or task_success = true does not mean that the quality objectives have been achieved.

Inputs and Interface

Ordered SPICE ports: din bl br wen vdd gnd. Names are case-insensitive, but different names are not interchangeable. Inputs are this description, materials/circuit.spice and materials/testbench.spice. The reviewed resource package supplies models and extraction resources; reference geometry and qualification evidence are not solver inputs.

Operating Conditions

Use nominal FreePDK45 BSIM4 models at 1.0 V and 27 C, with ground at 0 V. Every transistor has channel length 50 nm; widths and model types follow the netlist.

BL/BR each connect to 10 fF and a 100 kohm resistor to 0.5 V. DIN is initially low, rises at 500 ps and falls at 1 ns, with 10 ps edges and period 1 ns. WEN remains high until 2 ns, then falls over 10 ps. Sample complementary enabled outputs at 300 ps and 710 ps and both disabled outputs at 11.9 ns. Passive midpoint loads check high impedance through external ports; average DUT supply power over 0–2 ns.

The deck precisely defines stimuli and observation times, testing only through external ports. Validation covers these nominal conditions, excluding PVT, mismatch, array integration, substrate noise and manufacturing signoff.

Physical Requirements

Submit a nonempty GDSII no larger than 10 MiB. Enable every check in the supplied KLayout DRC deck, including grid and antenna checks, without waivers. Native upstream LVS checks the circuit and its declared MOS geometry using the upstream well/supply and symmetric-pin conventions. The upstream deck does not implement its documented spacing rule for wells at different potentials and does not provide complete foundry signoff.

The hard functional-outline limit is 100 um × 100 um. Its bounding box includes all functional geometry on drawing layers 1/0–29/0: active regions, wells, implants, threshold markers, poly, contacts, ten metal layers and nine via layers. Area is scored in um2. Keep functional geometry on these layers, excluding pin-purpose and annotation geometry. Electrical labels use poly or metal drawing layers (9/0, 11/0, 13/0, …, 29/0); nonelectrical annotation text is not extracted.

Translation, equivalent hierarchy and internal instance renaming are allowed. LVS permits source/drain exchange and equivalent parallel devices; the candidate must still pass the same RC electrical evaluation. Preserve the published interface and circuit body nets; native LVS retains upstream global/implicit well and supply conventions.

Electrical Requirements and Scoring

Artifact, geometry, DRC, LVS and declared functional requirements must pass. Parasitic extraction is also mandatory: it must produce a complete, electrically consistent netlist usable by the required post-layout simulations. A completed candidate rejection scores zero; infrastructure errors do not establish candidate failure.

For layout scoring, cap every positively weighted raw quality at 1 before aggregation; the score ranges from 0 to 100. Reaching every weighted target scores 100, and no minimum score is required for validity.

Extract the candidate GDS only after file, DRC, LVS and geometry checks pass. Simulate its Magic RC netlist directly, with independent source simulation supplying the scoring baseline. Independent LVS first checks VTG/VTL device types, then uses the matching extraction configuration. Extraction includes poly/metal sheet resistance, contacts/vias, geometry-dependent coupling and ground capacitance, and device junction areas/perimeters. Wells use lumped connectivity; BSIM4 describes device and junction behavior. Interconnect RC uses estimated coefficients and native capacitance placement from the fixed community FreePDK45 Magic technology. The adapter binds VTG/VTL models, ignores the declared nonelectrical marker layers and corrects dimension-unit conversion. This is a predictive approximation without field-solver signoff accuracy.

Physical checks and the declared functional bounds must pass. Quality scoring imposes no fixed degradation allowance. Each source_* job and its corresponding candidate extracted circuit use exactly the same testbench, model resources, parameters, loads and measurement windows. Independent source observations remain required evidence; the quality targets below set the scoring anchors without depending on the submitted GDS. Reports retain every source/candidate pair.

Let x be the post-layout measurement and b the declared quality target, or the same-condition source measurement when no target is declared:

  • Ratio normalization: maximize with q = x/b and minimize with q = b/x. When a numerical scale s is declared, use (x+s)/(b+s) and its reciprocal, respectively. The scale handles zero values as a normalization floor; it is neither an allowed degradation nor an acceptance bound.
  • Amplitude in dB: maximize with q = 10^((x-b)/20) and minimize with its reciprocal.
  • Target normalization: q = 1/(1+abs(x-b)/s), where s is the declared physical scale. Signed or zero-valued operating points are not divided directly.

Use layout scoring. First compute each metric's raw quality q from the worst paired condition, with raw area quality q_area = area_target / candidate_functional_area. Credit c_i = min(1, q_i) for every positively weighted metric, then compute S = 100 * product(c_i ** w_i). The weights sum to 1 and the score is bounded by 100. An improvement beyond one target cannot compensate for missing another target. Physical, extraction, or functional rejection scores zero; other missing or invalid measurements leave the score unknown, and zero-weight observations must also be valid. Reaching every positively weighted target scores 100; a feasible reference may score far below 100. Weights express quality tradeoffs, not acceptance bounds.

Metric Definition / observation Unit Quality normalization Functional range Scale
bl_low find v(bl) at=300p V functional check −∞ … 0.1 —
br_high find v(br) at=300p V functional check 0.9 … +∞ —
bl_high find v(bl) at=710p V functional check 0.9 … +∞ —
br_low find v(br) at=710p V functional check −∞ … 0.1 —
z_bl find v(bl) at=11.9n V functional check 0.45 … 0.55 —
z_br find v(br) at=11.9n V functional check 0.45 … 0.55 —
supply avg par('-v(vdd)*i(Vdd)') from=0 to=2n W minimize / ratio 0 … +∞ 1e-12
data_delay Worst source-paired DIN-to-output delay over both directions: DIN rising to BL rising / BR falling at 0.5 V, and DIN falling to BL falling / BR rising at 0.5 V. s minimize / ratio 0 … +∞ —

The area scoring target is 1.8 um2. It is a continuous quality goal, not a hard limit, process minimum or a percentage of the current feasibility witness.

  • data_delay: 7e-11 s. Complete every enabled data-to-bitline transition within 70 ps under the declared 10 fF and 100 kohm loads.

The 1.8 um2 area goal rewards sharing in the two complementary tristate branches, without changing their 12 transistors. Data delay carries 70%, area 20% and supply power 10%. The worst source-paired loaded transition receives the complete timing weight. The 70 ps engineering timing goal and disabled high-impedance checks remain unchanged.

Quality targets do not impose additional functional cutoffs. Metrics without an explicit target retain their same-condition source anchors.

The capability coefficient is 3, independent of this task's reference-normalized score.

Score weights

Metric Weight
functional_area 0.2
data_delay 0.7
supply 0.1

Tools and Submission

For Magic RC import, this task explicitly ignores GDS layers 6/0, 7/0, 8/0, 230/0 and 239/0 through native cifinput rules. Independent KLayout DRC/LVS still checks the original submitted layout.

Soft solve budget: 1 hour.

Read /protocol/task.json for input/output paths, constraints and the resources object; /protocol/harness.json describes the active check and submission interface.

Use the reviewed FreePDK45 KLayout, Magic and ngspice resources in the resources field of /protocol/task.json. Magic RC extraction uses /resources/support/magic-vtg/freepdk45.tech, including model and unit adaptation. /protocol/task.json supplies consistent constraints, measurements and scoring; /task contains only declared inputs. Write /workspace/output/final.gds, then run python -I /protocol/submit.py to submit explicitly. If process-feedback is provided, intermediate checks use the frozen plan and backend identities; their snapshots are not final submissions.

Solve workflow

  1. Read the declared circuit and materials, /protocol/task.json for paths, constraints and reviewed resources, and /protocol/harness.json for capabilities and helper commands. Task inputs under /task and resources under /resources are read-only; construct the layout in /workspace with the declared tools. With layout MCP, paths and commands refer to the remote EDA workspace. Create your own implementation with real devices, interconnect and pins, using your own tool loop without delegating to other agents; reference layouts and author code are not solver inputs.
  2. Inspect resources.external before using external tools. Each command starts a fresh shell: when tool modules are declared, source /usr/share/Modules/init/bash and load the selected tool's modules; export its declared tool_environment settings in that same command. Repeat as needed and use batch or headless operation. Local manuals, command references, and release notes may be available within the declared EDA installation and PDK resource directories. Locate these resources through /protocol/task.json and consult the documentation for the installed tool version when diagnosing unfamiliar syntax or tool failures.
  3. Generate an initial candidate and submit a snapshot early. When process-feedback is available, check the current GDS with layout MCP check or python -I /protocol/process_check.py before the final submission. This runs the final evaluator's complete plan and returns engineering diagnostics and candidate measurements, without scores or normalized quality factors. Checks have no count limit and consume the same wall-clock budget. Inspect the physical and functional results and all scored metrics; successful tool execution alone does not establish requirement satisfaction. Read paginated diagnostics with report when using MCP. Local exploratory checks do not replace this complete check.
  4. Use the remaining time for measured improvements to the declared quality objectives. Identify the limiting scored metrics, make targeted layout changes, regenerate and check the candidate, and compare measurements with the previous candidate and the stated scoring targets and trade-offs. Preserve the best valid candidate and revert changes that worsen the overall objective. Repeat while time and useful improvements remain; passing validity checks alone is not a stopping condition.
  5. Stop optimization when the budget expires, all declared quality objectives are achieved, or measured trials support convergence. If stopping early, explain the changes tried, the metric comparisons and the remaining limitations. Track remaining time through session status. At soft-budget expiry, finish or cancel already-started work and submit immediately; do not start another command, check or optimization round. If an MCP execution is running, use poll with its execution_id and the returned next_offset as offset until completion, or cancel it and wait for it to stop.
  6. Finish or cancel outstanding work, restore your best candidate to the declared output path, and explicitly submit it before ending the session. With layout MCP submit, remove the /workspace/ prefix from output.path; with the container interface, run python -I /protocol/submit.py. Wait for the receipt: only the last accepted snapshot is judged, and writing a file alone is not submission. Acceptance confirms delivery; the framework independently evaluates validity and quality after the session.