[topgen] Allow eflash objects to have name, clock_connections
In practice, they always have a name (we generate exactly one in
top_earlgrey.hjson, which is an element in the memory list with name
and type both "eflash").
They also always have a clock_connections field, which is generated in
amend_clocks (I wonder whether this should actually just overwrite
clock_srcs, but that's definitely for a different patch).
Signed-off-by: Rupert Swarbrick <rswarbrick@lowrisc.org>
diff --git a/util/topgen/validate.py b/util/topgen/validate.py
index dc2035a..62bf86d 100644
--- a/util/topgen/validate.py
+++ b/util/topgen/validate.py
@@ -130,9 +130,11 @@
eflash_required = {
'banks': ['d', 'number of flash banks'],
'base_addr': ['s', 'strarting hex address of memory'],
+ 'clock_connections': ['g', 'generated, elaborated version of clock_srcs'],
'clock_group': ['s', 'associated clock attribute group'],
'clock_srcs': ['g', 'clock connections'],
'inter_signal_list': ['lg', 'intersignal list'],
+ 'name': ['s', 'name of flash memory'],
'pages_per_bank': ['d', 'number of data pages per flash bank'],
'program_resolution': ['d', 'maximum number of flash words allowed to program'],
'reset_connections': ['g', 'reset connections'],