-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Merge ModuleItem
and InterfaceItem
#950
Merge ModuleItem
and InterfaceItem
#950
Conversation
I think merging them is not so good because the items of them are not guaranteed the equivalence in the future even if they have the almost same items now. About #908, I think more specialized syntax may be required instead of mere interface instantiation. |
I think #793 can be achieved by adding |
Module and interface have own syntax for generate constructs because ModuleItem and IterfaceItem are different.
The 1st item can resolved by introducing a new limitation that modport cannot be declared in generate blocks. I think this is acceptable limitation. The 2nd item can be resolved by introducing the existing sytnax for module instantiatoin to interface. But an additinal semantic check will be required like below. veryl/crates/analyzer/src/handlers/check_type.rs Lines 231 to 273 in 9e5a716
|
OK. I agree merging the items. |
9e5a716
to
f908552
Compare
Thank you for your feedback. |
…nd `InterfaceItem`
f908552
to
47eaef4
Compare
I removed the resolve link to #908 which requires more consideration. |
For #793, generate constructions for module and interface need to be merged.
To do this,
GenerateItem
will be introduced and all items except forModportDeclaration
will be moved fromModuleItem
andInterfaceItem
toGenerateItem
.By merging
ModuleItem
andInterfaceItem
, interface will be able to have interface instances (#908) andalways_*
blocks (#947).resolve #947