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

[multitop_dev] Reinstate all_files and remove files from opentitan_{ip,top} #25375

Draft
wants to merge 110 commits into
base: multitop_dev
Choose a base branch
from

Conversation

pamaury
Copy link
Contributor

@pamaury pamaury commented Nov 25, 2024

No description provided.

Those rules are essentially glorified filegroups that keep track
of the various types of files that make up an IP/top: hsjon, RTL
and doc. Finer-grained groups could be added in the future, e.g.
distinguish DV from RTL, add testplans, etc

Signed-off-by: Amaury Pouly <[email protected]>
Use an empty list of IPs for now. The IP rewriting script
expects to find this field to add IPs to the list.

Signed-off-by: Amaury Pouly <[email protected]>
The new rule takes an input a target created by opentitan_top
and will eventually replace the old one that directly used an
hjson file.

Signed-off-by: Amaury Pouly <[email protected]>
This package will eventually contain top-related artefacts derived
from the top description: headers, linker files, multi-top, etc
Currently, it only contains a single item //hw/top:top that points
to //hw/top_earlgrey:top_earlgrey

Signed-off-by: Amaury Pouly <[email protected]>
For now the list of IPs is empty but the infrastructure is there.
The IP rewrite except a list of IPs to add new ones.

Signed-off-by: Amaury Pouly <[email protected]>
This file should be exported because it is used in rules/otp.bzl
The only reason why it worked because is that the "all_files"
filegroup in otp_ctrl/data captures that files

Signed-off-by: Amaury Pouly <[email protected]>
Register headers always the use "<name>.h" include path to avoid
depending on where the rule that creates them is located at. For
some reason, some files were using an explicit path.

Signed-off-by: Amaury Pouly <[email protected]>
Signed-off-by: Amaury Pouly <[email protected]>
Update template, replace all old targets with the new ones,
regenerate top.

Signed-off-by: Amaury Pouly <[email protected]>
Update template, replace all old targets with the new ones,
regenerate top.

Signed-off-by: Amaury Pouly <[email protected]>
Update template, replace all old targets with the new ones,
regenerate top.

Signed-off-by: Amaury Pouly <[email protected]>
Update template, replace all old targets with the new ones,
regenerate top.

Signed-off-by: Amaury Pouly <[email protected]>
Update template, replace all old targets with the new ones,
regenerate top.

Signed-off-by: Amaury Pouly <[email protected]>
Update template, replace all old targets with the new ones,
regenerate top.

Signed-off-by: Amaury Pouly <[email protected]>
Replace old targets with the new ones.

Signed-off-by: Amaury Pouly <[email protected]>
This commit was generated by running
/home/pamaury/project/opentitan/util/rewrite_hw.py -v -g --root /home/pamaury/project/opentitan --hjson hw/ip/adc_ctrl/data/adc_ctrl.hjson --top hw/top_earlgrey hw/ip/adc_ctrl

Signed-off-by: Amaury Pouly <[email protected]>
This commit was generated by running
/home/pamaury/project/opentitan/util/rewrite_hw.py -v -g --root /home/pamaury/project/opentitan --hjson hw/ip/aes/data/aes.hjson --top hw/top_earlgrey hw/ip/aes

Signed-off-by: Amaury Pouly <[email protected]>
This commit was generated by running
/home/pamaury/project/opentitan/util/rewrite_hw.py -v -g --root /home/pamaury/project/opentitan --hjson hw/ip/aon_timer/data/aon_timer.hjson --top hw/top_earlgrey hw/ip/aon_timer

Signed-off-by: Amaury Pouly <[email protected]>
This commit was generated by running
/home/pamaury/project/opentitan/util/rewrite_hw.py -v -g --root /home/pamaury/project/opentitan --hjson hw/ip/csrng/data/csrng.hjson --top hw/top_earlgrey hw/ip/csrng

Signed-off-by: Amaury Pouly <[email protected]>
This commit was generated by running
/home/pamaury/project/opentitan/util/rewrite_hw.py -v -g --root /home/pamaury/project/opentitan --hjson hw/ip/edn/data/edn.hjson --top hw/top_earlgrey hw/ip/edn

