Skip to content

Commit 62282ab

Browse files
committed
added hdl21 netlisting functions, generating yaml
1 parent 153027f commit 62282ab

6 files changed

Lines changed: 28 additions & 303 deletions

File tree

.idea/gplugins.iml

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gplugins/hdl21/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .netlist import *

gplugins/hdl21/netlist.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def parse_connections(proto_dict: ParsedProtoVLSIR) -> dict:
7070
target_signal = connection['target'][0]['sig']
7171
connection_key = f"{instance_name},{portname}"
7272
# Find the target instance and port
73-
target_instance_port = find_target_instance_port(data, target_signal, instance_name)
73+
target_instance_port = find_target_instance_port(proto_dict, target_signal, instance_name)
7474
if target_instance_port:
7575
connections[connection_key] = target_instance_port
7676

@@ -231,7 +231,8 @@ def generate_raw_netlist_from_module(module: h.module):
231231

232232
def generate_raw_yaml_from_module(module: h.module):
233233
"""
234-
Generate a raw netlist yaml from a hdl21 module object.
234+
Generate a raw netlist yaml from a hdl21 module object which could be manually edited for specific instances
235+
related to the corresponding SPICE.
235236
"""
236237
raw_netlist = generate_raw_netlist_from_module(module)
237238
return yaml.dump(raw_netlist, default_flow_style=False)

notebooks/20_sky130nm_inverter_schematic_to_layout.ipynb

Lines changed: 0 additions & 282 deletions
This file was deleted.

0 commit comments

Comments
 (0)