Add used language to `--preproc-resolve` output (#5795)
This commit is contained in:
parent
b35ab0b843
commit
3ab89d5be7
|
|
@ -95,7 +95,7 @@ protected:
|
||||||
if (modfilename.empty()) return false;
|
if (modfilename.empty()) return false;
|
||||||
|
|
||||||
// Set language standard up front
|
// Set language standard up front
|
||||||
if (!v3Global.opt.preprocOnly()) {
|
if (!v3Global.opt.preprocOnly() || v3Global.opt.preprocResolve()) {
|
||||||
// Letting lex parse this saves us from having to specially en/decode
|
// Letting lex parse this saves us from having to specially en/decode
|
||||||
// from the V3LangCode to the various Lex BEGIN states. The language
|
// from the V3LangCode to the various Lex BEGIN states. The language
|
||||||
// of this source file is updated here, in case there have been any
|
// of this source file is updated here, in case there have been any
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
`begin_keywords "1800-2023"
|
||||||
|
`verilator_config
|
||||||
|
lint_off -rule NONSTD
|
||||||
|
`begin_keywords "1800-2023"
|
||||||
`timescale 1ns/1ps
|
`timescale 1ns/1ps
|
||||||
module top(
|
module top(
|
||||||
input logic clk,
|
input logic clk,
|
||||||
|
|
@ -10,6 +14,7 @@ module top(
|
||||||
.out_signal(top_out)
|
.out_signal(top_out)
|
||||||
);
|
);
|
||||||
endmodule
|
endmodule
|
||||||
|
`begin_keywords "1800-2023"
|
||||||
`timescale 1ns/1ps
|
`timescale 1ns/1ps
|
||||||
module submod(
|
module submod(
|
||||||
input logic clk,
|
input logic clk,
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,9 @@ stdout_filename = os.path.join(test.obj_dir, test.name + ".out")
|
||||||
test.compile(
|
test.compile(
|
||||||
# Override default flags
|
# Override default flags
|
||||||
v_flags=[''],
|
v_flags=[''],
|
||||||
verilator_flags=["-E -P --preproc-resolve -y t/t_preproc_resolve"],
|
verilator_flags=[
|
||||||
|
"-E -P --preproc-resolve t/t_preproc_resolve_config.vlt -y t/t_preproc_resolve"
|
||||||
|
],
|
||||||
verilator_flags2=[''],
|
verilator_flags2=[''],
|
||||||
verilator_flags3=[''],
|
verilator_flags3=[''],
|
||||||
verilator_make_gmake=False,
|
verilator_make_gmake=False,
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
// DESCRIPTION: Verilator: Verilog Test module
|
||||||
|
//
|
||||||
|
// This file ONLY is placed under the Creative Commons Public Domain, for
|
||||||
|
// any use, without warranty, 2025 by Antmicro.
|
||||||
|
// SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
|
`verilator_config
|
||||||
|
lint_off -rule NONSTD
|
||||||
Loading…
Reference in New Issue