3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 00:55:32 +00:00

Added support for non-standard """ macro bodies

This commit is contained in:
Clifford Wolf 2014-08-13 13:03:38 +02:00
parent 9d353fc543
commit f53984795d
2 changed files with 21 additions and 1 deletions

9
README
View file

@ -281,6 +281,15 @@ Verilog Attributes and non-standard features
to simply declare a module port as 'input' or 'output' in the module
body.
- When defining a macro with `define, all text between tripple double quotes
is interpreted as macro body, even if it contains unescaped newlines. The
tripple double quotes are removed from the macro body. For example:
`define MY_MACRO(a, b) """
assign a = 23;
assign b = 42;
"""
- Sized constants (the syntax <size>'s?[bodh]<value>) support constant
expressions as <size>. If the expresion is not a simple identifier, it
must be put in parentheses. Examples: WIDTH'd42, (4+2)'b101010