Skip to content

fasm.cpp: return from visit if pb is open #69

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

Merged
merged 1 commit into from
Jun 5, 2019

Conversation

acomodi
Copy link
Collaborator

@acomodi acomodi commented Jun 5, 2019

This change avoids the net visitor to write fasm outputs of pb_graph_nodes which do not have valid corresponding PBs and valid parent PBs (this could suggest that the PB is actually open).

These PBs are skipped and the visit goes on to the next PB in the net.

Signed-off-by: Alessandro Comodi [email protected]

This change avoids the net visitor to write fasm outputs of
pb_graph_nodes which do not have valid corresponding PBs and valid
parent PBs (this could suggest that the PB is actually `open`).

These PBs are skipped and the visit goes on to the next PB in the net.

Signed-off-by: Alessandro Comodi <[email protected]>
@acomodi acomodi requested a review from litghost June 5, 2019 14:56
@acomodi acomodi requested a review from mithro June 5, 2019 14:56
@acomodi
Copy link
Collaborator Author

acomodi commented Jun 5, 2019

I am running all_xc7 and all_ice40 with this version on f4pga/f4pga-arch-defs#779.

@mithro
Copy link
Member

mithro commented Jun 5, 2019

@litghost

Copy link

@litghost litghost left a comment

Choose a reason for hiding this comment

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

Let's merge this, but can we add some tests for this corner? Something boiled down from the test case that exposed this behavior?

Something I've been thinking about is whether it is worth walking the pb tree explicitly and building the prefixes in a forward way, rather than search the tree like this. Thoughts?

@acomodi
Copy link
Collaborator Author

acomodi commented Jun 5, 2019

@litghost well, IMO the backward approach is quite confusing, mostly from a debugging point of view. I think that exploring the pb tree from root to leaves could be a good improvement.

From a brief analysis, I thing that this change would require the implementation of visit_clb only, I guess, from which we can expand accordingly through all the correct PBs downwards (basically we should implement our version of walk_blocks).

Anyways, I will wait for the successful completion of the tests and then I'll merge, only to avoid a possible regression.

@acomodi
Copy link
Collaborator Author

acomodi commented Jun 5, 2019

@litghost I need also to verify how to scale-down the test and add it to the fasm tests, in order to easily reproduce it. I will open an issue on that to keep track of this.

BTW local builds of all_ice40 and all_xc7 passed, merging.

@acomodi acomodi merged commit b178b8c into SymbiFlow:master+wip Jun 5, 2019
mtdudek added a commit to antmicro/vtr-verilog-to-routing that referenced this pull request Jan 27, 2022
…208f3

54f6208f3 Merge pull request SymbiFlow#69 from antmicro/mdudel/fix_annotations
d8a0567a5 Fix annotations in DeviceResources

git-subtree-dir: libs/EXTERNAL/libinterchange
git-subtree-split: 54f6208f32e20b746863da6ea54e3051fc9a830e
acomodi pushed a commit to antmicro/vtr-verilog-to-routing that referenced this pull request Mar 16, 2022
…208f3

54f6208f3 Merge pull request SymbiFlow#69 from antmicro/mdudel/fix_annotations
d8a0567a5 Fix annotations in DeviceResources

git-subtree-dir: libs/EXTERNAL/libinterchange
git-subtree-split: 54f6208f32e20b746863da6ea54e3051fc9a830e
acomodi pushed a commit to antmicro/vtr-verilog-to-routing that referenced this pull request Apr 5, 2022
…208f3

54f6208f3 Merge pull request SymbiFlow#69 from antmicro/mdudel/fix_annotations
d8a0567a5 Fix annotations in DeviceResources

git-subtree-dir: libs/EXTERNAL/libinterchange
git-subtree-split: 54f6208f32e20b746863da6ea54e3051fc9a830e
acomodi pushed a commit to antmicro/vtr-verilog-to-routing that referenced this pull request Apr 5, 2022
…208f3

54f6208f3 Merge pull request SymbiFlow#69 from antmicro/mdudel/fix_annotations
d8a0567a5 Fix annotations in DeviceResources

git-subtree-dir: libs/EXTERNAL/libinterchange
git-subtree-split: 54f6208f32e20b746863da6ea54e3051fc9a830e
acomodi pushed a commit to antmicro/vtr-verilog-to-routing that referenced this pull request May 2, 2022
…208f3

54f6208f3 Merge pull request SymbiFlow#69 from antmicro/mdudel/fix_annotations
d8a0567a5 Fix annotations in DeviceResources

git-subtree-dir: libs/EXTERNAL/libinterchange
git-subtree-split: 54f6208f32e20b746863da6ea54e3051fc9a830e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants