You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "Number of credits and buffer depth of the data word FIFO.",
"minimum": 1,
"default": 4
},
To avoid incurring in the same situation in the future, the HW configuration file should be validated against the schema upon hardware generation, producing an error if some parameter is not defined in the schema.
This is done to some extent in the Generator class:
But only against the root schema, which doesn't include all parameters. The ssr_nr_credits parameter is in the remote schema for the SnitchClusterTB class:
Parameter
ssr_nr_credits
is defined in the default HW configuration:snitch_cluster/target/snitch_cluster/cfg/default.hjson
Line 115 in e90dceb
However, this parameter is actually not used anywhere. The correct name for this parameter would be
data_credits
:snitch_cluster/hw/snitch_cluster/src/snitch_cluster_wrapper.sv.tpl
Line 205 in e90dceb
Regardless what value is set to
ssr_nr_credits
, the default fordata_credits
which is defined in the schema file is used:snitch_cluster/docs/schema/snitch_cluster.schema.json
Lines 576 to 581 in e90dceb
To avoid incurring in the same situation in the future, the HW configuration file should be validated against the schema upon hardware generation, producing an error if some parameter is not defined in the schema.
This is done to some extent in the
Generator
class:snitch_cluster/util/clustergen/cluster.py
Lines 73 to 80 in e90dceb
But only against the root schema, which doesn't include all parameters. The
ssr_nr_credits
parameter is in the remote schema for theSnitchClusterTB
class:snitch_cluster/util/clustergen/cluster.py
Lines 357 to 369 in e90dceb
The text was updated successfully, but these errors were encountered: