From 6a3df68f7cc64e7c96a170eb92f68ea2c8322a5d Mon Sep 17 00:00:00 2001 From: Alex Jones Date: Thu, 16 Jan 2025 14:57:24 +0000 Subject: [PATCH] [ot] scripts/opentitan: cfggen.py: Update OTP constant SV file location After changes in OpenTitan to move otp_ctrl to ipgen, to keep QEMU working with `master` we need to source the OTP constant SV file from the correct location. This default location is top-specific. Signed-off-by: Alex Jones --- scripts/opentitan/cfggen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/opentitan/cfggen.py b/scripts/opentitan/cfggen.py index 390e0ee916e7a..e4501c3b90006 100755 --- a/scripts/opentitan/cfggen.py +++ b/scripts/opentitan/cfggen.py @@ -285,7 +285,8 @@ def main(): argparser.error(f"No such file '{lcpath}'") if not args.otpconst: - ocpath = joinpath(ot_dir, 'hw/ip/otp_ctrl/rtl/otp_ctrl_part_pkg.sv') + ocpath = joinpath(ot_dir, 'hw', top, + 'ip_autogen/otp_ctrl/rtl/otp_ctrl_part_pkg.sv') else: ocpath = args.otpconst if not isfile(lcpath):