Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ hdl21 simulation and layout integration #94

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions docs/notebooks/simulation_basics.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "0",
"metadata": {},
"outputs": [],
"source": [
"import sky130\n",
"import sky130_hdl21"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "1",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "2",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ classifiers = [
]
dependencies = [
"gdsfactory~=7.26.1",
"PySpice"
"hdl21 @ git+https://github.com/cascode-labs/Hdl21.git@main",
"sky130-hdl21 @ git+https://github.com/cascode-labs/Hdl21.git@main#subdirectory=pdks/Sky130"
]
description = "skywater130 pdk"
description = "Skywater130 PDK compatible with gdsfactory and related."
keywords = ["python"]
license = {file = "LICENSE"}
name = "sky130"
Expand Down
16 changes: 16 additions & 0 deletions sky130/hdl21.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""
Configuration for the hdl21 PDK linking with our source files.
"""

import pathlib

import sky130_hdl21

pdk_path = pathlib.Path(__file__).parent / "src" / "sky130_fd_pr"
model_ref = pdk_path / "models" / "sky130.lib.spice"

sky130_hdl21.install = sky130_hdl21.Install(
pdk_path=pdk_path,
lib_path=model_ref,
model_ref=model_ref,
)
Loading
Loading