Skip to content

Commit

Permalink
added hdl21 netlisting functions, generating yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
daquintero committed May 29, 2024
1 parent 153027f commit 62282ab
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 303 deletions.
7 changes: 6 additions & 1 deletion .idea/gplugins.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 17 additions & 17 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions gplugins/hdl21/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .netlist import *
5 changes: 3 additions & 2 deletions gplugins/hdl21/netlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def parse_connections(proto_dict: ParsedProtoVLSIR) -> dict:
target_signal = connection['target'][0]['sig']
connection_key = f"{instance_name},{portname}"
# Find the target instance and port
target_instance_port = find_target_instance_port(data, target_signal, instance_name)
target_instance_port = find_target_instance_port(proto_dict, target_signal, instance_name)
if target_instance_port:
connections[connection_key] = target_instance_port

Expand Down Expand Up @@ -231,7 +231,8 @@ def generate_raw_netlist_from_module(module: h.module):

def generate_raw_yaml_from_module(module: h.module):
"""
Generate a raw netlist yaml from a hdl21 module object.
Generate a raw netlist yaml from a hdl21 module object which could be manually edited for specific instances
related to the corresponding SPICE.
"""
raw_netlist = generate_raw_netlist_from_module(module)
return yaml.dump(raw_netlist, default_flow_style=False)
282 changes: 0 additions & 282 deletions notebooks/20_sky130nm_inverter_schematic_to_layout.ipynb

This file was deleted.

0 comments on commit 62282ab

Please sign in to comment.