summaryrefslogtreecommitdiff
path: root/src/parse_ast.ml
diff options
context:
space:
mode:
authorPrashanth Mundkur2019-02-07 14:30:41 -0800
committerPrashanth Mundkur2019-02-08 11:21:17 -0800
commit88c956dc0ee2e4e22c04d7a841d070cca7cca2a0 (patch)
treec25d6e7e9e9ddbfab51c63ab6a89b99a2ccbcf7e /src/parse_ast.ml
parentad868ef0ad22a78021a5de91073416f69e8163d3 (diff)
Add parameterization support for bitfields.
This supports the following syntax: type xlen : Int = 64 type ylen : Int = 1 type xlenbits = bits(xlen) bitfield Mstatus : xlenbits = { SD : xlen - ylen, SXL : xlen - ylen - 1 .. xlen - ylen - 3 }
Diffstat (limited to 'src/parse_ast.ml')
-rw-r--r--src/parse_ast.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse_ast.ml b/src/parse_ast.ml
index 6401331e..eb5c3dc6 100644
--- a/src/parse_ast.ml
+++ b/src/parse_ast.ml
@@ -371,8 +371,8 @@ type_union =
type
index_range_aux = (* index specification, for bitfields in register types *)
- BF_single of Big_int.num (* single index *)
- | BF_range of Big_int.num * Big_int.num (* index range *)
+ BF_single of atyp (* single index *)
+ | BF_range of atyp * atyp (* index range *)
| BF_concat of index_range * index_range (* concatenation of index ranges *)
and index_range =