Signed-off-by: Amaury Pouly <[email protected]>
This commit was generated by running
/home/pamaury/project/opentitan/util/rewrite_hw.py -v -g --root /home/pamaury/project/opentitan --hjson hw/ip/entropy_src/data/entropy_src.hjson --top hw/top_earlgrey hw/ip/entropy_src

Signed-off-by: Amaury Pouly <[email protected]>
This commit was generated by running
/home/pamaury/project/opentitan/util/rewrite_hw.py -v -g --root /home/pamaury/project/opentitan --hjson hw/ip/gpio/data/gpio.hjson --top hw/top_earlgrey hw/ip/gpio

Signed-off-by: Amaury Pouly <[email protected]>
This commit was generated by running
/home/pamaury/project/opentitan/util/rewrite_hw.py -v -g --root /home/pamaury/project/opentitan --hjson hw/ip/hmac/data/hmac.hjson --top hw/top_earlgrey hw/ip/hmac

Signed-off-by: Amaury Pouly <[email protected]>
This commit was generated by running
/home/pamaury/project/opentitan/util/rewrite_hw.py -v -g --root /home/pamaury/project/opentitan --hjson hw/ip/i2c/data/i2c.hjson --top hw/top_earlgrey hw/ip/i2c

Signed-off-by: Amaury Pouly <[email protected]>
This commit was generated by running
/home/pamaury/project/opentitan/util/rewrite_hw.py -v -g --root /home/pamaury/project/opentitan --hjson hw/ip/keymgr/data/keymgr.hjson --top hw/top_earlgrey hw/ip/keymgr

Signed-off-by: Amaury Pouly <[email protected]>
This commit was generated by running
/home/pamaury/project/opentitan/util/rewrite_hw.py -v -g --root /home/pamaury/project/opentitan --hjson hw/ip/kmac/data/kmac.hjson --top hw/top_earlgrey hw/ip/kmac

Signed-off-by: Amaury Pouly <[email protected]>
This commit was generated by running
/home/pamaury/project/opentitan/util/rewrite_hw.py -v -g --root /home/pamaury/project/opentitan --hjson hw/ip/lc_ctrl/data/lc_ctrl.hjson --top hw/top_earlgrey hw/ip/lc_ctrl

Signed-off-by: Amaury Pouly <[email protected]>
This commit was generated by running
/home/pamaury/project/opentitan/util/rewrite_hw.py -v -g --root /home/pamaury/project/opentitan --hjson hw/ip/otbn/data/otbn.hjson --top hw/top_earlgrey --keep-all-files hw/ip/otbn

Signed-off-by: Amaury Pouly <[email protected]>
This commit was generated by running
/home/pamaury/project/opentitan/util/rewrite_hw.py -v -g --root /home/pamaury/project/opentitan --hjson hw/ip/otp_ctrl/data/otp_ctrl.hjson --top hw/top_earlgrey hw/ip/otp_ctrl

Signed-off-by: Amaury Pouly <[email protected]>
This rules runs util/autogen_testutils.py

Signed-off-by: Amaury Pouly <[email protected]>
Some dependencies depend on the top. For now manually select the right
ones.

Signed-off-by: Amaury Pouly <[email protected]>
This can be used for blocks where the numerical index as no meaning
but the top gave it a meaningful name, e.g. kDtIndexSramCtrlRetAon,
kDtIndexSramCtrlMain.

Signed-off-by: Amaury Pouly <[email protected]>
Because it is written in assembly, we cannot use the C headers but
at least we can create some defines and handle english breakfast.

Signed-off-by: Amaury Pouly <[email protected]>
There are no DT structures to store the eflash size yet so use
ifdef for now.

Signed-off-by: Amaury Pouly <[email protected]>
Signed-off-by: Amaury Pouly <[email protected]>
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

Successfully merging this pull request may close these issues.

1 participant