aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rtlil.cc
diff options
context:
space:
mode:
authorN. Engelhardt <nak@symbioticeda.com>2020-03-30 13:51:12 +0200
committerGitHub <noreply@github.com>2020-03-30 13:51:12 +0200
commit2c847e7efec5e940331a94580fad99375ce73c6f (patch)
treec87b514d072beb687287ae0432e57964bf0999b9 /kernel/rtlil.cc
parent1dbc70172830c57cda22e4bc82d2db57a2067203 (diff)
parent044ca9dde409e3c91542fe95513d6641110f8462 (diff)
downloadyosys-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 'kernel/rtlil.cc')
-rw-r--r--kernel/rtlil.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc
index 06181b763..79e50cccd 100644
--- a/kernel/rtlil.cc
+++ b/kernel/rtlil.cc
@@ -21,6 +21,7 @@
#include "kernel/macc.h"
#include "kernel/celltypes.h"
#include "frontends/verilog/verilog_frontend.h"
+#include "frontends/verilog/preproc.h"
#include "backends/ilang/ilang_backend.h"
#include <string.h>
@@ -379,6 +380,7 @@ void RTLIL::Selection::optimize(RTLIL::Design *design)
}
RTLIL::Design::Design()
+ : verilog_defines (new define_map_t)
{
static unsigned int hashidx_count = 123456789;
hashidx_count = mkhash_xorshift(hashidx_count);