diff options
Diffstat (limited to 'tests/simple/module_scope_case.v')
-rw-r--r-- | tests/simple/module_scope_case.v | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/simple/module_scope_case.v b/tests/simple/module_scope_case.v new file mode 100644 index 000000000..bceba4424 --- /dev/null +++ b/tests/simple/module_scope_case.v @@ -0,0 +1,11 @@ +module module_scope_case_top( + input wire x, + output reg y +); + always @* begin + case (module_scope_case_top.x) + 1: module_scope_case_top.y = 0; + 0: module_scope_case_top.y = 1; + endcase + end +endmodule |