Skip to content

Make Via creation happen immediately upon calling self.add_via() #10

@pvnbhargava

Description

@pvnbhargava

The Problem

Currently, self.add_via() creates a Via object which calculates the region to be filled with vias and can be mutated in real time. However, This Via object does not actually try to fill this region until the generator gets finalized.

As a result, any exceptions that may result from of incorrect metal sizing does not show up until the generator finishes, and can not easily be attributed to the line of code which created the via in the first place

Proposed Solution

As soon as self.add_via() is called, we should call the tech class' get_best_via_info() method to determine optimal via sizing for the provided region. This way, if a via is not possible, it will fail immediately. Once this optimal via info is calculated, we can construct a primitive via object with it.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions