[#73220] add t_trace_param_saif test

This commit is contained in:
Mateusz Gancarz 2025-02-25 15:21:36 +01:00
parent d3f8f34b03
commit 99b5c5f6d2
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,24 @@
(SAIFILE
(SAIFVERSION "2.0")
(DIRECTION "backward")
(DESIGN "t")
(DIVIDER / )
(TIMESCALE 1ps)
(DURATION 0)
(INSTANCE top
(NET
)
(INSTANCE my_module_types
(NET
(MY_PARAM\[0\] (T0 0) (T1 0) (TX 0) (TC 1))
(MY_PARAM\[1\] (T0 0) (T1 0) (TX 0) (TC 1))
(MY_PARAM2\[2\] (T0 0) (T1 0) (TX 0) (TC 1))
(MY_PARAM2\[3\] (T0 0) (T1 0) (TX 0) (TC 1))
)
)
(INSTANCE t
(NET
)
)
)
)

View File

@ -0,0 +1,19 @@
#!/usr/bin/env python3
# DESCRIPTION: Verilator: Verilog Test driver/expect definition
#
# Copyright 2024 by Wilson Snyder. This program is free software; you
# can redistribute it and/or modify it under the terms of either the GNU
# Lesser General Public License Version 3 or the Perl Artistic License
# Version 2.0.
# SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
import vltest_bootstrap
test.scenarios('vlt_all')
test.top_filename = "t/t_trace_param.v"
test.compile(v_flags2=["--trace-saif"])
test.execute()
test.passes()