diff options
author | N. Engelhardt <nak@symbioticeda.com> | 2020-03-30 13:51:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-30 13:51:12 +0200 |
commit | 2c847e7efec5e940331a94580fad99375ce73c6f (patch) | |
tree | c87b514d072beb687287ae0432e57964bf0999b9 /passes/cmds | |
parent | 1dbc70172830c57cda22e4bc82d2db57a2067203 (diff) | |
parent | 044ca9dde409e3c91542fe95513d6641110f8462 (diff) | |
download | yosys-2c847e7efec5e940331a94580fad99375ce73c6f.tar.gz yosys-2c847e7efec5e940331a94580fad99375ce73c6f.tar.bz2 yosys-2c847e7efec5e940331a94580fad99375ce73c6f.zip |
Merge pull request #1778 from rswarbrick/sv-defines
Add support for SystemVerilog-style `define to Verilog frontend
Diffstat (limited to 'passes/cmds')
-rw-r--r-- | passes/cmds/design.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/passes/cmds/design.cc b/passes/cmds/design.cc index 172addcc1..fab23fc1d 100644 --- a/passes/cmds/design.cc +++ b/passes/cmds/design.cc @@ -18,6 +18,7 @@ */ #include "kernel/yosys.h" +#include "frontends/verilog/preproc.h" #include "frontends/ast/ast.h" YOSYS_NAMESPACE_BEGIN @@ -346,7 +347,7 @@ struct DesignPass : public Pass { delete node; design->verilog_globals.clear(); - design->verilog_defines.clear(); + design->verilog_defines->clear(); } if (!load_name.empty() || pop_mode) |