Skip to content

Yx388/dev#264

Merged
Ed-5100 merged 20 commits intomainfrom
yx388/dev
Aug 15, 2025
Merged

Yx388/dev#264
Ed-5100 merged 20 commits intomainfrom
yx388/dev

Conversation

@Ed-5100
Copy link
Copy Markdown
Contributor

@Ed-5100 Ed-5100 commented Jul 23, 2025

No description provided.

try:
forward_applicable(new_ctx, compile_entry, kwargs)
succeeded.append(floorplan_file)
except Exception:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there a more specific exception that needs to be caught? Generally it's not a good idea to catch all exceptions.

@Ed-5100 Ed-5100 marked this pull request as draft July 25, 2025 04:04
@Ed-5100 Ed-5100 force-pushed the yx388/dev branch 4 times, most recently from b51d168 to 342572b Compare July 31, 2025 00:56
@Ed-5100 Ed-5100 force-pushed the yx388/dev branch 7 times, most recently from 359b0be to 79e6a05 Compare August 13, 2025 20:43
Comment on lines +336 to +339
updated_ifaces = [
set_iface_role(module, iface) for iface in ifaces[module.name]
]
ifaces[module.name] = list(updated_ifaces)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There is no need making a copy of list?

Suggested change
updated_ifaces = [
set_iface_role(module, iface) for iface in ifaces[module.name]
]
ifaces[module.name] = list(updated_ifaces)
ifaces[module.name] = [
set_iface_role(module, iface) for iface in ifaces[module.name]
]


def convert_region_format(region: str) -> str:
"""Convert region format from 'x:y' to 'x_TO_y'."""
return region.replace(":", "_TO_") if ":" in region else region
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
return region.replace(":", "_TO_") if ":" in region else region
return region.replace(":", "_TO_")


updated_sys_port_pre_assignments = {}
for port_name, region in sys_port_pre_assignments.items():
slot0, slot1 = tuple(region.split(":"))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
slot0, slot1 = tuple(region.split(":"))
slot0, slot1 = region.split(":")

for port_name, region in sys_port_pre_assignments.items():
slot0, slot1 = tuple(region.split(":"))
if slot0 != slot1:
new_region = f"{slot0}:{slot0}"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should the second slot0 be slot1?

kwargs["floorplan_path"] = floorplan_file
kwargs["output"] = str(solution_work_dir / f"{solution_work_dir.name}.xo")
kwargs["floorplan_path"] = Path(floorplan_file)
kwargs["output"] = Path(str(solution_work_dir / f"{solution_work_dir.name}.xo"))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
kwargs["output"] = Path(str(solution_work_dir / f"{solution_work_dir.name}.xo"))
kwargs["output"] = solution_work_dir / f"{solution_work_dir.name}.xo"

@Ed-5100 Ed-5100 merged commit 80a8ea0 into main Aug 15, 2025
33 checks passed
@Ed-5100 Ed-5100 deleted the yx388/dev branch August 15, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants