Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: lowRISC/opentitan
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7d1df472e55321cb787dbc771977b480ccaa9c72
Choose a base ref
..
head repository: lowRISC/opentitan
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dfcda08a600bf01abbdfd4c6c2ede80b5c6a8c15
Choose a head ref
2 changes: 1 addition & 1 deletion hw/top_darjeeling/top_darjeeling_racl_pkg.core
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ filesets:
depend:
- lowrisc:ip:tlul
files:
- rtl/autogen/top_darjeeling_racl_pkg.sv
- rtl/autogen/top_racl_pkg.sv
file_type: systemVerilogSource

targets:
File renamed without changes.
2 changes: 1 addition & 1 deletion hw/top_earlgrey/top_earlgrey_racl_pkg.core
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ filesets:
depend:
- lowrisc:ip:tlul
files:
- rtl/autogen/top_earlgrey_racl_pkg.sv
- rtl/autogen/top_racl_pkg.sv
file_type: systemVerilogSource

targets:
14 changes: 8 additions & 6 deletions util/topgen.py
Original file line number Diff line number Diff line change
@@ -540,7 +540,8 @@ def generate_racl(topcfg: Dict[str, object], out_path: Path) -> None:

for racl_group, policies in topcfg['racl']['policies'].items():
params = {
"nr_racl_bits": 4,
"nr_role_bits": 4,
"nr_ctn_uid_bits": 8,
"nr_policies": len(policies),
"policies": policies
}
@@ -554,9 +555,10 @@ def generate_racl(topcfg: Dict[str, object], out_path: Path) -> None:
# if m['name'] == params['module_instance_name']:
# ipgen_render("racl_ctrl", topname, params, out_path)
# break
# TODO: The obove code, would be the correct if ipgen correctly supports rendering multiple
# instances and allow topgen to instantiate right now. This support is not yet implemented
# properly. Therefore, simple render the first RACL group to the RACL control IP.
# TODO(#25673): The obove code, would be the correct if ipgen correctly supports rendering
# multiple instances and allow topgen to instantiate right now. This support is not yet
# implemented properly. Therefore, simple render the first RACL group to the RACL control
# IP.
ipgen_render("racl_ctrl", topname, params, out_path)
break

@@ -1288,8 +1290,8 @@ def render_template(template_path: str, rendered_path: Path,
gencmd=gencmd)

racl_config = completecfg['racl'] if 'racl' in completecfg else DEFAULT_RACL_CONFIG
render_template(TOPGEN_TEMPLATE_PATH / "toplevel_racl_pkg.sv.tpl",
out_path / "rtl" / "autogen" / f"{top_name}_racl_pkg.sv",
render_template(TOPGEN_TEMPLATE_PATH / 'toplevel_racl_pkg.sv.tpl',
out_path / 'rtl' / 'autogen' / 'top_racl_pkg.sv',
gencmd=gencmd,
racl_config=racl_config)