Skip to content

Commit

Permalink
Merge pull request #27 from sequoiap/placements
Browse files Browse the repository at this point in the history
Allow for omitting placements in recursive netlist
  • Loading branch information
flaport authored Nov 15, 2023
2 parents 2b7e8ad + c8eb7ed commit 662c606
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sax/netlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ def validate_instance_names(cls, instances):

@validator("placements")
def validate_placement_names(cls, placements):
return {cls.clean_instance_string(k): v for k, v in placements.items()}
if placements is not None:
return {cls.clean_instance_string(k): v for k, v in placements.items()}
return {}

@classmethod
def clean_connection_string(cls, value):
Expand Down

0 comments on commit 662c606

Please sign in to comment.