Commit 9e01366
committed
[minor] Add "regreset" alternative syntax
Add alternative syntax for specifying a register with a reset. This is
done to simplify parsing, readability, and writability. This also brings
the register more in line with other FIRRTL operations.
The new syntax looks like:
regreset a: UInt<8>, clk, rst, init
The old syntax that this is an alternative to is:
reg a: UInt<8>, clk with: (reset => (rst, init))
This syntax is intended to be introduced in the v2.3.0 minor release and
made mandatory in the v3.0.0 release.
Signed-off-by: Schuyler Eldridge <[email protected]>1 parent a5e42f2 commit 9e01366
3 files changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1248 | 1248 | | |
1249 | 1249 | | |
1250 | 1250 | | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
1251 | 1266 | | |
1252 | 1267 | | |
1253 | 1268 | | |
| |||
3670 | 3685 | | |
3671 | 3686 | | |
3672 | 3687 | | |
| 3688 | + | |
| 3689 | + | |
3673 | 3690 | | |
3674 | 3691 | | |
3675 | 3692 | | |
| |||
0 commit comments