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

Add initial and basic VPR support with the new Edalize API #304

Merged
merged 2 commits into from
Feb 9, 2022

Conversation

acomodi
Copy link
Contributor

@acomodi acomodi commented Feb 2, 2022

This PR adds a basic support for VPR for the new Edalize API and calls the tool directly, without passing through wrappers.

I believe this is quite similar to #271, and currently it still requires the XML architecture file to be provided by the user. As per the discussion in #271, I believe that in the long term we should enhance VTR to have a pckg-config-like feature, that allows to have a share dir from which VTR automatically selects the correct arch, RR graph, and other files required for the build.

I think that as a first step we may allow the user to pass the paths to these files, and once VTR will have the pkg-config feature, we can fix the VPR support in Edalize accordingly.

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

def __init__(self, edam, work_root, verbose=False):
Edaflow.__init__(self, edam, work_root, verbose)

def build_tool_graph(self):
Copy link
Owner

Choose a reason for hiding this comment

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

I believe this function can be dropped since it just calls the parent class

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

edalize/vpr.py Outdated Show resolved Hide resolved
@olofk
Copy link
Owner

olofk commented Feb 3, 2022

I agree about the XML arch files. Let's go with this for now and we'll solve how to find them programatically later. FYI, I have started a project on this already with the working name pdk-config focusing on symbiflow and openlane to begin with.

Added a few comments above, and then there's one more thing that needs to be fixed. Each tool must create a new EDAM struct with its outputs so that the next tool in the chain can pick it up. See here for an example of how nextpnr does this

Mateusz Kosmala added 2 commits February 4, 2022 11:37
Signed-off-by: Alessandro Comodi <[email protected]>
@acomodi acomodi requested a review from olofk February 7, 2022 12:00
@olofk olofk merged commit 6406063 into olofk:master Feb 9, 2022
@acomodi acomodi deleted the add-vpr-support branch February 9, 2022 13:12
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