From 3c67791624754328be44a2829298ef72fb4a4410 Mon Sep 17 00:00:00 2001 From: Philipp Wagner Date: Sat, 6 Jul 2019 18:09:08 -0400 Subject: [PATCH] docs: Document parse-order-dependency for config files, bug1474 Signed-off-by: Wilson Snyder --- bin/verilator | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/verilator b/bin/verilator index 3cb2c0c5b..3846f53cb 100755 --- a/bin/verilator +++ b/bin/verilator @@ -2444,6 +2444,10 @@ Configuration files are parsed after the normal Verilog preprocessing, so `ifdefs, `defines, and comments may be used as if it were normal Verilog code. +Note that file or line-specific configuration only applies to files read +after the configuration file. It is therefore recommended to pass the +configuration file to Verilator as first file. + The grammar of configuration commands is as follows: =over 4