Fix generate scoping issues
authorZachary Snow <zach@zachjs.com>
Sat, 1 Aug 2020 02:13:05 +0000 (20:13 -0600)
committerZachary Snow <zach@zachjs.com>
Sat, 1 Aug 2020 02:32:47 +0000 (20:32 -0600)
commitc3e95eb1abb35fff98111b3a98e2fa7766754552
tree832d35348353f01a71a58309ef61e6b076c8f8fb
parentc39ebe6ae0e41cf9a84da852fa3cf9f71937a9b2
Fix generate scoping issues

- expand_genblock defers prefixing of items within named sub-blocks
- Allow partially-qualified references to local scopes
- Handle shadowing within generate blocks
- Resolve generate scope references within tasks and functions
- Apply generate scoping to genvars
- Resolves #2214, resolves #1456
frontends/ast/ast.h
frontends/ast/simplify.cc
tests/simple/generate.v