Skip to content

Commit

Permalink
[topgen] Support for multiple rv_dm instances
Browse files Browse the repository at this point in the history
There might be multiple rv_dm instances in the system. Therefore,
add a new topgen property for modules to specify if a DIF should
be generated. For rv_dm modules this is specified to false. Default
value if not specified is true.

Signed-off-by: Robert Schilling <[email protected]>
  • Loading branch information
Razer6 committed May 1, 2024
1 parent ded45ac commit a8f99ba
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 5 deletions.
44 changes: 44 additions & 0 deletions hw/top_darjeeling/data/autogen/top_darjeeling.gen.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@
hart: 0x30010000
}
}
generate_dif: true
}
{
name: gpio
Expand Down Expand Up @@ -627,6 +628,7 @@
hart: 0x30000000
}
}
generate_dif: true
}
{
name: spi_device
Expand Down Expand Up @@ -727,6 +729,7 @@
hart: 0x30310000
}
}
generate_dif: true
}
{
name: i2c0
Expand Down Expand Up @@ -791,6 +794,7 @@
hart: 0x30080000
}
}
generate_dif: true
}
{
name: rv_timer
Expand Down Expand Up @@ -841,6 +845,7 @@
hart: 0x30100000
}
}
generate_dif: true
}
{
name: otp_ctrl
Expand Down Expand Up @@ -1270,6 +1275,7 @@
index: -1
}
]
generate_dif: true
}
{
name: lc_ctrl
Expand Down Expand Up @@ -1839,6 +1845,7 @@
index: -1
}
]
generate_dif: true
}
{
name: alert_handler
Expand Down Expand Up @@ -1974,6 +1981,7 @@
hart: 0x30150000
}
}
generate_dif: true
}
{
name: spi_host0
Expand Down Expand Up @@ -2050,6 +2058,7 @@
hart: 0x30300000
}
}
generate_dif: true
}
{
name: pwrmgr_aon
Expand Down Expand Up @@ -2404,6 +2413,7 @@
hart: 0x30400000
}
}
generate_dif: true
}
{
name: rstmgr_aon
Expand Down Expand Up @@ -2605,6 +2615,7 @@
hart: 0x30410000
}
}
generate_dif: true
}
{
name: clkmgr_aon
Expand Down Expand Up @@ -2939,6 +2950,7 @@
hart: 0x30420000
}
}
generate_dif: true
}
{
name: pinmux_aon
Expand Down Expand Up @@ -3358,6 +3370,7 @@
hart: 0x30460000
}
}
generate_dif: true
}
{
name: aon_timer_aon
Expand Down Expand Up @@ -3477,6 +3490,7 @@
hart: 0x30470000
}
}
generate_dif: true
}
{
name: ast
Expand Down Expand Up @@ -3585,6 +3599,7 @@
hart: 0x30480000
}
}
generate_dif: true
}
{
name: sensor_ctrl
Expand Down Expand Up @@ -3697,6 +3712,7 @@
hart: 0x30020000
}
}
generate_dif: true
}
{
name: soc_proxy
Expand Down Expand Up @@ -4023,6 +4039,7 @@
index: -1
}
]
generate_dif: true
}
{
name: sram_ctrl_ret_aon
Expand Down Expand Up @@ -4227,6 +4244,7 @@
index: -1
}
]
generate_dif: true
}
{
name: rv_dm
Expand Down Expand Up @@ -4263,6 +4281,7 @@
{
SecVolatileRawUnlockEn: top_pkg::SecVolatileRawUnlockEn
}
generate_dif: false
clock_connections:
{
clk_i: clkmgr_aon_clocks.clk_main_infra
Expand Down Expand Up @@ -4597,6 +4616,7 @@
hart: 0x28000000
}
}
generate_dif: true
}
{
name: aes
Expand Down Expand Up @@ -4825,6 +4845,7 @@
hart: 0x21100000
}
}
generate_dif: true
}
{
name: hmac
Expand Down Expand Up @@ -4887,6 +4908,7 @@
hart: 0x21110000
}
}
generate_dif: true
}
{
name: kmac
Expand Down Expand Up @@ -5115,6 +5137,7 @@
hart: 0x21120000
}
}
generate_dif: true
}
{
name: otbn
Expand Down Expand Up @@ -5376,6 +5399,7 @@
hart: 0x21130000
}
}
generate_dif: true
}
{
name: keymgr_dpe
Expand Down Expand Up @@ -5711,6 +5735,7 @@
hart: 0x21140000
}
}
generate_dif: true
}
{
name: csrng
Expand Down Expand Up @@ -5858,6 +5883,7 @@
hart: 0x21150000
}
}
generate_dif: true
}
{
name: edn0
Expand Down Expand Up @@ -5943,6 +5969,7 @@
hart: 0x21170000
}
}
generate_dif: true
}
{
name: edn1
Expand Down Expand Up @@ -6028,6 +6055,7 @@
hart: 0x21180000
}
}
generate_dif: true
}
{
name: sram_ctrl_main
Expand Down Expand Up @@ -6234,6 +6262,7 @@
index: -1
}
]
generate_dif: true
}
{
name: sram_ctrl_mbox
Expand Down Expand Up @@ -6438,6 +6467,7 @@
index: -1
}
]
generate_dif: true
}
{
name: rom_ctrl0
Expand Down Expand Up @@ -6619,6 +6649,7 @@
index: -1
}
]
generate_dif: true
}
{
name: rom_ctrl1
Expand Down Expand Up @@ -6800,6 +6831,7 @@
index: -1
}
]
generate_dif: true
}
{
name: dma
Expand Down Expand Up @@ -6963,6 +6995,7 @@
hart: 0x22010000
}
}
generate_dif: true
}
{
name: mbx0
Expand Down Expand Up @@ -7098,6 +7131,7 @@
index: -1
}
]
generate_dif: true
}
{
name: mbx1
Expand Down Expand Up @@ -7233,6 +7267,7 @@
index: -1
}
]
generate_dif: true
}
{
name: mbx2
Expand Down Expand Up @@ -7368,6 +7403,7 @@
index: -1
}
]
generate_dif: true
}
{
name: mbx3
Expand Down Expand Up @@ -7503,6 +7539,7 @@
index: -1
}
]
generate_dif: true
}
{
name: mbx4
Expand Down Expand Up @@ -7638,6 +7675,7 @@
index: -1
}
]
generate_dif: true
}
{
name: mbx5
Expand Down Expand Up @@ -7773,6 +7811,7 @@
index: -1
}
]
generate_dif: true
}
{
name: mbx6
Expand Down Expand Up @@ -7908,6 +7947,7 @@
index: -1
}
]
generate_dif: true
}
{
name: mbx_jtag
Expand Down Expand Up @@ -8043,6 +8083,7 @@
index: -1
}
]
generate_dif: true
}
{
name: mbx_pcie0
Expand Down Expand Up @@ -8178,6 +8219,7 @@
index: -1
}
]
generate_dif: true
}
{
name: mbx_pcie1
Expand Down Expand Up @@ -8313,6 +8355,7 @@
index: -1
}
]
generate_dif: true
}
{
name: rv_core_ibex
Expand Down Expand Up @@ -8869,6 +8912,7 @@
hart: 0x211f0000
}
}
generate_dif: true
}
]
memory: []
Expand Down
3 changes: 2 additions & 1 deletion hw/top_darjeeling/data/top_darjeeling.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,8 @@
// THE RISK OF A BROKEN OTP MACRO. THIS WILL BE DISABLED FOR
// PRODUCTION DEVICES.
SecVolatileRawUnlockEn: "top_pkg::SecVolatileRawUnlockEn",
}
},
generate_dif: "False"
},
{ name: "rv_plic",
type: "rv_plic",
Expand Down
Loading

0 comments on commit a8f99ba

Please sign in to comment.