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

[darjeeling] Feed I2C RAM config to toplevel interface #25783

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions hw/top_darjeeling/data/autogen/top_darjeeling.gen.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,10 @@
act: rcv
width: 1
inst_name: i2c0
default: ""
external: true
top_signame: i2c_ram_1p_cfg
conn_type: false
index: -1
}
{
Expand Down Expand Up @@ -10284,6 +10288,7 @@
ast.lc_hw_debug_en: ""
ast.obs_ctrl: obs_ctrl
ast.rom_cfg: rom_cfg
i2c0.ram_cfg: i2c_ram_1p_cfg
i2c0.ram_cfg_rsp: i2c_ram_1p_cfg_rsp
sram_ctrl_ret_aon.cfg: sram_ctrl_ret_aon_ram_1p_cfg
sram_ctrl_ret_aon.cfg_rsp: sram_ctrl_ret_aon_ram_1p_cfg_rsp
Expand Down Expand Up @@ -18650,6 +18655,10 @@
act: rcv
width: 1
inst_name: i2c0
default: ""
external: true
top_signame: i2c_ram_1p_cfg
conn_type: false
index: -1
}
{
Expand Down Expand Up @@ -24840,6 +24849,18 @@
index: -1
netname: ast_rom_cfg
}
{
package: prim_ram_1p_pkg
struct: ram_1p_cfg
signame: i2c_ram_1p_cfg_i
width: 1
type: uni
default: ""
direction: in
conn_type: false
index: -1
netname: i2c_ram_1p_cfg
}
{
package: prim_ram_1p_pkg
struct: ram_1p_cfg_rsp
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 @@ -1285,6 +1285,7 @@
'ast.lc_hw_debug_en' : '',
'ast.obs_ctrl' : 'obs_ctrl',
'ast.rom_cfg' : 'rom_cfg',
'i2c0.ram_cfg' : 'i2c_ram_1p_cfg',
'i2c0.ram_cfg_rsp' : 'i2c_ram_1p_cfg_rsp',
'sram_ctrl_ret_aon.cfg' : 'sram_ctrl_ret_aon_ram_1p_cfg',
'sram_ctrl_ret_aon.cfg_rsp' : 'sram_ctrl_ret_aon_ram_1p_cfg_rsp',
Expand Down
3 changes: 2 additions & 1 deletion hw/top_darjeeling/rtl/autogen/top_darjeeling.sv
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ module top_darjeeling #(
output lc_ctrl_pkg::lc_tx_t ast_lc_hw_debug_en_o,
input ast_pkg::ast_obs_ctrl_t obs_ctrl_i,
input prim_rom_pkg::rom_cfg_t rom_cfg_i,
input prim_ram_1p_pkg::ram_1p_cfg_t i2c_ram_1p_cfg_i,
output prim_ram_1p_pkg::ram_1p_cfg_rsp_t i2c_ram_1p_cfg_rsp_o,
input prim_ram_1p_pkg::ram_1p_cfg_t [SramCtrlRetAonNumRamInst-1:0] sram_ctrl_ret_aon_ram_1p_cfg_i,
output prim_ram_1p_pkg::ram_1p_cfg_rsp_t [SramCtrlRetAonNumRamInst-1:0] sram_ctrl_ret_aon_ram_1p_cfg_rsp_o,
Expand Down Expand Up @@ -1118,7 +1119,7 @@ module top_darjeeling #(
.alert_rx_i ( alert_rx[3:3] ),

// Inter-module signals
.ram_cfg_i(prim_ram_1p_pkg::RAM_1P_CFG_DEFAULT),
.ram_cfg_i(i2c_ram_1p_cfg_i),
.ram_cfg_rsp_o(i2c_ram_1p_cfg_rsp_o),
.lsio_trigger_o(i2c0_lsio_trigger),
.tl_i(i2c0_tl_req),
Expand Down
Loading