Skip to content

Commit a609c68

Browse files
committed
ebmc: add --system-verilog command-line option
This adds the command-line option --system-verilog to ebmc, which switches the Verilog front-end to recognize SystemVerilog.
1 parent 3fc2299 commit a609c68

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
main1.v
3+
--system-verilog
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
^no properties$
7+
--
8+
^warning: ignoring
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module main;
2+
// 'logic' is a SystemVerilog keyword
3+
logic some_logic;
4+
initial some_logic = 1;
5+
endmodule

src/ebmc/ebmc_parse_options.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ void ebmc_parse_optionst::help()
363363
" {y--show-properties} \t list the properties in the model\n"
364364
" {y--property} {uid} \t check the property with given ID\n"
365365
" {y-I} {upath} \t set include path\n"
366+
" {y--system-verilog} \t force SystemVerilog instead of Verilog\n"
366367
" {y--reset} {uexpr} \t set up module reset\n"
367368
" {y--liveness-to-safety} \t translate liveness properties to safety properties\n"
368369
"\n"

src/ebmc/ebmc_parse_options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ebmc_parse_optionst:public parse_options_baset
4646
"(random-traces)(trace-steps):(random-seed):(number-of-traces):"
4747
"(random-trace)(random-waveform)"
4848
"(liveness-to-safety)"
49-
"I:(preprocess)",
49+
"I:(preprocess)(system-verilog)",
5050
argc,
5151
argv,
5252
std::string("EBMC ") + EBMC_VERSION),

0 commit comments

Comments
 (0)