From 2030f1531649550877a6c6f2ac82c1d899c7b589 Mon Sep 17 00:00:00 2001 From: Rupert Swarbrick Date: Thu, 2 Apr 2026 19:18:46 +0100 Subject: [PATCH] Move the "name" field up to FlowCfg Looking through hjson files quickly, I'm pretty certain that they always provide a name (which gets installed at runtime through _merge_hjson). Tell the type system about this. Signed-off-by: Rupert Swarbrick --- src/dvsim/flow/base.py | 1 + src/dvsim/sim/flow.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dvsim/flow/base.py b/src/dvsim/flow/base.py index 4ae7d2c3..e90c17d1 100644 --- a/src/dvsim/flow/base.py +++ b/src/dvsim/flow/base.py @@ -74,6 +74,7 @@ def __init__(self, flow_cfg_file, hjson_data, args, mk_config) -> None: self.interactive = args.interactive # Options set from hjson cfg. + self.name = "" self.project = "" self.scratch_path = "" self.scratch_base_path = "" diff --git a/src/dvsim/sim/flow.py b/src/dvsim/sim/flow.py index 2ba51873..664f3163 100644 --- a/src/dvsim/sim/flow.py +++ b/src/dvsim/sim/flow.py @@ -140,7 +140,6 @@ def __init__(self, flow_cfg_file, hjson_data, args, mk_config) -> None: self.sw_build_opts = [] self.pass_patterns = [] self.fail_patterns = [] - self.name = "" self.variant = "" self.dut = "" self.tb = ""