diff options
author | Ruben Undheim <ruben.undheim@gmail.com> | 2016-06-18 10:24:21 +0200 |
---|---|---|
committer | Ruben Undheim <ruben.undheim@gmail.com> | 2016-06-18 10:53:55 +0200 |
commit | 178ff3e7f6f9766f0b1a3e8dcc96e030aea59b15 (patch) | |
tree | 0da57cc51ffbe1f20d7ca326753b1ab8c5585769 /kernel | |
parent | 3380281e15ca61cec8beda70938fb7b6f4c121d6 (diff) | |
download | yosys-178ff3e7f6f9766f0b1a3e8dcc96e030aea59b15.tar.gz yosys-178ff3e7f6f9766f0b1a3e8dcc96e030aea59b15.tar.bz2 yosys-178ff3e7f6f9766f0b1a3e8dcc96e030aea59b15.zip |
Added support for SystemVerilog packages with localparam definitions
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/rtlil.cc | 2 | ||||
-rw-r--r-- | kernel/rtlil.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index bcd87d3ff..9e09d9f04 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -304,6 +304,8 @@ RTLIL::Design::~Design() { for (auto it = modules_.begin(); it != modules_.end(); ++it) delete it->second; + for (auto n : packages) + delete n; } RTLIL::ObjRange<RTLIL::Module*> RTLIL::Design::modules() diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 940e36ab3..275ba6820 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -18,6 +18,7 @@ */ #include "kernel/yosys.h" +#include "frontends/ast/ast.h" #ifndef RTLIL_H #define RTLIL_H @@ -792,6 +793,7 @@ struct RTLIL::Design int refcount_modules_; dict<RTLIL::IdString, RTLIL::Module*> modules_; + std::vector<AST::AstNode*> packages; std::vector<RTLIL::Selection> selection_stack; dict<RTLIL::IdString, RTLIL::Selection> selection_vars; |