forked from github/verilator
Add --timing to --binary (#3625).
This commit is contained in:
parent
9c2ead90d5
commit
cd2a5771b8
2
Changes
2
Changes
@ -19,7 +19,7 @@ Verilator 5.001 devel
|
||||
clocks are now simulated correctly (#3278, #3384). [Geza Lore, Shunyao CAD]
|
||||
* Support timing controls (delays, event controls in any location, wait
|
||||
statements) and forks. See docs for details. [Krzysztof Bieganski, Antmicro Ltd]
|
||||
* Add --binary option as alias of --main --exe --build (#3625).
|
||||
* Add --binary option as alias of --main --exe --build --timing (#3625).
|
||||
|
||||
|
||||
Verilator 4.227 devel
|
||||
|
@ -118,7 +118,7 @@ Summary:
|
||||
.. option:: --binary
|
||||
|
||||
Create a Verilated simulator binary. Alias for :vlopt:`--main`
|
||||
:vlopt:`--exe` :vlopt:`--build`.
|
||||
:vlopt:`--exe` :vlopt:`--build` :vlopt:`--timing`.
|
||||
|
||||
See also :vlopt:`-j`.
|
||||
|
||||
|
@ -1020,6 +1020,7 @@ void V3Options::parseOptsList(FileLine* fl, const string& optdir, int argc, char
|
||||
m_build = true;
|
||||
m_exe = true;
|
||||
m_main = true;
|
||||
if (m_timing.isDefault()) m_timing = VOptionBool::OPT_TRUE;
|
||||
});
|
||||
DECL_OPTION("-build", Set, &m_build);
|
||||
DECL_OPTION("-build-dep-bin", Set, &m_buildDepBin);
|
||||
|
@ -8,23 +8,28 @@ if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); di
|
||||
# Version 2.0.
|
||||
# SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
|
||||
|
||||
top_filename("t/t_flag_main.v");
|
||||
|
||||
scenarios(simulator => 1);
|
||||
|
||||
compile(
|
||||
verilator_flags => [# Custom as don't want -cc
|
||||
"-Mdir $Self->{obj_dir}",
|
||||
"--debug-check", ],
|
||||
verilator_flags2 => ['--binary'],
|
||||
verilator_make_cmake => 0,
|
||||
verilator_make_gmake => 0,
|
||||
make_main => 0,
|
||||
);
|
||||
top_filename("t/t_flag_main.v");
|
||||
|
||||
execute(
|
||||
check_finished => 1,
|
||||
);
|
||||
if (!$Self->have_coroutines) {
|
||||
skip("No coroutine support");
|
||||
}
|
||||
else {
|
||||
compile(
|
||||
verilator_flags => [# Custom as don't want -cc
|
||||
"-Mdir $Self->{obj_dir}",
|
||||
"--debug-check", ],
|
||||
verilator_flags2 => ['--binary'],
|
||||
verilator_make_cmake => 0,
|
||||
verilator_make_gmake => 0,
|
||||
make_main => 0,
|
||||
);
|
||||
|
||||
execute(
|
||||
check_finished => 1,
|
||||
);
|
||||
}
|
||||
|
||||
ok(1);
|
||||
1;
|
||||
|
Loading…
Reference in New Issue
Block a user