You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/src/vpr/file_formats.rst
+20-3Lines changed: 20 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -391,17 +391,34 @@ The ``.param`` statement allows parameters (e.g. primitive modes) to be tagged o
391
391
392
392
.. note:: ``.param`` statements apply to the previous primitive instantiation.
393
393
394
+
Parameters can have one of the three available types. Type is inferred from the format in which a parameter is provided.
395
+
396
+
* **string**
397
+
Whenever a parameter value is quoted it is considered to be a string.
398
+
399
+
* **binary word**
400
+
Binary words are specified using strings of characters ``0`` and ``1``. No other characters are allowed. Number of characters denotes the word length.
401
+
402
+
* **real number**
403
+
Real numbers are stored as decimals where the dot ``.`` character separates the integer and fractional part. Presence of the dot character implies that the value is to be treated as a real number.
Would set the parameters ``feedback``, ``multipleir`` and ``power`` of the above ``pll`` ``.subckt`` to ``"internal"``, ``0.50`` and ``001101`` respectively.
400
415
401
-
Would set the parameter ``mode`` of the above ``dsp`` ``.subckt`` to ``adder``.
416
+
Interpretation of parameter values is out of scope of the BLIF format extension.
402
417
403
418
``.param`` statements propagate to ``<parameter>`` elements in the packed netlist.
404
419
420
+
Paramerer values propagate also to post-route Verilog netlist. Strings and real numbers are passed directly while binary words are prepended with the ``<N>'b`` prefix where ``N`` denotes a binary word length.
421
+
405
422
.attr
406
423
~~~~~
407
424
The ``.attr`` statement allows attributes (e.g. source file/line) to be tagged on BLIF primitives.
0 commit comments