Skip to content

Commit 3059172

Browse files
AlexJones0jwnrt
authored andcommitted
[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 <[email protected]>
1 parent bb0c234 commit 3059172

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/opentitan/cfggen.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ def main():
285285
argparser.error(f"No such file '{lcpath}'")
286286

287287
if not args.otpconst:
288-
ocpath = joinpath(ot_dir, 'hw/ip/otp_ctrl/rtl/otp_ctrl_part_pkg.sv')
288+
ocpath = joinpath(ot_dir, 'hw', top,
289+
'ip_autogen/otp_ctrl/rtl/otp_ctrl_part_pkg.sv')
289290
else:
290291
ocpath = args.otpconst
291292
if not isfile(lcpath):

0 commit comments

Comments
 (0)