-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ipgen,otp_ctrl] Change otp_ctrl to ipgen
This commit is similar to other ipgen conversions, but changes a few extra things because it needs to change the generation of otp memory images. It merges the following 32 individual commits: - Fix OtpMemMap exception message - Improve handling template parameters by ipgen - Add doc and avoid redundant declaration. - Move otp_ctrl images and mmap hjson out of hw/ip - The files that are top-specific moved to hw/top_earlgrey/data/otp - Adjust lots of paths to match this change - Move otp_ctrl_img.c.tpl to util/design/data since it is generic - Move the documentation of otp image generation to util/design/README.md - Add otp_ctrl ipgen tpldesc hjson file - Copy all hw/ip/otp_ctrl files to ip_templates - This is a straight copy with no changes to the files. - Remove generated files - There is no use for files in ip_templates that will end up being generated. - Move template files to their specific directories - Turn a few more files into templates and fix paths - The template files are almost identical to the previous ones, except - they use ${topname} instead of a specific name - consecutive '#' are escaped so they are not considered hugo comments; for example, ### is replaced by ${"###"} - text bracketed by CMDGEN is removed - Adjust some relative paths to account for the change in the file locations. - Use {self_dir} to simplify some paths: it points to the location of the hjson file used to process the contents of a given file. - Fix some incorrect links to docs. - Move top-specific items out of otp_ctrl_pkg - Move top-specific and implementation items to otp_ctrl_top_specific_pkg. - Create separate core files for both packages. - Adjust multiple sv files to use the right package. - Remove unused lc_otp_token_{req,rsp}_t. - Fix core files - Change most core file into templates, use instance_vlnv, and declare a virtual target. - Change otp_ctrl_sim_cfg.hjson into a template since it uses a template fusesoc core. - Change templates to use plain dictionaries - In practice this just removes redundant config token. - Block building template targets - Add otp_ctrl in hw/ip_templates/BUILD all_files. - Template files are only intended for code generation, so it makes no sense to use them to build targets. - Remove gen_comment from templates - The comment regarding generation for ipgen artifacts will be dealt with uniformly in the PR that fixes #25444. - Remove gen_comment from the tpldesc file. - Add code in OtpMemMap to support ipgen - Create packages for design.lib and design.mubi. - gen-flash-img depends on modules that import topgen modules so it needs to have topgen in sys.path. This was not needed for some reason, perhaps the introduction of packages ends up requiring it. - Place darjeeling mmap and img files under hw/top_darjeeling - This is similar to the new placement of the corresponding earlgrey files. - Fix the copyright banner. - Block generation of dif artifacts - These artifacts need to be placed under top-specific directories. - When the sw side is ready for that, change the flow to create the per top generated files in the right place. - Create otp_ctrl with ipgen - Create both earlgrey and darjeeling otp_ctrl with topgen.py via ipgen. - As a side effect some random constants are changed, since there are more requests for random numbers in topgen. - Make util/design/gen-otp-mmap.py compatible with otp_ctrl ipgen - This tool may become obsolete, but it is best to upgrade it per the ipgen flow. - Comment out dif generation, and add a TODO with an explicit issue. - Add mmap_def argument in bazel's otp_image_consts - Remove unnecessary otp link in md file - This avoids the confusion about which top to refer to. - Generate otp_ctrl difs via ipgen - Fix top level core files - Fix BUILD files - Use ip_autogen path for otp_ctrl_c_regs. - Use ip_autogen path for rust artifacts. - Change a few hw BUILD files for ipgen changes. - Fix reference to data/otp_ctrl.hjson in BUILD.tpl. - Fix image handling in dvsim sim.mk - Fix hjson files - Fix md files - Describe references to top-specific otp_ctrl as examples. - Fix BLOCKFILE - Fix documentation collateral - Fix englishbreakfast build - Remove otp_ctrl from top_englishbreakfast because it is not instantiated, but keep otp_ctrl_pkg since it shows in types of unconnected ports. - Remove obsolete otp-mmap check from ci - Remove legacy files - Update hw/ip/README.md file Fixes #25019 Signed-off-by: Guillermo Maturana <[email protected]>
- Loading branch information
Showing
489 changed files
with
65,718 additions
and
1,566 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.