Skip to content

Commit

Permalink
[darjeeling,racl] Add RACL to AC Range check
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Schilling <[email protected]>
  • Loading branch information
Razer6 committed Feb 1, 2025
1 parent 3f188fa commit ff8dbc9
Show file tree
Hide file tree
Showing 8 changed files with 408 additions and 23 deletions.
217 changes: 206 additions & 11 deletions hw/top_darjeeling/data/autogen/top_darjeeling.gen.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -9820,7 +9820,7 @@
name: NumSubscribingIps
desc: Number of subscribing RACL IPs
type: int
default: 8
default: 9
local: "true"
expose: "true"
name_top: RaclCtrlNumSubscribingIps
Expand Down Expand Up @@ -9871,7 +9871,7 @@
desc: Number of subscribing RACL IPs
param_type: int
unpacked_dimensions: null
default: 8
default: 9
local: true
expose: true
name_top: RaclCtrlNumSubscribingIps
Expand All @@ -9897,7 +9897,7 @@
desc: Number of subscribing RACL IPs
param_type: int
unpacked_dimensions: null
default: 8
default: 9
local: true
expose: true
name_top: RaclCtrlNumSubscribingIps
Expand Down Expand Up @@ -10105,6 +10105,8 @@
act: rcv
width: 1
inst_name: ac_range_check
default: ""
top_signame: racl_ctrl_racl_policies
index: -1
}
{
Expand All @@ -10119,7 +10121,10 @@
act: req
width: 1
inst_name: ac_range_check
index: -1
default: ""
package: ""
top_signame: racl_ctrl_racl_error
index: 8
}
{
name: racl_error_log
Expand All @@ -10130,7 +10135,9 @@
act: req
width: 1
inst_name: ac_range_check
index: -1
default: ""
top_signame: racl_ctrl_racl_error_log
index: 8
}
{
name: tl
Expand All @@ -10154,6 +10161,184 @@
}
}
generate_dif: true
racl_mappings:
{
null:
{
racl_group: Null
register_mapping:
{
INTR_STATE: 2
INTR_ENABLE: 2
INTR_TEST: 2
ALERT_TEST: 2
LOG_CONFIG: 2
LOG_STATUS: 2
LOG_ADDRESS: 2
RANGE_REGWEN_0: 2
RANGE_REGWEN_1: 2
RANGE_REGWEN_2: 2
RANGE_REGWEN_3: 2
RANGE_REGWEN_4: 2
RANGE_REGWEN_5: 2
RANGE_REGWEN_6: 2
RANGE_REGWEN_7: 2
RANGE_REGWEN_8: 2
RANGE_REGWEN_9: 2
RANGE_REGWEN_10: 2
RANGE_REGWEN_11: 2
RANGE_REGWEN_12: 2
RANGE_REGWEN_13: 2
RANGE_REGWEN_14: 2
RANGE_REGWEN_15: 2
RANGE_REGWEN_16: 2
RANGE_REGWEN_17: 2
RANGE_REGWEN_18: 2
RANGE_REGWEN_19: 2
RANGE_REGWEN_20: 2
RANGE_REGWEN_21: 2
RANGE_REGWEN_22: 2
RANGE_REGWEN_23: 2
RANGE_REGWEN_24: 2
RANGE_REGWEN_25: 2
RANGE_REGWEN_26: 2
RANGE_REGWEN_27: 2
RANGE_REGWEN_28: 2
RANGE_REGWEN_29: 2
RANGE_REGWEN_30: 2
RANGE_REGWEN_31: 2
RANGE_BASE_0: 2
RANGE_BASE_1: 2
RANGE_BASE_2: 2
RANGE_BASE_3: 2
RANGE_BASE_4: 2
RANGE_BASE_5: 2
RANGE_BASE_6: 2
RANGE_BASE_7: 2
RANGE_BASE_8: 2
RANGE_BASE_9: 2
RANGE_BASE_10: 2
RANGE_BASE_11: 2
RANGE_BASE_12: 2
RANGE_BASE_13: 2
RANGE_BASE_14: 2
RANGE_BASE_15: 2
RANGE_BASE_16: 2
RANGE_BASE_17: 2
RANGE_BASE_18: 2
RANGE_BASE_19: 2
RANGE_BASE_20: 2
RANGE_BASE_21: 2
RANGE_BASE_22: 2
RANGE_BASE_23: 2
RANGE_BASE_24: 2
RANGE_BASE_25: 2
RANGE_BASE_26: 2
RANGE_BASE_27: 2
RANGE_BASE_28: 2
RANGE_BASE_29: 2
RANGE_BASE_30: 2
RANGE_BASE_31: 2
RANGE_LIMIT_0: 2
RANGE_LIMIT_1: 2
RANGE_LIMIT_2: 2
RANGE_LIMIT_3: 2
RANGE_LIMIT_4: 2
RANGE_LIMIT_5: 2
RANGE_LIMIT_6: 2
RANGE_LIMIT_7: 2
RANGE_LIMIT_8: 2
RANGE_LIMIT_9: 2
RANGE_LIMIT_10: 2
RANGE_LIMIT_11: 2
RANGE_LIMIT_12: 2
RANGE_LIMIT_13: 2
RANGE_LIMIT_14: 2
RANGE_LIMIT_15: 2
RANGE_LIMIT_16: 2
RANGE_LIMIT_17: 2
RANGE_LIMIT_18: 2
RANGE_LIMIT_19: 2
RANGE_LIMIT_20: 2
RANGE_LIMIT_21: 2
RANGE_LIMIT_22: 2
RANGE_LIMIT_23: 2
RANGE_LIMIT_24: 2
RANGE_LIMIT_25: 2
RANGE_LIMIT_26: 2
RANGE_LIMIT_27: 2
RANGE_LIMIT_28: 2
RANGE_LIMIT_29: 2
RANGE_LIMIT_30: 2
RANGE_LIMIT_31: 2
RANGE_PERM_0: 2
RANGE_PERM_1: 2
RANGE_PERM_2: 2
RANGE_PERM_3: 2
RANGE_PERM_4: 2
RANGE_PERM_5: 2
RANGE_PERM_6: 2
RANGE_PERM_7: 2
RANGE_PERM_8: 2
RANGE_PERM_9: 2
RANGE_PERM_10: 2
RANGE_PERM_11: 2
RANGE_PERM_12: 2
RANGE_PERM_13: 2
RANGE_PERM_14: 2
RANGE_PERM_15: 2
RANGE_PERM_16: 2
RANGE_PERM_17: 2
RANGE_PERM_18: 2
RANGE_PERM_19: 2
RANGE_PERM_20: 2
RANGE_PERM_21: 2
RANGE_PERM_22: 2
RANGE_PERM_23: 2
RANGE_PERM_24: 2
RANGE_PERM_25: 2
RANGE_PERM_26: 2
RANGE_PERM_27: 2
RANGE_PERM_28: 2
RANGE_PERM_29: 2
RANGE_PERM_30: 2
RANGE_PERM_31: 2
RANGE_RACL_POLICY_SHADOWED_0: 2
RANGE_RACL_POLICY_SHADOWED_1: 2
RANGE_RACL_POLICY_SHADOWED_2: 2
RANGE_RACL_POLICY_SHADOWED_3: 2
RANGE_RACL_POLICY_SHADOWED_4: 2
RANGE_RACL_POLICY_SHADOWED_5: 2
RANGE_RACL_POLICY_SHADOWED_6: 2
RANGE_RACL_POLICY_SHADOWED_7: 2
RANGE_RACL_POLICY_SHADOWED_8: 2
RANGE_RACL_POLICY_SHADOWED_9: 2
RANGE_RACL_POLICY_SHADOWED_10: 2
RANGE_RACL_POLICY_SHADOWED_11: 2
RANGE_RACL_POLICY_SHADOWED_12: 2
RANGE_RACL_POLICY_SHADOWED_13: 2
RANGE_RACL_POLICY_SHADOWED_14: 2
RANGE_RACL_POLICY_SHADOWED_15: 2
RANGE_RACL_POLICY_SHADOWED_16: 2
RANGE_RACL_POLICY_SHADOWED_17: 2
RANGE_RACL_POLICY_SHADOWED_18: 2
RANGE_RACL_POLICY_SHADOWED_19: 2
RANGE_RACL_POLICY_SHADOWED_20: 2
RANGE_RACL_POLICY_SHADOWED_21: 2
RANGE_RACL_POLICY_SHADOWED_22: 2
RANGE_RACL_POLICY_SHADOWED_23: 2
RANGE_RACL_POLICY_SHADOWED_24: 2
RANGE_RACL_POLICY_SHADOWED_25: 2
RANGE_RACL_POLICY_SHADOWED_26: 2
RANGE_RACL_POLICY_SHADOWED_27: 2
RANGE_RACL_POLICY_SHADOWED_28: 2
RANGE_RACL_POLICY_SHADOWED_29: 2
RANGE_RACL_POLICY_SHADOWED_30: 2
RANGE_RACL_POLICY_SHADOWED_31: 2
}
window_mapping: {}
}
}
}
{
name: rv_core_ibex
Expand Down Expand Up @@ -11600,6 +11785,7 @@
mbx_jtag.racl_policies
mbx_pcie0.racl_policies
mbx_pcie1.racl_policies
ac_range_check.racl_policies
]
racl_ctrl.racl_error:
[
Expand All @@ -11611,6 +11797,7 @@
mbx_jtag.racl_error
mbx_pcie0.racl_error
mbx_pcie1.racl_error
ac_range_check.racl_error
]
racl_ctrl.racl_error_log:
[
Expand All @@ -11622,6 +11809,7 @@
mbx_jtag.racl_error_log
mbx_pcie0.racl_error_log
mbx_pcie1.racl_error_log
ac_range_check.racl_error_log
]
}
top:
Expand Down Expand Up @@ -25647,7 +25835,7 @@
desc: Number of subscribing RACL IPs
param_type: int
unpacked_dimensions: null
default: 8
default: 9
local: true
expose: true
name_top: RaclCtrlNumSubscribingIps
Expand All @@ -25673,7 +25861,7 @@
desc: Number of subscribing RACL IPs
param_type: int
unpacked_dimensions: null
default: 8
default: 9
local: true
expose: true
name_top: RaclCtrlNumSubscribingIps
Expand Down Expand Up @@ -25837,6 +26025,8 @@
act: rcv
width: 1
inst_name: ac_range_check
default: ""
top_signame: racl_ctrl_racl_policies
index: -1
}
{
Expand All @@ -25851,7 +26041,10 @@
act: req
width: 1
inst_name: ac_range_check
index: -1
default: ""
package: ""
top_signame: racl_ctrl_racl_error
index: 8
}
{
name: racl_error_log
Expand All @@ -25862,7 +26055,9 @@
act: req
width: 1
inst_name: ac_range_check
index: -1
default: ""
top_signame: racl_ctrl_racl_error_log
index: 8
}
{
name: tl
Expand Down Expand Up @@ -31512,7 +31707,7 @@
desc: Number of subscribing RACL IPs
param_type: int
unpacked_dimensions: null
default: 8
default: 9
local: true
expose: true
name_top: RaclCtrlNumSubscribingIps
Expand All @@ -31533,7 +31728,7 @@
desc: Number of subscribing RACL IPs
param_type: int
unpacked_dimensions: null
default: 8
default: 9
local: true
expose: true
name_top: RaclCtrlNumSubscribingIps
Expand Down
1 change: 1 addition & 0 deletions hw/top_darjeeling/data/top_darjeeling.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,7 @@
num_ranges: 32
}
attr: "ipgen",
racl_mapping: 'top_darjeeling/data/racl/soc_rot_mapping.hjson'
},
{ name: "rv_core_ibex",
type: "rv_core_ibex",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
{
num_ranges: 32
module_instance_name: ac_range_check
nr_role_bits: 4
nr_ctn_uid_bits: 5
topname: darjeeling
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
{ name: "NumSubscribingIps",
desc: "Number of subscribing RACL IPs",
type: "int",
default: "8",
default: "9",
expose: "true"
local: "true"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
nr_role_bits: 4
nr_ctn_uid_bits: 5
nr_policies: 3
nr_subscribing_ips: 8
nr_subscribing_ips: 9
policies:
[
{
Expand Down
Loading

0 comments on commit ff8dbc9

Please sign in to comment.