File tree Expand file tree Collapse file tree 4 files changed +28
-0
lines changed
regression/verilog/directives Expand file tree Collapse file tree 4 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ CORE
2
+ default_nettype1.sv
3
+
4
+ ^no properties$
5
+ ^EXIT=10$
6
+ ^SIGNAL=0$
7
+ --
Original file line number Diff line number Diff line change
1
+ `default_nettype none
2
+ `default_nettype wire
3
+
4
+ module main ;
5
+ endmodule
Original file line number Diff line number Diff line change @@ -556,6 +556,7 @@ prove { VL2SMV_VERILOG_KEYWORD(TOK_PROVE); }
556
556
\' line { continue ; }
557
557
\' file { continue ; }
558
558
\` line{WS }[^ \n ]* {NL } { line_directive (); continue ; }
559
+ \` default_nettype{WS }[^ \n ]* {NL } { /* ignore for now */ continue ; }
559
560
\` {Word } { preprocessor (); continue ; }
560
561
561
562
\f { /* ignore */ }
Original file line number Diff line number Diff line change @@ -608,6 +608,21 @@ void verilog_preprocessort::directive()
608
608
// ignored
609
609
tokenizer ().skip_until_eol ();
610
610
}
611
+ else if (text == " default_nettype" )
612
+ {
613
+ // pass through
614
+ out << ' `' << text;
615
+ while (true )
616
+ {
617
+ auto token = tokenizer ().peek ();
618
+ if (token.is_eof ())
619
+ break ;
620
+ out << token.text ;
621
+ tokenizer ().next_token (); // eat
622
+ if (token == ' \n ' )
623
+ break ;
624
+ }
625
+ }
611
626
else
612
627
{
613
628
// check defines
You can’t perform that action at this time.
0 commit comments