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

Initial for layout gui #40

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
12 changes: 8 additions & 4 deletions codegen/layout_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,12 @@ def __init__(self, collection, downscale):
self.image_handle = np.ones((self.area_height, self.area_width, 3)) * self.background_color

self.layout_info = {}
for p in collection.projects:
caravel_data = p.get_gds_size().tolist()
for p in collection.projects + collection.shared_projects:
size = p.get_gds_size()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be nice to cache this

if isinstance(size, tuple):
caravel_data = size
else:
caravel_data = p.get_gds_size().tolist()
# this should stay, as it is used for debugging. get_gds_size() is _slow_
# caravel_data = [256, 256]
caravel_data = (
Expand Down Expand Up @@ -267,9 +271,9 @@ def update_image(self):
data = self.layout_info[imname]
color = np.copy(data["design_color"])
if not self.pointerbound:
color *= 0.5
color *= 0.6
elif not imname.startswith(self.pointerbound):
color *= 0.5
color *= 0.6

# draw outline with 100% opacity
cv2.rectangle(
Expand Down
1 change: 1 addition & 0 deletions project.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def __init__(self, args, repo, commit, pos, system_config):
self.lef_filename = os.path.join(self.config['final']['directory'], self.config['final']['lef_filename'])
self.title = self.config['project']['title']
self.instance_name = self.module_name
self.interfaces = []
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this obviously isn't right, but I have no clue where openram signals are defined

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in projects.yaml - in the openram_support section


def get_top_module(self):
return self.module_name
Expand Down