@@ -63,6 +63,10 @@ significant bit first. Bits may be any of:
63
63
- ``m ``: A marked bit (internal use only)
64
64
- ``- ``: A don't care value
65
65
66
+ When the bit representation has fewer bits than the width, it is padded to the width with
67
+ the most significant explicit bit, or ``0 `` if the most significant explicit bit is ``1 ``,
68
+ or ``x `` if there are no explicit bits.
69
+
66
70
An *integer * is simply a signed integer value in decimal format. **Warning: **
67
71
Integer constants are limited to 32 bits. That is, they may only be in the range
68
72
:math: `[-2147483648 , 2147483648 )`. Integers outside this range will result in an
@@ -133,6 +137,7 @@ wires, memories, cells, processes, and connections.
133
137
<module> ::= <attr-stmt>* <module-stmt> <module-body> <module-end-stmt>
134
138
<module-stmt> ::= module <id> <eol>
135
139
<module-body> ::= (<param-stmt>
140
+ | <conn-stmt>
136
141
| <wire>
137
142
| <memory>
138
143
| <cell>
@@ -170,6 +175,11 @@ See :ref:`sec:rtlil_sigspec` for an overview of signal specifications.
170
175
| <sigspec> [ <integer> (:<integer>)? ]
171
176
| { <sigspec>* }
172
177
178
+ When a ``<wire-id> `` is specified, the wire must have been previously declared.
179
+
180
+ When a signal slice is specified, the left-hand integer must be greather than or
181
+ equal to the right-hand integer.
182
+
173
183
Connections
174
184
^^^^^^^^^^^
175
185
@@ -268,7 +278,7 @@ may have zero or more attributes.
268
278
.. code :: BNF
269
279
270
280
<switch> ::= <switch-stmt> <case>* <switch-end-stmt>
271
- <switch-stmt> := <attr-stmt>* switch <sigspec> <eol>
281
+ <switch-stmt> : := <attr-stmt>* switch <sigspec> <eol>
272
282
<case> ::= <attr-stmt>* <case-stmt> <case-body>
273
283
<case-stmt> ::= case <compare>? <eol>
274
284
<compare> ::= <sigspec> (, <sigspec>)*
295
305
| sync always <eol>
296
306
<sync-type> ::= low | high | posedge | negedge | edge
297
307
<update-stmt> ::= update <dest-sigspec> <src-sigspec> <eol>
308
+ | <attr-stmt>* memwr <id> <sigspec> <sigspec> <sigspec> <constant> <eol>
0 commit comments