@@ -38,22 +38,23 @@ At runtime, apio select the env to use based using the following rules in decrea
38382 . The value of the ` default-env ` option in the ` [apio] ` section, if exists.
39393 . The first env that is listed in ` apio.ini ` .
4040
41-
4241When apio determines the env to use, it collects its options
4342from the ` [common] ` and the [ env: name ] section, with options in the ` [env:name] ` section
4443having higher priority, and executes the command with the resolved set options.
4544
46- ## Value macros
45+ ## Project macros
4746
48- When processing env values, apio replaces the following macros with their
47+ When processing env values in apio.ini , apio replaces the following macros with their
4948respective values.
5049
51- | MACRO_NAME | VALUE |
52- | :------------ | :--------------------------------------------------------------- |
53- | ` {semicolon} ` | The character ` ; ` |
54- | ` {hash} ` | The character ` # ` |
55- | ` {env-name} ` | The env name, e.g. ` my-env ` . |
56- | ` {env-build} ` | The posix path of the env build directory, e.g. ` _build/my-env ` . |
50+ | MACRO_NAME | VALUE |
51+ | :------------- | :--------------------------------------------------------------- |
52+ | ` ${SEMICOLON} ` | The character ` ; ` |
53+ | ` ${HASH} ` | The character ` # ` |
54+ | ` ${ENV_NAME} ` | The env name, e.g. ` my-env ` . |
55+ | ` ${ENV_BUILD} ` | The posix path of the env build directory, e.g. ` _build/my-env ` . |
56+
57+ > Hint: The ` ${SEMICOLON} ` and ` ${HASH} ` macros are provided to avoid interpretation as comment markers.
5758
5859---
5960
@@ -279,6 +280,6 @@ diagnosing Yosys related synthesis issues.
279280board = alhambra-ii
280281top-module = leds
281282yosys-extra-options =
282- {semicolon } write_verilog {env-build }/yosys-synth.v
283+ ${SEMICOLON } write_verilog ${ENV_BUILD }/yosys-synth.v
283284``
284285```
0 commit comments