-
Notifications
You must be signed in to change notification settings - Fork 1
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
Exception when Setting default fileset in design #59
Comments
The fileset is not linked / in the same project, that's why the error is
fileset = Fileset('myfileset') Is a standalone fileset, not linked to Try this:
The idea was: If you have 2 projects (A and B) in your application, you can't mix filesets from A and use/assign them in project B. That's why like 1194 looks up the fileset if its a known fileset, but not yet the default fileset. |
Ok, that makes sense, that you cannot assign a default fileset if it's not part of the design. However, I find this line confusing. fileset = Fileset('myfileset', project=project) If you create a fileset with a reference to the project, it is not clear to me how the project has a reference to the fileset. project = Project('default')
fileset = Fileset('myfileset')
project.project.DefaultDesign.AddFileSet(fileset)
project.DefaultDesign.DefaultFileSet = fileset The |
Almost all objects are double linked. So e.g. a project knows its designs and a design knows its project. To enhance the speed, keep work from users setting up the linking and ensuring data structure integrity, this linking is done when ever A is linked to B or B to A. I always try to implement data structures that top-down assembly and bottom-up assembly words as well. Sometimes one is slightly faster then the other (usually top-down). So you can create an object and hand over the parent object (like shown in my example) or you use later a property to set the relation. In both cases the code takes care of linking forward and backward and sometimes ever for updating statistics and fast lookup structures. Top-down: project = Project('default')
fileset = Fileset('myfileset', project=project) Bottom-up: fileset = Fileset('myfileset')
project = Project('default')
fileset.Project = project BUG: |
I get an exception when trying to set the default fileset in the design. Using
fileset.Name
work, but not with the fileset object. Looking at the source it seems like both ways should be supported.pyEDAA.ProjectModel/pyEDAA/ProjectModel/__init__.py
Lines 1186 to 1195 in 38aa30f
The text was updated successfully, but these errors were encountered: