aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ilang
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2016-10-22 11:05:49 +0200
committerClifford Wolf <clifford@clifford.at>2016-10-22 11:05:49 +0200
commitaa7226233023dcd53a28de837de74fb60fa9d691 (patch)
tree9cf5abd4a5eba771e06225aba7e931692943a6dd /frontends/ilang
parent3655d7fea7ce7f41716bd383d962119b7bf84038 (diff)
downloadyosys-aa7226233023dcd53a28de837de74fb60fa9d691.tar.gz
yosys-aa7226233023dcd53a28de837de74fb60fa9d691.tar.bz2
yosys-aa7226233023dcd53a28de837de74fb60fa9d691.zip
Added avail params to ilang format, check module params in 'hierarchy -check'
Diffstat (limited to 'frontends/ilang')
-rw-r--r--frontends/ilang/ilang_parser.y8
1 files changed, 7 insertions, 1 deletions
diff --git a/frontends/ilang/ilang_parser.y b/frontends/ilang/ilang_parser.y
index fe5f23d66..bfc062fec 100644
--- a/frontends/ilang/ilang_parser.y
+++ b/frontends/ilang/ilang_parser.y
@@ -112,7 +112,13 @@ module_body:
/* empty */;
module_stmt:
- attr_stmt | wire_stmt | memory_stmt | cell_stmt | proc_stmt | conn_stmt;
+ param_stmt | attr_stmt | wire_stmt | memory_stmt | cell_stmt | proc_stmt | conn_stmt;
+
+param_stmt:
+ TOK_PARAMETER TOK_ID EOL {
+ current_module->avail_parameters.insert($2);
+ free($2);
+ };
attr_stmt:
TOK_ATTRIBUTE TOK_ID constant EOL {