-
Notifications
You must be signed in to change notification settings - Fork 11
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
entity_name of an instantiated unit may be a simple name #70
Comments
I know some tools that gave me an error on a simple_name compared to a selected_name. I never questioned that. I also know no example that used just a simple name. Also in configurations a selected_name is used like I checked that LRM of VHDL-2019 and I can't find any requirement for a selected_name, a simple_name seams to be enough. OTOH, in the syntax rules *entity_*name is also used in an architecture declaration @tgingold can you confime that direct entity instantiation also allows simple names? @c-thaler if you finding is correct, the model needs to be changed to support "any" name: simple and selected. @c-thaler should I prioritize names and symbols in my next update? Would it help you (and pyGHDL.dom) in your project? |
Personally, I've never seen a simple name in this place before. I'm used to selected names like
|
I believe it will help, because in my last rework session of pyVHDLModel and pyGHDL.dom, I needed to disable some symbols and names as I changed the concept. Not all of it is back to its previous feature set. In the old implementation, there was a concept mistake, so I reworked how symbols and names work together. The changed concept and the necessary modifications need to be applied, so commented lines could be reactivated. |
Yes, entity instantiation works with simple name, and no you can write:
architecture arch of work.ent is ...
(The usual writing would be in fact invalid without a special case in the rules).
|
@tgingold thanks for clarification. Then I need to fix pyVHDLModel. In case of: |
Yes, the entity and the architecture must be in the same library.
|
This is also related to ghdl/ghdl#2308. |
In a direct entity instantiation, you can also use a simple name as entity_name, without the library prefix (seledted_name). However,
EntityInstantiationSymbol
uses aSelectedName
in its constructor.pyVHDLModel/pyVHDLModel/Symbol.py
Line 276 in 7590a6c
What's the best way to fix this? Simply set the prefix to
work
in the simple name case?The text was updated successfully, but these errors were encountered: