-
Notifications
You must be signed in to change notification settings - Fork 792
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
[ipgen,pwrmgr] Implement fuseoc instance_vlnv and virtual dependencies #20883
Conversation
e348e80
to
02327a8
Compare
This pair is uniformly added to all ipgen modules. Change topgen.py to adopt the convention that, for example, the variable topname is just earlgrey for example, while top_name is top_earlgrey. Signed-off-by: Guillermo Maturana <[email protected]>
@@ -39,7 +39,7 @@ filesets: | |||
- lowrisc:top_englishbreakfast:xbar_main | |||
- lowrisc:top_englishbreakfast:xbar_peri | |||
- lowrisc:ip:rstmgr | |||
- lowrisc:ip:pwrmgr | |||
- lowrisc:ip_interfaces:pwrmgr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be the particular implementing core, not the virtual VLNV. It'd probably look better as lowrisc:englishbreakfast:pwrmgr
, but I think our current instance_vlnv
naming scheme puts it like below, right?
- lowrisc:ip_interfaces:pwrmgr | |
- lowrisc:opentitan:top_englishbreakfast_pwrmgr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, thanks! Fixed.
sw/device/tests/autogen/BUILD
Outdated
@@ -4,8 +4,8 @@ | |||
# | |||
# ------------------- W A R N I N G: A U T O - G E N E R A T E D C O D E !! -------------------# | |||
# PLEASE DO NOT HAND-EDIT THIS FILE. IT HAS BEEN AUTO-GENERATED WITH THE FOLLOWING COMMAND: | |||
# util/topgen.py -t hw/top_earlgrey/data/top_earlgrey.hjson | |||
# -o hw/top_earlgrey | |||
# util/topgen.py -t hw/top_englishbreakfast/data/top_englishbreakfast.hjson |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, need to redo topgen for earlgrey again :)
The core files affected are the pwrmgr cores that are templetized. All other core files referring to the the files above need to depend on the virtual name instead. Remove the redundant files for which there is a corresponding template under ip_templates. Signed-off-by: Guillermo Maturana <[email protected]>
Core files that provide generated files use the fusesoc $instance_vlnv mechanism and declare a virtual name. This was overlooked in #19801.
This provides two commits:
earlgrey
and top_name the correspondingtop_earlgrey
.