[topgen] Array of inter-module signal
This commit is to support an array of inter-module signals.
To achieve the array feature in inter-module, regardless of the act
(requester, responder/receiver), the key shall be an array and the
entries should be `width` as 1. So, inter-module signal only supports
1:1, 1:N, N:1.
Also, the top-level signal name follows the key instance name not
'req->rsp' as before.
```hjson
inter_module: {
'module_a.sig_a': ['module_b.sig_a', 'module_c.sig_a']
}
```
In the above example, `sig_a` in `module_a` can be requester or
responder/receiver. The `width` of `module_a.sig_a` shall be 2.
Signed-off-by: Eunchan Kim <eunchan@opentitan.org>
diff --git a/hw/top_earlgrey/data/autogen/top_earlgrey.gen.hjson b/hw/top_earlgrey/data/autogen/top_earlgrey.gen.hjson
index 6f63bb1..b165040 100644
--- a/hw/top_earlgrey/data/autogen/top_earlgrey.gen.hjson
+++ b/hw/top_earlgrey/data/autogen/top_earlgrey.gen.hjson
@@ -313,7 +313,8 @@
package: flash_ctrl_pkg
inst_name: flash_ctrl
width: 1
- top_signame: flash_ctrl_eflash_flash
+ top_signame: flash_ctrl_flash
+ index: -1
}
]
}
@@ -762,7 +763,8 @@
act: responder
inst_name: eflash
width: 1
- top_signame: flash_ctrl_eflash_flash
+ top_signame: flash_ctrl_flash
+ index: -1
}
]
}
@@ -1736,7 +1738,8 @@
package: flash_ctrl_pkg
inst_name: flash_ctrl
width: 1
- top_signame: flash_ctrl_eflash_flash
+ top_signame: flash_ctrl_flash
+ index: -1
}
{
struct: flash
@@ -1745,7 +1748,8 @@
act: responder
inst_name: eflash
width: 1
- top_signame: flash_ctrl_eflash_flash
+ top_signame: flash_ctrl_flash
+ index: -1
}
]
definitions:
@@ -1753,7 +1757,7 @@
{
package: flash_ctrl_pkg
struct: flash
- signame: flash_ctrl_eflash_flash
+ signame: flash_ctrl_flash
width: 1
type: req_rsp
}