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

Applying resolution functions from another package by selected name #1055

Closed
JimLewis opened this issue Nov 4, 2024 · 2 comments
Closed

Comments

@JimLewis
Copy link

JimLewis commented Nov 4, 2024

If I do:

use work.ResolutionPkg.all ; 
....
subtype RdyType is resolved_max integer range  0 to integer'high ;

everything is ok.

OTOH, if I try to minimize my package references and use selected names, such as the following:

subtype RdyType is work.ResolutionPkg.resolved_max integer range  0 to integer'high ;

Then I get:

Error:      > C:\OsvvmLibraries\osvvm\TbUtilPkg.vhd:165
Error:      |
Error:  165 |   subtype RdyType is work.ResolutionPkg.resolved_max integer range  0 to integer'high ;
Error:      |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error:      |                      use of name OSVVM.RESOLUTIONPKG.RESOLVED_MAX here
Error:      |
Error:      = Note: visible declaration of OSVVM.RESOLUTIONPKG.RESOLVED_MAX as RESOLVED_MAX [STD_ULOGIC_VECTOR return STD_ULOGIC] from OSVVM.RESOLUTIONPKG
Error:          > C:\OsvvmLibraries\osvvm\ResolutionPkg.vhd:70
Error:      = Note: visible declaration of OSVVM.RESOLUTIONPKG.RESOLVED_MAX as RESOLVED_MAX [BIT_VECTOR return BIT] from OSVVM.RESOLUTIONPKG
Error:          > C:\OsvvmLibraries\osvvm\ResolutionPkg.vhd:80
Error:      = Note: visible declaration of OSVVM.RESOLUTIONPKG.RESOLVED_MAX as RESOLVED_MAX [INTEGER_VECTOR return INTEGER] from OSVVM.RESOLUTIONPKG
Error:          > C:\OsvvmLibraries\osvvm\ResolutionPkg.vhd:85
Error:      = Note: visible declaration of OSVVM.RESOLUTIONPKG.RESOLVED_MAX as RESOLVED_MAX [TIME_VECTOR return TIME] from OSVVM.RESOLUTIONPKG
Error:          > C:\OsvvmLibraries\osvvm\ResolutionPkg.vhd:90
Error:      = Note: visible declaration of OSVVM.RESOLUTIONPKG.RESOLVED_MAX as RESOLVED_MAX [REAL_VECTOR return REAL] from OSVVM.RESOLUTIONPKG
Error:          > C:\OsvvmLibraries\osvvm\ResolutionPkg.vhd:95
Error:      = Note: visible declaration of OSVVM.RESOLUTIONPKG.RESOLVED_MAX as RESOLVED_MAX [STRING return CHARACTER] from OSVVM.RESOLUTIONPKG
Error:          > C:\OsvvmLibraries\osvvm\ResolutionPkg.vhd:100
Error:      = Note: visible declaration of OSVVM.RESOLUTIONPKG.RESOLVED_MAX as RESOLVED_MAX [BOOLEAN_VECTOR return BOOLEAN] from OSVVM.RESOLUTIONPKG
Error:          > C:\OsvvmLibraries\osvvm\ResolutionPkg.vhd:105
** Error: unexpected identifier while parsing subtype declaration, expecting ;
Error:      > C:\OsvvmLibraries\osvvm\TbUtilPkg.vhd:165
Error:      |
Error:  165 |   subtype RdyType is work.ResolutionPkg.resolved_max integer range  0 to integer'high ;
Error:      |                                                      ^^^^^^^
Error:      |                                                      this token was unexpected
** Error: unexpected identifier while parsing subtype declaration, expecting ;
Error:      > C:\OsvvmLibraries\osvvm\TbUtilPkg.vhd:166
Error:      |
Error:  166 |   subtype AckType is work.ResolutionPkg.resolved_max integer range -1 to integer'high ;
Error:      |                                                      ^^^^^^^
Error:      |                                                      this token was unexpected
** Error: design unit depends on OSVVM.TBUTILPKG which was analysed with errors
Error:      > C:\OsvvmLibraries\osvvm\TbUtilPkg.vhd:367
Error:      |
Error:  367 | package body TbUtilPkg is
Error:      | ^^^^^^^^^^^^^^^^^^^^^^
@JimLewis
Copy link
Author

JimLewis commented Nov 4, 2024

Just a side note, I will not be deploying this code. I prefer that OSVVM works with older releases of tools.

@nickg nickg closed this as completed in 9eef86f Nov 4, 2024
@JimLewis
Copy link
Author

JimLewis commented Nov 7, 2024

Thanks

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

No branches or pull requests

1 participant