mirror of https://github.com/zachjs/sv2v.git
parse alternate spacings of sense star
This commit is contained in:
parent
c17d859988
commit
cd45696ace
|
|
@ -1173,6 +1173,9 @@ CycleDelay :: { Expr }
|
|||
EventControl :: { Sense }
|
||||
: "@" "(" Senses ")" { $3 }
|
||||
| "@" "(*)" { SenseStar }
|
||||
| "@" "(" "*" ")" { SenseStar }
|
||||
| "@" "(*" ")" { SenseStar }
|
||||
| "@" "(" "*)" { SenseStar }
|
||||
| "@*" { SenseStar }
|
||||
| "@" Identifier { Sense $ LHSIdent $2 }
|
||||
Senses :: { Sense }
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
module top;
|
||||
`define TEST(sense) always sense $display(`"sense %b`", x);
|
||||
reg x, y;
|
||||
`TEST(@*)
|
||||
`TEST(@x)
|
||||
`TEST(@y)
|
||||
`TEST(@ ( * ))
|
||||
`TEST(@ ( *))
|
||||
`TEST(@ (* ))
|
||||
`TEST(@ (*))
|
||||
`TEST(@( * ))
|
||||
`TEST(@( *))
|
||||
`TEST(@(* ))
|
||||
`TEST(@(*))
|
||||
initial x = 1;
|
||||
endmodule
|
||||
Loading…
Reference in New Issue