Skip to content

Commit 76dcda1

Browse files
committed
[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 <alex.jones@lowrisc.org>
1 parent fc5eb74 commit 76dcda1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/opentitan/cfggen.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,9 @@ 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+
otp_ctrl = f'hw/{top}/ip_autogen/otp_ctrl/'
289+
otp_constant_file = 'rtl/otp_ctrl_part_pkg.sv'
290+
ocpath = joinpath(ot_dir, otp_ctrl, otp_constant_file)
289291
else:
290292
ocpath = args.otpconst
291293
if not isfile(lcpath):

0 commit comments

Comments
 (0)